From d0a7e514b7a58b2247f3b4c464d11d9054343d42 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Thu, 29 Jun 2023 17:48:09 +0800 Subject: [PATCH] update --- .../Services/Token/LoginModel.cs | 7 + .../Services/Token/TokenService.cs | 63 + code/WebApp/vanilla/.eslintrc.json | 25 + code/WebApp/vanilla/.prettierrc.json | 21 + code/WebApp/vanilla/.vscode/extensions.json | 5 + code/WebApp/vanilla/.vscode/settings.json | 7 + code/WebApp/vanilla/api/site.js | 169 + code/WebApp/vanilla/api/user.js | 80 + code/WebApp/vanilla/app.js | 27 + code/WebApp/vanilla/assets/docs/test.md | 18 + code/WebApp/vanilla/assets/icons/create.svg | 1 + code/WebApp/vanilla/assets/icons/delete.svg | 1 + code/WebApp/vanilla/assets/icons/details.svg | 1 + code/WebApp/vanilla/assets/icons/export.svg | 1 + code/WebApp/vanilla/assets/icons/file.svg | 1 + code/WebApp/vanilla/assets/icons/fold.svg | 1 + code/WebApp/vanilla/assets/icons/folder.svg | 1 + .../vanilla/assets/icons/fullscreen-exit.svg | 4 + .../vanilla/assets/icons/fullscreen.svg | 4 + code/WebApp/vanilla/assets/icons/home.svg | 1 + code/WebApp/vanilla/assets/icons/import.svg | 1 + code/WebApp/vanilla/assets/icons/index.svg | 1 + code/WebApp/vanilla/assets/icons/lang.svg | 1 + code/WebApp/vanilla/assets/icons/loading.svg | 1 + code/WebApp/vanilla/assets/icons/unfold.svg | 1 + code/WebApp/vanilla/assets/icons/update.svg | 1 + code/WebApp/vanilla/assets/logo.svg | 4 + code/WebApp/vanilla/components/chart/index.js | 37 + .../vanilla/components/form/form-input.js | 93 + .../vanilla/components/form/form-item.js | 94 + code/WebApp/vanilla/components/form/index.js | 75 + code/WebApp/vanilla/components/icon/index.js | 34 + code/WebApp/vanilla/components/list/index.js | 390 + .../vanilla/components/markdown/index.js | 41 + code/WebApp/vanilla/config/settings.js | 4 + code/WebApp/vanilla/favicon.ico | Bin 0 -> 5430 bytes code/WebApp/vanilla/index.html | 72 + code/WebApp/vanilla/layouts/footer.js | 12 + code/WebApp/vanilla/layouts/header.js | 168 + code/WebApp/vanilla/layouts/index.js | 57 + code/WebApp/vanilla/layouts/locale.js | 36 + code/WebApp/vanilla/layouts/logo.js | 17 + code/WebApp/vanilla/layouts/menu-item.js | 55 + code/WebApp/vanilla/layouts/menu.js | 24 + code/WebApp/vanilla/layouts/tabs.js | 171 + .../lib/@element-plus/icons-vue/index.js | 9349 +++ .../lib/@microsoft/signalr/signalr.esm.js | 2568 + .../vanilla/lib/@vue-office/excel/index.css | 765 + .../@vue-office/excel/vue-office-excel.mjs | 54424 ++++++++++++++++ .../vanilla/lib/@vue/devtools-api/shim.js | 160 + .../WebApp/vanilla/lib/@vueuse/core/index.mjs | 7387 +++ .../vanilla/lib/@vueuse/shared/index.mjs | 1790 + .../lib/better-mock/mock.browser.esm.js | 8842 +++ .../vanilla/lib/detect-it/detect-it.esm.js | 8 + .../vanilla/lib/echarts/echarts.esm.min.js | 45 + .../WebApp/vanilla/lib/element-plus/index.css | 1 + .../lib/element-plus/index.full.min.mjs | 78 + .../lib/element-plus/locale/en.min.mjs | 2 + .../lib/element-plus/locale/zh-cn.min.mjs | 2 + .../theme-chalk/dark/css-vars.css | 1 + .../github-markdown.min.css | 881 + .../vanilla/lib/highlightjs/highlight.css | 111 + .../vanilla/lib/highlightjs/highlight.min.js | 1174 + .../vanilla/lib/jwt-decode/jwt-decode.esm.js | 2 + code/WebApp/vanilla/lib/linq/linq.min.js | 1 + code/WebApp/vanilla/lib/lodash/lodash.esm.js | 18 + code/WebApp/vanilla/lib/marked/marked.esm.js | 2778 + .../vanilla/lib/mermaid/mermaid.esm.min.mjs | 3 + .../vanilla/lib/nprogress/nprogress.css | 74 + .../lib/nprogress/nprogress.vite-esm.js | 288 + .../vanilla/lib/pinia/pinia.esm-browser.js | 1987 + .../vanilla/lib/pubsub-js/pubsub.esm.js | 206 + code/WebApp/vanilla/lib/qs/shim.js | 1837 + .../vanilla/lib/resize-detector/index.js | 314 + .../vanilla/lib/tailwindcss/tailwind.min.css | 1 + code/WebApp/vanilla/lib/vue-demi/shim.js | 34 + .../vanilla/lib/vue-echarts/index.esm.min.js | 2 + .../lib/vue-i18n/vue-i18n.esm-browser.prod.js | 6 + .../lib/vue-router/vue-router.esm-browser.js | 3613 + .../WebApp/vanilla/lib/vue/vue.esm-browser.js | 15377 +++++ .../vanilla/lib/vue/vue.esm-browser.prod.js | 1 + code/WebApp/vanilla/locale/index.js | 13 + code/WebApp/vanilla/main.css | 8 + code/WebApp/vanilla/main.js | 20 + code/WebApp/vanilla/mixins/style.js | 60 + code/WebApp/vanilla/request/index.js | 90 + code/WebApp/vanilla/resize-detector/index.js | 314 + code/WebApp/vanilla/router/index.js | 133 + code/WebApp/vanilla/signalr/index.js | 42 + code/WebApp/vanilla/store/app.js | 41 + code/WebApp/vanilla/store/index.js | 7 + code/WebApp/vanilla/styles/site.css | 137 + code/WebApp/vanilla/utils/index.js | 120 + code/WebApp/vanilla/views/403.js | 3 + code/WebApp/vanilla/views/404.js | 3 + code/WebApp/vanilla/views/home.js | 7 + code/WebApp/vanilla/views/list.js | 32 + code/WebApp/vanilla/views/login.js | 90 + code/WebApp/vanilla/views/monitor.js | 216 + .../WTA/wwwroot/components/form/form-input.js | 2 +- 100 files changed, 117295 insertions(+), 1 deletion(-) create mode 100644 code/AuthServer/AuthServer.Host/Services/Token/LoginModel.cs create mode 100644 code/AuthServer/AuthServer.Host/Services/Token/TokenService.cs create mode 100644 code/WebApp/vanilla/.eslintrc.json create mode 100644 code/WebApp/vanilla/.prettierrc.json create mode 100644 code/WebApp/vanilla/.vscode/extensions.json create mode 100644 code/WebApp/vanilla/.vscode/settings.json create mode 100644 code/WebApp/vanilla/api/site.js create mode 100644 code/WebApp/vanilla/api/user.js create mode 100644 code/WebApp/vanilla/app.js create mode 100644 code/WebApp/vanilla/assets/docs/test.md create mode 100644 code/WebApp/vanilla/assets/icons/create.svg create mode 100644 code/WebApp/vanilla/assets/icons/delete.svg create mode 100644 code/WebApp/vanilla/assets/icons/details.svg create mode 100644 code/WebApp/vanilla/assets/icons/export.svg create mode 100644 code/WebApp/vanilla/assets/icons/file.svg create mode 100644 code/WebApp/vanilla/assets/icons/fold.svg create mode 100644 code/WebApp/vanilla/assets/icons/folder.svg create mode 100644 code/WebApp/vanilla/assets/icons/fullscreen-exit.svg create mode 100644 code/WebApp/vanilla/assets/icons/fullscreen.svg create mode 100644 code/WebApp/vanilla/assets/icons/home.svg create mode 100644 code/WebApp/vanilla/assets/icons/import.svg create mode 100644 code/WebApp/vanilla/assets/icons/index.svg create mode 100644 code/WebApp/vanilla/assets/icons/lang.svg create mode 100644 code/WebApp/vanilla/assets/icons/loading.svg create mode 100644 code/WebApp/vanilla/assets/icons/unfold.svg create mode 100644 code/WebApp/vanilla/assets/icons/update.svg create mode 100644 code/WebApp/vanilla/assets/logo.svg create mode 100644 code/WebApp/vanilla/components/chart/index.js create mode 100644 code/WebApp/vanilla/components/form/form-input.js create mode 100644 code/WebApp/vanilla/components/form/form-item.js create mode 100644 code/WebApp/vanilla/components/form/index.js create mode 100644 code/WebApp/vanilla/components/icon/index.js create mode 100644 code/WebApp/vanilla/components/list/index.js create mode 100644 code/WebApp/vanilla/components/markdown/index.js create mode 100644 code/WebApp/vanilla/config/settings.js create mode 100644 code/WebApp/vanilla/favicon.ico create mode 100644 code/WebApp/vanilla/index.html create mode 100644 code/WebApp/vanilla/layouts/footer.js create mode 100644 code/WebApp/vanilla/layouts/header.js create mode 100644 code/WebApp/vanilla/layouts/index.js create mode 100644 code/WebApp/vanilla/layouts/locale.js create mode 100644 code/WebApp/vanilla/layouts/logo.js create mode 100644 code/WebApp/vanilla/layouts/menu-item.js create mode 100644 code/WebApp/vanilla/layouts/menu.js create mode 100644 code/WebApp/vanilla/layouts/tabs.js create mode 100644 code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js create mode 100644 code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js create mode 100644 code/WebApp/vanilla/lib/@vue-office/excel/index.css create mode 100644 code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs create mode 100644 code/WebApp/vanilla/lib/@vue/devtools-api/shim.js create mode 100644 code/WebApp/vanilla/lib/@vueuse/core/index.mjs create mode 100644 code/WebApp/vanilla/lib/@vueuse/shared/index.mjs create mode 100644 code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js create mode 100644 code/WebApp/vanilla/lib/detect-it/detect-it.esm.js create mode 100644 code/WebApp/vanilla/lib/echarts/echarts.esm.min.js create mode 100644 code/WebApp/vanilla/lib/element-plus/index.css create mode 100644 code/WebApp/vanilla/lib/element-plus/index.full.min.mjs create mode 100644 code/WebApp/vanilla/lib/element-plus/locale/en.min.mjs create mode 100644 code/WebApp/vanilla/lib/element-plus/locale/zh-cn.min.mjs create mode 100644 code/WebApp/vanilla/lib/element-plus/theme-chalk/dark/css-vars.css create mode 100644 code/WebApp/vanilla/lib/github-markdown-css/github-markdown.min.css create mode 100644 code/WebApp/vanilla/lib/highlightjs/highlight.css create mode 100644 code/WebApp/vanilla/lib/highlightjs/highlight.min.js create mode 100644 code/WebApp/vanilla/lib/jwt-decode/jwt-decode.esm.js create mode 100644 code/WebApp/vanilla/lib/linq/linq.min.js create mode 100644 code/WebApp/vanilla/lib/lodash/lodash.esm.js create mode 100644 code/WebApp/vanilla/lib/marked/marked.esm.js create mode 100644 code/WebApp/vanilla/lib/mermaid/mermaid.esm.min.mjs create mode 100644 code/WebApp/vanilla/lib/nprogress/nprogress.css create mode 100644 code/WebApp/vanilla/lib/nprogress/nprogress.vite-esm.js create mode 100644 code/WebApp/vanilla/lib/pinia/pinia.esm-browser.js create mode 100644 code/WebApp/vanilla/lib/pubsub-js/pubsub.esm.js create mode 100644 code/WebApp/vanilla/lib/qs/shim.js create mode 100644 code/WebApp/vanilla/lib/resize-detector/index.js create mode 100644 code/WebApp/vanilla/lib/tailwindcss/tailwind.min.css create mode 100644 code/WebApp/vanilla/lib/vue-demi/shim.js create mode 100644 code/WebApp/vanilla/lib/vue-echarts/index.esm.min.js create mode 100644 code/WebApp/vanilla/lib/vue-i18n/vue-i18n.esm-browser.prod.js create mode 100644 code/WebApp/vanilla/lib/vue-router/vue-router.esm-browser.js create mode 100644 code/WebApp/vanilla/lib/vue/vue.esm-browser.js create mode 100644 code/WebApp/vanilla/lib/vue/vue.esm-browser.prod.js create mode 100644 code/WebApp/vanilla/locale/index.js create mode 100644 code/WebApp/vanilla/main.css create mode 100644 code/WebApp/vanilla/main.js create mode 100644 code/WebApp/vanilla/mixins/style.js create mode 100644 code/WebApp/vanilla/request/index.js create mode 100644 code/WebApp/vanilla/resize-detector/index.js create mode 100644 code/WebApp/vanilla/router/index.js create mode 100644 code/WebApp/vanilla/signalr/index.js create mode 100644 code/WebApp/vanilla/store/app.js create mode 100644 code/WebApp/vanilla/store/index.js create mode 100644 code/WebApp/vanilla/styles/site.css create mode 100644 code/WebApp/vanilla/utils/index.js create mode 100644 code/WebApp/vanilla/views/403.js create mode 100644 code/WebApp/vanilla/views/404.js create mode 100644 code/WebApp/vanilla/views/home.js create mode 100644 code/WebApp/vanilla/views/list.js create mode 100644 code/WebApp/vanilla/views/login.js create mode 100644 code/WebApp/vanilla/views/monitor.js diff --git a/code/AuthServer/AuthServer.Host/Services/Token/LoginModel.cs b/code/AuthServer/AuthServer.Host/Services/Token/LoginModel.cs new file mode 100644 index 00000000..8f12431e --- /dev/null +++ b/code/AuthServer/AuthServer.Host/Services/Token/LoginModel.cs @@ -0,0 +1,7 @@ +namespace AuthServer.Host.Services.Token; + +public class LoginModel +{ + public string UserName { get; set;} + public string Password { get; set;} +} diff --git a/code/AuthServer/AuthServer.Host/Services/Token/TokenService.cs b/code/AuthServer/AuthServer.Host/Services/Token/TokenService.cs new file mode 100644 index 00000000..70b86f96 --- /dev/null +++ b/code/AuthServer/AuthServer.Host/Services/Token/TokenService.cs @@ -0,0 +1,63 @@ +using IdentityModel.Client; +using Microsoft.AspNetCore.Authorization; +using System.Net.Http; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Volo.Abp.Account.Web.Pages.Account; +using Volo.Abp.Application.Services; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Configuration; + +namespace AuthServer.Host.Services.Token; + +[Route("/api/[controller]/[action]")] +public class TokenService : ApplicationService +{ + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly IHttpClientFactory _httpClientFactory; + private readonly ILogger _logger; + private readonly IConfiguration _configuration; + public TokenService(IHttpContextAccessor httpContextAccessor, IHttpClientFactory httpClientFactory, IConfiguration configuration, ILogger logger) + { + this._httpContextAccessor = httpContextAccessor; + this._httpClientFactory = httpClientFactory; + this._configuration = configuration; + this._logger = logger; + } + + [HttpPost("token")] + [AllowAnonymous] + public async Task CreateAsync(LoginModel model) + { + var address = _configuration["AuthServer:Authority"]; + var clientId = _configuration["AuthServer:ClientId"]; + var clientSecret = _configuration["AuthServer:ClientSecret"]; + + var result = await _httpClientFactory.CreateClient().RequestPasswordTokenAsync(new PasswordTokenRequest + { + Address = $"{address.TrimEnd('/')}/connect/token", + GrantType = "password", + ClientId = clientId, + ClientSecret = clientSecret, + UserName = model.UserName, + Password = model.Password + }).ConfigureAwait(false); + + return new JsonResult(new + { + result.TokenType, + result.AccessToken, + result.ExpiresIn, + result.RefreshToken, + result.Scope, + result.HttpStatusCode, + result.Error, + result.HttpErrorReason, + result.ErrorDescription, + result.ErrorType, + result.Exception?.Message, + Exception = result.Exception?.ToString() + }); + } +} diff --git a/code/WebApp/vanilla/.eslintrc.json b/code/WebApp/vanilla/.eslintrc.json new file mode 100644 index 00000000..bc98a861 --- /dev/null +++ b/code/WebApp/vanilla/.eslintrc.json @@ -0,0 +1,25 @@ +{ + "root": true, + "rules": { + "import/extensions": [ + 2, + "ignorePackages", + { + "js": "never", + "jsx": "never", + "ts": "never", + "tsx": "never" + } + ], + "sort-imports": [ + "error", + { + "ignoreCase": false, + "ignoreDeclarationSort": false, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"], + "allowSeparatedGroups": false + } + ] + } +} diff --git a/code/WebApp/vanilla/.prettierrc.json b/code/WebApp/vanilla/.prettierrc.json new file mode 100644 index 00000000..328d820c --- /dev/null +++ b/code/WebApp/vanilla/.prettierrc.json @@ -0,0 +1,21 @@ +{ + "printWidth": 120, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "ssingleQuote": true, + "squoteProps": "as-needed", + "sjsxSingleQuote": false, + "strailingComma": "all", + "sbracketSpacing": true, + "sjsxBracketSameLine": false, + "sarrowParens": "always", + "srangeStart": 0, + "srangeEnd": "Infinity", + "srequirePragma": false, + "sinsertPragma": false, + "sproseWrap": "preserve", + "shtmlWhitespaceSensitivity": "css", + "svueIndentScriptAndStyle": false, + "endOfLine": "lf" +} diff --git a/code/WebApp/vanilla/.vscode/extensions.json b/code/WebApp/vanilla/.vscode/extensions.json new file mode 100644 index 00000000..55f25595 --- /dev/null +++ b/code/WebApp/vanilla/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "Vue.volar", + ] +} \ No newline at end of file diff --git a/code/WebApp/vanilla/.vscode/settings.json b/code/WebApp/vanilla/.vscode/settings.json new file mode 100644 index 00000000..b797f126 --- /dev/null +++ b/code/WebApp/vanilla/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "search.exclude": { + "lib": true + }, + "editor.formatOnSave": true, + "liveServer.settings.port": 9527 +} diff --git a/code/WebApp/vanilla/api/site.js b/code/WebApp/vanilla/api/site.js new file mode 100644 index 00000000..614ccd9f --- /dev/null +++ b/code/WebApp/vanilla/api/site.js @@ -0,0 +1,169 @@ +import { get, post } from "../request/index.js"; + +async function getLocalizationAsync() { + // const url = "abp/application-configuration"; + // const data = (await get(url, null, null, true, true)).data; + return { + options: [ + { + value: "zh", + label: "中文", + }, + { + value: "en", + label: "English", + }, + ], + locale: "zh", + messages: { + zh: { + application: "北京北汽模塑-SAS结算分析系统", + copyright: "长春市闻荫科技有限公司 ©2023", + test: "测试", + compareAttribute: "{0}”和{1}不匹配", + fileExtensionsAttribute: "{0}只接受一下扩展名的文件: {1}", + maxLengthAttribute: "{0}的最大长度为 {1}", + minLengthAttribute: "{0}的最小长度为 {1}", + rangeAttribute: "{0}必需在 {1} 和 {2} 之间", + regularExpressionAttribute: "{0}”必需匹配{1}", + requiredAttribute: "{0}不能为空", + stringLengthAttribute: "{0}的最大长度为 {1}", + stringLengthAttributeIncludingMinimum: "{0}的长度在 {2} 和 {1} 之间", + dataTypeAttribute_CreditCard: "{0}不是有效的信用卡号码", + dataTypeAttribute_EmailAddress: "{0}不是有效的 Email 地址", + dataTypeAttribute_PhoneNumber: "{0}不是有效的手机号码", + dataTypeAttribute_Url: "{0}不是有效的 Url", + dataTypeAttribute_Upload: "{0}的扩展名必须为:{1}", + dataTypeAttribute_DateTime: "{0}不是有效的日期格式", + customValidationAttribute: "{0}验证失败", + validationAttribute: "{0}验证失败", + true: "是", + false: "否", + select: "选择", + confirm: "确定", + reset: "重置", + rowIndex: "行号", + name: "名称", + number: "编号", + value: "值", + order: "序号", + isDisabled: "禁用", + properties: "属性", + parentId: "上级", + lockoutEnabled: "启用锁定", + lockoutEnd: "锁定截止", + accessFailedCount: "登录失败次数", + isSystem: "系统内置", + isReadonly: "只读", + audit: "审计", + selectAll: "全选", + selectInverse: "反选", + filter: "过滤", + createdOn: "创建时间", + createdBy: "创建人", + updatedOn: "修改时间", + updatedBy: "修改人", + deletedOn: "删除时间", + deletedBy: "删除人", + concurrencyStamp: "并发戳", + operations: "操作", + disabled: "已禁用", + displayOrder: "序号", + isDeleted: "已删除", + path: "路径", + method: "方法", + isTop: "顶部", + htmlClass: "class", + internalPath: "内部路径", + component: "组件", + serverTime: "服务器时间", + osArchitecture: "系统架构", + osDescription: "操作系统", + processArchitecture: "进程架构", + tip: "提示", + cancel: "操作取消", + index: "查询", + details: "详情", + create: "新建", + update: "更新", + import: "导入", + export: "导出", + remove: "移除", + restore: "还原", + delete: "删除", + authenticate: "验证", + loginModel: "登录", + login: "登录", + logout: "注销", + confirmLogout: "确认退出?", + register: "注册", + userName: "用户名", + password: "密码", + email: "邮箱", + emailConfirmed: "邮箱已确认", + rememberMe: "记住我", + resetPassword: "重置密码", + userCenter: "用户中心", + avatar: "头像", + tenant: "租户", + connectionString: "连接字符串", + tenantId: "租户", + tenants: "租户管理", + identity: "认证中心", + systemManagement: "基础数据", + roleId: "角色", + permissionId: "权限", + userRoles: "用户角色", + enableColumnLimit: "列权限", + enableRowLimit: "行权限", + rolePermissions: "角色权限", + departmentId: "部门", + cron: "定时器", + icon: "图标", + type: "类型", + isExternal: "外链", + isHidden: "隐藏", + redirect: "跳转", + columns: "列", + identityModule: "系统管理", + user: "用户", + role: "角色", + permission: "权限", + department: "部门", + post: "岗位", + dict: "字典", + systemMonitor: "系统监控", + monitor: "服务监控", + monitorModule: "系统监控", + jobItem: "定时任务", + captcha: "验证码", + captchaExpired: "验证码已过期", + captchaError: "验证码错误", + dictionaryItem: "数据字典", + userLogin: "登录历史", + connectionId: "连接Id", + isOnline: "在线", + heartbeat: "心跳", + userAgent: "用户代理", + }, + en: { + application: "WTA Framework", + copyright: "all rights reserved © copyright", + test: "test", + login: "Login", + logout: "Logout", + confirmLogout: "Confirm Logout?", + register: "Register", + tip: "Tip", + cancel: "Cancel", + userName: "User Name", + password: "Password", + rememberMe: "Remember Me", + resetPassword: "Reset Password", + userCenter: "User Center", + }, + }, + }; +} + +export { getLocalizationAsync }; diff --git a/code/WebApp/vanilla/api/user.js b/code/WebApp/vanilla/api/user.js new file mode 100644 index 00000000..51d53a10 --- /dev/null +++ b/code/WebApp/vanilla/api/user.js @@ -0,0 +1,80 @@ +import router from "../router/index.js"; +import { get, post } from "../request/index.js"; +import jwt_decode from "../lib/jwt-decode/jwt-decode.esm.js"; +import qs from "../lib/qs/shim.js"; +import { useAppStore } from "../store/index.js"; +import { refreshRouter } from "../router/index.js"; +import Enumerable from "linq"; +import { connection } from "../signalr/index.js"; + +const isLogin = async () => { + const appStore = useAppStore(); + // 有 token,判断是否过期,失败设置 token 为 null + if (appStore.token) { + const exp = new Date(jwt_decode(appStore.token).exp * 1000); + if (exp > new Date()) { + return true; + } else { + appStore.token = null; + } + } + return false; +}; + +const login = async (data) => { + const url = "connect-token"; + const appStore = useAppStore(); + const result = await post(url, data, { headers: { "Content-Type": "application/x-www-form-urlencoded" } }, true); + if (!result.errors) { + appStore.token = result.data.access_token; + setRefreshToken(result.data.refresh_token); + appStore.user = await getUser(); + await refreshRouter(); + const redirect = router.currentRoute.value.query?.redirect ?? "/"; + router.push(redirect); + } + return result; +}; + +const logout = () => { + const appStore = useAppStore(); + appStore.token = null; + removeRefreshToken(); + router.push({ path: "/login", query: { redirect: router.currentRoute.value.fullPath } }); +}; + +const getUser = async () => { + const result = await get("abp/application-configuration"); + const data = result.data; + const user = {}; + user.name = data.currentUser.userName; + user.email = data.currentUser.email; + user.roles = data.currentUser.roles; + const menus = (await get("base/role-menus")).data; + user.permissions = menus.items; + return user; +}; + +const hasPermission = (to) => { + const appStore = useAppStore(); + const permission = to.meta?.permission; + if (permission) { + const hasPermission = Enumerable.from(appStore.user.permissions).any((o) => o.number === permission); + return hasPermission; + } else { + return true; + } +}; + +const refreshTokenKey = "refresh_token"; + +const getRefreshToken = () => localStorage.getItem(refreshTokenKey); + +const setRefreshToken = (refreshToken) => localStorage.setItem(refreshTokenKey, refreshToken); + +const removeRefreshToken = () => { + localStorage.removeItem(refreshTokenKey); + connection.stop(); +}; + +export { isLogin, login, logout, getUser, hasPermission }; diff --git a/code/WebApp/vanilla/app.js b/code/WebApp/vanilla/app.js new file mode 100644 index 00000000..9f35eb2c --- /dev/null +++ b/code/WebApp/vanilla/app.js @@ -0,0 +1,27 @@ +import html from "html"; +import { ElConfigProvider } from "element-plus"; +import zh from "./lib/element-plus/locale/zh-cn.min.mjs"; +import en from "./lib/element-plus/locale/en.min.mjs"; +import { Suspense, reactive, onMounted } from "vue"; + +export default { + components: { ElConfigProvider, Suspense }, + template: html` + + + + + `, + setup() { + const localeMap = reactive( + new Map([ + ["zh", zh], + ["en", en], + ]) + ); + onMounted(() => document.querySelector("#loading.loading").classList.remove("loading")); + return { + localeMap, + }; + }, +}; diff --git a/code/WebApp/vanilla/assets/docs/test.md b/code/WebApp/vanilla/assets/docs/test.md new file mode 100644 index 00000000..f8e9919b --- /dev/null +++ b/code/WebApp/vanilla/assets/docs/test.md @@ -0,0 +1,18 @@ +Markdown +======== + +## flowchart + +```mermaid +flowchart LR + Start --> Stop +``` + +## highlight + +```javascript +function (){ + let a=1; + alert(a); +} +``` diff --git a/code/WebApp/vanilla/assets/icons/create.svg b/code/WebApp/vanilla/assets/icons/create.svg new file mode 100644 index 00000000..210823c0 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/create.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/delete.svg b/code/WebApp/vanilla/assets/icons/delete.svg new file mode 100644 index 00000000..4efc34ba --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/delete.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/details.svg b/code/WebApp/vanilla/assets/icons/details.svg new file mode 100644 index 00000000..53362534 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/details.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/export.svg b/code/WebApp/vanilla/assets/icons/export.svg new file mode 100644 index 00000000..cc1c7420 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/export.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/file.svg b/code/WebApp/vanilla/assets/icons/file.svg new file mode 100644 index 00000000..67be8c3c --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/file.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/fold.svg b/code/WebApp/vanilla/assets/icons/fold.svg new file mode 100644 index 00000000..5fd0e8dc --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/fold.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/folder.svg b/code/WebApp/vanilla/assets/icons/folder.svg new file mode 100644 index 00000000..216744ff --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/folder.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg b/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg new file mode 100644 index 00000000..9464cdac --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/fullscreen-exit.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/code/WebApp/vanilla/assets/icons/fullscreen.svg b/code/WebApp/vanilla/assets/icons/fullscreen.svg new file mode 100644 index 00000000..3a42d8c4 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/fullscreen.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/code/WebApp/vanilla/assets/icons/home.svg b/code/WebApp/vanilla/assets/icons/home.svg new file mode 100644 index 00000000..718fc32f --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/home.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/import.svg b/code/WebApp/vanilla/assets/icons/import.svg new file mode 100644 index 00000000..447fb6be --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/import.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/index.svg b/code/WebApp/vanilla/assets/icons/index.svg new file mode 100644 index 00000000..ff74ec70 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/index.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/lang.svg b/code/WebApp/vanilla/assets/icons/lang.svg new file mode 100644 index 00000000..7051ed03 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/lang.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/loading.svg b/code/WebApp/vanilla/assets/icons/loading.svg new file mode 100644 index 00000000..ad6abaf3 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/loading.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/unfold.svg b/code/WebApp/vanilla/assets/icons/unfold.svg new file mode 100644 index 00000000..671eff1f --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/unfold.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/icons/update.svg b/code/WebApp/vanilla/assets/icons/update.svg new file mode 100644 index 00000000..4aa823b9 --- /dev/null +++ b/code/WebApp/vanilla/assets/icons/update.svg @@ -0,0 +1 @@ + diff --git a/code/WebApp/vanilla/assets/logo.svg b/code/WebApp/vanilla/assets/logo.svg new file mode 100644 index 00000000..457124a0 --- /dev/null +++ b/code/WebApp/vanilla/assets/logo.svg @@ -0,0 +1,4 @@ + + + diff --git a/code/WebApp/vanilla/components/chart/index.js b/code/WebApp/vanilla/components/chart/index.js new file mode 100644 index 00000000..86402a55 --- /dev/null +++ b/code/WebApp/vanilla/components/chart/index.js @@ -0,0 +1,37 @@ +import { nextTick, ref } from 'vue'; +import VCharts from 'vue-echarts'; + +const template = ``; + +export default { + template, + components: { VCharts }, + props: { + options: { + default: {}, + }, + autoresize: { + default: true, + }, + width: { + default: '100%', + }, + height: { + default: '100%', + }, + }, + setup() { + const renderChart = ref(false); + nextTick(() => { + renderChart.value = true; + }); + return { + renderChart, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/form/form-input.js b/code/WebApp/vanilla/components/form/form-input.js new file mode 100644 index 00000000..02911edf --- /dev/null +++ b/code/WebApp/vanilla/components/form/form-input.js @@ -0,0 +1,93 @@ +import html from "html"; +import { ref, reactive, watch } from "vue"; +import { dayjs } from "element-plus"; + +export default { + template: html` + + + `, + props: ["modelValue", "schema", "prop", "isReadOnly"], + emit: ["update:modelValue"], + async setup(props, context) { + const model = reactive(props.modelValue); + watch(model, (value) => { + context.emit("update:modelValue", value); + }); + /*start*/ + const getDisabled = () => { + if (props.isReadOnly && props.isReadOnly === true) { + return true; + } + if (props.schema.displayOnly) { + return true; + } + if (props.mode === "update" && props.schema.addOnly) { + return true; + } + return false; + }; + const getInput = (schema) => { + return schema.input ?? schema.type; + }; + /*end*/ + return { + model, + getDisabled, + getInput, + dayjs, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/form/form-item.js b/code/WebApp/vanilla/components/form/form-item.js new file mode 100644 index 00000000..f4a12281 --- /dev/null +++ b/code/WebApp/vanilla/components/form/form-item.js @@ -0,0 +1,94 @@ +import html from "html"; +import { ref, reactive, watch } from "vue"; +import AppFormInput from "./form-input.js"; + +export default { + name: "formItem", + components: { AppFormInput }, + template: html` + + + `, + props: ["modelValue", "mode", "parentSchema", "schema", "prop", "errors"], + emit: ["update:modelValue"], + async setup(props, context) { + const model = reactive(props.modelValue); + watch(model, (value) => { + context.emit("update:modelValue", value); + }); + /*start*/ + const showItem = () => { + if (props.schema.hidden) { + return false; + } + if (props.schema.readOnly && (props.mode === "query" || props.mode === "create" || props.mode === "update")) { + return false; + } + return true; + }; + // + const getProp = (prop) => { + return prop; + }; + // + const getError = (prop) => { + return props.errors[prop]; + }; + // + const getRules = (parentSchema, property, data) => { + if (props.mode === "query" || props.mode === "details" || !property.rules) { + return null; + } + const rules = [...(Array.isArray(property.rules) ? property.rules : [property.rules])].map((o) => + JSON.parse(JSON.stringify(o)) + ); + Object.values(rules).forEach((rule) => { + rule.data = data; + rule.schema = parentSchema; + rule.title = rule.title ?? property.title; + rule.type = property.type; + if (rule.validator) { + rule.validator = validators[rule.validator]; + } + if (!rule.message) { + if (rule.required) { + rule.message = format(schema.messages.required, property.title); + } else if (rule.pattern) { + rule.message = format(schema.messages.pattern, property.title); + } else if (property.type === "string" || property.type === "number" || property.type === "array") { + if (rule.len) { + rule.message = format(schema.messages[property.type].len, property.title, rule.len); + } else if (rule.min) { + rule.message = format(schema.messages[property.type].min, property.title, rule.min); + } else if (rule.max) { + rule.message = format(schema.messages[property.type].max, property.title, rule.max); + } else if (rule.range) { + rule.message = format(schema.messages[property.type].range, property.title, rule.range); + } + } + } + }); + return rules; + }; + /*end*/ + return { + model, + showItem, + getProp, + getError, + getRules, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/form/index.js b/code/WebApp/vanilla/components/form/index.js new file mode 100644 index 00000000..9bc79905 --- /dev/null +++ b/code/WebApp/vanilla/components/form/index.js @@ -0,0 +1,75 @@ +import html from "html"; +import { ref, reactive, watch } from "vue"; +import AppFormItem from "./form-item.js"; + +export default { + components: { AppFormItem }, + name: "AppForm", + template: html` + + + + + $t('confirm') + + `, + props: ["modelValue", "schema", "action", "hideButton", "isQueryForm", "mode"], + emits: ["update:modelValue", "submit"], + setup(props, context) { + // init + const model = reactive(props.modelValue); + watch(model, (value) => { + context.emit("update:modelValue", value); + }); + // ref + const formRef = ref(null); + const loading = ref(false); + // + const errors = ref({}); + // reset + const reset = () => { + formRef.value.resetFields(); + }; + // validate + const validate = async () => { + return formRef.value.validate(); + }; + // submit + const submit = async () => { + try { + //const valid = await validate(); + //if (valid) { + loading.value = true; + context.emit("submit", (serverErrors) => { + if (serverErrors) { + errors.value = serverErrors; + } + }); + //} + } catch (error) { + console.error(error); + } finally { + loading.value = false; + } + }; + // expose + context.expose({ validate, reset }); + return { + model, + formRef, + loading, + errors, + reset, + submit, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/icon/index.js b/code/WebApp/vanilla/components/icon/index.js new file mode 100644 index 00000000..cb1910d2 --- /dev/null +++ b/code/WebApp/vanilla/components/icon/index.js @@ -0,0 +1,34 @@ +import { onMounted, ref } from "vue"; + +const template = ` `; + +export default { + props: { + name: { + default: "file", + }, + }, + template, + setup(props) { + const svg = ref(""); + onMounted(async () => { + if (props.name.indexOf("ep-") !== 0) { + try { + const response = await fetch(`./assets/icons/${props.name}.svg`); + if (response.ok && response.status === 200) { + svg.value = await response.text(); + } + } catch (error) { + console.error(error); + } + if (!svg.value) { + const response = await fetch("./assets/icons/file.svg"); + svg.value = await response.text(); + } + } + }); + return { + svg, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/list/index.js b/code/WebApp/vanilla/components/list/index.js new file mode 100644 index 00000000..b0ff184b --- /dev/null +++ b/code/WebApp/vanilla/components/list/index.js @@ -0,0 +1,390 @@ +import html, { getProp } from "html"; +import AppForm from "../form/index.js"; +import { get, post } from "../../request/index.js"; +import { ref, reactive } from "vue"; +import { useRoute } from "vue-router"; +import { useI18n } from "vue-i18n"; +import SvgIcon from "../../components/icon/index.js"; +import { schemaToModel } from "../../utils/index.js"; +import qs from "../../lib/qs/shim.js"; +import AppFormInput from "../form/form-input.js"; +import VueOfficeExcel from "@vue-office/excel"; +import { camelCase, capitalize } from "lodash"; + +export default { + components: { AppForm, SvgIcon, AppFormInput, VueOfficeExcel }, + template: html` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{$t('selectAll')}} + + + + {{$t('selectInverse')}} + + + + + + + + + + + + + + + + + + + + + + + + `, + props: ["modelValue"], + emits: ["command"], + async setup(props, context) { + const tableRef = ref(null); + const columns = ref([]); + const filterDrawer = ref(false); + const tableLoading = ref(false); + const selectedRows = ref([]); + const dialogVisible = ref(false); + const route = useRoute(); + const { t } = useI18n(); + const baseUrl = `${route.meta.path}`.substring(1); + const indexUrl = `${baseUrl}/index`; + const vm = (await get(indexUrl)).data; + const schema = vm.schema; + const data = reactive(vm.model ?? schemaToModel(schema)); + const sortColumns = ref(new Map()); + const getSortModel = (model) => { + const orderBy = model.orderBy + .split(",") + .map((o) => o.trim()) + .filter((o) => o) + .map((o) => ({ + prop: camelCase(o.split(" ")[0]), + order: (o.split(" ").filter((o) => o)[1] ?? "asc") + "ending", + })) + .forEach((o) => sortColumns.value.set(o.prop, o.order)); + return orderBy; + }; + const sortModel = reactive(getSortModel(data)); + const getClass = ({ row, column }) => { + if (column.property) { + column.order = sortColumns.value.get(column.property); + } + }; + const sortChange = ({ column, prop, order }) => { + if (order === null) { + sortColumns.value.delete(prop); + } else { + sortColumns.value.set(prop, order); + } + data.orderBy = Array.from(sortColumns.value) + .map((o) => capitalize(o[0]) + (o[1] === "ascending" ? "" : ` DESC`)) + .join(","); + load(indexUrl); + }; + const getColumns = (schema) => { + Object.keys(schema.properties).forEach((propertyName) => { + const property = schema.properties[propertyName]; + if (property.type !== "object" && property.type !== "array" && !property.hidden) { + columns.value.push({ name: propertyName, title: property.title, checked: true }); + } + }); + }; + const showColumn = (item, prop) => { + return ( + item.type !== "object" && + item.type !== "array" && + !item.hidden && + columns.value.findIndex((o) => o.name === prop && o.checked) >= 0 + ); + }; + getColumns(schema.properties.query); + const queryFromSchema = schema.properties.query; + const tableSchema = schema.properties.items; + const editFormRef = ref(null); + const editFormloading = ref(false); + const editFormMode = ref(null); + const editFormTitle = ref(""); + const editFormSchema = reactive({}); + const editFormModel = reactive({}); + const exportModel = reactive({ + includeAll: false, + includeDeleted: false, + }); + const handleSelectionChange = (rows) => (selectedRows.value = rows); + const load = async (url) => { + tableLoading.value = true; + try { + const postData = JSON.parse(JSON.stringify(data)); + delete postData["Id"]; + delete postData["items"]; + Object.assign(data, (await post(url, postData)).data); + } catch (error) { + console.log(error); + } finally { + tableLoading.value = false; + } + }; + const onPageIndexChange = () => load(indexUrl); + const onPageSizeChange = () => load(indexUrl); + const click = async (item, rows) => { + editFormMode.value = item.path; + context.emit("command", item, rows); + if (item.path === "index") { + //list + await load(indexUrl); + } else if (item.path === "details") { + //details + const detailsUrl = `${baseUrl}/${item.path}?${qs.stringify({ id: rows[0].id })}`; + Object.assign(editFormSchema, schema.properties.items.items); + Object.assign(editFormModel, (await post(detailsUrl)).data); + editFormTitle.value = `${t("details")}${schema.title}`; + dialogVisible.value = true; + } else if (item.path === "create") { + //create + const url = `${baseUrl}/${item.path}`; + const vm = (await get(url)).data; + Object.assign(editFormSchema, vm.schema); + Object.assign(editFormModel, vm.model); + editFormTitle.value = `${t("create")}${schema.title}`; + dialogVisible.value = true; + } else if (item.path === "update") { + //update + const url = `${baseUrl}/${item.path}`; + const vm = (await get(url, { id: rows[0].id })).data; + Object.assign(editFormSchema, vm.schema); + Object.assign(editFormModel, vm.model); + editFormTitle.value = `${t("update")}${schema.title}`; + dialogVisible.value = true; + } else if (item.path === "delete") { + //delete + if (!rows.length) { + return; + } + const url = `${baseUrl}/${item.path}`; + await post( + url, + rows.map((o) => o.id) + ); + await load(indexUrl); + } else if (item.path === "export") { + //export + const url = `${baseUrl}/${item.path}`; + const exportUrl = `${url}?${qs.stringify(exportModel)}`; + await load(exportUrl); + } else if (item.path === "import") { + //import + const url = `${baseUrl}/${item.path}`; + editFormTitle.value = `${t("import")}${schema.title}`; + dialogVisible.value = true; + } + }; + const submit = async () => { + if (editFormMode.value === "create" || editFormMode.value === "update") { + try { + const valid = await editFormRef.value.validate(); + if (valid) { + editFormloading.value = true; + const url = `${baseUrl}/${editFormMode.value}`; + const result = await post(url, editFormModel); + if (result.errors) { + model.errors = result.errors; //?? + } else { + await load(indexUrl); + editFormMode.value = null; + dialogVisible.value = false; + } + } + } catch (error) { + console.error(error); + } finally { + editFormloading.value = false; + } + } else if (editFormMode.value === "details") { + load(indexUrl); + editFormMode.value = null; + dialogVisible.value = false; + } + }; + await load(indexUrl); + return { + route, + tableRef, + tableLoading, + columns, + showColumn, + filterDrawer, + dialogVisible, + selectedRows, + schema, + queryFromSchema, + tableSchema, + data, + sortModel, + getClass, + sortChange, + getProp, + editFormRef, + editFormMode, + editFormTitle, + editFormSchema, + editFormModel, + exportModel, + onPageSizeChange, + onPageIndexChange, + handleSelectionChange, + load, + click, + submit, + }; + }, +}; diff --git a/code/WebApp/vanilla/components/markdown/index.js b/code/WebApp/vanilla/components/markdown/index.js new file mode 100644 index 00000000..e36c75a7 --- /dev/null +++ b/code/WebApp/vanilla/components/markdown/index.js @@ -0,0 +1,41 @@ +import { ref, onMounted } from 'vue'; +import { marked, setOptions } from '../../lib/marked/marked.esm.js'; +import mermaid from '../../lib/mermaid/mermaid.esm.min.mjs'; +import hljs from '../../lib/highlightjs/highlight.min.js'; + +export default { + template: `
`, + props: { + name: { + default: null + } + }, + setup(props) { + const tplRef = ref(null); + mermaid.initialize({ startOnLoad: false }); + let id = 0; + onMounted(async () => { + setOptions({ + highlight: function (code, lang) { + if (lang === 'mermaid') { + return mermaid.mermaidAPI.render(`mermaid${id++}`, code, undefined); + } else { + const language = hljs.getLanguage(lang) ? lang : 'plaintext'; + return hljs.highlight(code, { language }).value; + } + }, + langPrefix: 'hljs language-', + }); + let mdText = tplRef.value.querySelector('.source').innerText; + if (props.name !== null) { + const response = await fetch(`./assets/docs/${props.name}.md`); + mdText = await response.text(); + } + tplRef.value.querySelector('.markdown-body').innerHTML = marked(mdText); + tplRef.value.querySelector('.source').remove(); + }); + return { + tplRef + }; + } +} diff --git a/code/WebApp/vanilla/config/settings.js b/code/WebApp/vanilla/config/settings.js new file mode 100644 index 00000000..c913e2a8 --- /dev/null +++ b/code/WebApp/vanilla/config/settings.js @@ -0,0 +1,4 @@ +export default { + enableLocale: false, + baseURL: "http://dev.ccwin-in.com:10582/api", +}; diff --git a/code/WebApp/vanilla/favicon.ico b/code/WebApp/vanilla/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..63e859b476eff5055e0e557aaa151ca8223fbeef GIT binary patch literal 5430 zcmc&&Yj2xp8Fqnv;>&(QB_ve7>^E#o2mu=cO~A%R>DU-_hfbSRv1t;m7zJ_AMrntN zy0+^f&8be>q&YYzH%(88lQ?#KwiCzaCO*ZEo%j&v;<}&Lj_stKTKK>#U3nin@AF>w zb3ONSAFR{u(S1d?cdw53y}Gt1b-Hirbh;;bm(Rcbnoc*%@jiaXM|4jU^1WO~`TYZ~ zC-~jh9~b-f?fX`DmwvcguQzn*uV}c^Vd&~?H|RUs4Epv~gTAfR(B0lT&?RWQOtduM z^1vUD9{HQsW!{a9|0crA34m7Z6lpG^}f6f?={zD+ zXAzk^i^aKN_}s2$eX81wjSMONE#WVdzf|MT)Ap*}Vsn!XbvsI#6o&ij{87^d%$|A{ z=F{KB%)g%@z76yBzbb7seW**Ju8r4e*Z3PWNX3_tTDgzZatz7)Q6ytwB%@&@A|XT; zecM`Snxx5po$C)%yCP!KEtos~eOS)@2=kX-RIm)4glMCoagTEFxrBeSX%Euz734Fk z%7)x(k~T!@Hbg_37NSQL!vlTBXoURSzt~I**Zw`&F24fH*&kx=%nvZv|49SC*daD( zIw<~%#=lk8{2-l(BcIjy^Q$Q&m#KlWL9?UG{b8@qhlD z;umc+6p%|NsAT~0@DgV4-NKgQuWPWrmPIK&&XhV&n%`{l zOl^bbWYjQNuVXTXESO)@|iUKVmErPUDfz2Wh`4dF@OFiaCW|d`3paV^@|r^8T_ZxM)Z+$p5qx# z#K=z@%;aBPO=C4JNNGqVv6@UGolIz;KZsAro``Rz8X%vq_gpi^qEV&evgHb_=Y9-l z`)imdx0UC>GWZYj)3+3aKh?zVb}=@%oNzg7a8%kfVl)SV-Amp1Okw&+hEZ3|v(k8vRjXW9?ih`&FFM zV$~{j3IzhtcXk?Mu_!12;=+I7XK-IR2>Yd%VB^?oI9c^E&Chb&&je$NV0P-R;ujkP z;cbLCCPEF6|22NDj=S`F^2e~XwT1ZnRX8ra0#DaFa9-X|8(xNW_+JhD75WnSd7cxo z2>I_J5{c|WPfrgl7E2R)^c}F7ry()Z>$Jhk9CzZxiPKL#_0%`&{MX>P_%b~Dx0D^S z7xP1(DQ!d_Icpk!RN3I1w@~|O1ru#CO==h#9M~S4Chx*@?=EKUPGBv$tmU+7Zs_al z`!jR?6T&Z7(%uVq>#yLu`abWk!FBlnY{RFNHlj~6zh*;@u}+}viRKsD`IIxN#R-X3 z@vxu#EA_m}I503U(8Qmx^}u;)KfGP`O9E1H1Q|xeeksX8jC%@!{YT1)!lWgO=+Y3*jr=iSxvOW1}^HSy=y){tOMQJ@an>sOl4FYniE z;GOxd7AqxZNbYFNqobpv&HVO$c-w!Y*6r;$2oJ~h(a#(Bp<-)dg*mNigX~9rPqcHv z^;c*|Md?tD)$y?6FO$DWl$jUGV`F1G_^E&E>sY*YnA~ruv3=z9F8&&~Xpm<<75?N3 z>x~`I&M9q)O1=zWZHN9hZWx>RQ}zLP+iL57Q)%&_^$Sme^^G7;e-P~CR?kqU#Io#( z(nH1Wn*Ig)|M>WLGrxoU?FZrS`4GO&w;+39A3f8w{{Q7eg|$+dIlNFPAe+tN=FOYU z{A&Fg|H73+w1IK(W=j*L>JQgz$g0 z7JpKXLHIh}#$wm|N`s}o-@|L_`>*(gTQ~)wr3Eap7g%PVNisKw82im;Gdv#85x#s+ zoqqtnwu4ycd>cOQgRh-=aEJbnvVK`}ja%+FZx}&ehtX)n(9nVfe4{mn0bgijUbNr7Tf5X^$*{qh2%`?--%+sbSrjE^;1e3>% zqa%jdY16{Y)a1hSy*mr0JGU05Z%=qlx5vGvTjSpTt6k%nR06q}1DU`SQh_ZAeJ}A@`hL~xvv05U?0%=spP`R>dk?cOWM9^KNb7B?xjex>OZo%JMQQ1Q zB|q@}8RiP@DWn-(fB;phPaIOP2Yp)XN3-Fsn)S3w($4&+p8f5W_f%gac}QvmkHfCj$2=!t`boCvQ zCW;&Dto=f8v##}dy^wg3VNaBy&kCe3N;1|@n@pUaMPT?(aJ9b*(gJ28$}(2qFt$H~u5z94xcIQkcOI++)*exzbrk?WOOOf*|%k5#KV zL=&ky3)Eirv$wbRJ2F2s_ILQY--D~~7>^f}W|Aw^e7inXr#WLI{@h`0|jHud2Y~cI~Yn{r_kU^Vo{1gja + + + + + + + + + + + + +
+ + + + + + + diff --git a/code/WebApp/vanilla/layouts/footer.js b/code/WebApp/vanilla/layouts/footer.js new file mode 100644 index 00000000..6682beea --- /dev/null +++ b/code/WebApp/vanilla/layouts/footer.js @@ -0,0 +1,12 @@ +import html from "html"; +import { useAppStore } from "../store/index.js"; + +export default { + template: html``, + setup() { + const appStore = useAppStore(); + return { + appStore, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/header.js b/code/WebApp/vanilla/layouts/header.js new file mode 100644 index 00000000..fc7be257 --- /dev/null +++ b/code/WebApp/vanilla/layouts/header.js @@ -0,0 +1,168 @@ +import html from "html"; +import { ref, onMounted, onUnmounted } from "vue"; +import { useAppStore } from "../store/index.js"; +import SvgIcon from "../components/icon/index.js"; +import LayoutLogo from "./logo.js"; +import { useDark, useFullscreen, useToggle } from "@vueuse/core"; +import { ElMessage, ElMessageBox } from "element-plus"; +import { useI18n } from "vue-i18n"; +import { logout } from "../api/user.js"; +import LayoutLocale from "./locale.js"; +import router from "../router/index.js"; +import { treeToList } from "../utils/index.js"; + +export default { + components: { SvgIcon, LayoutLogo, LayoutLocale, ElMessage, ElMessageBox }, + template: html` +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + {{ appStore.user.name }} + + + + + + + + {{$t('register')}} + + + +
+
+ `, + setup() { + const i18n = useI18n(); + const appStore = useAppStore(); + // + const searchRef = ref(null); + const searchLoading = ref(false); + const searchModel = ref(""); + const searchOptions = ref([]); + const showSearch = ref(false); + const hideSearch = () => { + showSearch.value = false; + }; + const clickSearch = () => { + showSearch.value = !showSearch.value; + if (showSearch.value) { + searchRef.value.focus(); + } + }; + const searchMenu = (query) => { + if (query) { + try { + searchLoading.value = true; + const menus = treeToList(router.getRoutes().find((o) => o.path === "/").children); + searchOptions.value = menus + .filter((o) => !o.children || o.children.length === 0) + .filter((o) => o.meta.fullName.indexOf(query) > -1); + } finally { + searchLoading.value = false; + } + } + }; + const searchChange = (route) => { + if (!route.meta.isExternal) { + router.push(route.meta.path); + searchModel.value = ""; + searchOptions.value = []; + showSearch.value = false; + } else { + window.open(route.path); + } + }; + // + const isDark = useDark(); + const toggleDark = useToggle(isDark); + const toggleMenuCollapse = () => (appStore.isMenuCollapse = !appStore.isMenuCollapse); + // + const { isFullscreen, toggle: toggleFullscreen } = useFullscreen(document.documentElement); + const confirmLogout = async () => { + try { + await ElMessageBox.confirm(i18n.t("confirmLogout"), i18n.t("tip"), { type: "warning" }); + logout(); + } catch (error) { + if (error === "cancel") { + ElMessage({ + type: "info", + message: i18n.t("cancel"), + }); + } + } + }; + return { + appStore, + showSearch, + hideSearch, + clickSearch, + searchRef, + searchLoading, + searchModel, + searchOptions, + searchMenu, + searchChange, + isDark, + toggleDark, + toggleMenuCollapse, + isFullscreen, + toggleFullscreen, + confirmLogout, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/index.js b/code/WebApp/vanilla/layouts/index.js new file mode 100644 index 00000000..e7f989b3 --- /dev/null +++ b/code/WebApp/vanilla/layouts/index.js @@ -0,0 +1,57 @@ +import html from "html"; +import LayoutHeader from "./header.js"; +import LayoutMenu from "./menu.js"; +import LayoutTabs from "./tabs.js"; +import LayoutFooter from "./footer.js"; +import Icon from "../components/icon/index.js"; +import { useAppStore } from "../store/index.js"; +import { computed } from "vue"; + +export default { + components: { Icon, LayoutHeader, LayoutMenu, LayoutTabs, LayoutFooter }, + template: html` + + + + + + + + + + + + + + + + + + + + + + + + `, + setup() { + const appStore = useAppStore(); + const isRefreshing = computed(() => appStore.isRefreshing); + const path = computed(() => useRoute().matched[0].path); + const items = computed(() => useRoute().matched[0].children); + return { + appStore, + isRefreshing, + path, + items, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/locale.js b/code/WebApp/vanilla/layouts/locale.js new file mode 100644 index 00000000..579b05c6 --- /dev/null +++ b/code/WebApp/vanilla/layouts/locale.js @@ -0,0 +1,36 @@ +import html from "html"; +import { useAppStore } from "../store/index.js"; +import { useI18n } from "vue-i18n"; +import Icon from "../components/icon/index.js"; +export default { + components: { Icon }, + template: html` + + + + + + + `, + setup() { + const appStore = useAppStore(); + const i18n = useI18n(); + const changeLocale = (locale) => { + appStore.localization.locale = locale; + i18n.locale.value = locale; + }; + return { + appStore, + changeLocale, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/logo.js b/code/WebApp/vanilla/layouts/logo.js new file mode 100644 index 00000000..9777684c --- /dev/null +++ b/code/WebApp/vanilla/layouts/logo.js @@ -0,0 +1,17 @@ +import html from "html"; +import { useAppStore } from "../store/index.js"; + +export default { + template: html``, + setup() { + const appStore = useAppStore(); + return { + appStore, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/menu-item.js b/code/WebApp/vanilla/layouts/menu-item.js new file mode 100644 index 00000000..26745ef2 --- /dev/null +++ b/code/WebApp/vanilla/layouts/menu-item.js @@ -0,0 +1,55 @@ +import html from "html"; +import { reactive, watch } from "vue"; +import Icon from "../components/icon/index.js"; +import { useRouter } from "vue-router"; + +export default { + name: "menuItem", + components: { Icon }, + template: html` + + + + + + + `, + props: { + modelValue: { + typeof: Object, + }, + }, + setup(props, context) { + const router = useRouter(); + const model = reactive(props.modelValue); + watch( + model, + (value) => { + context.emit("update:modelValue", value); + }, + { deep: true } + ); + // + const click = (route) => { + if (!route.meta.isExternal) { + router.push(route.meta.path); + } else { + window.open(route.path); + } + }; + // + return { + model, + click, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/menu.js b/code/WebApp/vanilla/layouts/menu.js new file mode 100644 index 00000000..737b2efc --- /dev/null +++ b/code/WebApp/vanilla/layouts/menu.js @@ -0,0 +1,24 @@ +import html from "html"; +import Icon from "../components/icon/index.js"; +import { useAppStore } from "../store/index.js"; +import MenuItem from "./menu-item.js"; +import router from "../router/index.js"; + +export default { + components: { Icon, MenuItem }, + template: html` + + `, + setup() { + const appStore = useAppStore(); + const menus = router.getRoutes().find((o) => o.name === "layout").children; + return { + appStore, + menus, + }; + }, +}; diff --git a/code/WebApp/vanilla/layouts/tabs.js b/code/WebApp/vanilla/layouts/tabs.js new file mode 100644 index 00000000..78390eed --- /dev/null +++ b/code/WebApp/vanilla/layouts/tabs.js @@ -0,0 +1,171 @@ +import html from "html"; +import { ref, nextTick } from "vue"; +import { useRoute, onBeforeRouteUpdate, useRouter } from "vue-router"; +import Icon from "../components/icon/index.js"; +import { useAppStore } from "../store/index.js"; +import MenuItem from "./menu-item.js"; + +export default { + components: { Icon, MenuItem }, + template: html` + + `, + styles: html` + + `, + setup() { + const appStore = useAppStore(); + const itemRefs = ref([]); + const currentRoute = useRoute(); + const router = useRouter(); + const model = ref(currentRoute.fullPath); + + onBeforeRouteUpdate((to) => { + model.value = to.fullPath; + }); + + const setRef = (index, el) => { + if (el) { + itemRefs.value[index] = el; + } else { + itemRefs.value.splice(index, 1); + } + }; + const showContextMenu = (index, show) => { + if (show) { + itemRefs.value.forEach((item, i) => { + if (i !== index) { + item?.handleClose(); + } + }); + } + }; + + const refresh = (index) => { + const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath); + const route = appStore.routes[index]; + if (index !== currentIndex) { + router.push({ path: route.fullPath }); + } + appStore.isRefreshing = true; + nextTick(() => { + appStore.isRefreshing = false; + }); + }; + + const remove = (name) => { + if (appStore.routes.length > 1) { + const index = appStore.routes.findIndex((o) => o.fullPath === name); + const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath); + appStore.routes.splice(index, 1); + if (index === currentIndex) { + if (appStore.routes[index]) { + router.push(appStore.routes[index]); + } else { + router.push(appStore.routes[index - 1]); + } + } + } + }; + + const removeLeft = (index) => { + const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath); + const route = appStore.routes[index]; + appStore.routes.splice(0, index); + if (currentIndex < index) { + router.push(route); + } + }; + + const removeRight = (index) => { + const currentIndex = appStore.routes.findIndex((o) => o.fullPath === currentRoute.fullPath); + appStore.routes.splice(index + 1, appStore.routes.length - index); + if (currentIndex > index) { + router.push(appStore.routes[index]); + } + }; + + const removeOthers = (index) => { + removeRight(index); + removeLeft(index); + if (appStore.routes[0].fullPath !== currentRoute.fullPath) { + router.push(appStore.routes[0]); + } + }; + + const onClick = (context) => { + if (!context.active) { + router.push(context.props.name); + } + }; + return { + model, + appStore, + itemRefs, + onBeforeRouteUpdate, + setRef, + showContextMenu, + refresh, + remove, + removeLeft, + removeRight, + removeOthers, + onClick, + }; + }, +}; diff --git a/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js b/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js new file mode 100644 index 00000000..40c9e18b --- /dev/null +++ b/code/WebApp/vanilla/lib/@element-plus/icons-vue/index.js @@ -0,0 +1,9349 @@ +/*! Element Plus Icons Vue v2.1.0 */ + + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/add-location.vue?vue&type=script&lang.ts +var add_location_vue_vue_type_script_lang_default = { + name: "AddLocation" +}; + +// src/components/add-location.vue +import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"; + +// unplugin-vue:/plugin-vue/export-helper +var export_helper_default = (sfc, props) => { + let target = sfc.__vccOpts || sfc; + for (let [key, val] of props) + target[key] = val; + return target; +}; + +// src/components/add-location.vue +var _hoisted_1 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2 = /* @__PURE__ */ _createElementVNode( + "path", + { + fill: "currentColor", + d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3 = /* @__PURE__ */ _createElementVNode( + "path", + { + fill: "currentColor", + d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_4 = /* @__PURE__ */ _createElementVNode( + "path", + { + fill: "currentColor", + d: "M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_5 = [ + _hoisted_2, + _hoisted_3, + _hoisted_4 +]; +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock(), _createElementBlock("svg", _hoisted_1, _hoisted_5); +} +var add_location_default = /* @__PURE__ */ export_helper_default(add_location_vue_vue_type_script_lang_default, [["render", _sfc_render], ["__file", "add-location.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/aim.vue?vue&type=script&lang.ts +var aim_vue_vue_type_script_lang_default = { + name: "Aim" +}; + +// src/components/aim.vue +import { createElementVNode as _createElementVNode2, openBlock as _openBlock2, createElementBlock as _createElementBlock2 } from "vue"; +var _hoisted_12 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_22 = /* @__PURE__ */ _createElementVNode2( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_32 = /* @__PURE__ */ _createElementVNode2( + "path", + { + fill: "currentColor", + d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_42 = [ + _hoisted_22, + _hoisted_32 +]; +function _sfc_render2(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock2(), _createElementBlock2("svg", _hoisted_12, _hoisted_42); +} +var aim_default = /* @__PURE__ */ export_helper_default(aim_vue_vue_type_script_lang_default, [["render", _sfc_render2], ["__file", "aim.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/alarm-clock.vue?vue&type=script&lang.ts +var alarm_clock_vue_vue_type_script_lang_default = { + name: "AlarmClock" +}; + +// src/components/alarm-clock.vue +import { createElementVNode as _createElementVNode3, openBlock as _openBlock3, createElementBlock as _createElementBlock3 } from "vue"; +var _hoisted_13 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_23 = /* @__PURE__ */ _createElementVNode3( + "path", + { + fill: "currentColor", + d: "M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_33 = /* @__PURE__ */ _createElementVNode3( + "path", + { + fill: "currentColor", + d: "m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_43 = [ + _hoisted_23, + _hoisted_33 +]; +function _sfc_render3(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock3(), _createElementBlock3("svg", _hoisted_13, _hoisted_43); +} +var alarm_clock_default = /* @__PURE__ */ export_helper_default(alarm_clock_vue_vue_type_script_lang_default, [["render", _sfc_render3], ["__file", "alarm-clock.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/apple.vue?vue&type=script&lang.ts +var apple_vue_vue_type_script_lang_default = { + name: "Apple" +}; + +// src/components/apple.vue +import { createElementVNode as _createElementVNode4, openBlock as _openBlock4, createElementBlock as _createElementBlock4 } from "vue"; +var _hoisted_14 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_24 = /* @__PURE__ */ _createElementVNode4( + "path", + { + fill: "currentColor", + d: "M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_34 = [ + _hoisted_24 +]; +function _sfc_render4(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock4(), _createElementBlock4("svg", _hoisted_14, _hoisted_34); +} +var apple_default = /* @__PURE__ */ export_helper_default(apple_vue_vue_type_script_lang_default, [["render", _sfc_render4], ["__file", "apple.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-down-bold.vue?vue&type=script&lang.ts +var arrow_down_bold_vue_vue_type_script_lang_default = { + name: "ArrowDownBold" +}; + +// src/components/arrow-down-bold.vue +import { createElementVNode as _createElementVNode5, openBlock as _openBlock5, createElementBlock as _createElementBlock5 } from "vue"; +var _hoisted_15 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_25 = /* @__PURE__ */ _createElementVNode5( + "path", + { + fill: "currentColor", + d: "M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_35 = [ + _hoisted_25 +]; +function _sfc_render5(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock5(), _createElementBlock5("svg", _hoisted_15, _hoisted_35); +} +var arrow_down_bold_default = /* @__PURE__ */ export_helper_default(arrow_down_bold_vue_vue_type_script_lang_default, [["render", _sfc_render5], ["__file", "arrow-down-bold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-down.vue?vue&type=script&lang.ts +var arrow_down_vue_vue_type_script_lang_default = { + name: "ArrowDown" +}; + +// src/components/arrow-down.vue +import { createElementVNode as _createElementVNode6, openBlock as _openBlock6, createElementBlock as _createElementBlock6 } from "vue"; +var _hoisted_16 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_26 = /* @__PURE__ */ _createElementVNode6( + "path", + { + fill: "currentColor", + d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_36 = [ + _hoisted_26 +]; +function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock6(), _createElementBlock6("svg", _hoisted_16, _hoisted_36); +} +var arrow_down_default = /* @__PURE__ */ export_helper_default(arrow_down_vue_vue_type_script_lang_default, [["render", _sfc_render6], ["__file", "arrow-down.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-left-bold.vue?vue&type=script&lang.ts +var arrow_left_bold_vue_vue_type_script_lang_default = { + name: "ArrowLeftBold" +}; + +// src/components/arrow-left-bold.vue +import { createElementVNode as _createElementVNode7, openBlock as _openBlock7, createElementBlock as _createElementBlock7 } from "vue"; +var _hoisted_17 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_27 = /* @__PURE__ */ _createElementVNode7( + "path", + { + fill: "currentColor", + d: "M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_37 = [ + _hoisted_27 +]; +function _sfc_render7(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock7(), _createElementBlock7("svg", _hoisted_17, _hoisted_37); +} +var arrow_left_bold_default = /* @__PURE__ */ export_helper_default(arrow_left_bold_vue_vue_type_script_lang_default, [["render", _sfc_render7], ["__file", "arrow-left-bold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-left.vue?vue&type=script&lang.ts +var arrow_left_vue_vue_type_script_lang_default = { + name: "ArrowLeft" +}; + +// src/components/arrow-left.vue +import { createElementVNode as _createElementVNode8, openBlock as _openBlock8, createElementBlock as _createElementBlock8 } from "vue"; +var _hoisted_18 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_28 = /* @__PURE__ */ _createElementVNode8( + "path", + { + fill: "currentColor", + d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_38 = [ + _hoisted_28 +]; +function _sfc_render8(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock8(), _createElementBlock8("svg", _hoisted_18, _hoisted_38); +} +var arrow_left_default = /* @__PURE__ */ export_helper_default(arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render8], ["__file", "arrow-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-right-bold.vue?vue&type=script&lang.ts +var arrow_right_bold_vue_vue_type_script_lang_default = { + name: "ArrowRightBold" +}; + +// src/components/arrow-right-bold.vue +import { createElementVNode as _createElementVNode9, openBlock as _openBlock9, createElementBlock as _createElementBlock9 } from "vue"; +var _hoisted_19 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_29 = /* @__PURE__ */ _createElementVNode9( + "path", + { + fill: "currentColor", + d: "M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_39 = [ + _hoisted_29 +]; +function _sfc_render9(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock9(), _createElementBlock9("svg", _hoisted_19, _hoisted_39); +} +var arrow_right_bold_default = /* @__PURE__ */ export_helper_default(arrow_right_bold_vue_vue_type_script_lang_default, [["render", _sfc_render9], ["__file", "arrow-right-bold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-right.vue?vue&type=script&lang.ts +var arrow_right_vue_vue_type_script_lang_default = { + name: "ArrowRight" +}; + +// src/components/arrow-right.vue +import { createElementVNode as _createElementVNode10, openBlock as _openBlock10, createElementBlock as _createElementBlock10 } from "vue"; +var _hoisted_110 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_210 = /* @__PURE__ */ _createElementVNode10( + "path", + { + fill: "currentColor", + d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_310 = [ + _hoisted_210 +]; +function _sfc_render10(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock10(), _createElementBlock10("svg", _hoisted_110, _hoisted_310); +} +var arrow_right_default = /* @__PURE__ */ export_helper_default(arrow_right_vue_vue_type_script_lang_default, [["render", _sfc_render10], ["__file", "arrow-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-up-bold.vue?vue&type=script&lang.ts +var arrow_up_bold_vue_vue_type_script_lang_default = { + name: "ArrowUpBold" +}; + +// src/components/arrow-up-bold.vue +import { createElementVNode as _createElementVNode11, openBlock as _openBlock11, createElementBlock as _createElementBlock11 } from "vue"; +var _hoisted_111 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_211 = /* @__PURE__ */ _createElementVNode11( + "path", + { + fill: "currentColor", + d: "M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_311 = [ + _hoisted_211 +]; +function _sfc_render11(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock11(), _createElementBlock11("svg", _hoisted_111, _hoisted_311); +} +var arrow_up_bold_default = /* @__PURE__ */ export_helper_default(arrow_up_bold_vue_vue_type_script_lang_default, [["render", _sfc_render11], ["__file", "arrow-up-bold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/arrow-up.vue?vue&type=script&lang.ts +var arrow_up_vue_vue_type_script_lang_default = { + name: "ArrowUp" +}; + +// src/components/arrow-up.vue +import { createElementVNode as _createElementVNode12, openBlock as _openBlock12, createElementBlock as _createElementBlock12 } from "vue"; +var _hoisted_112 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_212 = /* @__PURE__ */ _createElementVNode12( + "path", + { + fill: "currentColor", + d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_312 = [ + _hoisted_212 +]; +function _sfc_render12(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock12(), _createElementBlock12("svg", _hoisted_112, _hoisted_312); +} +var arrow_up_default = /* @__PURE__ */ export_helper_default(arrow_up_vue_vue_type_script_lang_default, [["render", _sfc_render12], ["__file", "arrow-up.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/avatar.vue?vue&type=script&lang.ts +var avatar_vue_vue_type_script_lang_default = { + name: "Avatar" +}; + +// src/components/avatar.vue +import { createElementVNode as _createElementVNode13, openBlock as _openBlock13, createElementBlock as _createElementBlock13 } from "vue"; +var _hoisted_113 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_213 = /* @__PURE__ */ _createElementVNode13( + "path", + { + fill: "currentColor", + d: "M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_313 = [ + _hoisted_213 +]; +function _sfc_render13(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock13(), _createElementBlock13("svg", _hoisted_113, _hoisted_313); +} +var avatar_default = /* @__PURE__ */ export_helper_default(avatar_vue_vue_type_script_lang_default, [["render", _sfc_render13], ["__file", "avatar.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/back.vue?vue&type=script&lang.ts +var back_vue_vue_type_script_lang_default = { + name: "Back" +}; + +// src/components/back.vue +import { createElementVNode as _createElementVNode14, openBlock as _openBlock14, createElementBlock as _createElementBlock14 } from "vue"; +var _hoisted_114 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_214 = /* @__PURE__ */ _createElementVNode14( + "path", + { + fill: "currentColor", + d: "M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_314 = /* @__PURE__ */ _createElementVNode14( + "path", + { + fill: "currentColor", + d: "m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_44 = [ + _hoisted_214, + _hoisted_314 +]; +function _sfc_render14(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock14(), _createElementBlock14("svg", _hoisted_114, _hoisted_44); +} +var back_default = /* @__PURE__ */ export_helper_default(back_vue_vue_type_script_lang_default, [["render", _sfc_render14], ["__file", "back.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/baseball.vue?vue&type=script&lang.ts +var baseball_vue_vue_type_script_lang_default = { + name: "Baseball" +}; + +// src/components/baseball.vue +import { createElementVNode as _createElementVNode15, openBlock as _openBlock15, createElementBlock as _createElementBlock15 } from "vue"; +var _hoisted_115 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_215 = /* @__PURE__ */ _createElementVNode15( + "path", + { + fill: "currentColor", + d: "M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_315 = /* @__PURE__ */ _createElementVNode15( + "path", + { + fill: "currentColor", + d: "M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_45 = [ + _hoisted_215, + _hoisted_315 +]; +function _sfc_render15(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock15(), _createElementBlock15("svg", _hoisted_115, _hoisted_45); +} +var baseball_default = /* @__PURE__ */ export_helper_default(baseball_vue_vue_type_script_lang_default, [["render", _sfc_render15], ["__file", "baseball.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/basketball.vue?vue&type=script&lang.ts +var basketball_vue_vue_type_script_lang_default = { + name: "Basketball" +}; + +// src/components/basketball.vue +import { createElementVNode as _createElementVNode16, openBlock as _openBlock16, createElementBlock as _createElementBlock16 } from "vue"; +var _hoisted_116 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_216 = /* @__PURE__ */ _createElementVNode16( + "path", + { + fill: "currentColor", + d: "M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_316 = [ + _hoisted_216 +]; +function _sfc_render16(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock16(), _createElementBlock16("svg", _hoisted_116, _hoisted_316); +} +var basketball_default = /* @__PURE__ */ export_helper_default(basketball_vue_vue_type_script_lang_default, [["render", _sfc_render16], ["__file", "basketball.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bell-filled.vue?vue&type=script&lang.ts +var bell_filled_vue_vue_type_script_lang_default = { + name: "BellFilled" +}; + +// src/components/bell-filled.vue +import { createElementVNode as _createElementVNode17, openBlock as _openBlock17, createElementBlock as _createElementBlock17 } from "vue"; +var _hoisted_117 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_217 = /* @__PURE__ */ _createElementVNode17( + "path", + { + fill: "currentColor", + d: "M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_317 = [ + _hoisted_217 +]; +function _sfc_render17(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock17(), _createElementBlock17("svg", _hoisted_117, _hoisted_317); +} +var bell_filled_default = /* @__PURE__ */ export_helper_default(bell_filled_vue_vue_type_script_lang_default, [["render", _sfc_render17], ["__file", "bell-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bell.vue?vue&type=script&lang.ts +var bell_vue_vue_type_script_lang_default = { + name: "Bell" +}; + +// src/components/bell.vue +import { createElementVNode as _createElementVNode18, openBlock as _openBlock18, createElementBlock as _createElementBlock18 } from "vue"; +var _hoisted_118 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_218 = /* @__PURE__ */ _createElementVNode18( + "path", + { + fill: "currentColor", + d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_318 = /* @__PURE__ */ _createElementVNode18( + "path", + { + fill: "currentColor", + d: "M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_46 = /* @__PURE__ */ _createElementVNode18( + "path", + { + fill: "currentColor", + d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_52 = [ + _hoisted_218, + _hoisted_318, + _hoisted_46 +]; +function _sfc_render18(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock18(), _createElementBlock18("svg", _hoisted_118, _hoisted_52); +} +var bell_default = /* @__PURE__ */ export_helper_default(bell_vue_vue_type_script_lang_default, [["render", _sfc_render18], ["__file", "bell.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bicycle.vue?vue&type=script&lang.ts +var bicycle_vue_vue_type_script_lang_default = { + name: "Bicycle" +}; + +// src/components/bicycle.vue +import { openBlock as _openBlock19, createElementBlock as _createElementBlock19, createStaticVNode as _createStaticVNode } from "vue"; +var _hoisted_119 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_219 = /* @__PURE__ */ _createStaticVNode('', 5), _hoisted_7 = [ + _hoisted_219 +]; +function _sfc_render19(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock19(), _createElementBlock19("svg", _hoisted_119, _hoisted_7); +} +var bicycle_default = /* @__PURE__ */ export_helper_default(bicycle_vue_vue_type_script_lang_default, [["render", _sfc_render19], ["__file", "bicycle.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom-left.vue?vue&type=script&lang.ts +var bottom_left_vue_vue_type_script_lang_default = { + name: "BottomLeft" +}; + +// src/components/bottom-left.vue +import { createElementVNode as _createElementVNode19, openBlock as _openBlock20, createElementBlock as _createElementBlock20 } from "vue"; +var _hoisted_120 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_220 = /* @__PURE__ */ _createElementVNode19( + "path", + { + fill: "currentColor", + d: "M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_319 = /* @__PURE__ */ _createElementVNode19( + "path", + { + fill: "currentColor", + d: "M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_47 = [ + _hoisted_220, + _hoisted_319 +]; +function _sfc_render20(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock20(), _createElementBlock20("svg", _hoisted_120, _hoisted_47); +} +var bottom_left_default = /* @__PURE__ */ export_helper_default(bottom_left_vue_vue_type_script_lang_default, [["render", _sfc_render20], ["__file", "bottom-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom-right.vue?vue&type=script&lang.ts +var bottom_right_vue_vue_type_script_lang_default = { + name: "BottomRight" +}; + +// src/components/bottom-right.vue +import { createElementVNode as _createElementVNode20, openBlock as _openBlock21, createElementBlock as _createElementBlock21 } from "vue"; +var _hoisted_121 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_221 = /* @__PURE__ */ _createElementVNode20( + "path", + { + fill: "currentColor", + d: "M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_320 = /* @__PURE__ */ _createElementVNode20( + "path", + { + fill: "currentColor", + d: "M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_48 = [ + _hoisted_221, + _hoisted_320 +]; +function _sfc_render21(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock21(), _createElementBlock21("svg", _hoisted_121, _hoisted_48); +} +var bottom_right_default = /* @__PURE__ */ export_helper_default(bottom_right_vue_vue_type_script_lang_default, [["render", _sfc_render21], ["__file", "bottom-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bottom.vue?vue&type=script&lang.ts +var bottom_vue_vue_type_script_lang_default = { + name: "Bottom" +}; + +// src/components/bottom.vue +import { createElementVNode as _createElementVNode21, openBlock as _openBlock22, createElementBlock as _createElementBlock22 } from "vue"; +var _hoisted_122 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_222 = /* @__PURE__ */ _createElementVNode21( + "path", + { + fill: "currentColor", + d: "M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_321 = [ + _hoisted_222 +]; +function _sfc_render22(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock22(), _createElementBlock22("svg", _hoisted_122, _hoisted_321); +} +var bottom_default = /* @__PURE__ */ export_helper_default(bottom_vue_vue_type_script_lang_default, [["render", _sfc_render22], ["__file", "bottom.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/bowl.vue?vue&type=script&lang.ts +var bowl_vue_vue_type_script_lang_default = { + name: "Bowl" +}; + +// src/components/bowl.vue +import { createElementVNode as _createElementVNode22, openBlock as _openBlock23, createElementBlock as _createElementBlock23 } from "vue"; +var _hoisted_123 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_223 = /* @__PURE__ */ _createElementVNode22( + "path", + { + fill: "currentColor", + d: "M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_322 = [ + _hoisted_223 +]; +function _sfc_render23(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock23(), _createElementBlock23("svg", _hoisted_123, _hoisted_322); +} +var bowl_default = /* @__PURE__ */ export_helper_default(bowl_vue_vue_type_script_lang_default, [["render", _sfc_render23], ["__file", "bowl.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/box.vue?vue&type=script&lang.ts +var box_vue_vue_type_script_lang_default = { + name: "Box" +}; + +// src/components/box.vue +import { createElementVNode as _createElementVNode23, openBlock as _openBlock24, createElementBlock as _createElementBlock24 } from "vue"; +var _hoisted_124 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_224 = /* @__PURE__ */ _createElementVNode23( + "path", + { + fill: "currentColor", + d: "M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_323 = /* @__PURE__ */ _createElementVNode23( + "path", + { + fill: "currentColor", + d: "M64 320h896v64H64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_49 = /* @__PURE__ */ _createElementVNode23( + "path", + { + fill: "currentColor", + d: "M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_53 = [ + _hoisted_224, + _hoisted_323, + _hoisted_49 +]; +function _sfc_render24(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock24(), _createElementBlock24("svg", _hoisted_124, _hoisted_53); +} +var box_default = /* @__PURE__ */ export_helper_default(box_vue_vue_type_script_lang_default, [["render", _sfc_render24], ["__file", "box.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/briefcase.vue?vue&type=script&lang.ts +var briefcase_vue_vue_type_script_lang_default = { + name: "Briefcase" +}; + +// src/components/briefcase.vue +import { createElementVNode as _createElementVNode24, openBlock as _openBlock25, createElementBlock as _createElementBlock25 } from "vue"; +var _hoisted_125 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_225 = /* @__PURE__ */ _createElementVNode24( + "path", + { + fill: "currentColor", + d: "M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_324 = [ + _hoisted_225 +]; +function _sfc_render25(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock25(), _createElementBlock25("svg", _hoisted_125, _hoisted_324); +} +var briefcase_default = /* @__PURE__ */ export_helper_default(briefcase_vue_vue_type_script_lang_default, [["render", _sfc_render25], ["__file", "briefcase.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/brush-filled.vue?vue&type=script&lang.ts +var brush_filled_vue_vue_type_script_lang_default = { + name: "BrushFilled" +}; + +// src/components/brush-filled.vue +import { createElementVNode as _createElementVNode25, openBlock as _openBlock26, createElementBlock as _createElementBlock26 } from "vue"; +var _hoisted_126 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_226 = /* @__PURE__ */ _createElementVNode25( + "path", + { + fill: "currentColor", + d: "M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_325 = [ + _hoisted_226 +]; +function _sfc_render26(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock26(), _createElementBlock26("svg", _hoisted_126, _hoisted_325); +} +var brush_filled_default = /* @__PURE__ */ export_helper_default(brush_filled_vue_vue_type_script_lang_default, [["render", _sfc_render26], ["__file", "brush-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/brush.vue?vue&type=script&lang.ts +var brush_vue_vue_type_script_lang_default = { + name: "Brush" +}; + +// src/components/brush.vue +import { createElementVNode as _createElementVNode26, openBlock as _openBlock27, createElementBlock as _createElementBlock27 } from "vue"; +var _hoisted_127 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_227 = /* @__PURE__ */ _createElementVNode26( + "path", + { + fill: "currentColor", + d: "M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_326 = [ + _hoisted_227 +]; +function _sfc_render27(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock27(), _createElementBlock27("svg", _hoisted_127, _hoisted_326); +} +var brush_default = /* @__PURE__ */ export_helper_default(brush_vue_vue_type_script_lang_default, [["render", _sfc_render27], ["__file", "brush.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/burger.vue?vue&type=script&lang.ts +var burger_vue_vue_type_script_lang_default = { + name: "Burger" +}; + +// src/components/burger.vue +import { createElementVNode as _createElementVNode27, openBlock as _openBlock28, createElementBlock as _createElementBlock28 } from "vue"; +var _hoisted_128 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_228 = /* @__PURE__ */ _createElementVNode27( + "path", + { + fill: "currentColor", + d: "M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_327 = [ + _hoisted_228 +]; +function _sfc_render28(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock28(), _createElementBlock28("svg", _hoisted_128, _hoisted_327); +} +var burger_default = /* @__PURE__ */ export_helper_default(burger_vue_vue_type_script_lang_default, [["render", _sfc_render28], ["__file", "burger.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/calendar.vue?vue&type=script&lang.ts +var calendar_vue_vue_type_script_lang_default = { + name: "Calendar" +}; + +// src/components/calendar.vue +import { createElementVNode as _createElementVNode28, openBlock as _openBlock29, createElementBlock as _createElementBlock29 } from "vue"; +var _hoisted_129 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_229 = /* @__PURE__ */ _createElementVNode28( + "path", + { + fill: "currentColor", + d: "M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_328 = [ + _hoisted_229 +]; +function _sfc_render29(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock29(), _createElementBlock29("svg", _hoisted_129, _hoisted_328); +} +var calendar_default = /* @__PURE__ */ export_helper_default(calendar_vue_vue_type_script_lang_default, [["render", _sfc_render29], ["__file", "calendar.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/camera-filled.vue?vue&type=script&lang.ts +var camera_filled_vue_vue_type_script_lang_default = { + name: "CameraFilled" +}; + +// src/components/camera-filled.vue +import { createElementVNode as _createElementVNode29, openBlock as _openBlock30, createElementBlock as _createElementBlock30 } from "vue"; +var _hoisted_130 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_230 = /* @__PURE__ */ _createElementVNode29( + "path", + { + fill: "currentColor", + d: "M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_329 = [ + _hoisted_230 +]; +function _sfc_render30(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock30(), _createElementBlock30("svg", _hoisted_130, _hoisted_329); +} +var camera_filled_default = /* @__PURE__ */ export_helper_default(camera_filled_vue_vue_type_script_lang_default, [["render", _sfc_render30], ["__file", "camera-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/camera.vue?vue&type=script&lang.ts +var camera_vue_vue_type_script_lang_default = { + name: "Camera" +}; + +// src/components/camera.vue +import { createElementVNode as _createElementVNode30, openBlock as _openBlock31, createElementBlock as _createElementBlock31 } from "vue"; +var _hoisted_131 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_231 = /* @__PURE__ */ _createElementVNode30( + "path", + { + fill: "currentColor", + d: "M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_330 = [ + _hoisted_231 +]; +function _sfc_render31(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock31(), _createElementBlock31("svg", _hoisted_131, _hoisted_330); +} +var camera_default = /* @__PURE__ */ export_helper_default(camera_vue_vue_type_script_lang_default, [["render", _sfc_render31], ["__file", "camera.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-bottom.vue?vue&type=script&lang.ts +var caret_bottom_vue_vue_type_script_lang_default = { + name: "CaretBottom" +}; + +// src/components/caret-bottom.vue +import { createElementVNode as _createElementVNode31, openBlock as _openBlock32, createElementBlock as _createElementBlock32 } from "vue"; +var _hoisted_132 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_232 = /* @__PURE__ */ _createElementVNode31( + "path", + { + fill: "currentColor", + d: "m192 384 320 384 320-384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_331 = [ + _hoisted_232 +]; +function _sfc_render32(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock32(), _createElementBlock32("svg", _hoisted_132, _hoisted_331); +} +var caret_bottom_default = /* @__PURE__ */ export_helper_default(caret_bottom_vue_vue_type_script_lang_default, [["render", _sfc_render32], ["__file", "caret-bottom.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-left.vue?vue&type=script&lang.ts +var caret_left_vue_vue_type_script_lang_default = { + name: "CaretLeft" +}; + +// src/components/caret-left.vue +import { createElementVNode as _createElementVNode32, openBlock as _openBlock33, createElementBlock as _createElementBlock33 } from "vue"; +var _hoisted_133 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_233 = /* @__PURE__ */ _createElementVNode32( + "path", + { + fill: "currentColor", + d: "M672 192 288 511.936 672 832z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_332 = [ + _hoisted_233 +]; +function _sfc_render33(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock33(), _createElementBlock33("svg", _hoisted_133, _hoisted_332); +} +var caret_left_default = /* @__PURE__ */ export_helper_default(caret_left_vue_vue_type_script_lang_default, [["render", _sfc_render33], ["__file", "caret-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-right.vue?vue&type=script&lang.ts +var caret_right_vue_vue_type_script_lang_default = { + name: "CaretRight" +}; + +// src/components/caret-right.vue +import { createElementVNode as _createElementVNode33, openBlock as _openBlock34, createElementBlock as _createElementBlock34 } from "vue"; +var _hoisted_134 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_234 = /* @__PURE__ */ _createElementVNode33( + "path", + { + fill: "currentColor", + d: "M384 192v640l384-320.064z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_333 = [ + _hoisted_234 +]; +function _sfc_render34(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock34(), _createElementBlock34("svg", _hoisted_134, _hoisted_333); +} +var caret_right_default = /* @__PURE__ */ export_helper_default(caret_right_vue_vue_type_script_lang_default, [["render", _sfc_render34], ["__file", "caret-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/caret-top.vue?vue&type=script&lang.ts +var caret_top_vue_vue_type_script_lang_default = { + name: "CaretTop" +}; + +// src/components/caret-top.vue +import { createElementVNode as _createElementVNode34, openBlock as _openBlock35, createElementBlock as _createElementBlock35 } from "vue"; +var _hoisted_135 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_235 = /* @__PURE__ */ _createElementVNode34( + "path", + { + fill: "currentColor", + d: "M512 320 192 704h639.936z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_334 = [ + _hoisted_235 +]; +function _sfc_render35(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock35(), _createElementBlock35("svg", _hoisted_135, _hoisted_334); +} +var caret_top_default = /* @__PURE__ */ export_helper_default(caret_top_vue_vue_type_script_lang_default, [["render", _sfc_render35], ["__file", "caret-top.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cellphone.vue?vue&type=script&lang.ts +var cellphone_vue_vue_type_script_lang_default = { + name: "Cellphone" +}; + +// src/components/cellphone.vue +import { createElementVNode as _createElementVNode35, openBlock as _openBlock36, createElementBlock as _createElementBlock36 } from "vue"; +var _hoisted_136 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_236 = /* @__PURE__ */ _createElementVNode35( + "path", + { + fill: "currentColor", + d: "M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_335 = [ + _hoisted_236 +]; +function _sfc_render36(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock36(), _createElementBlock36("svg", _hoisted_136, _hoisted_335); +} +var cellphone_default = /* @__PURE__ */ export_helper_default(cellphone_vue_vue_type_script_lang_default, [["render", _sfc_render36], ["__file", "cellphone.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-dot-round.vue?vue&type=script&lang.ts +var chat_dot_round_vue_vue_type_script_lang_default = { + name: "ChatDotRound" +}; + +// src/components/chat-dot-round.vue +import { createElementVNode as _createElementVNode36, openBlock as _openBlock37, createElementBlock as _createElementBlock37 } from "vue"; +var _hoisted_137 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_237 = /* @__PURE__ */ _createElementVNode36( + "path", + { + fill: "currentColor", + d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_336 = /* @__PURE__ */ _createElementVNode36( + "path", + { + fill: "currentColor", + d: "M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_410 = [ + _hoisted_237, + _hoisted_336 +]; +function _sfc_render37(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock37(), _createElementBlock37("svg", _hoisted_137, _hoisted_410); +} +var chat_dot_round_default = /* @__PURE__ */ export_helper_default(chat_dot_round_vue_vue_type_script_lang_default, [["render", _sfc_render37], ["__file", "chat-dot-round.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-dot-square.vue?vue&type=script&lang.ts +var chat_dot_square_vue_vue_type_script_lang_default = { + name: "ChatDotSquare" +}; + +// src/components/chat-dot-square.vue +import { createElementVNode as _createElementVNode37, openBlock as _openBlock38, createElementBlock as _createElementBlock38 } from "vue"; +var _hoisted_138 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_238 = /* @__PURE__ */ _createElementVNode37( + "path", + { + fill: "currentColor", + d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_337 = /* @__PURE__ */ _createElementVNode37( + "path", + { + fill: "currentColor", + d: "M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_411 = [ + _hoisted_238, + _hoisted_337 +]; +function _sfc_render38(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock38(), _createElementBlock38("svg", _hoisted_138, _hoisted_411); +} +var chat_dot_square_default = /* @__PURE__ */ export_helper_default(chat_dot_square_vue_vue_type_script_lang_default, [["render", _sfc_render38], ["__file", "chat-dot-square.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-line-round.vue?vue&type=script&lang.ts +var chat_line_round_vue_vue_type_script_lang_default = { + name: "ChatLineRound" +}; + +// src/components/chat-line-round.vue +import { createElementVNode as _createElementVNode38, openBlock as _openBlock39, createElementBlock as _createElementBlock39 } from "vue"; +var _hoisted_139 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_239 = /* @__PURE__ */ _createElementVNode38( + "path", + { + fill: "currentColor", + d: "m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_338 = /* @__PURE__ */ _createElementVNode38( + "path", + { + fill: "currentColor", + d: "M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_412 = [ + _hoisted_239, + _hoisted_338 +]; +function _sfc_render39(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock39(), _createElementBlock39("svg", _hoisted_139, _hoisted_412); +} +var chat_line_round_default = /* @__PURE__ */ export_helper_default(chat_line_round_vue_vue_type_script_lang_default, [["render", _sfc_render39], ["__file", "chat-line-round.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-line-square.vue?vue&type=script&lang.ts +var chat_line_square_vue_vue_type_script_lang_default = { + name: "ChatLineSquare" +}; + +// src/components/chat-line-square.vue +import { createElementVNode as _createElementVNode39, openBlock as _openBlock40, createElementBlock as _createElementBlock40 } from "vue"; +var _hoisted_140 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_240 = /* @__PURE__ */ _createElementVNode39( + "path", + { + fill: "currentColor", + d: "M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_339 = /* @__PURE__ */ _createElementVNode39( + "path", + { + fill: "currentColor", + d: "M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_413 = [ + _hoisted_240, + _hoisted_339 +]; +function _sfc_render40(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock40(), _createElementBlock40("svg", _hoisted_140, _hoisted_413); +} +var chat_line_square_default = /* @__PURE__ */ export_helper_default(chat_line_square_vue_vue_type_script_lang_default, [["render", _sfc_render40], ["__file", "chat-line-square.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-round.vue?vue&type=script&lang.ts +var chat_round_vue_vue_type_script_lang_default = { + name: "ChatRound" +}; + +// src/components/chat-round.vue +import { createElementVNode as _createElementVNode40, openBlock as _openBlock41, createElementBlock as _createElementBlock41 } from "vue"; +var _hoisted_141 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_241 = /* @__PURE__ */ _createElementVNode40( + "path", + { + fill: "currentColor", + d: "m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_340 = [ + _hoisted_241 +]; +function _sfc_render41(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock41(), _createElementBlock41("svg", _hoisted_141, _hoisted_340); +} +var chat_round_default = /* @__PURE__ */ export_helper_default(chat_round_vue_vue_type_script_lang_default, [["render", _sfc_render41], ["__file", "chat-round.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chat-square.vue?vue&type=script&lang.ts +var chat_square_vue_vue_type_script_lang_default = { + name: "ChatSquare" +}; + +// src/components/chat-square.vue +import { createElementVNode as _createElementVNode41, openBlock as _openBlock42, createElementBlock as _createElementBlock42 } from "vue"; +var _hoisted_142 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_242 = /* @__PURE__ */ _createElementVNode41( + "path", + { + fill: "currentColor", + d: "M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_341 = [ + _hoisted_242 +]; +function _sfc_render42(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock42(), _createElementBlock42("svg", _hoisted_142, _hoisted_341); +} +var chat_square_default = /* @__PURE__ */ export_helper_default(chat_square_vue_vue_type_script_lang_default, [["render", _sfc_render42], ["__file", "chat-square.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/check.vue?vue&type=script&lang.ts +var check_vue_vue_type_script_lang_default = { + name: "Check" +}; + +// src/components/check.vue +import { createElementVNode as _createElementVNode42, openBlock as _openBlock43, createElementBlock as _createElementBlock43 } from "vue"; +var _hoisted_143 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_243 = /* @__PURE__ */ _createElementVNode42( + "path", + { + fill: "currentColor", + d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_342 = [ + _hoisted_243 +]; +function _sfc_render43(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock43(), _createElementBlock43("svg", _hoisted_143, _hoisted_342); +} +var check_default = /* @__PURE__ */ export_helper_default(check_vue_vue_type_script_lang_default, [["render", _sfc_render43], ["__file", "check.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/checked.vue?vue&type=script&lang.ts +var checked_vue_vue_type_script_lang_default = { + name: "Checked" +}; + +// src/components/checked.vue +import { createElementVNode as _createElementVNode43, openBlock as _openBlock44, createElementBlock as _createElementBlock44 } from "vue"; +var _hoisted_144 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_244 = /* @__PURE__ */ _createElementVNode43( + "path", + { + fill: "currentColor", + d: "M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_343 = [ + _hoisted_244 +]; +function _sfc_render44(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock44(), _createElementBlock44("svg", _hoisted_144, _hoisted_343); +} +var checked_default = /* @__PURE__ */ export_helper_default(checked_vue_vue_type_script_lang_default, [["render", _sfc_render44], ["__file", "checked.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cherry.vue?vue&type=script&lang.ts +var cherry_vue_vue_type_script_lang_default = { + name: "Cherry" +}; + +// src/components/cherry.vue +import { createElementVNode as _createElementVNode44, openBlock as _openBlock45, createElementBlock as _createElementBlock45 } from "vue"; +var _hoisted_145 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_245 = /* @__PURE__ */ _createElementVNode44( + "path", + { + fill: "currentColor", + d: "M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_344 = [ + _hoisted_245 +]; +function _sfc_render45(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock45(), _createElementBlock45("svg", _hoisted_145, _hoisted_344); +} +var cherry_default = /* @__PURE__ */ export_helper_default(cherry_vue_vue_type_script_lang_default, [["render", _sfc_render45], ["__file", "cherry.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chicken.vue?vue&type=script&lang.ts +var chicken_vue_vue_type_script_lang_default = { + name: "Chicken" +}; + +// src/components/chicken.vue +import { createElementVNode as _createElementVNode45, openBlock as _openBlock46, createElementBlock as _createElementBlock46 } from "vue"; +var _hoisted_146 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_246 = /* @__PURE__ */ _createElementVNode45( + "path", + { + fill: "currentColor", + d: "M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_345 = [ + _hoisted_246 +]; +function _sfc_render46(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock46(), _createElementBlock46("svg", _hoisted_146, _hoisted_345); +} +var chicken_default = /* @__PURE__ */ export_helper_default(chicken_vue_vue_type_script_lang_default, [["render", _sfc_render46], ["__file", "chicken.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/chrome-filled.vue?vue&type=script&lang.ts +var chrome_filled_vue_vue_type_script_lang_default = { + name: "ChromeFilled" +}; + +// src/components/chrome-filled.vue +import { createElementVNode as _createElementVNode46, openBlock as _openBlock47, createElementBlock as _createElementBlock47 } from "vue"; +var _hoisted_147 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_247 = /* @__PURE__ */ _createElementVNode46( + "path", + { + fill: "currentColor", + d: "M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_346 = /* @__PURE__ */ _createElementVNode46( + "path", + { + fill: "currentColor", + d: "M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_414 = /* @__PURE__ */ _createElementVNode46( + "path", + { + fill: "currentColor", + d: "M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21zm117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_54 = [ + _hoisted_247, + _hoisted_346, + _hoisted_414 +]; +function _sfc_render47(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock47(), _createElementBlock47("svg", _hoisted_147, _hoisted_54); +} +var chrome_filled_default = /* @__PURE__ */ export_helper_default(chrome_filled_vue_vue_type_script_lang_default, [["render", _sfc_render47], ["__file", "chrome-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check-filled.vue?vue&type=script&lang.ts +var circle_check_filled_vue_vue_type_script_lang_default = { + name: "CircleCheckFilled" +}; + +// src/components/circle-check-filled.vue +import { createElementVNode as _createElementVNode47, openBlock as _openBlock48, createElementBlock as _createElementBlock48 } from "vue"; +var _hoisted_148 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_248 = /* @__PURE__ */ _createElementVNode47( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_347 = [ + _hoisted_248 +]; +function _sfc_render48(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock48(), _createElementBlock48("svg", _hoisted_148, _hoisted_347); +} +var circle_check_filled_default = /* @__PURE__ */ export_helper_default(circle_check_filled_vue_vue_type_script_lang_default, [["render", _sfc_render48], ["__file", "circle-check-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check.vue?vue&type=script&lang.ts +var circle_check_vue_vue_type_script_lang_default = { + name: "CircleCheck" +}; + +// src/components/circle-check.vue +import { createElementVNode as _createElementVNode48, openBlock as _openBlock49, createElementBlock as _createElementBlock49 } from "vue"; +var _hoisted_149 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_249 = /* @__PURE__ */ _createElementVNode48( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_348 = /* @__PURE__ */ _createElementVNode48( + "path", + { + fill: "currentColor", + d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_415 = [ + _hoisted_249, + _hoisted_348 +]; +function _sfc_render49(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock49(), _createElementBlock49("svg", _hoisted_149, _hoisted_415); +} +var circle_check_default = /* @__PURE__ */ export_helper_default(circle_check_vue_vue_type_script_lang_default, [["render", _sfc_render49], ["__file", "circle-check.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close-filled.vue?vue&type=script&lang.ts +var circle_close_filled_vue_vue_type_script_lang_default = { + name: "CircleCloseFilled" +}; + +// src/components/circle-close-filled.vue +import { createElementVNode as _createElementVNode49, openBlock as _openBlock50, createElementBlock as _createElementBlock50 } from "vue"; +var _hoisted_150 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_250 = /* @__PURE__ */ _createElementVNode49( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_349 = [ + _hoisted_250 +]; +function _sfc_render50(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock50(), _createElementBlock50("svg", _hoisted_150, _hoisted_349); +} +var circle_close_filled_default = /* @__PURE__ */ export_helper_default(circle_close_filled_vue_vue_type_script_lang_default, [["render", _sfc_render50], ["__file", "circle-close-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-close.vue?vue&type=script&lang.ts +var circle_close_vue_vue_type_script_lang_default = { + name: "CircleClose" +}; + +// src/components/circle-close.vue +import { createElementVNode as _createElementVNode50, openBlock as _openBlock51, createElementBlock as _createElementBlock51 } from "vue"; +var _hoisted_151 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_251 = /* @__PURE__ */ _createElementVNode50( + "path", + { + fill: "currentColor", + d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_350 = /* @__PURE__ */ _createElementVNode50( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_416 = [ + _hoisted_251, + _hoisted_350 +]; +function _sfc_render51(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock51(), _createElementBlock51("svg", _hoisted_151, _hoisted_416); +} +var circle_close_default = /* @__PURE__ */ export_helper_default(circle_close_vue_vue_type_script_lang_default, [["render", _sfc_render51], ["__file", "circle-close.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-plus-filled.vue?vue&type=script&lang.ts +var circle_plus_filled_vue_vue_type_script_lang_default = { + name: "CirclePlusFilled" +}; + +// src/components/circle-plus-filled.vue +import { createElementVNode as _createElementVNode51, openBlock as _openBlock52, createElementBlock as _createElementBlock52 } from "vue"; +var _hoisted_152 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_252 = /* @__PURE__ */ _createElementVNode51( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_351 = [ + _hoisted_252 +]; +function _sfc_render52(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock52(), _createElementBlock52("svg", _hoisted_152, _hoisted_351); +} +var circle_plus_filled_default = /* @__PURE__ */ export_helper_default(circle_plus_filled_vue_vue_type_script_lang_default, [["render", _sfc_render52], ["__file", "circle-plus-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-plus.vue?vue&type=script&lang.ts +var circle_plus_vue_vue_type_script_lang_default = { + name: "CirclePlus" +}; + +// src/components/circle-plus.vue +import { createElementVNode as _createElementVNode52, openBlock as _openBlock53, createElementBlock as _createElementBlock53 } from "vue"; +var _hoisted_153 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_253 = /* @__PURE__ */ _createElementVNode52( + "path", + { + fill: "currentColor", + d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_352 = /* @__PURE__ */ _createElementVNode52( + "path", + { + fill: "currentColor", + d: "M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_417 = /* @__PURE__ */ _createElementVNode52( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_55 = [ + _hoisted_253, + _hoisted_352, + _hoisted_417 +]; +function _sfc_render53(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock53(), _createElementBlock53("svg", _hoisted_153, _hoisted_55); +} +var circle_plus_default = /* @__PURE__ */ export_helper_default(circle_plus_vue_vue_type_script_lang_default, [["render", _sfc_render53], ["__file", "circle-plus.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/clock.vue?vue&type=script&lang.ts +var clock_vue_vue_type_script_lang_default = { + name: "Clock" +}; + +// src/components/clock.vue +import { createElementVNode as _createElementVNode53, openBlock as _openBlock54, createElementBlock as _createElementBlock54 } from "vue"; +var _hoisted_154 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_254 = /* @__PURE__ */ _createElementVNode53( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_353 = /* @__PURE__ */ _createElementVNode53( + "path", + { + fill: "currentColor", + d: "M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_418 = /* @__PURE__ */ _createElementVNode53( + "path", + { + fill: "currentColor", + d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_56 = [ + _hoisted_254, + _hoisted_353, + _hoisted_418 +]; +function _sfc_render54(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock54(), _createElementBlock54("svg", _hoisted_154, _hoisted_56); +} +var clock_default = /* @__PURE__ */ export_helper_default(clock_vue_vue_type_script_lang_default, [["render", _sfc_render54], ["__file", "clock.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close-bold.vue?vue&type=script&lang.ts +var close_bold_vue_vue_type_script_lang_default = { + name: "CloseBold" +}; + +// src/components/close-bold.vue +import { createElementVNode as _createElementVNode54, openBlock as _openBlock55, createElementBlock as _createElementBlock55 } from "vue"; +var _hoisted_155 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_255 = /* @__PURE__ */ _createElementVNode54( + "path", + { + fill: "currentColor", + d: "M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_354 = [ + _hoisted_255 +]; +function _sfc_render55(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock55(), _createElementBlock55("svg", _hoisted_155, _hoisted_354); +} +var close_bold_default = /* @__PURE__ */ export_helper_default(close_bold_vue_vue_type_script_lang_default, [["render", _sfc_render55], ["__file", "close-bold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close.vue?vue&type=script&lang.ts +var close_vue_vue_type_script_lang_default = { + name: "Close" +}; + +// src/components/close.vue +import { createElementVNode as _createElementVNode55, openBlock as _openBlock56, createElementBlock as _createElementBlock56 } from "vue"; +var _hoisted_156 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_256 = /* @__PURE__ */ _createElementVNode55( + "path", + { + fill: "currentColor", + d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_355 = [ + _hoisted_256 +]; +function _sfc_render56(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock56(), _createElementBlock56("svg", _hoisted_156, _hoisted_355); +} +var close_default = /* @__PURE__ */ export_helper_default(close_vue_vue_type_script_lang_default, [["render", _sfc_render56], ["__file", "close.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cloudy.vue?vue&type=script&lang.ts +var cloudy_vue_vue_type_script_lang_default = { + name: "Cloudy" +}; + +// src/components/cloudy.vue +import { createElementVNode as _createElementVNode56, openBlock as _openBlock57, createElementBlock as _createElementBlock57 } from "vue"; +var _hoisted_157 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_257 = /* @__PURE__ */ _createElementVNode56( + "path", + { + fill: "currentColor", + d: "M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_356 = [ + _hoisted_257 +]; +function _sfc_render57(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock57(), _createElementBlock57("svg", _hoisted_157, _hoisted_356); +} +var cloudy_default = /* @__PURE__ */ export_helper_default(cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render57], ["__file", "cloudy.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coffee-cup.vue?vue&type=script&lang.ts +var coffee_cup_vue_vue_type_script_lang_default = { + name: "CoffeeCup" +}; + +// src/components/coffee-cup.vue +import { createElementVNode as _createElementVNode57, openBlock as _openBlock58, createElementBlock as _createElementBlock58 } from "vue"; +var _hoisted_158 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_258 = /* @__PURE__ */ _createElementVNode57( + "path", + { + fill: "currentColor", + d: "M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_357 = [ + _hoisted_258 +]; +function _sfc_render58(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock58(), _createElementBlock58("svg", _hoisted_158, _hoisted_357); +} +var coffee_cup_default = /* @__PURE__ */ export_helper_default(coffee_cup_vue_vue_type_script_lang_default, [["render", _sfc_render58], ["__file", "coffee-cup.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coffee.vue?vue&type=script&lang.ts +var coffee_vue_vue_type_script_lang_default = { + name: "Coffee" +}; + +// src/components/coffee.vue +import { createElementVNode as _createElementVNode58, openBlock as _openBlock59, createElementBlock as _createElementBlock59 } from "vue"; +var _hoisted_159 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_259 = /* @__PURE__ */ _createElementVNode58( + "path", + { + fill: "currentColor", + d: "M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_358 = [ + _hoisted_259 +]; +function _sfc_render59(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock59(), _createElementBlock59("svg", _hoisted_159, _hoisted_358); +} +var coffee_default = /* @__PURE__ */ export_helper_default(coffee_vue_vue_type_script_lang_default, [["render", _sfc_render59], ["__file", "coffee.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coin.vue?vue&type=script&lang.ts +var coin_vue_vue_type_script_lang_default = { + name: "Coin" +}; + +// src/components/coin.vue +import { createElementVNode as _createElementVNode59, openBlock as _openBlock60, createElementBlock as _createElementBlock60 } from "vue"; +var _hoisted_160 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_260 = /* @__PURE__ */ _createElementVNode59( + "path", + { + fill: "currentColor", + d: "m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_359 = /* @__PURE__ */ _createElementVNode59( + "path", + { + fill: "currentColor", + d: "m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_419 = /* @__PURE__ */ _createElementVNode59( + "path", + { + fill: "currentColor", + d: "M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_57 = [ + _hoisted_260, + _hoisted_359, + _hoisted_419 +]; +function _sfc_render60(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock60(), _createElementBlock60("svg", _hoisted_160, _hoisted_57); +} +var coin_default = /* @__PURE__ */ export_helper_default(coin_vue_vue_type_script_lang_default, [["render", _sfc_render60], ["__file", "coin.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cold-drink.vue?vue&type=script&lang.ts +var cold_drink_vue_vue_type_script_lang_default = { + name: "ColdDrink" +}; + +// src/components/cold-drink.vue +import { createElementVNode as _createElementVNode60, openBlock as _openBlock61, createElementBlock as _createElementBlock61 } from "vue"; +var _hoisted_161 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_261 = /* @__PURE__ */ _createElementVNode60( + "path", + { + fill: "currentColor", + d: "M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_360 = [ + _hoisted_261 +]; +function _sfc_render61(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock61(), _createElementBlock61("svg", _hoisted_161, _hoisted_360); +} +var cold_drink_default = /* @__PURE__ */ export_helper_default(cold_drink_vue_vue_type_script_lang_default, [["render", _sfc_render61], ["__file", "cold-drink.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/collection-tag.vue?vue&type=script&lang.ts +var collection_tag_vue_vue_type_script_lang_default = { + name: "CollectionTag" +}; + +// src/components/collection-tag.vue +import { createElementVNode as _createElementVNode61, openBlock as _openBlock62, createElementBlock as _createElementBlock62 } from "vue"; +var _hoisted_162 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_262 = /* @__PURE__ */ _createElementVNode61( + "path", + { + fill: "currentColor", + d: "M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_361 = [ + _hoisted_262 +]; +function _sfc_render62(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock62(), _createElementBlock62("svg", _hoisted_162, _hoisted_361); +} +var collection_tag_default = /* @__PURE__ */ export_helper_default(collection_tag_vue_vue_type_script_lang_default, [["render", _sfc_render62], ["__file", "collection-tag.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/collection.vue?vue&type=script&lang.ts +var collection_vue_vue_type_script_lang_default = { + name: "Collection" +}; + +// src/components/collection.vue +import { createElementVNode as _createElementVNode62, openBlock as _openBlock63, createElementBlock as _createElementBlock63 } from "vue"; +var _hoisted_163 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_263 = /* @__PURE__ */ _createElementVNode62( + "path", + { + fill: "currentColor", + d: "M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_362 = /* @__PURE__ */ _createElementVNode62( + "path", + { + fill: "currentColor", + d: "M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_420 = [ + _hoisted_263, + _hoisted_362 +]; +function _sfc_render63(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock63(), _createElementBlock63("svg", _hoisted_163, _hoisted_420); +} +var collection_default = /* @__PURE__ */ export_helper_default(collection_vue_vue_type_script_lang_default, [["render", _sfc_render63], ["__file", "collection.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/comment.vue?vue&type=script&lang.ts +var comment_vue_vue_type_script_lang_default = { + name: "Comment" +}; + +// src/components/comment.vue +import { createElementVNode as _createElementVNode63, openBlock as _openBlock64, createElementBlock as _createElementBlock64 } from "vue"; +var _hoisted_164 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_264 = /* @__PURE__ */ _createElementVNode63( + "path", + { + fill: "currentColor", + d: "M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_363 = [ + _hoisted_264 +]; +function _sfc_render64(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock64(), _createElementBlock64("svg", _hoisted_164, _hoisted_363); +} +var comment_default = /* @__PURE__ */ export_helper_default(comment_vue_vue_type_script_lang_default, [["render", _sfc_render64], ["__file", "comment.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/compass.vue?vue&type=script&lang.ts +var compass_vue_vue_type_script_lang_default = { + name: "Compass" +}; + +// src/components/compass.vue +import { createElementVNode as _createElementVNode64, openBlock as _openBlock65, createElementBlock as _createElementBlock65 } from "vue"; +var _hoisted_165 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_265 = /* @__PURE__ */ _createElementVNode64( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_364 = /* @__PURE__ */ _createElementVNode64( + "path", + { + fill: "currentColor", + d: "M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_421 = [ + _hoisted_265, + _hoisted_364 +]; +function _sfc_render65(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock65(), _createElementBlock65("svg", _hoisted_165, _hoisted_421); +} +var compass_default = /* @__PURE__ */ export_helper_default(compass_vue_vue_type_script_lang_default, [["render", _sfc_render65], ["__file", "compass.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/connection.vue?vue&type=script&lang.ts +var connection_vue_vue_type_script_lang_default = { + name: "Connection" +}; + +// src/components/connection.vue +import { createElementVNode as _createElementVNode65, openBlock as _openBlock66, createElementBlock as _createElementBlock66 } from "vue"; +var _hoisted_166 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_266 = /* @__PURE__ */ _createElementVNode65( + "path", + { + fill: "currentColor", + d: "M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_365 = /* @__PURE__ */ _createElementVNode65( + "path", + { + fill: "currentColor", + d: "M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_422 = [ + _hoisted_266, + _hoisted_365 +]; +function _sfc_render66(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock66(), _createElementBlock66("svg", _hoisted_166, _hoisted_422); +} +var connection_default = /* @__PURE__ */ export_helper_default(connection_vue_vue_type_script_lang_default, [["render", _sfc_render66], ["__file", "connection.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/coordinate.vue?vue&type=script&lang.ts +var coordinate_vue_vue_type_script_lang_default = { + name: "Coordinate" +}; + +// src/components/coordinate.vue +import { createElementVNode as _createElementVNode66, openBlock as _openBlock67, createElementBlock as _createElementBlock67 } from "vue"; +var _hoisted_167 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_267 = /* @__PURE__ */ _createElementVNode66( + "path", + { + fill: "currentColor", + d: "M480 512h64v320h-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_366 = /* @__PURE__ */ _createElementVNode66( + "path", + { + fill: "currentColor", + d: "M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_423 = [ + _hoisted_267, + _hoisted_366 +]; +function _sfc_render67(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock67(), _createElementBlock67("svg", _hoisted_167, _hoisted_423); +} +var coordinate_default = /* @__PURE__ */ export_helper_default(coordinate_vue_vue_type_script_lang_default, [["render", _sfc_render67], ["__file", "coordinate.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/copy-document.vue?vue&type=script&lang.ts +var copy_document_vue_vue_type_script_lang_default = { + name: "CopyDocument" +}; + +// src/components/copy-document.vue +import { createElementVNode as _createElementVNode67, openBlock as _openBlock68, createElementBlock as _createElementBlock68 } from "vue"; +var _hoisted_168 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_268 = /* @__PURE__ */ _createElementVNode67( + "path", + { + fill: "currentColor", + d: "M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_367 = /* @__PURE__ */ _createElementVNode67( + "path", + { + fill: "currentColor", + d: "M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_424 = [ + _hoisted_268, + _hoisted_367 +]; +function _sfc_render68(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock68(), _createElementBlock68("svg", _hoisted_168, _hoisted_424); +} +var copy_document_default = /* @__PURE__ */ export_helper_default(copy_document_vue_vue_type_script_lang_default, [["render", _sfc_render68], ["__file", "copy-document.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/cpu.vue?vue&type=script&lang.ts +var cpu_vue_vue_type_script_lang_default = { + name: "Cpu" +}; + +// src/components/cpu.vue +import { createElementVNode as _createElementVNode68, openBlock as _openBlock69, createElementBlock as _createElementBlock69 } from "vue"; +var _hoisted_169 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_269 = /* @__PURE__ */ _createElementVNode68( + "path", + { + fill: "currentColor", + d: "M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_368 = /* @__PURE__ */ _createElementVNode68( + "path", + { + fill: "currentColor", + d: "M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_425 = [ + _hoisted_269, + _hoisted_368 +]; +function _sfc_render69(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock69(), _createElementBlock69("svg", _hoisted_169, _hoisted_425); +} +var cpu_default = /* @__PURE__ */ export_helper_default(cpu_vue_vue_type_script_lang_default, [["render", _sfc_render69], ["__file", "cpu.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/credit-card.vue?vue&type=script&lang.ts +var credit_card_vue_vue_type_script_lang_default = { + name: "CreditCard" +}; + +// src/components/credit-card.vue +import { createElementVNode as _createElementVNode69, openBlock as _openBlock70, createElementBlock as _createElementBlock70 } from "vue"; +var _hoisted_170 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_270 = /* @__PURE__ */ _createElementVNode69( + "path", + { + fill: "currentColor", + d: "M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_369 = /* @__PURE__ */ _createElementVNode69( + "path", + { + fill: "currentColor", + d: "M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_426 = [ + _hoisted_270, + _hoisted_369 +]; +function _sfc_render70(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock70(), _createElementBlock70("svg", _hoisted_170, _hoisted_426); +} +var credit_card_default = /* @__PURE__ */ export_helper_default(credit_card_vue_vue_type_script_lang_default, [["render", _sfc_render70], ["__file", "credit-card.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/crop.vue?vue&type=script&lang.ts +var crop_vue_vue_type_script_lang_default = { + name: "Crop" +}; + +// src/components/crop.vue +import { createElementVNode as _createElementVNode70, openBlock as _openBlock71, createElementBlock as _createElementBlock71 } from "vue"; +var _hoisted_171 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_271 = /* @__PURE__ */ _createElementVNode70( + "path", + { + fill: "currentColor", + d: "M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_370 = /* @__PURE__ */ _createElementVNode70( + "path", + { + fill: "currentColor", + d: "M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_427 = [ + _hoisted_271, + _hoisted_370 +]; +function _sfc_render71(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock71(), _createElementBlock71("svg", _hoisted_171, _hoisted_427); +} +var crop_default = /* @__PURE__ */ export_helper_default(crop_vue_vue_type_script_lang_default, [["render", _sfc_render71], ["__file", "crop.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-arrow-left.vue?vue&type=script&lang.ts +var d_arrow_left_vue_vue_type_script_lang_default = { + name: "DArrowLeft" +}; + +// src/components/d-arrow-left.vue +import { createElementVNode as _createElementVNode71, openBlock as _openBlock72, createElementBlock as _createElementBlock72 } from "vue"; +var _hoisted_172 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_272 = /* @__PURE__ */ _createElementVNode71( + "path", + { + fill: "currentColor", + d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_371 = [ + _hoisted_272 +]; +function _sfc_render72(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock72(), _createElementBlock72("svg", _hoisted_172, _hoisted_371); +} +var d_arrow_left_default = /* @__PURE__ */ export_helper_default(d_arrow_left_vue_vue_type_script_lang_default, [["render", _sfc_render72], ["__file", "d-arrow-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-arrow-right.vue?vue&type=script&lang.ts +var d_arrow_right_vue_vue_type_script_lang_default = { + name: "DArrowRight" +}; + +// src/components/d-arrow-right.vue +import { createElementVNode as _createElementVNode72, openBlock as _openBlock73, createElementBlock as _createElementBlock73 } from "vue"; +var _hoisted_173 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_273 = /* @__PURE__ */ _createElementVNode72( + "path", + { + fill: "currentColor", + d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_372 = [ + _hoisted_273 +]; +function _sfc_render73(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock73(), _createElementBlock73("svg", _hoisted_173, _hoisted_372); +} +var d_arrow_right_default = /* @__PURE__ */ export_helper_default(d_arrow_right_vue_vue_type_script_lang_default, [["render", _sfc_render73], ["__file", "d-arrow-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/d-caret.vue?vue&type=script&lang.ts +var d_caret_vue_vue_type_script_lang_default = { + name: "DCaret" +}; + +// src/components/d-caret.vue +import { createElementVNode as _createElementVNode73, openBlock as _openBlock74, createElementBlock as _createElementBlock74 } from "vue"; +var _hoisted_174 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_274 = /* @__PURE__ */ _createElementVNode73( + "path", + { + fill: "currentColor", + d: "m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_373 = [ + _hoisted_274 +]; +function _sfc_render74(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock74(), _createElementBlock74("svg", _hoisted_174, _hoisted_373); +} +var d_caret_default = /* @__PURE__ */ export_helper_default(d_caret_vue_vue_type_script_lang_default, [["render", _sfc_render74], ["__file", "d-caret.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-analysis.vue?vue&type=script&lang.ts +var data_analysis_vue_vue_type_script_lang_default = { + name: "DataAnalysis" +}; + +// src/components/data-analysis.vue +import { createElementVNode as _createElementVNode74, openBlock as _openBlock75, createElementBlock as _createElementBlock75 } from "vue"; +var _hoisted_175 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_275 = /* @__PURE__ */ _createElementVNode74( + "path", + { + fill: "currentColor", + d: "m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_374 = [ + _hoisted_275 +]; +function _sfc_render75(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock75(), _createElementBlock75("svg", _hoisted_175, _hoisted_374); +} +var data_analysis_default = /* @__PURE__ */ export_helper_default(data_analysis_vue_vue_type_script_lang_default, [["render", _sfc_render75], ["__file", "data-analysis.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-board.vue?vue&type=script&lang.ts +var data_board_vue_vue_type_script_lang_default = { + name: "DataBoard" +}; + +// src/components/data-board.vue +import { createElementVNode as _createElementVNode75, openBlock as _openBlock76, createElementBlock as _createElementBlock76 } from "vue"; +var _hoisted_176 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_276 = /* @__PURE__ */ _createElementVNode75( + "path", + { + fill: "currentColor", + d: "M32 128h960v64H32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_375 = /* @__PURE__ */ _createElementVNode75( + "path", + { + fill: "currentColor", + d: "M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_428 = /* @__PURE__ */ _createElementVNode75( + "path", + { + fill: "currentColor", + d: "M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_58 = [ + _hoisted_276, + _hoisted_375, + _hoisted_428 +]; +function _sfc_render76(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock76(), _createElementBlock76("svg", _hoisted_176, _hoisted_58); +} +var data_board_default = /* @__PURE__ */ export_helper_default(data_board_vue_vue_type_script_lang_default, [["render", _sfc_render76], ["__file", "data-board.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/data-line.vue?vue&type=script&lang.ts +var data_line_vue_vue_type_script_lang_default = { + name: "DataLine" +}; + +// src/components/data-line.vue +import { createElementVNode as _createElementVNode76, openBlock as _openBlock77, createElementBlock as _createElementBlock77 } from "vue"; +var _hoisted_177 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_277 = /* @__PURE__ */ _createElementVNode76( + "path", + { + fill: "currentColor", + d: "M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_376 = [ + _hoisted_277 +]; +function _sfc_render77(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock77(), _createElementBlock77("svg", _hoisted_177, _hoisted_376); +} +var data_line_default = /* @__PURE__ */ export_helper_default(data_line_vue_vue_type_script_lang_default, [["render", _sfc_render77], ["__file", "data-line.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete-filled.vue?vue&type=script&lang.ts +var delete_filled_vue_vue_type_script_lang_default = { + name: "DeleteFilled" +}; + +// src/components/delete-filled.vue +import { createElementVNode as _createElementVNode77, openBlock as _openBlock78, createElementBlock as _createElementBlock78 } from "vue"; +var _hoisted_178 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_278 = /* @__PURE__ */ _createElementVNode77( + "path", + { + fill: "currentColor", + d: "M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_377 = [ + _hoisted_278 +]; +function _sfc_render78(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock78(), _createElementBlock78("svg", _hoisted_178, _hoisted_377); +} +var delete_filled_default = /* @__PURE__ */ export_helper_default(delete_filled_vue_vue_type_script_lang_default, [["render", _sfc_render78], ["__file", "delete-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete-location.vue?vue&type=script&lang.ts +var delete_location_vue_vue_type_script_lang_default = { + name: "DeleteLocation" +}; + +// src/components/delete-location.vue +import { createElementVNode as _createElementVNode78, openBlock as _openBlock79, createElementBlock as _createElementBlock79 } from "vue"; +var _hoisted_179 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_279 = /* @__PURE__ */ _createElementVNode78( + "path", + { + fill: "currentColor", + d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_378 = /* @__PURE__ */ _createElementVNode78( + "path", + { + fill: "currentColor", + d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_429 = /* @__PURE__ */ _createElementVNode78( + "path", + { + fill: "currentColor", + d: "M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_59 = [ + _hoisted_279, + _hoisted_378, + _hoisted_429 +]; +function _sfc_render79(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock79(), _createElementBlock79("svg", _hoisted_179, _hoisted_59); +} +var delete_location_default = /* @__PURE__ */ export_helper_default(delete_location_vue_vue_type_script_lang_default, [["render", _sfc_render79], ["__file", "delete-location.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete.vue?vue&type=script&lang.ts +var delete_vue_vue_type_script_lang_default = { + name: "Delete" +}; + +// src/components/delete.vue +import { createElementVNode as _createElementVNode79, openBlock as _openBlock80, createElementBlock as _createElementBlock80 } from "vue"; +var _hoisted_180 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_280 = /* @__PURE__ */ _createElementVNode79( + "path", + { + fill: "currentColor", + d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_379 = [ + _hoisted_280 +]; +function _sfc_render80(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock80(), _createElementBlock80("svg", _hoisted_180, _hoisted_379); +} +var delete_default = /* @__PURE__ */ export_helper_default(delete_vue_vue_type_script_lang_default, [["render", _sfc_render80], ["__file", "delete.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dessert.vue?vue&type=script&lang.ts +var dessert_vue_vue_type_script_lang_default = { + name: "Dessert" +}; + +// src/components/dessert.vue +import { createElementVNode as _createElementVNode80, openBlock as _openBlock81, createElementBlock as _createElementBlock81 } from "vue"; +var _hoisted_181 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_281 = /* @__PURE__ */ _createElementVNode80( + "path", + { + fill: "currentColor", + d: "M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_380 = [ + _hoisted_281 +]; +function _sfc_render81(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock81(), _createElementBlock81("svg", _hoisted_181, _hoisted_380); +} +var dessert_default = /* @__PURE__ */ export_helper_default(dessert_vue_vue_type_script_lang_default, [["render", _sfc_render81], ["__file", "dessert.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/discount.vue?vue&type=script&lang.ts +var discount_vue_vue_type_script_lang_default = { + name: "Discount" +}; + +// src/components/discount.vue +import { createElementVNode as _createElementVNode81, openBlock as _openBlock82, createElementBlock as _createElementBlock82 } from "vue"; +var _hoisted_182 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_282 = /* @__PURE__ */ _createElementVNode81( + "path", + { + fill: "currentColor", + d: "M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_381 = /* @__PURE__ */ _createElementVNode81( + "path", + { + fill: "currentColor", + d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_430 = [ + _hoisted_282, + _hoisted_381 +]; +function _sfc_render82(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock82(), _createElementBlock82("svg", _hoisted_182, _hoisted_430); +} +var discount_default = /* @__PURE__ */ export_helper_default(discount_vue_vue_type_script_lang_default, [["render", _sfc_render82], ["__file", "discount.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dish-dot.vue?vue&type=script&lang.ts +var dish_dot_vue_vue_type_script_lang_default = { + name: "DishDot" +}; + +// src/components/dish-dot.vue +import { createElementVNode as _createElementVNode82, openBlock as _openBlock83, createElementBlock as _createElementBlock83 } from "vue"; +var _hoisted_183 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_283 = /* @__PURE__ */ _createElementVNode82( + "path", + { + fill: "currentColor", + d: "m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_382 = [ + _hoisted_283 +]; +function _sfc_render83(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock83(), _createElementBlock83("svg", _hoisted_183, _hoisted_382); +} +var dish_dot_default = /* @__PURE__ */ export_helper_default(dish_dot_vue_vue_type_script_lang_default, [["render", _sfc_render83], ["__file", "dish-dot.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/dish.vue?vue&type=script&lang.ts +var dish_vue_vue_type_script_lang_default = { + name: "Dish" +}; + +// src/components/dish.vue +import { createElementVNode as _createElementVNode83, openBlock as _openBlock84, createElementBlock as _createElementBlock84 } from "vue"; +var _hoisted_184 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_284 = /* @__PURE__ */ _createElementVNode83( + "path", + { + fill: "currentColor", + d: "M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_383 = [ + _hoisted_284 +]; +function _sfc_render84(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock84(), _createElementBlock84("svg", _hoisted_184, _hoisted_383); +} +var dish_default = /* @__PURE__ */ export_helper_default(dish_vue_vue_type_script_lang_default, [["render", _sfc_render84], ["__file", "dish.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-add.vue?vue&type=script&lang.ts +var document_add_vue_vue_type_script_lang_default = { + name: "DocumentAdd" +}; + +// src/components/document-add.vue +import { createElementVNode as _createElementVNode84, openBlock as _openBlock85, createElementBlock as _createElementBlock85 } from "vue"; +var _hoisted_185 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_285 = /* @__PURE__ */ _createElementVNode84( + "path", + { + fill: "currentColor", + d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_384 = [ + _hoisted_285 +]; +function _sfc_render85(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock85(), _createElementBlock85("svg", _hoisted_185, _hoisted_384); +} +var document_add_default = /* @__PURE__ */ export_helper_default(document_add_vue_vue_type_script_lang_default, [["render", _sfc_render85], ["__file", "document-add.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-checked.vue?vue&type=script&lang.ts +var document_checked_vue_vue_type_script_lang_default = { + name: "DocumentChecked" +}; + +// src/components/document-checked.vue +import { createElementVNode as _createElementVNode85, openBlock as _openBlock86, createElementBlock as _createElementBlock86 } from "vue"; +var _hoisted_186 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_286 = /* @__PURE__ */ _createElementVNode85( + "path", + { + fill: "currentColor", + d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_385 = [ + _hoisted_286 +]; +function _sfc_render86(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock86(), _createElementBlock86("svg", _hoisted_186, _hoisted_385); +} +var document_checked_default = /* @__PURE__ */ export_helper_default(document_checked_vue_vue_type_script_lang_default, [["render", _sfc_render86], ["__file", "document-checked.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-copy.vue?vue&type=script&lang.ts +var document_copy_vue_vue_type_script_lang_default = { + name: "DocumentCopy" +}; + +// src/components/document-copy.vue +import { createElementVNode as _createElementVNode86, openBlock as _openBlock87, createElementBlock as _createElementBlock87 } from "vue"; +var _hoisted_187 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_287 = /* @__PURE__ */ _createElementVNode86( + "path", + { + fill: "currentColor", + d: "M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_386 = [ + _hoisted_287 +]; +function _sfc_render87(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock87(), _createElementBlock87("svg", _hoisted_187, _hoisted_386); +} +var document_copy_default = /* @__PURE__ */ export_helper_default(document_copy_vue_vue_type_script_lang_default, [["render", _sfc_render87], ["__file", "document-copy.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-delete.vue?vue&type=script&lang.ts +var document_delete_vue_vue_type_script_lang_default = { + name: "DocumentDelete" +}; + +// src/components/document-delete.vue +import { createElementVNode as _createElementVNode87, openBlock as _openBlock88, createElementBlock as _createElementBlock88 } from "vue"; +var _hoisted_188 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_288 = /* @__PURE__ */ _createElementVNode87( + "path", + { + fill: "currentColor", + d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_387 = [ + _hoisted_288 +]; +function _sfc_render88(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock88(), _createElementBlock88("svg", _hoisted_188, _hoisted_387); +} +var document_delete_default = /* @__PURE__ */ export_helper_default(document_delete_vue_vue_type_script_lang_default, [["render", _sfc_render88], ["__file", "document-delete.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document-remove.vue?vue&type=script&lang.ts +var document_remove_vue_vue_type_script_lang_default = { + name: "DocumentRemove" +}; + +// src/components/document-remove.vue +import { createElementVNode as _createElementVNode88, openBlock as _openBlock89, createElementBlock as _createElementBlock89 } from "vue"; +var _hoisted_189 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_289 = /* @__PURE__ */ _createElementVNode88( + "path", + { + fill: "currentColor", + d: "M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_388 = [ + _hoisted_289 +]; +function _sfc_render89(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock89(), _createElementBlock89("svg", _hoisted_189, _hoisted_388); +} +var document_remove_default = /* @__PURE__ */ export_helper_default(document_remove_vue_vue_type_script_lang_default, [["render", _sfc_render89], ["__file", "document-remove.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document.vue?vue&type=script&lang.ts +var document_vue_vue_type_script_lang_default = { + name: "Document" +}; + +// src/components/document.vue +import { createElementVNode as _createElementVNode89, openBlock as _openBlock90, createElementBlock as _createElementBlock90 } from "vue"; +var _hoisted_190 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_290 = /* @__PURE__ */ _createElementVNode89( + "path", + { + fill: "currentColor", + d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_389 = [ + _hoisted_290 +]; +function _sfc_render90(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock90(), _createElementBlock90("svg", _hoisted_190, _hoisted_389); +} +var document_default = /* @__PURE__ */ export_helper_default(document_vue_vue_type_script_lang_default, [["render", _sfc_render90], ["__file", "document.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/download.vue?vue&type=script&lang.ts +var download_vue_vue_type_script_lang_default = { + name: "Download" +}; + +// src/components/download.vue +import { createElementVNode as _createElementVNode90, openBlock as _openBlock91, createElementBlock as _createElementBlock91 } from "vue"; +var _hoisted_191 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_291 = /* @__PURE__ */ _createElementVNode90( + "path", + { + fill: "currentColor", + d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_390 = [ + _hoisted_291 +]; +function _sfc_render91(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock91(), _createElementBlock91("svg", _hoisted_191, _hoisted_390); +} +var download_default = /* @__PURE__ */ export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/drizzling.vue?vue&type=script&lang.ts +var drizzling_vue_vue_type_script_lang_default = { + name: "Drizzling" +}; + +// src/components/drizzling.vue +import { createElementVNode as _createElementVNode91, openBlock as _openBlock92, createElementBlock as _createElementBlock92 } from "vue"; +var _hoisted_192 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_292 = /* @__PURE__ */ _createElementVNode91( + "path", + { + fill: "currentColor", + d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_391 = [ + _hoisted_292 +]; +function _sfc_render92(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock92(), _createElementBlock92("svg", _hoisted_192, _hoisted_391); +} +var drizzling_default = /* @__PURE__ */ export_helper_default(drizzling_vue_vue_type_script_lang_default, [["render", _sfc_render92], ["__file", "drizzling.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/edit-pen.vue?vue&type=script&lang.ts +var edit_pen_vue_vue_type_script_lang_default = { + name: "EditPen" +}; + +// src/components/edit-pen.vue +import { createElementVNode as _createElementVNode92, openBlock as _openBlock93, createElementBlock as _createElementBlock93 } from "vue"; +var _hoisted_193 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_293 = /* @__PURE__ */ _createElementVNode92( + "path", + { + fill: "currentColor", + d: "m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_392 = [ + _hoisted_293 +]; +function _sfc_render93(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock93(), _createElementBlock93("svg", _hoisted_193, _hoisted_392); +} +var edit_pen_default = /* @__PURE__ */ export_helper_default(edit_pen_vue_vue_type_script_lang_default, [["render", _sfc_render93], ["__file", "edit-pen.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/edit.vue?vue&type=script&lang.ts +var edit_vue_vue_type_script_lang_default = { + name: "Edit" +}; + +// src/components/edit.vue +import { createElementVNode as _createElementVNode93, openBlock as _openBlock94, createElementBlock as _createElementBlock94 } from "vue"; +var _hoisted_194 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_294 = /* @__PURE__ */ _createElementVNode93( + "path", + { + fill: "currentColor", + d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_393 = /* @__PURE__ */ _createElementVNode93( + "path", + { + fill: "currentColor", + d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_431 = [ + _hoisted_294, + _hoisted_393 +]; +function _sfc_render94(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock94(), _createElementBlock94("svg", _hoisted_194, _hoisted_431); +} +var edit_default = /* @__PURE__ */ export_helper_default(edit_vue_vue_type_script_lang_default, [["render", _sfc_render94], ["__file", "edit.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/eleme-filled.vue?vue&type=script&lang.ts +var eleme_filled_vue_vue_type_script_lang_default = { + name: "ElemeFilled" +}; + +// src/components/eleme-filled.vue +import { createElementVNode as _createElementVNode94, openBlock as _openBlock95, createElementBlock as _createElementBlock95 } from "vue"; +var _hoisted_195 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_295 = /* @__PURE__ */ _createElementVNode94( + "path", + { + fill: "currentColor", + d: "M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_394 = [ + _hoisted_295 +]; +function _sfc_render95(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock95(), _createElementBlock95("svg", _hoisted_195, _hoisted_394); +} +var eleme_filled_default = /* @__PURE__ */ export_helper_default(eleme_filled_vue_vue_type_script_lang_default, [["render", _sfc_render95], ["__file", "eleme-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/eleme.vue?vue&type=script&lang.ts +var eleme_vue_vue_type_script_lang_default = { + name: "Eleme" +}; + +// src/components/eleme.vue +import { createElementVNode as _createElementVNode95, openBlock as _openBlock96, createElementBlock as _createElementBlock96 } from "vue"; +var _hoisted_196 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_296 = /* @__PURE__ */ _createElementVNode95( + "path", + { + fill: "currentColor", + d: "M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_395 = [ + _hoisted_296 +]; +function _sfc_render96(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock96(), _createElementBlock96("svg", _hoisted_196, _hoisted_395); +} +var eleme_default = /* @__PURE__ */ export_helper_default(eleme_vue_vue_type_script_lang_default, [["render", _sfc_render96], ["__file", "eleme.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/element-plus.vue?vue&type=script&lang.ts +var element_plus_vue_vue_type_script_lang_default = { + name: "ElementPlus" +}; + +// src/components/element-plus.vue +import { createElementVNode as _createElementVNode96, openBlock as _openBlock97, createElementBlock as _createElementBlock97 } from "vue"; +var _hoisted_197 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_297 = /* @__PURE__ */ _createElementVNode96( + "path", + { + fill: "currentColor", + d: "M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_396 = [ + _hoisted_297 +]; +function _sfc_render97(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock97(), _createElementBlock97("svg", _hoisted_197, _hoisted_396); +} +var element_plus_default = /* @__PURE__ */ export_helper_default(element_plus_vue_vue_type_script_lang_default, [["render", _sfc_render97], ["__file", "element-plus.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/expand.vue?vue&type=script&lang.ts +var expand_vue_vue_type_script_lang_default = { + name: "Expand" +}; + +// src/components/expand.vue +import { createElementVNode as _createElementVNode97, openBlock as _openBlock98, createElementBlock as _createElementBlock98 } from "vue"; +var _hoisted_198 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_298 = /* @__PURE__ */ _createElementVNode97( + "path", + { + fill: "currentColor", + d: "M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_397 = [ + _hoisted_298 +]; +function _sfc_render98(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock98(), _createElementBlock98("svg", _hoisted_198, _hoisted_397); +} +var expand_default = /* @__PURE__ */ export_helper_default(expand_vue_vue_type_script_lang_default, [["render", _sfc_render98], ["__file", "expand.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/failed.vue?vue&type=script&lang.ts +var failed_vue_vue_type_script_lang_default = { + name: "Failed" +}; + +// src/components/failed.vue +import { createElementVNode as _createElementVNode98, openBlock as _openBlock99, createElementBlock as _createElementBlock99 } from "vue"; +var _hoisted_199 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_299 = /* @__PURE__ */ _createElementVNode98( + "path", + { + fill: "currentColor", + d: "m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_398 = [ + _hoisted_299 +]; +function _sfc_render99(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock99(), _createElementBlock99("svg", _hoisted_199, _hoisted_398); +} +var failed_default = /* @__PURE__ */ export_helper_default(failed_vue_vue_type_script_lang_default, [["render", _sfc_render99], ["__file", "failed.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/female.vue?vue&type=script&lang.ts +var female_vue_vue_type_script_lang_default = { + name: "Female" +}; + +// src/components/female.vue +import { createElementVNode as _createElementVNode99, openBlock as _openBlock100, createElementBlock as _createElementBlock100 } from "vue"; +var _hoisted_1100 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2100 = /* @__PURE__ */ _createElementVNode99( + "path", + { + fill: "currentColor", + d: "M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_399 = /* @__PURE__ */ _createElementVNode99( + "path", + { + fill: "currentColor", + d: "M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_432 = /* @__PURE__ */ _createElementVNode99( + "path", + { + fill: "currentColor", + d: "M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_510 = [ + _hoisted_2100, + _hoisted_399, + _hoisted_432 +]; +function _sfc_render100(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock100(), _createElementBlock100("svg", _hoisted_1100, _hoisted_510); +} +var female_default = /* @__PURE__ */ export_helper_default(female_vue_vue_type_script_lang_default, [["render", _sfc_render100], ["__file", "female.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/files.vue?vue&type=script&lang.ts +var files_vue_vue_type_script_lang_default = { + name: "Files" +}; + +// src/components/files.vue +import { createElementVNode as _createElementVNode100, openBlock as _openBlock101, createElementBlock as _createElementBlock101 } from "vue"; +var _hoisted_1101 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2101 = /* @__PURE__ */ _createElementVNode100( + "path", + { + fill: "currentColor", + d: "M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3100 = [ + _hoisted_2101 +]; +function _sfc_render101(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock101(), _createElementBlock101("svg", _hoisted_1101, _hoisted_3100); +} +var files_default = /* @__PURE__ */ export_helper_default(files_vue_vue_type_script_lang_default, [["render", _sfc_render101], ["__file", "files.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/film.vue?vue&type=script&lang.ts +var film_vue_vue_type_script_lang_default = { + name: "Film" +}; + +// src/components/film.vue +import { createElementVNode as _createElementVNode101, openBlock as _openBlock102, createElementBlock as _createElementBlock102 } from "vue"; +var _hoisted_1102 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2102 = /* @__PURE__ */ _createElementVNode101( + "path", + { + fill: "currentColor", + d: "M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3101 = /* @__PURE__ */ _createElementVNode101( + "path", + { + fill: "currentColor", + d: "M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_433 = [ + _hoisted_2102, + _hoisted_3101 +]; +function _sfc_render102(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock102(), _createElementBlock102("svg", _hoisted_1102, _hoisted_433); +} +var film_default = /* @__PURE__ */ export_helper_default(film_vue_vue_type_script_lang_default, [["render", _sfc_render102], ["__file", "film.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/filter.vue?vue&type=script&lang.ts +var filter_vue_vue_type_script_lang_default = { + name: "Filter" +}; + +// src/components/filter.vue +import { createElementVNode as _createElementVNode102, openBlock as _openBlock103, createElementBlock as _createElementBlock103 } from "vue"; +var _hoisted_1103 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2103 = /* @__PURE__ */ _createElementVNode102( + "path", + { + fill: "currentColor", + d: "M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3102 = [ + _hoisted_2103 +]; +function _sfc_render103(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock103(), _createElementBlock103("svg", _hoisted_1103, _hoisted_3102); +} +var filter_default = /* @__PURE__ */ export_helper_default(filter_vue_vue_type_script_lang_default, [["render", _sfc_render103], ["__file", "filter.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/finished.vue?vue&type=script&lang.ts +var finished_vue_vue_type_script_lang_default = { + name: "Finished" +}; + +// src/components/finished.vue +import { createElementVNode as _createElementVNode103, openBlock as _openBlock104, createElementBlock as _createElementBlock104 } from "vue"; +var _hoisted_1104 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2104 = /* @__PURE__ */ _createElementVNode103( + "path", + { + fill: "currentColor", + d: "M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3103 = [ + _hoisted_2104 +]; +function _sfc_render104(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock104(), _createElementBlock104("svg", _hoisted_1104, _hoisted_3103); +} +var finished_default = /* @__PURE__ */ export_helper_default(finished_vue_vue_type_script_lang_default, [["render", _sfc_render104], ["__file", "finished.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/first-aid-kit.vue?vue&type=script&lang.ts +var first_aid_kit_vue_vue_type_script_lang_default = { + name: "FirstAidKit" +}; + +// src/components/first-aid-kit.vue +import { createElementVNode as _createElementVNode104, openBlock as _openBlock105, createElementBlock as _createElementBlock105 } from "vue"; +var _hoisted_1105 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2105 = /* @__PURE__ */ _createElementVNode104( + "path", + { + fill: "currentColor", + d: "M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3104 = /* @__PURE__ */ _createElementVNode104( + "path", + { + fill: "currentColor", + d: "M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_434 = [ + _hoisted_2105, + _hoisted_3104 +]; +function _sfc_render105(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock105(), _createElementBlock105("svg", _hoisted_1105, _hoisted_434); +} +var first_aid_kit_default = /* @__PURE__ */ export_helper_default(first_aid_kit_vue_vue_type_script_lang_default, [["render", _sfc_render105], ["__file", "first-aid-kit.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/flag.vue?vue&type=script&lang.ts +var flag_vue_vue_type_script_lang_default = { + name: "Flag" +}; + +// src/components/flag.vue +import { createElementVNode as _createElementVNode105, openBlock as _openBlock106, createElementBlock as _createElementBlock106 } from "vue"; +var _hoisted_1106 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2106 = /* @__PURE__ */ _createElementVNode105( + "path", + { + fill: "currentColor", + d: "M288 128h608L736 384l160 256H288v320h-96V64h96v64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3105 = [ + _hoisted_2106 +]; +function _sfc_render106(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock106(), _createElementBlock106("svg", _hoisted_1106, _hoisted_3105); +} +var flag_default = /* @__PURE__ */ export_helper_default(flag_vue_vue_type_script_lang_default, [["render", _sfc_render106], ["__file", "flag.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fold.vue?vue&type=script&lang.ts +var fold_vue_vue_type_script_lang_default = { + name: "Fold" +}; + +// src/components/fold.vue +import { createElementVNode as _createElementVNode106, openBlock as _openBlock107, createElementBlock as _createElementBlock107 } from "vue"; +var _hoisted_1107 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2107 = /* @__PURE__ */ _createElementVNode106( + "path", + { + fill: "currentColor", + d: "M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3106 = [ + _hoisted_2107 +]; +function _sfc_render107(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock107(), _createElementBlock107("svg", _hoisted_1107, _hoisted_3106); +} +var fold_default = /* @__PURE__ */ export_helper_default(fold_vue_vue_type_script_lang_default, [["render", _sfc_render107], ["__file", "fold.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-add.vue?vue&type=script&lang.ts +var folder_add_vue_vue_type_script_lang_default = { + name: "FolderAdd" +}; + +// src/components/folder-add.vue +import { createElementVNode as _createElementVNode107, openBlock as _openBlock108, createElementBlock as _createElementBlock108 } from "vue"; +var _hoisted_1108 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2108 = /* @__PURE__ */ _createElementVNode107( + "path", + { + fill: "currentColor", + d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3107 = [ + _hoisted_2108 +]; +function _sfc_render108(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock108(), _createElementBlock108("svg", _hoisted_1108, _hoisted_3107); +} +var folder_add_default = /* @__PURE__ */ export_helper_default(folder_add_vue_vue_type_script_lang_default, [["render", _sfc_render108], ["__file", "folder-add.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-checked.vue?vue&type=script&lang.ts +var folder_checked_vue_vue_type_script_lang_default = { + name: "FolderChecked" +}; + +// src/components/folder-checked.vue +import { createElementVNode as _createElementVNode108, openBlock as _openBlock109, createElementBlock as _createElementBlock109 } from "vue"; +var _hoisted_1109 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2109 = /* @__PURE__ */ _createElementVNode108( + "path", + { + fill: "currentColor", + d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3108 = [ + _hoisted_2109 +]; +function _sfc_render109(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock109(), _createElementBlock109("svg", _hoisted_1109, _hoisted_3108); +} +var folder_checked_default = /* @__PURE__ */ export_helper_default(folder_checked_vue_vue_type_script_lang_default, [["render", _sfc_render109], ["__file", "folder-checked.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-delete.vue?vue&type=script&lang.ts +var folder_delete_vue_vue_type_script_lang_default = { + name: "FolderDelete" +}; + +// src/components/folder-delete.vue +import { createElementVNode as _createElementVNode109, openBlock as _openBlock110, createElementBlock as _createElementBlock110 } from "vue"; +var _hoisted_1110 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2110 = /* @__PURE__ */ _createElementVNode109( + "path", + { + fill: "currentColor", + d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3109 = [ + _hoisted_2110 +]; +function _sfc_render110(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock110(), _createElementBlock110("svg", _hoisted_1110, _hoisted_3109); +} +var folder_delete_default = /* @__PURE__ */ export_helper_default(folder_delete_vue_vue_type_script_lang_default, [["render", _sfc_render110], ["__file", "folder-delete.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-opened.vue?vue&type=script&lang.ts +var folder_opened_vue_vue_type_script_lang_default = { + name: "FolderOpened" +}; + +// src/components/folder-opened.vue +import { createElementVNode as _createElementVNode110, openBlock as _openBlock111, createElementBlock as _createElementBlock111 } from "vue"; +var _hoisted_1111 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2111 = /* @__PURE__ */ _createElementVNode110( + "path", + { + fill: "currentColor", + d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3110 = [ + _hoisted_2111 +]; +function _sfc_render111(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock111(), _createElementBlock111("svg", _hoisted_1111, _hoisted_3110); +} +var folder_opened_default = /* @__PURE__ */ export_helper_default(folder_opened_vue_vue_type_script_lang_default, [["render", _sfc_render111], ["__file", "folder-opened.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder-remove.vue?vue&type=script&lang.ts +var folder_remove_vue_vue_type_script_lang_default = { + name: "FolderRemove" +}; + +// src/components/folder-remove.vue +import { createElementVNode as _createElementVNode111, openBlock as _openBlock112, createElementBlock as _createElementBlock112 } from "vue"; +var _hoisted_1112 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2112 = /* @__PURE__ */ _createElementVNode111( + "path", + { + fill: "currentColor", + d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3111 = [ + _hoisted_2112 +]; +function _sfc_render112(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock112(), _createElementBlock112("svg", _hoisted_1112, _hoisted_3111); +} +var folder_remove_default = /* @__PURE__ */ export_helper_default(folder_remove_vue_vue_type_script_lang_default, [["render", _sfc_render112], ["__file", "folder-remove.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/folder.vue?vue&type=script&lang.ts +var folder_vue_vue_type_script_lang_default = { + name: "Folder" +}; + +// src/components/folder.vue +import { createElementVNode as _createElementVNode112, openBlock as _openBlock113, createElementBlock as _createElementBlock113 } from "vue"; +var _hoisted_1113 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2113 = /* @__PURE__ */ _createElementVNode112( + "path", + { + fill: "currentColor", + d: "M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3112 = [ + _hoisted_2113 +]; +function _sfc_render113(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock113(), _createElementBlock113("svg", _hoisted_1113, _hoisted_3112); +} +var folder_default = /* @__PURE__ */ export_helper_default(folder_vue_vue_type_script_lang_default, [["render", _sfc_render113], ["__file", "folder.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/food.vue?vue&type=script&lang.ts +var food_vue_vue_type_script_lang_default = { + name: "Food" +}; + +// src/components/food.vue +import { createElementVNode as _createElementVNode113, openBlock as _openBlock114, createElementBlock as _createElementBlock114 } from "vue"; +var _hoisted_1114 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2114 = /* @__PURE__ */ _createElementVNode113( + "path", + { + fill: "currentColor", + d: "M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3113 = [ + _hoisted_2114 +]; +function _sfc_render114(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock114(), _createElementBlock114("svg", _hoisted_1114, _hoisted_3113); +} +var food_default = /* @__PURE__ */ export_helper_default(food_vue_vue_type_script_lang_default, [["render", _sfc_render114], ["__file", "food.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/football.vue?vue&type=script&lang.ts +var football_vue_vue_type_script_lang_default = { + name: "Football" +}; + +// src/components/football.vue +import { createElementVNode as _createElementVNode114, openBlock as _openBlock115, createElementBlock as _createElementBlock115 } from "vue"; +var _hoisted_1115 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2115 = /* @__PURE__ */ _createElementVNode114( + "path", + { + fill: "currentColor", + d: "M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3114 = /* @__PURE__ */ _createElementVNode114( + "path", + { + fill: "currentColor", + d: "M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_435 = [ + _hoisted_2115, + _hoisted_3114 +]; +function _sfc_render115(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock115(), _createElementBlock115("svg", _hoisted_1115, _hoisted_435); +} +var football_default = /* @__PURE__ */ export_helper_default(football_vue_vue_type_script_lang_default, [["render", _sfc_render115], ["__file", "football.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fork-spoon.vue?vue&type=script&lang.ts +var fork_spoon_vue_vue_type_script_lang_default = { + name: "ForkSpoon" +}; + +// src/components/fork-spoon.vue +import { createElementVNode as _createElementVNode115, openBlock as _openBlock116, createElementBlock as _createElementBlock116 } from "vue"; +var _hoisted_1116 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2116 = /* @__PURE__ */ _createElementVNode115( + "path", + { + fill: "currentColor", + d: "M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3115 = [ + _hoisted_2116 +]; +function _sfc_render116(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock116(), _createElementBlock116("svg", _hoisted_1116, _hoisted_3115); +} +var fork_spoon_default = /* @__PURE__ */ export_helper_default(fork_spoon_vue_vue_type_script_lang_default, [["render", _sfc_render116], ["__file", "fork-spoon.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/fries.vue?vue&type=script&lang.ts +var fries_vue_vue_type_script_lang_default = { + name: "Fries" +}; + +// src/components/fries.vue +import { createElementVNode as _createElementVNode116, openBlock as _openBlock117, createElementBlock as _createElementBlock117 } from "vue"; +var _hoisted_1117 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2117 = /* @__PURE__ */ _createElementVNode116( + "path", + { + fill: "currentColor", + d: "M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3116 = [ + _hoisted_2117 +]; +function _sfc_render117(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock117(), _createElementBlock117("svg", _hoisted_1117, _hoisted_3116); +} +var fries_default = /* @__PURE__ */ export_helper_default(fries_vue_vue_type_script_lang_default, [["render", _sfc_render117], ["__file", "fries.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/full-screen.vue?vue&type=script&lang.ts +var full_screen_vue_vue_type_script_lang_default = { + name: "FullScreen" +}; + +// src/components/full-screen.vue +import { createElementVNode as _createElementVNode117, openBlock as _openBlock118, createElementBlock as _createElementBlock118 } from "vue"; +var _hoisted_1118 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2118 = /* @__PURE__ */ _createElementVNode117( + "path", + { + fill: "currentColor", + d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3117 = [ + _hoisted_2118 +]; +function _sfc_render118(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock118(), _createElementBlock118("svg", _hoisted_1118, _hoisted_3117); +} +var full_screen_default = /* @__PURE__ */ export_helper_default(full_screen_vue_vue_type_script_lang_default, [["render", _sfc_render118], ["__file", "full-screen.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-full.vue?vue&type=script&lang.ts +var goblet_full_vue_vue_type_script_lang_default = { + name: "GobletFull" +}; + +// src/components/goblet-full.vue +import { createElementVNode as _createElementVNode118, openBlock as _openBlock119, createElementBlock as _createElementBlock119 } from "vue"; +var _hoisted_1119 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2119 = /* @__PURE__ */ _createElementVNode118( + "path", + { + fill: "currentColor", + d: "M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3118 = [ + _hoisted_2119 +]; +function _sfc_render119(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock119(), _createElementBlock119("svg", _hoisted_1119, _hoisted_3118); +} +var goblet_full_default = /* @__PURE__ */ export_helper_default(goblet_full_vue_vue_type_script_lang_default, [["render", _sfc_render119], ["__file", "goblet-full.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-square-full.vue?vue&type=script&lang.ts +var goblet_square_full_vue_vue_type_script_lang_default = { + name: "GobletSquareFull" +}; + +// src/components/goblet-square-full.vue +import { createElementVNode as _createElementVNode119, openBlock as _openBlock120, createElementBlock as _createElementBlock120 } from "vue"; +var _hoisted_1120 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2120 = /* @__PURE__ */ _createElementVNode119( + "path", + { + fill: "currentColor", + d: "M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3119 = [ + _hoisted_2120 +]; +function _sfc_render120(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock120(), _createElementBlock120("svg", _hoisted_1120, _hoisted_3119); +} +var goblet_square_full_default = /* @__PURE__ */ export_helper_default(goblet_square_full_vue_vue_type_script_lang_default, [["render", _sfc_render120], ["__file", "goblet-square-full.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet-square.vue?vue&type=script&lang.ts +var goblet_square_vue_vue_type_script_lang_default = { + name: "GobletSquare" +}; + +// src/components/goblet-square.vue +import { createElementVNode as _createElementVNode120, openBlock as _openBlock121, createElementBlock as _createElementBlock121 } from "vue"; +var _hoisted_1121 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2121 = /* @__PURE__ */ _createElementVNode120( + "path", + { + fill: "currentColor", + d: "M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3120 = [ + _hoisted_2121 +]; +function _sfc_render121(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock121(), _createElementBlock121("svg", _hoisted_1121, _hoisted_3120); +} +var goblet_square_default = /* @__PURE__ */ export_helper_default(goblet_square_vue_vue_type_script_lang_default, [["render", _sfc_render121], ["__file", "goblet-square.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goblet.vue?vue&type=script&lang.ts +var goblet_vue_vue_type_script_lang_default = { + name: "Goblet" +}; + +// src/components/goblet.vue +import { createElementVNode as _createElementVNode121, openBlock as _openBlock122, createElementBlock as _createElementBlock122 } from "vue"; +var _hoisted_1122 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2122 = /* @__PURE__ */ _createElementVNode121( + "path", + { + fill: "currentColor", + d: "M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3121 = [ + _hoisted_2122 +]; +function _sfc_render122(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock122(), _createElementBlock122("svg", _hoisted_1122, _hoisted_3121); +} +var goblet_default = /* @__PURE__ */ export_helper_default(goblet_vue_vue_type_script_lang_default, [["render", _sfc_render122], ["__file", "goblet.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/gold-medal.vue?vue&type=script&lang.ts +var gold_medal_vue_vue_type_script_lang_default = { + name: "GoldMedal" +}; + +// src/components/gold-medal.vue +import { createElementVNode as _createElementVNode122, openBlock as _openBlock123, createElementBlock as _createElementBlock123 } from "vue"; +var _hoisted_1123 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2123 = /* @__PURE__ */ _createElementVNode122( + "path", + { + fill: "currentColor", + d: "m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128h128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128H384zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3122 = /* @__PURE__ */ _createElementVNode122( + "path", + { + fill: "currentColor", + d: "M544 480H416v64h64v192h-64v64h192v-64h-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_436 = [ + _hoisted_2123, + _hoisted_3122 +]; +function _sfc_render123(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock123(), _createElementBlock123("svg", _hoisted_1123, _hoisted_436); +} +var gold_medal_default = /* @__PURE__ */ export_helper_default(gold_medal_vue_vue_type_script_lang_default, [["render", _sfc_render123], ["__file", "gold-medal.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goods-filled.vue?vue&type=script&lang.ts +var goods_filled_vue_vue_type_script_lang_default = { + name: "GoodsFilled" +}; + +// src/components/goods-filled.vue +import { createElementVNode as _createElementVNode123, openBlock as _openBlock124, createElementBlock as _createElementBlock124 } from "vue"; +var _hoisted_1124 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2124 = /* @__PURE__ */ _createElementVNode123( + "path", + { + fill: "currentColor", + d: "M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3123 = [ + _hoisted_2124 +]; +function _sfc_render124(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock124(), _createElementBlock124("svg", _hoisted_1124, _hoisted_3123); +} +var goods_filled_default = /* @__PURE__ */ export_helper_default(goods_filled_vue_vue_type_script_lang_default, [["render", _sfc_render124], ["__file", "goods-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/goods.vue?vue&type=script&lang.ts +var goods_vue_vue_type_script_lang_default = { + name: "Goods" +}; + +// src/components/goods.vue +import { createElementVNode as _createElementVNode124, openBlock as _openBlock125, createElementBlock as _createElementBlock125 } from "vue"; +var _hoisted_1125 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2125 = /* @__PURE__ */ _createElementVNode124( + "path", + { + fill: "currentColor", + d: "M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3124 = [ + _hoisted_2125 +]; +function _sfc_render125(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock125(), _createElementBlock125("svg", _hoisted_1125, _hoisted_3124); +} +var goods_default = /* @__PURE__ */ export_helper_default(goods_vue_vue_type_script_lang_default, [["render", _sfc_render125], ["__file", "goods.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/grape.vue?vue&type=script&lang.ts +var grape_vue_vue_type_script_lang_default = { + name: "Grape" +}; + +// src/components/grape.vue +import { createElementVNode as _createElementVNode125, openBlock as _openBlock126, createElementBlock as _createElementBlock126 } from "vue"; +var _hoisted_1126 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2126 = /* @__PURE__ */ _createElementVNode125( + "path", + { + fill: "currentColor", + d: "M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3125 = [ + _hoisted_2126 +]; +function _sfc_render126(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock126(), _createElementBlock126("svg", _hoisted_1126, _hoisted_3125); +} +var grape_default = /* @__PURE__ */ export_helper_default(grape_vue_vue_type_script_lang_default, [["render", _sfc_render126], ["__file", "grape.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/grid.vue?vue&type=script&lang.ts +var grid_vue_vue_type_script_lang_default = { + name: "Grid" +}; + +// src/components/grid.vue +import { createElementVNode as _createElementVNode126, openBlock as _openBlock127, createElementBlock as _createElementBlock127 } from "vue"; +var _hoisted_1127 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2127 = /* @__PURE__ */ _createElementVNode126( + "path", + { + fill: "currentColor", + d: "M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3126 = [ + _hoisted_2127 +]; +function _sfc_render127(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock127(), _createElementBlock127("svg", _hoisted_1127, _hoisted_3126); +} +var grid_default = /* @__PURE__ */ export_helper_default(grid_vue_vue_type_script_lang_default, [["render", _sfc_render127], ["__file", "grid.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/guide.vue?vue&type=script&lang.ts +var guide_vue_vue_type_script_lang_default = { + name: "Guide" +}; + +// src/components/guide.vue +import { createElementVNode as _createElementVNode127, openBlock as _openBlock128, createElementBlock as _createElementBlock128 } from "vue"; +var _hoisted_1128 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2128 = /* @__PURE__ */ _createElementVNode127( + "path", + { + fill: "currentColor", + d: "M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3127 = /* @__PURE__ */ _createElementVNode127( + "path", + { + fill: "currentColor", + d: "m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_437 = [ + _hoisted_2128, + _hoisted_3127 +]; +function _sfc_render128(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock128(), _createElementBlock128("svg", _hoisted_1128, _hoisted_437); +} +var guide_default = /* @__PURE__ */ export_helper_default(guide_vue_vue_type_script_lang_default, [["render", _sfc_render128], ["__file", "guide.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/handbag.vue?vue&type=script&lang.ts +var handbag_vue_vue_type_script_lang_default = { + name: "Handbag" +}; + +// src/components/handbag.vue +import { createElementVNode as _createElementVNode128, openBlock as _openBlock129, createElementBlock as _createElementBlock129 } from "vue"; +var _hoisted_1129 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2129 = /* @__PURE__ */ _createElementVNode128( + "path", + { + fill: "currentColor", + d: "M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01zM421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5zM832 896H192V320h128v128h64V320h256v128h64V320h128v576z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3128 = [ + _hoisted_2129 +]; +function _sfc_render129(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock129(), _createElementBlock129("svg", _hoisted_1129, _hoisted_3128); +} +var handbag_default = /* @__PURE__ */ export_helper_default(handbag_vue_vue_type_script_lang_default, [["render", _sfc_render129], ["__file", "handbag.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/headset.vue?vue&type=script&lang.ts +var headset_vue_vue_type_script_lang_default = { + name: "Headset" +}; + +// src/components/headset.vue +import { createElementVNode as _createElementVNode129, openBlock as _openBlock130, createElementBlock as _createElementBlock130 } from "vue"; +var _hoisted_1130 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2130 = /* @__PURE__ */ _createElementVNode129( + "path", + { + fill: "currentColor", + d: "M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3129 = [ + _hoisted_2130 +]; +function _sfc_render130(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock130(), _createElementBlock130("svg", _hoisted_1130, _hoisted_3129); +} +var headset_default = /* @__PURE__ */ export_helper_default(headset_vue_vue_type_script_lang_default, [["render", _sfc_render130], ["__file", "headset.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/help-filled.vue?vue&type=script&lang.ts +var help_filled_vue_vue_type_script_lang_default = { + name: "HelpFilled" +}; + +// src/components/help-filled.vue +import { createElementVNode as _createElementVNode130, openBlock as _openBlock131, createElementBlock as _createElementBlock131 } from "vue"; +var _hoisted_1131 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2131 = /* @__PURE__ */ _createElementVNode130( + "path", + { + fill: "currentColor", + d: "M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3130 = [ + _hoisted_2131 +]; +function _sfc_render131(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock131(), _createElementBlock131("svg", _hoisted_1131, _hoisted_3130); +} +var help_filled_default = /* @__PURE__ */ export_helper_default(help_filled_vue_vue_type_script_lang_default, [["render", _sfc_render131], ["__file", "help-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/help.vue?vue&type=script&lang.ts +var help_vue_vue_type_script_lang_default = { + name: "Help" +}; + +// src/components/help.vue +import { createElementVNode as _createElementVNode131, openBlock as _openBlock132, createElementBlock as _createElementBlock132 } from "vue"; +var _hoisted_1132 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2132 = /* @__PURE__ */ _createElementVNode131( + "path", + { + fill: "currentColor", + d: "m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3131 = [ + _hoisted_2132 +]; +function _sfc_render132(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock132(), _createElementBlock132("svg", _hoisted_1132, _hoisted_3131); +} +var help_default = /* @__PURE__ */ export_helper_default(help_vue_vue_type_script_lang_default, [["render", _sfc_render132], ["__file", "help.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/hide.vue?vue&type=script&lang.ts +var hide_vue_vue_type_script_lang_default = { + name: "Hide" +}; + +// src/components/hide.vue +import { createElementVNode as _createElementVNode132, openBlock as _openBlock133, createElementBlock as _createElementBlock133 } from "vue"; +var _hoisted_1133 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2133 = /* @__PURE__ */ _createElementVNode132( + "path", + { + fill: "currentColor", + d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3132 = /* @__PURE__ */ _createElementVNode132( + "path", + { + fill: "currentColor", + d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_438 = [ + _hoisted_2133, + _hoisted_3132 +]; +function _sfc_render133(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock133(), _createElementBlock133("svg", _hoisted_1133, _hoisted_438); +} +var hide_default = /* @__PURE__ */ export_helper_default(hide_vue_vue_type_script_lang_default, [["render", _sfc_render133], ["__file", "hide.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/histogram.vue?vue&type=script&lang.ts +var histogram_vue_vue_type_script_lang_default = { + name: "Histogram" +}; + +// src/components/histogram.vue +import { createElementVNode as _createElementVNode133, openBlock as _openBlock134, createElementBlock as _createElementBlock134 } from "vue"; +var _hoisted_1134 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2134 = /* @__PURE__ */ _createElementVNode133( + "path", + { + fill: "currentColor", + d: "M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3133 = [ + _hoisted_2134 +]; +function _sfc_render134(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock134(), _createElementBlock134("svg", _hoisted_1134, _hoisted_3133); +} +var histogram_default = /* @__PURE__ */ export_helper_default(histogram_vue_vue_type_script_lang_default, [["render", _sfc_render134], ["__file", "histogram.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/home-filled.vue?vue&type=script&lang.ts +var home_filled_vue_vue_type_script_lang_default = { + name: "HomeFilled" +}; + +// src/components/home-filled.vue +import { createElementVNode as _createElementVNode134, openBlock as _openBlock135, createElementBlock as _createElementBlock135 } from "vue"; +var _hoisted_1135 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2135 = /* @__PURE__ */ _createElementVNode134( + "path", + { + fill: "currentColor", + d: "M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3134 = [ + _hoisted_2135 +]; +function _sfc_render135(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock135(), _createElementBlock135("svg", _hoisted_1135, _hoisted_3134); +} +var home_filled_default = /* @__PURE__ */ export_helper_default(home_filled_vue_vue_type_script_lang_default, [["render", _sfc_render135], ["__file", "home-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/hot-water.vue?vue&type=script&lang.ts +var hot_water_vue_vue_type_script_lang_default = { + name: "HotWater" +}; + +// src/components/hot-water.vue +import { createElementVNode as _createElementVNode135, openBlock as _openBlock136, createElementBlock as _createElementBlock136 } from "vue"; +var _hoisted_1136 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2136 = /* @__PURE__ */ _createElementVNode135( + "path", + { + fill: "currentColor", + d: "M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3135 = [ + _hoisted_2136 +]; +function _sfc_render136(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock136(), _createElementBlock136("svg", _hoisted_1136, _hoisted_3135); +} +var hot_water_default = /* @__PURE__ */ export_helper_default(hot_water_vue_vue_type_script_lang_default, [["render", _sfc_render136], ["__file", "hot-water.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/house.vue?vue&type=script&lang.ts +var house_vue_vue_type_script_lang_default = { + name: "House" +}; + +// src/components/house.vue +import { createElementVNode as _createElementVNode136, openBlock as _openBlock137, createElementBlock as _createElementBlock137 } from "vue"; +var _hoisted_1137 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2137 = /* @__PURE__ */ _createElementVNode136( + "path", + { + fill: "currentColor", + d: "M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3136 = [ + _hoisted_2137 +]; +function _sfc_render137(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock137(), _createElementBlock137("svg", _hoisted_1137, _hoisted_3136); +} +var house_default = /* @__PURE__ */ export_helper_default(house_vue_vue_type_script_lang_default, [["render", _sfc_render137], ["__file", "house.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream-round.vue?vue&type=script&lang.ts +var ice_cream_round_vue_vue_type_script_lang_default = { + name: "IceCreamRound" +}; + +// src/components/ice-cream-round.vue +import { createElementVNode as _createElementVNode137, openBlock as _openBlock138, createElementBlock as _createElementBlock138 } from "vue"; +var _hoisted_1138 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2138 = /* @__PURE__ */ _createElementVNode137( + "path", + { + fill: "currentColor", + d: "m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3137 = [ + _hoisted_2138 +]; +function _sfc_render138(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock138(), _createElementBlock138("svg", _hoisted_1138, _hoisted_3137); +} +var ice_cream_round_default = /* @__PURE__ */ export_helper_default(ice_cream_round_vue_vue_type_script_lang_default, [["render", _sfc_render138], ["__file", "ice-cream-round.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream-square.vue?vue&type=script&lang.ts +var ice_cream_square_vue_vue_type_script_lang_default = { + name: "IceCreamSquare" +}; + +// src/components/ice-cream-square.vue +import { createElementVNode as _createElementVNode138, openBlock as _openBlock139, createElementBlock as _createElementBlock139 } from "vue"; +var _hoisted_1139 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2139 = /* @__PURE__ */ _createElementVNode138( + "path", + { + fill: "currentColor", + d: "M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3138 = [ + _hoisted_2139 +]; +function _sfc_render139(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock139(), _createElementBlock139("svg", _hoisted_1139, _hoisted_3138); +} +var ice_cream_square_default = /* @__PURE__ */ export_helper_default(ice_cream_square_vue_vue_type_script_lang_default, [["render", _sfc_render139], ["__file", "ice-cream-square.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-cream.vue?vue&type=script&lang.ts +var ice_cream_vue_vue_type_script_lang_default = { + name: "IceCream" +}; + +// src/components/ice-cream.vue +import { createElementVNode as _createElementVNode139, openBlock as _openBlock140, createElementBlock as _createElementBlock140 } from "vue"; +var _hoisted_1140 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2140 = /* @__PURE__ */ _createElementVNode139( + "path", + { + fill: "currentColor", + d: "M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3139 = [ + _hoisted_2140 +]; +function _sfc_render140(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock140(), _createElementBlock140("svg", _hoisted_1140, _hoisted_3139); +} +var ice_cream_default = /* @__PURE__ */ export_helper_default(ice_cream_vue_vue_type_script_lang_default, [["render", _sfc_render140], ["__file", "ice-cream.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-drink.vue?vue&type=script&lang.ts +var ice_drink_vue_vue_type_script_lang_default = { + name: "IceDrink" +}; + +// src/components/ice-drink.vue +import { createElementVNode as _createElementVNode140, openBlock as _openBlock141, createElementBlock as _createElementBlock141 } from "vue"; +var _hoisted_1141 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2141 = /* @__PURE__ */ _createElementVNode140( + "path", + { + fill: "currentColor", + d: "M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3140 = [ + _hoisted_2141 +]; +function _sfc_render141(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock141(), _createElementBlock141("svg", _hoisted_1141, _hoisted_3140); +} +var ice_drink_default = /* @__PURE__ */ export_helper_default(ice_drink_vue_vue_type_script_lang_default, [["render", _sfc_render141], ["__file", "ice-drink.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ice-tea.vue?vue&type=script&lang.ts +var ice_tea_vue_vue_type_script_lang_default = { + name: "IceTea" +}; + +// src/components/ice-tea.vue +import { createElementVNode as _createElementVNode141, openBlock as _openBlock142, createElementBlock as _createElementBlock142 } from "vue"; +var _hoisted_1142 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2142 = /* @__PURE__ */ _createElementVNode141( + "path", + { + fill: "currentColor", + d: "M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3141 = [ + _hoisted_2142 +]; +function _sfc_render142(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock142(), _createElementBlock142("svg", _hoisted_1142, _hoisted_3141); +} +var ice_tea_default = /* @__PURE__ */ export_helper_default(ice_tea_vue_vue_type_script_lang_default, [["render", _sfc_render142], ["__file", "ice-tea.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/info-filled.vue?vue&type=script&lang.ts +var info_filled_vue_vue_type_script_lang_default = { + name: "InfoFilled" +}; + +// src/components/info-filled.vue +import { createElementVNode as _createElementVNode142, openBlock as _openBlock143, createElementBlock as _createElementBlock143 } from "vue"; +var _hoisted_1143 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2143 = /* @__PURE__ */ _createElementVNode142( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3142 = [ + _hoisted_2143 +]; +function _sfc_render143(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock143(), _createElementBlock143("svg", _hoisted_1143, _hoisted_3142); +} +var info_filled_default = /* @__PURE__ */ export_helper_default(info_filled_vue_vue_type_script_lang_default, [["render", _sfc_render143], ["__file", "info-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/iphone.vue?vue&type=script&lang.ts +var iphone_vue_vue_type_script_lang_default = { + name: "Iphone" +}; + +// src/components/iphone.vue +import { createElementVNode as _createElementVNode143, openBlock as _openBlock144, createElementBlock as _createElementBlock144 } from "vue"; +var _hoisted_1144 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2144 = /* @__PURE__ */ _createElementVNode143( + "path", + { + fill: "currentColor", + d: "M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3143 = [ + _hoisted_2144 +]; +function _sfc_render144(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock144(), _createElementBlock144("svg", _hoisted_1144, _hoisted_3143); +} +var iphone_default = /* @__PURE__ */ export_helper_default(iphone_vue_vue_type_script_lang_default, [["render", _sfc_render144], ["__file", "iphone.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/key.vue?vue&type=script&lang.ts +var key_vue_vue_type_script_lang_default = { + name: "Key" +}; + +// src/components/key.vue +import { createElementVNode as _createElementVNode144, openBlock as _openBlock145, createElementBlock as _createElementBlock145 } from "vue"; +var _hoisted_1145 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2145 = /* @__PURE__ */ _createElementVNode144( + "path", + { + fill: "currentColor", + d: "M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3144 = [ + _hoisted_2145 +]; +function _sfc_render145(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock145(), _createElementBlock145("svg", _hoisted_1145, _hoisted_3144); +} +var key_default = /* @__PURE__ */ export_helper_default(key_vue_vue_type_script_lang_default, [["render", _sfc_render145], ["__file", "key.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/knife-fork.vue?vue&type=script&lang.ts +var knife_fork_vue_vue_type_script_lang_default = { + name: "KnifeFork" +}; + +// src/components/knife-fork.vue +import { createElementVNode as _createElementVNode145, openBlock as _openBlock146, createElementBlock as _createElementBlock146 } from "vue"; +var _hoisted_1146 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2146 = /* @__PURE__ */ _createElementVNode145( + "path", + { + fill: "currentColor", + d: "M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3145 = [ + _hoisted_2146 +]; +function _sfc_render146(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock146(), _createElementBlock146("svg", _hoisted_1146, _hoisted_3145); +} +var knife_fork_default = /* @__PURE__ */ export_helper_default(knife_fork_vue_vue_type_script_lang_default, [["render", _sfc_render146], ["__file", "knife-fork.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lightning.vue?vue&type=script&lang.ts +var lightning_vue_vue_type_script_lang_default = { + name: "Lightning" +}; + +// src/components/lightning.vue +import { createElementVNode as _createElementVNode146, openBlock as _openBlock147, createElementBlock as _createElementBlock147 } from "vue"; +var _hoisted_1147 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2147 = /* @__PURE__ */ _createElementVNode146( + "path", + { + fill: "currentColor", + d: "M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3146 = /* @__PURE__ */ _createElementVNode146( + "path", + { + fill: "currentColor", + d: "M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_439 = [ + _hoisted_2147, + _hoisted_3146 +]; +function _sfc_render147(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock147(), _createElementBlock147("svg", _hoisted_1147, _hoisted_439); +} +var lightning_default = /* @__PURE__ */ export_helper_default(lightning_vue_vue_type_script_lang_default, [["render", _sfc_render147], ["__file", "lightning.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/link.vue?vue&type=script&lang.ts +var link_vue_vue_type_script_lang_default = { + name: "Link" +}; + +// src/components/link.vue +import { createElementVNode as _createElementVNode147, openBlock as _openBlock148, createElementBlock as _createElementBlock148 } from "vue"; +var _hoisted_1148 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2148 = /* @__PURE__ */ _createElementVNode147( + "path", + { + fill: "currentColor", + d: "M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3147 = [ + _hoisted_2148 +]; +function _sfc_render148(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock148(), _createElementBlock148("svg", _hoisted_1148, _hoisted_3147); +} +var link_default = /* @__PURE__ */ export_helper_default(link_vue_vue_type_script_lang_default, [["render", _sfc_render148], ["__file", "link.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/list.vue?vue&type=script&lang.ts +var list_vue_vue_type_script_lang_default = { + name: "List" +}; + +// src/components/list.vue +import { createElementVNode as _createElementVNode148, openBlock as _openBlock149, createElementBlock as _createElementBlock149 } from "vue"; +var _hoisted_1149 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2149 = /* @__PURE__ */ _createElementVNode148( + "path", + { + fill: "currentColor", + d: "M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3148 = [ + _hoisted_2149 +]; +function _sfc_render149(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock149(), _createElementBlock149("svg", _hoisted_1149, _hoisted_3148); +} +var list_default = /* @__PURE__ */ export_helper_default(list_vue_vue_type_script_lang_default, [["render", _sfc_render149], ["__file", "list.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/loading.vue?vue&type=script&lang.ts +var loading_vue_vue_type_script_lang_default = { + name: "Loading" +}; + +// src/components/loading.vue +import { createElementVNode as _createElementVNode149, openBlock as _openBlock150, createElementBlock as _createElementBlock150 } from "vue"; +var _hoisted_1150 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2150 = /* @__PURE__ */ _createElementVNode149( + "path", + { + fill: "currentColor", + d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3149 = [ + _hoisted_2150 +]; +function _sfc_render150(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock150(), _createElementBlock150("svg", _hoisted_1150, _hoisted_3149); +} +var loading_default = /* @__PURE__ */ export_helper_default(loading_vue_vue_type_script_lang_default, [["render", _sfc_render150], ["__file", "loading.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location-filled.vue?vue&type=script&lang.ts +var location_filled_vue_vue_type_script_lang_default = { + name: "LocationFilled" +}; + +// src/components/location-filled.vue +import { createElementVNode as _createElementVNode150, openBlock as _openBlock151, createElementBlock as _createElementBlock151 } from "vue"; +var _hoisted_1151 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2151 = /* @__PURE__ */ _createElementVNode150( + "path", + { + fill: "currentColor", + d: "M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3150 = [ + _hoisted_2151 +]; +function _sfc_render151(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock151(), _createElementBlock151("svg", _hoisted_1151, _hoisted_3150); +} +var location_filled_default = /* @__PURE__ */ export_helper_default(location_filled_vue_vue_type_script_lang_default, [["render", _sfc_render151], ["__file", "location-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location-information.vue?vue&type=script&lang.ts +var location_information_vue_vue_type_script_lang_default = { + name: "LocationInformation" +}; + +// src/components/location-information.vue +import { createElementVNode as _createElementVNode151, openBlock as _openBlock152, createElementBlock as _createElementBlock152 } from "vue"; +var _hoisted_1152 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2152 = /* @__PURE__ */ _createElementVNode151( + "path", + { + fill: "currentColor", + d: "M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3151 = /* @__PURE__ */ _createElementVNode151( + "path", + { + fill: "currentColor", + d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_440 = /* @__PURE__ */ _createElementVNode151( + "path", + { + fill: "currentColor", + d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_511 = [ + _hoisted_2152, + _hoisted_3151, + _hoisted_440 +]; +function _sfc_render152(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock152(), _createElementBlock152("svg", _hoisted_1152, _hoisted_511); +} +var location_information_default = /* @__PURE__ */ export_helper_default(location_information_vue_vue_type_script_lang_default, [["render", _sfc_render152], ["__file", "location-information.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/location.vue?vue&type=script&lang.ts +var location_vue_vue_type_script_lang_default = { + name: "Location" +}; + +// src/components/location.vue +import { createElementVNode as _createElementVNode152, openBlock as _openBlock153, createElementBlock as _createElementBlock153 } from "vue"; +var _hoisted_1153 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2153 = /* @__PURE__ */ _createElementVNode152( + "path", + { + fill: "currentColor", + d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3152 = /* @__PURE__ */ _createElementVNode152( + "path", + { + fill: "currentColor", + d: "M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_441 = [ + _hoisted_2153, + _hoisted_3152 +]; +function _sfc_render153(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock153(), _createElementBlock153("svg", _hoisted_1153, _hoisted_441); +} +var location_default = /* @__PURE__ */ export_helper_default(location_vue_vue_type_script_lang_default, [["render", _sfc_render153], ["__file", "location.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lock.vue?vue&type=script&lang.ts +var lock_vue_vue_type_script_lang_default = { + name: "Lock" +}; + +// src/components/lock.vue +import { createElementVNode as _createElementVNode153, openBlock as _openBlock154, createElementBlock as _createElementBlock154 } from "vue"; +var _hoisted_1154 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2154 = /* @__PURE__ */ _createElementVNode153( + "path", + { + fill: "currentColor", + d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3153 = /* @__PURE__ */ _createElementVNode153( + "path", + { + fill: "currentColor", + d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_442 = [ + _hoisted_2154, + _hoisted_3153 +]; +function _sfc_render154(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock154(), _createElementBlock154("svg", _hoisted_1154, _hoisted_442); +} +var lock_default = /* @__PURE__ */ export_helper_default(lock_vue_vue_type_script_lang_default, [["render", _sfc_render154], ["__file", "lock.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/lollipop.vue?vue&type=script&lang.ts +var lollipop_vue_vue_type_script_lang_default = { + name: "Lollipop" +}; + +// src/components/lollipop.vue +import { createElementVNode as _createElementVNode154, openBlock as _openBlock155, createElementBlock as _createElementBlock155 } from "vue"; +var _hoisted_1155 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2155 = /* @__PURE__ */ _createElementVNode154( + "path", + { + fill: "currentColor", + d: "M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3154 = [ + _hoisted_2155 +]; +function _sfc_render155(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock155(), _createElementBlock155("svg", _hoisted_1155, _hoisted_3154); +} +var lollipop_default = /* @__PURE__ */ export_helper_default(lollipop_vue_vue_type_script_lang_default, [["render", _sfc_render155], ["__file", "lollipop.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/magic-stick.vue?vue&type=script&lang.ts +var magic_stick_vue_vue_type_script_lang_default = { + name: "MagicStick" +}; + +// src/components/magic-stick.vue +import { createElementVNode as _createElementVNode155, openBlock as _openBlock156, createElementBlock as _createElementBlock156 } from "vue"; +var _hoisted_1156 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2156 = /* @__PURE__ */ _createElementVNode155( + "path", + { + fill: "currentColor", + d: "M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3155 = [ + _hoisted_2156 +]; +function _sfc_render156(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock156(), _createElementBlock156("svg", _hoisted_1156, _hoisted_3155); +} +var magic_stick_default = /* @__PURE__ */ export_helper_default(magic_stick_vue_vue_type_script_lang_default, [["render", _sfc_render156], ["__file", "magic-stick.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/magnet.vue?vue&type=script&lang.ts +var magnet_vue_vue_type_script_lang_default = { + name: "Magnet" +}; + +// src/components/magnet.vue +import { createElementVNode as _createElementVNode156, openBlock as _openBlock157, createElementBlock as _createElementBlock157 } from "vue"; +var _hoisted_1157 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2157 = /* @__PURE__ */ _createElementVNode156( + "path", + { + fill: "currentColor", + d: "M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3156 = [ + _hoisted_2157 +]; +function _sfc_render157(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock157(), _createElementBlock157("svg", _hoisted_1157, _hoisted_3156); +} +var magnet_default = /* @__PURE__ */ export_helper_default(magnet_vue_vue_type_script_lang_default, [["render", _sfc_render157], ["__file", "magnet.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/male.vue?vue&type=script&lang.ts +var male_vue_vue_type_script_lang_default = { + name: "Male" +}; + +// src/components/male.vue +import { createElementVNode as _createElementVNode157, openBlock as _openBlock158, createElementBlock as _createElementBlock158 } from "vue"; +var _hoisted_1158 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2158 = /* @__PURE__ */ _createElementVNode157( + "path", + { + fill: "currentColor", + d: "M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3157 = /* @__PURE__ */ _createElementVNode157( + "path", + { + fill: "currentColor", + d: "M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_443 = /* @__PURE__ */ _createElementVNode157( + "path", + { + fill: "currentColor", + d: "M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_512 = [ + _hoisted_2158, + _hoisted_3157, + _hoisted_443 +]; +function _sfc_render158(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock158(), _createElementBlock158("svg", _hoisted_1158, _hoisted_512); +} +var male_default = /* @__PURE__ */ export_helper_default(male_vue_vue_type_script_lang_default, [["render", _sfc_render158], ["__file", "male.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/management.vue?vue&type=script&lang.ts +var management_vue_vue_type_script_lang_default = { + name: "Management" +}; + +// src/components/management.vue +import { createElementVNode as _createElementVNode158, openBlock as _openBlock159, createElementBlock as _createElementBlock159 } from "vue"; +var _hoisted_1159 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2159 = /* @__PURE__ */ _createElementVNode158( + "path", + { + fill: "currentColor", + d: "M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3158 = [ + _hoisted_2159 +]; +function _sfc_render159(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock159(), _createElementBlock159("svg", _hoisted_1159, _hoisted_3158); +} +var management_default = /* @__PURE__ */ export_helper_default(management_vue_vue_type_script_lang_default, [["render", _sfc_render159], ["__file", "management.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/map-location.vue?vue&type=script&lang.ts +var map_location_vue_vue_type_script_lang_default = { + name: "MapLocation" +}; + +// src/components/map-location.vue +import { createElementVNode as _createElementVNode159, openBlock as _openBlock160, createElementBlock as _createElementBlock160 } from "vue"; +var _hoisted_1160 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2160 = /* @__PURE__ */ _createElementVNode159( + "path", + { + fill: "currentColor", + d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3159 = /* @__PURE__ */ _createElementVNode159( + "path", + { + fill: "currentColor", + d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_444 = [ + _hoisted_2160, + _hoisted_3159 +]; +function _sfc_render160(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock160(), _createElementBlock160("svg", _hoisted_1160, _hoisted_444); +} +var map_location_default = /* @__PURE__ */ export_helper_default(map_location_vue_vue_type_script_lang_default, [["render", _sfc_render160], ["__file", "map-location.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/medal.vue?vue&type=script&lang.ts +var medal_vue_vue_type_script_lang_default = { + name: "Medal" +}; + +// src/components/medal.vue +import { createElementVNode as _createElementVNode160, openBlock as _openBlock161, createElementBlock as _createElementBlock161 } from "vue"; +var _hoisted_1161 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2161 = /* @__PURE__ */ _createElementVNode160( + "path", + { + fill: "currentColor", + d: "M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3160 = /* @__PURE__ */ _createElementVNode160( + "path", + { + fill: "currentColor", + d: "M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_445 = [ + _hoisted_2161, + _hoisted_3160 +]; +function _sfc_render161(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock161(), _createElementBlock161("svg", _hoisted_1161, _hoisted_445); +} +var medal_default = /* @__PURE__ */ export_helper_default(medal_vue_vue_type_script_lang_default, [["render", _sfc_render161], ["__file", "medal.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/memo.vue?vue&type=script&lang.ts +var memo_vue_vue_type_script_lang_default = { + name: "Memo" +}; + +// src/components/memo.vue +import { createElementVNode as _createElementVNode161, openBlock as _openBlock162, createElementBlock as _createElementBlock162 } from "vue"; +var _hoisted_1162 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2162 = /* @__PURE__ */ _createElementVNode161( + "path", + { + fill: "currentColor", + d: "M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3161 = /* @__PURE__ */ _createElementVNode161( + "path", + { + fill: "currentColor", + d: "M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01zM192 896V128h96v768h-96zm640 0H352V128h480v768z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_446 = /* @__PURE__ */ _createElementVNode161( + "path", + { + fill: "currentColor", + d: "M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32zm0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_513 = [ + _hoisted_2162, + _hoisted_3161, + _hoisted_446 +]; +function _sfc_render162(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock162(), _createElementBlock162("svg", _hoisted_1162, _hoisted_513); +} +var memo_default = /* @__PURE__ */ export_helper_default(memo_vue_vue_type_script_lang_default, [["render", _sfc_render162], ["__file", "memo.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/menu.vue?vue&type=script&lang.ts +var menu_vue_vue_type_script_lang_default = { + name: "Menu" +}; + +// src/components/menu.vue +import { createElementVNode as _createElementVNode162, openBlock as _openBlock163, createElementBlock as _createElementBlock163 } from "vue"; +var _hoisted_1163 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2163 = /* @__PURE__ */ _createElementVNode162( + "path", + { + fill: "currentColor", + d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3162 = [ + _hoisted_2163 +]; +function _sfc_render163(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock163(), _createElementBlock163("svg", _hoisted_1163, _hoisted_3162); +} +var menu_default = /* @__PURE__ */ export_helper_default(menu_vue_vue_type_script_lang_default, [["render", _sfc_render163], ["__file", "menu.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/message-box.vue?vue&type=script&lang.ts +var message_box_vue_vue_type_script_lang_default = { + name: "MessageBox" +}; + +// src/components/message-box.vue +import { createElementVNode as _createElementVNode163, openBlock as _openBlock164, createElementBlock as _createElementBlock164 } from "vue"; +var _hoisted_1164 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2164 = /* @__PURE__ */ _createElementVNode163( + "path", + { + fill: "currentColor", + d: "M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3163 = [ + _hoisted_2164 +]; +function _sfc_render164(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock164(), _createElementBlock164("svg", _hoisted_1164, _hoisted_3163); +} +var message_box_default = /* @__PURE__ */ export_helper_default(message_box_vue_vue_type_script_lang_default, [["render", _sfc_render164], ["__file", "message-box.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/message.vue?vue&type=script&lang.ts +var message_vue_vue_type_script_lang_default = { + name: "Message" +}; + +// src/components/message.vue +import { createElementVNode as _createElementVNode164, openBlock as _openBlock165, createElementBlock as _createElementBlock165 } from "vue"; +var _hoisted_1165 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2165 = /* @__PURE__ */ _createElementVNode164( + "path", + { + fill: "currentColor", + d: "M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3164 = /* @__PURE__ */ _createElementVNode164( + "path", + { + fill: "currentColor", + d: "M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_447 = [ + _hoisted_2165, + _hoisted_3164 +]; +function _sfc_render165(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock165(), _createElementBlock165("svg", _hoisted_1165, _hoisted_447); +} +var message_default = /* @__PURE__ */ export_helper_default(message_vue_vue_type_script_lang_default, [["render", _sfc_render165], ["__file", "message.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mic.vue?vue&type=script&lang.ts +var mic_vue_vue_type_script_lang_default = { + name: "Mic" +}; + +// src/components/mic.vue +import { createElementVNode as _createElementVNode165, openBlock as _openBlock166, createElementBlock as _createElementBlock166 } from "vue"; +var _hoisted_1166 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2166 = /* @__PURE__ */ _createElementVNode165( + "path", + { + fill: "currentColor", + d: "M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3165 = [ + _hoisted_2166 +]; +function _sfc_render166(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock166(), _createElementBlock166("svg", _hoisted_1166, _hoisted_3165); +} +var mic_default = /* @__PURE__ */ export_helper_default(mic_vue_vue_type_script_lang_default, [["render", _sfc_render166], ["__file", "mic.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/microphone.vue?vue&type=script&lang.ts +var microphone_vue_vue_type_script_lang_default = { + name: "Microphone" +}; + +// src/components/microphone.vue +import { createElementVNode as _createElementVNode166, openBlock as _openBlock167, createElementBlock as _createElementBlock167 } from "vue"; +var _hoisted_1167 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2167 = /* @__PURE__ */ _createElementVNode166( + "path", + { + fill: "currentColor", + d: "M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3166 = [ + _hoisted_2167 +]; +function _sfc_render167(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock167(), _createElementBlock167("svg", _hoisted_1167, _hoisted_3166); +} +var microphone_default = /* @__PURE__ */ export_helper_default(microphone_vue_vue_type_script_lang_default, [["render", _sfc_render167], ["__file", "microphone.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/milk-tea.vue?vue&type=script&lang.ts +var milk_tea_vue_vue_type_script_lang_default = { + name: "MilkTea" +}; + +// src/components/milk-tea.vue +import { createElementVNode as _createElementVNode167, openBlock as _openBlock168, createElementBlock as _createElementBlock168 } from "vue"; +var _hoisted_1168 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2168 = /* @__PURE__ */ _createElementVNode167( + "path", + { + fill: "currentColor", + d: "M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3167 = [ + _hoisted_2168 +]; +function _sfc_render168(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock168(), _createElementBlock168("svg", _hoisted_1168, _hoisted_3167); +} +var milk_tea_default = /* @__PURE__ */ export_helper_default(milk_tea_vue_vue_type_script_lang_default, [["render", _sfc_render168], ["__file", "milk-tea.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/minus.vue?vue&type=script&lang.ts +var minus_vue_vue_type_script_lang_default = { + name: "Minus" +}; + +// src/components/minus.vue +import { createElementVNode as _createElementVNode168, openBlock as _openBlock169, createElementBlock as _createElementBlock169 } from "vue"; +var _hoisted_1169 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2169 = /* @__PURE__ */ _createElementVNode168( + "path", + { + fill: "currentColor", + d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3168 = [ + _hoisted_2169 +]; +function _sfc_render169(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock169(), _createElementBlock169("svg", _hoisted_1169, _hoisted_3168); +} +var minus_default = /* @__PURE__ */ export_helper_default(minus_vue_vue_type_script_lang_default, [["render", _sfc_render169], ["__file", "minus.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/money.vue?vue&type=script&lang.ts +var money_vue_vue_type_script_lang_default = { + name: "Money" +}; + +// src/components/money.vue +import { createElementVNode as _createElementVNode169, openBlock as _openBlock170, createElementBlock as _createElementBlock170 } from "vue"; +var _hoisted_1170 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2170 = /* @__PURE__ */ _createElementVNode169( + "path", + { + fill: "currentColor", + d: "M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3169 = /* @__PURE__ */ _createElementVNode169( + "path", + { + fill: "currentColor", + d: "M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_448 = /* @__PURE__ */ _createElementVNode169( + "path", + { + fill: "currentColor", + d: "M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_514 = [ + _hoisted_2170, + _hoisted_3169, + _hoisted_448 +]; +function _sfc_render170(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock170(), _createElementBlock170("svg", _hoisted_1170, _hoisted_514); +} +var money_default = /* @__PURE__ */ export_helper_default(money_vue_vue_type_script_lang_default, [["render", _sfc_render170], ["__file", "money.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/monitor.vue?vue&type=script&lang.ts +var monitor_vue_vue_type_script_lang_default = { + name: "Monitor" +}; + +// src/components/monitor.vue +import { createElementVNode as _createElementVNode170, openBlock as _openBlock171, createElementBlock as _createElementBlock171 } from "vue"; +var _hoisted_1171 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2171 = /* @__PURE__ */ _createElementVNode170( + "path", + { + fill: "currentColor", + d: "M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3170 = [ + _hoisted_2171 +]; +function _sfc_render171(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock171(), _createElementBlock171("svg", _hoisted_1171, _hoisted_3170); +} +var monitor_default = /* @__PURE__ */ export_helper_default(monitor_vue_vue_type_script_lang_default, [["render", _sfc_render171], ["__file", "monitor.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/moon-night.vue?vue&type=script&lang.ts +var moon_night_vue_vue_type_script_lang_default = { + name: "MoonNight" +}; + +// src/components/moon-night.vue +import { createElementVNode as _createElementVNode171, openBlock as _openBlock172, createElementBlock as _createElementBlock172 } from "vue"; +var _hoisted_1172 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2172 = /* @__PURE__ */ _createElementVNode171( + "path", + { + fill: "currentColor", + d: "M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3171 = /* @__PURE__ */ _createElementVNode171( + "path", + { + fill: "currentColor", + d: "M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_449 = [ + _hoisted_2172, + _hoisted_3171 +]; +function _sfc_render172(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock172(), _createElementBlock172("svg", _hoisted_1172, _hoisted_449); +} +var moon_night_default = /* @__PURE__ */ export_helper_default(moon_night_vue_vue_type_script_lang_default, [["render", _sfc_render172], ["__file", "moon-night.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/moon.vue?vue&type=script&lang.ts +var moon_vue_vue_type_script_lang_default = { + name: "Moon" +}; + +// src/components/moon.vue +import { createElementVNode as _createElementVNode172, openBlock as _openBlock173, createElementBlock as _createElementBlock173 } from "vue"; +var _hoisted_1173 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2173 = /* @__PURE__ */ _createElementVNode172( + "path", + { + fill: "currentColor", + d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3172 = [ + _hoisted_2173 +]; +function _sfc_render173(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock173(), _createElementBlock173("svg", _hoisted_1173, _hoisted_3172); +} +var moon_default = /* @__PURE__ */ export_helper_default(moon_vue_vue_type_script_lang_default, [["render", _sfc_render173], ["__file", "moon.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/more-filled.vue?vue&type=script&lang.ts +var more_filled_vue_vue_type_script_lang_default = { + name: "MoreFilled" +}; + +// src/components/more-filled.vue +import { createElementVNode as _createElementVNode173, openBlock as _openBlock174, createElementBlock as _createElementBlock174 } from "vue"; +var _hoisted_1174 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2174 = /* @__PURE__ */ _createElementVNode173( + "path", + { + fill: "currentColor", + d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3173 = [ + _hoisted_2174 +]; +function _sfc_render174(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock174(), _createElementBlock174("svg", _hoisted_1174, _hoisted_3173); +} +var more_filled_default = /* @__PURE__ */ export_helper_default(more_filled_vue_vue_type_script_lang_default, [["render", _sfc_render174], ["__file", "more-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/more.vue?vue&type=script&lang.ts +var more_vue_vue_type_script_lang_default = { + name: "More" +}; + +// src/components/more.vue +import { createElementVNode as _createElementVNode174, openBlock as _openBlock175, createElementBlock as _createElementBlock175 } from "vue"; +var _hoisted_1175 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2175 = /* @__PURE__ */ _createElementVNode174( + "path", + { + fill: "currentColor", + d: "M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3174 = [ + _hoisted_2175 +]; +function _sfc_render175(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock175(), _createElementBlock175("svg", _hoisted_1175, _hoisted_3174); +} +var more_default = /* @__PURE__ */ export_helper_default(more_vue_vue_type_script_lang_default, [["render", _sfc_render175], ["__file", "more.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mostly-cloudy.vue?vue&type=script&lang.ts +var mostly_cloudy_vue_vue_type_script_lang_default = { + name: "MostlyCloudy" +}; + +// src/components/mostly-cloudy.vue +import { createElementVNode as _createElementVNode175, openBlock as _openBlock176, createElementBlock as _createElementBlock176 } from "vue"; +var _hoisted_1176 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2176 = /* @__PURE__ */ _createElementVNode175( + "path", + { + fill: "currentColor", + d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3175 = [ + _hoisted_2176 +]; +function _sfc_render176(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock176(), _createElementBlock176("svg", _hoisted_1176, _hoisted_3175); +} +var mostly_cloudy_default = /* @__PURE__ */ export_helper_default(mostly_cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render176], ["__file", "mostly-cloudy.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mouse.vue?vue&type=script&lang.ts +var mouse_vue_vue_type_script_lang_default = { + name: "Mouse" +}; + +// src/components/mouse.vue +import { createElementVNode as _createElementVNode176, openBlock as _openBlock177, createElementBlock as _createElementBlock177 } from "vue"; +var _hoisted_1177 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2177 = /* @__PURE__ */ _createElementVNode176( + "path", + { + fill: "currentColor", + d: "M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3176 = /* @__PURE__ */ _createElementVNode176( + "path", + { + fill: "currentColor", + d: "M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_450 = [ + _hoisted_2177, + _hoisted_3176 +]; +function _sfc_render177(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock177(), _createElementBlock177("svg", _hoisted_1177, _hoisted_450); +} +var mouse_default = /* @__PURE__ */ export_helper_default(mouse_vue_vue_type_script_lang_default, [["render", _sfc_render177], ["__file", "mouse.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mug.vue?vue&type=script&lang.ts +var mug_vue_vue_type_script_lang_default = { + name: "Mug" +}; + +// src/components/mug.vue +import { createElementVNode as _createElementVNode177, openBlock as _openBlock178, createElementBlock as _createElementBlock178 } from "vue"; +var _hoisted_1178 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2178 = /* @__PURE__ */ _createElementVNode177( + "path", + { + fill: "currentColor", + d: "M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3177 = [ + _hoisted_2178 +]; +function _sfc_render178(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock178(), _createElementBlock178("svg", _hoisted_1178, _hoisted_3177); +} +var mug_default = /* @__PURE__ */ export_helper_default(mug_vue_vue_type_script_lang_default, [["render", _sfc_render178], ["__file", "mug.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mute-notification.vue?vue&type=script&lang.ts +var mute_notification_vue_vue_type_script_lang_default = { + name: "MuteNotification" +}; + +// src/components/mute-notification.vue +import { createElementVNode as _createElementVNode178, openBlock as _openBlock179, createElementBlock as _createElementBlock179 } from "vue"; +var _hoisted_1179 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2179 = /* @__PURE__ */ _createElementVNode178( + "path", + { + fill: "currentColor", + d: "m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3178 = /* @__PURE__ */ _createElementVNode178( + "path", + { + fill: "currentColor", + d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_451 = [ + _hoisted_2179, + _hoisted_3178 +]; +function _sfc_render179(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock179(), _createElementBlock179("svg", _hoisted_1179, _hoisted_451); +} +var mute_notification_default = /* @__PURE__ */ export_helper_default(mute_notification_vue_vue_type_script_lang_default, [["render", _sfc_render179], ["__file", "mute-notification.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/mute.vue?vue&type=script&lang.ts +var mute_vue_vue_type_script_lang_default = { + name: "Mute" +}; + +// src/components/mute.vue +import { createElementVNode as _createElementVNode179, openBlock as _openBlock180, createElementBlock as _createElementBlock180 } from "vue"; +var _hoisted_1180 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2180 = /* @__PURE__ */ _createElementVNode179( + "path", + { + fill: "currentColor", + d: "m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3179 = /* @__PURE__ */ _createElementVNode179( + "path", + { + fill: "currentColor", + d: "M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_452 = [ + _hoisted_2180, + _hoisted_3179 +]; +function _sfc_render180(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock180(), _createElementBlock180("svg", _hoisted_1180, _hoisted_452); +} +var mute_default = /* @__PURE__ */ export_helper_default(mute_vue_vue_type_script_lang_default, [["render", _sfc_render180], ["__file", "mute.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/no-smoking.vue?vue&type=script&lang.ts +var no_smoking_vue_vue_type_script_lang_default = { + name: "NoSmoking" +}; + +// src/components/no-smoking.vue +import { createElementVNode as _createElementVNode180, openBlock as _openBlock181, createElementBlock as _createElementBlock181 } from "vue"; +var _hoisted_1181 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2181 = /* @__PURE__ */ _createElementVNode180( + "path", + { + fill: "currentColor", + d: "M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3180 = [ + _hoisted_2181 +]; +function _sfc_render181(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock181(), _createElementBlock181("svg", _hoisted_1181, _hoisted_3180); +} +var no_smoking_default = /* @__PURE__ */ export_helper_default(no_smoking_vue_vue_type_script_lang_default, [["render", _sfc_render181], ["__file", "no-smoking.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/notebook.vue?vue&type=script&lang.ts +var notebook_vue_vue_type_script_lang_default = { + name: "Notebook" +}; + +// src/components/notebook.vue +import { createElementVNode as _createElementVNode181, openBlock as _openBlock182, createElementBlock as _createElementBlock182 } from "vue"; +var _hoisted_1182 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2182 = /* @__PURE__ */ _createElementVNode181( + "path", + { + fill: "currentColor", + d: "M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3181 = /* @__PURE__ */ _createElementVNode181( + "path", + { + fill: "currentColor", + d: "M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_453 = [ + _hoisted_2182, + _hoisted_3181 +]; +function _sfc_render182(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock182(), _createElementBlock182("svg", _hoisted_1182, _hoisted_453); +} +var notebook_default = /* @__PURE__ */ export_helper_default(notebook_vue_vue_type_script_lang_default, [["render", _sfc_render182], ["__file", "notebook.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/notification.vue?vue&type=script&lang.ts +var notification_vue_vue_type_script_lang_default = { + name: "Notification" +}; + +// src/components/notification.vue +import { createElementVNode as _createElementVNode182, openBlock as _openBlock183, createElementBlock as _createElementBlock183 } from "vue"; +var _hoisted_1183 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2183 = /* @__PURE__ */ _createElementVNode182( + "path", + { + fill: "currentColor", + d: "M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3182 = /* @__PURE__ */ _createElementVNode182( + "path", + { + fill: "currentColor", + d: "M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_454 = [ + _hoisted_2183, + _hoisted_3182 +]; +function _sfc_render183(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock183(), _createElementBlock183("svg", _hoisted_1183, _hoisted_454); +} +var notification_default = /* @__PURE__ */ export_helper_default(notification_vue_vue_type_script_lang_default, [["render", _sfc_render183], ["__file", "notification.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/odometer.vue?vue&type=script&lang.ts +var odometer_vue_vue_type_script_lang_default = { + name: "Odometer" +}; + +// src/components/odometer.vue +import { createElementVNode as _createElementVNode183, openBlock as _openBlock184, createElementBlock as _createElementBlock184 } from "vue"; +var _hoisted_1184 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2184 = /* @__PURE__ */ _createElementVNode183( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3183 = /* @__PURE__ */ _createElementVNode183( + "path", + { + fill: "currentColor", + d: "M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_455 = /* @__PURE__ */ _createElementVNode183( + "path", + { + fill: "currentColor", + d: "M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_515 = [ + _hoisted_2184, + _hoisted_3183, + _hoisted_455 +]; +function _sfc_render184(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock184(), _createElementBlock184("svg", _hoisted_1184, _hoisted_515); +} +var odometer_default = /* @__PURE__ */ export_helper_default(odometer_vue_vue_type_script_lang_default, [["render", _sfc_render184], ["__file", "odometer.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/office-building.vue?vue&type=script&lang.ts +var office_building_vue_vue_type_script_lang_default = { + name: "OfficeBuilding" +}; + +// src/components/office-building.vue +import { createElementVNode as _createElementVNode184, openBlock as _openBlock185, createElementBlock as _createElementBlock185 } from "vue"; +var _hoisted_1185 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2185 = /* @__PURE__ */ _createElementVNode184( + "path", + { + fill: "currentColor", + d: "M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3184 = /* @__PURE__ */ _createElementVNode184( + "path", + { + fill: "currentColor", + d: "M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_456 = /* @__PURE__ */ _createElementVNode184( + "path", + { + fill: "currentColor", + d: "M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_516 = [ + _hoisted_2185, + _hoisted_3184, + _hoisted_456 +]; +function _sfc_render185(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock185(), _createElementBlock185("svg", _hoisted_1185, _hoisted_516); +} +var office_building_default = /* @__PURE__ */ export_helper_default(office_building_vue_vue_type_script_lang_default, [["render", _sfc_render185], ["__file", "office-building.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/open.vue?vue&type=script&lang.ts +var open_vue_vue_type_script_lang_default = { + name: "Open" +}; + +// src/components/open.vue +import { createElementVNode as _createElementVNode185, openBlock as _openBlock186, createElementBlock as _createElementBlock186 } from "vue"; +var _hoisted_1186 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2186 = /* @__PURE__ */ _createElementVNode185( + "path", + { + fill: "currentColor", + d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3185 = /* @__PURE__ */ _createElementVNode185( + "path", + { + fill: "currentColor", + d: "M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_457 = [ + _hoisted_2186, + _hoisted_3185 +]; +function _sfc_render186(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock186(), _createElementBlock186("svg", _hoisted_1186, _hoisted_457); +} +var open_default = /* @__PURE__ */ export_helper_default(open_vue_vue_type_script_lang_default, [["render", _sfc_render186], ["__file", "open.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/operation.vue?vue&type=script&lang.ts +var operation_vue_vue_type_script_lang_default = { + name: "Operation" +}; + +// src/components/operation.vue +import { createElementVNode as _createElementVNode186, openBlock as _openBlock187, createElementBlock as _createElementBlock187 } from "vue"; +var _hoisted_1187 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2187 = /* @__PURE__ */ _createElementVNode186( + "path", + { + fill: "currentColor", + d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3186 = [ + _hoisted_2187 +]; +function _sfc_render187(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock187(), _createElementBlock187("svg", _hoisted_1187, _hoisted_3186); +} +var operation_default = /* @__PURE__ */ export_helper_default(operation_vue_vue_type_script_lang_default, [["render", _sfc_render187], ["__file", "operation.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/opportunity.vue?vue&type=script&lang.ts +var opportunity_vue_vue_type_script_lang_default = { + name: "Opportunity" +}; + +// src/components/opportunity.vue +import { createElementVNode as _createElementVNode187, openBlock as _openBlock188, createElementBlock as _createElementBlock188 } from "vue"; +var _hoisted_1188 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2188 = /* @__PURE__ */ _createElementVNode187( + "path", + { + fill: "currentColor", + d: "M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3187 = [ + _hoisted_2188 +]; +function _sfc_render188(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock188(), _createElementBlock188("svg", _hoisted_1188, _hoisted_3187); +} +var opportunity_default = /* @__PURE__ */ export_helper_default(opportunity_vue_vue_type_script_lang_default, [["render", _sfc_render188], ["__file", "opportunity.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/orange.vue?vue&type=script&lang.ts +var orange_vue_vue_type_script_lang_default = { + name: "Orange" +}; + +// src/components/orange.vue +import { createElementVNode as _createElementVNode188, openBlock as _openBlock189, createElementBlock as _createElementBlock189 } from "vue"; +var _hoisted_1189 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2189 = /* @__PURE__ */ _createElementVNode188( + "path", + { + fill: "currentColor", + d: "M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3188 = [ + _hoisted_2189 +]; +function _sfc_render189(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock189(), _createElementBlock189("svg", _hoisted_1189, _hoisted_3188); +} +var orange_default = /* @__PURE__ */ export_helper_default(orange_vue_vue_type_script_lang_default, [["render", _sfc_render189], ["__file", "orange.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/paperclip.vue?vue&type=script&lang.ts +var paperclip_vue_vue_type_script_lang_default = { + name: "Paperclip" +}; + +// src/components/paperclip.vue +import { createElementVNode as _createElementVNode189, openBlock as _openBlock190, createElementBlock as _createElementBlock190 } from "vue"; +var _hoisted_1190 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2190 = /* @__PURE__ */ _createElementVNode189( + "path", + { + fill: "currentColor", + d: "M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3189 = [ + _hoisted_2190 +]; +function _sfc_render190(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock190(), _createElementBlock190("svg", _hoisted_1190, _hoisted_3189); +} +var paperclip_default = /* @__PURE__ */ export_helper_default(paperclip_vue_vue_type_script_lang_default, [["render", _sfc_render190], ["__file", "paperclip.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/partly-cloudy.vue?vue&type=script&lang.ts +var partly_cloudy_vue_vue_type_script_lang_default = { + name: "PartlyCloudy" +}; + +// src/components/partly-cloudy.vue +import { createElementVNode as _createElementVNode190, openBlock as _openBlock191, createElementBlock as _createElementBlock191 } from "vue"; +var _hoisted_1191 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2191 = /* @__PURE__ */ _createElementVNode190( + "path", + { + fill: "currentColor", + d: "M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3190 = /* @__PURE__ */ _createElementVNode190( + "path", + { + fill: "currentColor", + d: "M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_458 = [ + _hoisted_2191, + _hoisted_3190 +]; +function _sfc_render191(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock191(), _createElementBlock191("svg", _hoisted_1191, _hoisted_458); +} +var partly_cloudy_default = /* @__PURE__ */ export_helper_default(partly_cloudy_vue_vue_type_script_lang_default, [["render", _sfc_render191], ["__file", "partly-cloudy.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pear.vue?vue&type=script&lang.ts +var pear_vue_vue_type_script_lang_default = { + name: "Pear" +}; + +// src/components/pear.vue +import { createElementVNode as _createElementVNode191, openBlock as _openBlock192, createElementBlock as _createElementBlock192 } from "vue"; +var _hoisted_1192 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2192 = /* @__PURE__ */ _createElementVNode191( + "path", + { + fill: "currentColor", + d: "M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3191 = [ + _hoisted_2192 +]; +function _sfc_render192(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock192(), _createElementBlock192("svg", _hoisted_1192, _hoisted_3191); +} +var pear_default = /* @__PURE__ */ export_helper_default(pear_vue_vue_type_script_lang_default, [["render", _sfc_render192], ["__file", "pear.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/phone-filled.vue?vue&type=script&lang.ts +var phone_filled_vue_vue_type_script_lang_default = { + name: "PhoneFilled" +}; + +// src/components/phone-filled.vue +import { createElementVNode as _createElementVNode192, openBlock as _openBlock193, createElementBlock as _createElementBlock193 } from "vue"; +var _hoisted_1193 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2193 = /* @__PURE__ */ _createElementVNode192( + "path", + { + fill: "currentColor", + d: "M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3192 = [ + _hoisted_2193 +]; +function _sfc_render193(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock193(), _createElementBlock193("svg", _hoisted_1193, _hoisted_3192); +} +var phone_filled_default = /* @__PURE__ */ export_helper_default(phone_filled_vue_vue_type_script_lang_default, [["render", _sfc_render193], ["__file", "phone-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/phone.vue?vue&type=script&lang.ts +var phone_vue_vue_type_script_lang_default = { + name: "Phone" +}; + +// src/components/phone.vue +import { createElementVNode as _createElementVNode193, openBlock as _openBlock194, createElementBlock as _createElementBlock194 } from "vue"; +var _hoisted_1194 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2194 = /* @__PURE__ */ _createElementVNode193( + "path", + { + fill: "currentColor", + d: "M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3193 = [ + _hoisted_2194 +]; +function _sfc_render194(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock194(), _createElementBlock194("svg", _hoisted_1194, _hoisted_3193); +} +var phone_default = /* @__PURE__ */ export_helper_default(phone_vue_vue_type_script_lang_default, [["render", _sfc_render194], ["__file", "phone.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture-filled.vue?vue&type=script&lang.ts +var picture_filled_vue_vue_type_script_lang_default = { + name: "PictureFilled" +}; + +// src/components/picture-filled.vue +import { createElementVNode as _createElementVNode194, openBlock as _openBlock195, createElementBlock as _createElementBlock195 } from "vue"; +var _hoisted_1195 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2195 = /* @__PURE__ */ _createElementVNode194( + "path", + { + fill: "currentColor", + d: "M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3194 = [ + _hoisted_2195 +]; +function _sfc_render195(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock195(), _createElementBlock195("svg", _hoisted_1195, _hoisted_3194); +} +var picture_filled_default = /* @__PURE__ */ export_helper_default(picture_filled_vue_vue_type_script_lang_default, [["render", _sfc_render195], ["__file", "picture-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture-rounded.vue?vue&type=script&lang.ts +var picture_rounded_vue_vue_type_script_lang_default = { + name: "PictureRounded" +}; + +// src/components/picture-rounded.vue +import { createElementVNode as _createElementVNode195, openBlock as _openBlock196, createElementBlock as _createElementBlock196 } from "vue"; +var _hoisted_1196 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2196 = /* @__PURE__ */ _createElementVNode195( + "path", + { + fill: "currentColor", + d: "M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3195 = /* @__PURE__ */ _createElementVNode195( + "path", + { + fill: "currentColor", + d: "M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_459 = [ + _hoisted_2196, + _hoisted_3195 +]; +function _sfc_render196(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock196(), _createElementBlock196("svg", _hoisted_1196, _hoisted_459); +} +var picture_rounded_default = /* @__PURE__ */ export_helper_default(picture_rounded_vue_vue_type_script_lang_default, [["render", _sfc_render196], ["__file", "picture-rounded.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/picture.vue?vue&type=script&lang.ts +var picture_vue_vue_type_script_lang_default = { + name: "Picture" +}; + +// src/components/picture.vue +import { createElementVNode as _createElementVNode196, openBlock as _openBlock197, createElementBlock as _createElementBlock197 } from "vue"; +var _hoisted_1197 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2197 = /* @__PURE__ */ _createElementVNode196( + "path", + { + fill: "currentColor", + d: "M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3196 = /* @__PURE__ */ _createElementVNode196( + "path", + { + fill: "currentColor", + d: "M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_460 = [ + _hoisted_2197, + _hoisted_3196 +]; +function _sfc_render197(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock197(), _createElementBlock197("svg", _hoisted_1197, _hoisted_460); +} +var picture_default = /* @__PURE__ */ export_helper_default(picture_vue_vue_type_script_lang_default, [["render", _sfc_render197], ["__file", "picture.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pie-chart.vue?vue&type=script&lang.ts +var pie_chart_vue_vue_type_script_lang_default = { + name: "PieChart" +}; + +// src/components/pie-chart.vue +import { createElementVNode as _createElementVNode197, openBlock as _openBlock198, createElementBlock as _createElementBlock198 } from "vue"; +var _hoisted_1198 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2198 = /* @__PURE__ */ _createElementVNode197( + "path", + { + fill: "currentColor", + d: "M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3197 = /* @__PURE__ */ _createElementVNode197( + "path", + { + fill: "currentColor", + d: "M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_461 = [ + _hoisted_2198, + _hoisted_3197 +]; +function _sfc_render198(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock198(), _createElementBlock198("svg", _hoisted_1198, _hoisted_461); +} +var pie_chart_default = /* @__PURE__ */ export_helper_default(pie_chart_vue_vue_type_script_lang_default, [["render", _sfc_render198], ["__file", "pie-chart.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/place.vue?vue&type=script&lang.ts +var place_vue_vue_type_script_lang_default = { + name: "Place" +}; + +// src/components/place.vue +import { createElementVNode as _createElementVNode198, openBlock as _openBlock199, createElementBlock as _createElementBlock199 } from "vue"; +var _hoisted_1199 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2199 = /* @__PURE__ */ _createElementVNode198( + "path", + { + fill: "currentColor", + d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3198 = /* @__PURE__ */ _createElementVNode198( + "path", + { + fill: "currentColor", + d: "M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_462 = /* @__PURE__ */ _createElementVNode198( + "path", + { + fill: "currentColor", + d: "M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_517 = [ + _hoisted_2199, + _hoisted_3198, + _hoisted_462 +]; +function _sfc_render199(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock199(), _createElementBlock199("svg", _hoisted_1199, _hoisted_517); +} +var place_default = /* @__PURE__ */ export_helper_default(place_vue_vue_type_script_lang_default, [["render", _sfc_render199], ["__file", "place.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/platform.vue?vue&type=script&lang.ts +var platform_vue_vue_type_script_lang_default = { + name: "Platform" +}; + +// src/components/platform.vue +import { createElementVNode as _createElementVNode199, openBlock as _openBlock200, createElementBlock as _createElementBlock200 } from "vue"; +var _hoisted_1200 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2200 = /* @__PURE__ */ _createElementVNode199( + "path", + { + fill: "currentColor", + d: "M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3199 = [ + _hoisted_2200 +]; +function _sfc_render200(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock200(), _createElementBlock200("svg", _hoisted_1200, _hoisted_3199); +} +var platform_default = /* @__PURE__ */ export_helper_default(platform_vue_vue_type_script_lang_default, [["render", _sfc_render200], ["__file", "platform.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/plus.vue?vue&type=script&lang.ts +var plus_vue_vue_type_script_lang_default = { + name: "Plus" +}; + +// src/components/plus.vue +import { createElementVNode as _createElementVNode200, openBlock as _openBlock201, createElementBlock as _createElementBlock201 } from "vue"; +var _hoisted_1201 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2201 = /* @__PURE__ */ _createElementVNode200( + "path", + { + fill: "currentColor", + d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3200 = [ + _hoisted_2201 +]; +function _sfc_render201(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock201(), _createElementBlock201("svg", _hoisted_1201, _hoisted_3200); +} +var plus_default = /* @__PURE__ */ export_helper_default(plus_vue_vue_type_script_lang_default, [["render", _sfc_render201], ["__file", "plus.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pointer.vue?vue&type=script&lang.ts +var pointer_vue_vue_type_script_lang_default = { + name: "Pointer" +}; + +// src/components/pointer.vue +import { createElementVNode as _createElementVNode201, openBlock as _openBlock202, createElementBlock as _createElementBlock202 } from "vue"; +var _hoisted_1202 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2202 = /* @__PURE__ */ _createElementVNode201( + "path", + { + fill: "currentColor", + d: "M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3201 = [ + _hoisted_2202 +]; +function _sfc_render202(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock202(), _createElementBlock202("svg", _hoisted_1202, _hoisted_3201); +} +var pointer_default = /* @__PURE__ */ export_helper_default(pointer_vue_vue_type_script_lang_default, [["render", _sfc_render202], ["__file", "pointer.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/position.vue?vue&type=script&lang.ts +var position_vue_vue_type_script_lang_default = { + name: "Position" +}; + +// src/components/position.vue +import { createElementVNode as _createElementVNode202, openBlock as _openBlock203, createElementBlock as _createElementBlock203 } from "vue"; +var _hoisted_1203 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2203 = /* @__PURE__ */ _createElementVNode202( + "path", + { + fill: "currentColor", + d: "m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3202 = [ + _hoisted_2203 +]; +function _sfc_render203(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock203(), _createElementBlock203("svg", _hoisted_1203, _hoisted_3202); +} +var position_default = /* @__PURE__ */ export_helper_default(position_vue_vue_type_script_lang_default, [["render", _sfc_render203], ["__file", "position.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/postcard.vue?vue&type=script&lang.ts +var postcard_vue_vue_type_script_lang_default = { + name: "Postcard" +}; + +// src/components/postcard.vue +import { createElementVNode as _createElementVNode203, openBlock as _openBlock204, createElementBlock as _createElementBlock204 } from "vue"; +var _hoisted_1204 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2204 = /* @__PURE__ */ _createElementVNode203( + "path", + { + fill: "currentColor", + d: "M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3203 = /* @__PURE__ */ _createElementVNode203( + "path", + { + fill: "currentColor", + d: "M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_463 = [ + _hoisted_2204, + _hoisted_3203 +]; +function _sfc_render204(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock204(), _createElementBlock204("svg", _hoisted_1204, _hoisted_463); +} +var postcard_default = /* @__PURE__ */ export_helper_default(postcard_vue_vue_type_script_lang_default, [["render", _sfc_render204], ["__file", "postcard.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/pouring.vue?vue&type=script&lang.ts +var pouring_vue_vue_type_script_lang_default = { + name: "Pouring" +}; + +// src/components/pouring.vue +import { createElementVNode as _createElementVNode204, openBlock as _openBlock205, createElementBlock as _createElementBlock205 } from "vue"; +var _hoisted_1205 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2205 = /* @__PURE__ */ _createElementVNode204( + "path", + { + fill: "currentColor", + d: "m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3204 = [ + _hoisted_2205 +]; +function _sfc_render205(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock205(), _createElementBlock205("svg", _hoisted_1205, _hoisted_3204); +} +var pouring_default = /* @__PURE__ */ export_helper_default(pouring_vue_vue_type_script_lang_default, [["render", _sfc_render205], ["__file", "pouring.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/present.vue?vue&type=script&lang.ts +var present_vue_vue_type_script_lang_default = { + name: "Present" +}; + +// src/components/present.vue +import { createElementVNode as _createElementVNode205, openBlock as _openBlock206, createElementBlock as _createElementBlock206 } from "vue"; +var _hoisted_1206 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2206 = /* @__PURE__ */ _createElementVNode205( + "path", + { + fill: "currentColor", + d: "M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3205 = /* @__PURE__ */ _createElementVNode205( + "path", + { + fill: "currentColor", + d: "M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_464 = /* @__PURE__ */ _createElementVNode205( + "path", + { + fill: "currentColor", + d: "M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_518 = /* @__PURE__ */ _createElementVNode205( + "path", + { + fill: "currentColor", + d: "M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_6 = [ + _hoisted_2206, + _hoisted_3205, + _hoisted_464, + _hoisted_518 +]; +function _sfc_render206(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock206(), _createElementBlock206("svg", _hoisted_1206, _hoisted_6); +} +var present_default = /* @__PURE__ */ export_helper_default(present_vue_vue_type_script_lang_default, [["render", _sfc_render206], ["__file", "present.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/price-tag.vue?vue&type=script&lang.ts +var price_tag_vue_vue_type_script_lang_default = { + name: "PriceTag" +}; + +// src/components/price-tag.vue +import { createElementVNode as _createElementVNode206, openBlock as _openBlock207, createElementBlock as _createElementBlock207 } from "vue"; +var _hoisted_1207 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2207 = /* @__PURE__ */ _createElementVNode206( + "path", + { + fill: "currentColor", + d: "M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3206 = /* @__PURE__ */ _createElementVNode206( + "path", + { + fill: "currentColor", + d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_465 = [ + _hoisted_2207, + _hoisted_3206 +]; +function _sfc_render207(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock207(), _createElementBlock207("svg", _hoisted_1207, _hoisted_465); +} +var price_tag_default = /* @__PURE__ */ export_helper_default(price_tag_vue_vue_type_script_lang_default, [["render", _sfc_render207], ["__file", "price-tag.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/printer.vue?vue&type=script&lang.ts +var printer_vue_vue_type_script_lang_default = { + name: "Printer" +}; + +// src/components/printer.vue +import { createElementVNode as _createElementVNode207, openBlock as _openBlock208, createElementBlock as _createElementBlock208 } from "vue"; +var _hoisted_1208 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2208 = /* @__PURE__ */ _createElementVNode207( + "path", + { + fill: "currentColor", + d: "M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3207 = [ + _hoisted_2208 +]; +function _sfc_render208(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock208(), _createElementBlock208("svg", _hoisted_1208, _hoisted_3207); +} +var printer_default = /* @__PURE__ */ export_helper_default(printer_vue_vue_type_script_lang_default, [["render", _sfc_render208], ["__file", "printer.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/promotion.vue?vue&type=script&lang.ts +var promotion_vue_vue_type_script_lang_default = { + name: "Promotion" +}; + +// src/components/promotion.vue +import { createElementVNode as _createElementVNode208, openBlock as _openBlock209, createElementBlock as _createElementBlock209 } from "vue"; +var _hoisted_1209 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2209 = /* @__PURE__ */ _createElementVNode208( + "path", + { + fill: "currentColor", + d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3208 = [ + _hoisted_2209 +]; +function _sfc_render209(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock209(), _createElementBlock209("svg", _hoisted_1209, _hoisted_3208); +} +var promotion_default = /* @__PURE__ */ export_helper_default(promotion_vue_vue_type_script_lang_default, [["render", _sfc_render209], ["__file", "promotion.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/quartz-watch.vue?vue&type=script&lang.ts +var quartz_watch_vue_vue_type_script_lang_default = { + name: "QuartzWatch" +}; + +// src/components/quartz-watch.vue +import { createElementVNode as _createElementVNode209, openBlock as _openBlock210, createElementBlock as _createElementBlock210 } from "vue"; +var _hoisted_1210 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2210 = /* @__PURE__ */ _createElementVNode209( + "path", + { + fill: "currentColor", + d: "M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49v-.01zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01zm6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49zM512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99zm183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3209 = /* @__PURE__ */ _createElementVNode209( + "path", + { + fill: "currentColor", + d: "M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5zM416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68V128zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68V896zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_466 = /* @__PURE__ */ _createElementVNode209( + "path", + { + fill: "currentColor", + d: "M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99zm112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_519 = [ + _hoisted_2210, + _hoisted_3209, + _hoisted_466 +]; +function _sfc_render210(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock210(), _createElementBlock210("svg", _hoisted_1210, _hoisted_519); +} +var quartz_watch_default = /* @__PURE__ */ export_helper_default(quartz_watch_vue_vue_type_script_lang_default, [["render", _sfc_render210], ["__file", "quartz-watch.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/question-filled.vue?vue&type=script&lang.ts +var question_filled_vue_vue_type_script_lang_default = { + name: "QuestionFilled" +}; + +// src/components/question-filled.vue +import { createElementVNode as _createElementVNode210, openBlock as _openBlock211, createElementBlock as _createElementBlock211 } from "vue"; +var _hoisted_1211 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2211 = /* @__PURE__ */ _createElementVNode210( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3210 = [ + _hoisted_2211 +]; +function _sfc_render211(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock211(), _createElementBlock211("svg", _hoisted_1211, _hoisted_3210); +} +var question_filled_default = /* @__PURE__ */ export_helper_default(question_filled_vue_vue_type_script_lang_default, [["render", _sfc_render211], ["__file", "question-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/rank.vue?vue&type=script&lang.ts +var rank_vue_vue_type_script_lang_default = { + name: "Rank" +}; + +// src/components/rank.vue +import { createElementVNode as _createElementVNode211, openBlock as _openBlock212, createElementBlock as _createElementBlock212 } from "vue"; +var _hoisted_1212 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2212 = /* @__PURE__ */ _createElementVNode211( + "path", + { + fill: "currentColor", + d: "m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3211 = [ + _hoisted_2212 +]; +function _sfc_render212(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock212(), _createElementBlock212("svg", _hoisted_1212, _hoisted_3211); +} +var rank_default = /* @__PURE__ */ export_helper_default(rank_vue_vue_type_script_lang_default, [["render", _sfc_render212], ["__file", "rank.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/reading-lamp.vue?vue&type=script&lang.ts +var reading_lamp_vue_vue_type_script_lang_default = { + name: "ReadingLamp" +}; + +// src/components/reading-lamp.vue +import { createElementVNode as _createElementVNode212, openBlock as _openBlock213, createElementBlock as _createElementBlock213 } from "vue"; +var _hoisted_1213 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2213 = /* @__PURE__ */ _createElementVNode212( + "path", + { + fill: "currentColor", + d: "M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3212 = /* @__PURE__ */ _createElementVNode212( + "path", + { + fill: "currentColor", + d: "M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_467 = [ + _hoisted_2213, + _hoisted_3212 +]; +function _sfc_render213(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock213(), _createElementBlock213("svg", _hoisted_1213, _hoisted_467); +} +var reading_lamp_default = /* @__PURE__ */ export_helper_default(reading_lamp_vue_vue_type_script_lang_default, [["render", _sfc_render213], ["__file", "reading-lamp.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/reading.vue?vue&type=script&lang.ts +var reading_vue_vue_type_script_lang_default = { + name: "Reading" +}; + +// src/components/reading.vue +import { createElementVNode as _createElementVNode213, openBlock as _openBlock214, createElementBlock as _createElementBlock214 } from "vue"; +var _hoisted_1214 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2214 = /* @__PURE__ */ _createElementVNode213( + "path", + { + fill: "currentColor", + d: "m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3213 = /* @__PURE__ */ _createElementVNode213( + "path", + { + fill: "currentColor", + d: "M480 192h64v704h-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_468 = [ + _hoisted_2214, + _hoisted_3213 +]; +function _sfc_render214(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock214(), _createElementBlock214("svg", _hoisted_1214, _hoisted_468); +} +var reading_default = /* @__PURE__ */ export_helper_default(reading_vue_vue_type_script_lang_default, [["render", _sfc_render214], ["__file", "reading.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh-left.vue?vue&type=script&lang.ts +var refresh_left_vue_vue_type_script_lang_default = { + name: "RefreshLeft" +}; + +// src/components/refresh-left.vue +import { createElementVNode as _createElementVNode214, openBlock as _openBlock215, createElementBlock as _createElementBlock215 } from "vue"; +var _hoisted_1215 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2215 = /* @__PURE__ */ _createElementVNode214( + "path", + { + fill: "currentColor", + d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3214 = [ + _hoisted_2215 +]; +function _sfc_render215(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock215(), _createElementBlock215("svg", _hoisted_1215, _hoisted_3214); +} +var refresh_left_default = /* @__PURE__ */ export_helper_default(refresh_left_vue_vue_type_script_lang_default, [["render", _sfc_render215], ["__file", "refresh-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh-right.vue?vue&type=script&lang.ts +var refresh_right_vue_vue_type_script_lang_default = { + name: "RefreshRight" +}; + +// src/components/refresh-right.vue +import { createElementVNode as _createElementVNode215, openBlock as _openBlock216, createElementBlock as _createElementBlock216 } from "vue"; +var _hoisted_1216 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2216 = /* @__PURE__ */ _createElementVNode215( + "path", + { + fill: "currentColor", + d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3215 = [ + _hoisted_2216 +]; +function _sfc_render216(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock216(), _createElementBlock216("svg", _hoisted_1216, _hoisted_3215); +} +var refresh_right_default = /* @__PURE__ */ export_helper_default(refresh_right_vue_vue_type_script_lang_default, [["render", _sfc_render216], ["__file", "refresh-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refresh.vue?vue&type=script&lang.ts +var refresh_vue_vue_type_script_lang_default = { + name: "Refresh" +}; + +// src/components/refresh.vue +import { createElementVNode as _createElementVNode216, openBlock as _openBlock217, createElementBlock as _createElementBlock217 } from "vue"; +var _hoisted_1217 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2217 = /* @__PURE__ */ _createElementVNode216( + "path", + { + fill: "currentColor", + d: "M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3216 = [ + _hoisted_2217 +]; +function _sfc_render217(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock217(), _createElementBlock217("svg", _hoisted_1217, _hoisted_3216); +} +var refresh_default = /* @__PURE__ */ export_helper_default(refresh_vue_vue_type_script_lang_default, [["render", _sfc_render217], ["__file", "refresh.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/refrigerator.vue?vue&type=script&lang.ts +var refrigerator_vue_vue_type_script_lang_default = { + name: "Refrigerator" +}; + +// src/components/refrigerator.vue +import { createElementVNode as _createElementVNode217, openBlock as _openBlock218, createElementBlock as _createElementBlock218 } from "vue"; +var _hoisted_1218 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2218 = /* @__PURE__ */ _createElementVNode217( + "path", + { + fill: "currentColor", + d: "M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3217 = [ + _hoisted_2218 +]; +function _sfc_render218(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock218(), _createElementBlock218("svg", _hoisted_1218, _hoisted_3217); +} +var refrigerator_default = /* @__PURE__ */ export_helper_default(refrigerator_vue_vue_type_script_lang_default, [["render", _sfc_render218], ["__file", "refrigerator.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/remove-filled.vue?vue&type=script&lang.ts +var remove_filled_vue_vue_type_script_lang_default = { + name: "RemoveFilled" +}; + +// src/components/remove-filled.vue +import { createElementVNode as _createElementVNode218, openBlock as _openBlock219, createElementBlock as _createElementBlock219 } from "vue"; +var _hoisted_1219 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2219 = /* @__PURE__ */ _createElementVNode218( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3218 = [ + _hoisted_2219 +]; +function _sfc_render219(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock219(), _createElementBlock219("svg", _hoisted_1219, _hoisted_3218); +} +var remove_filled_default = /* @__PURE__ */ export_helper_default(remove_filled_vue_vue_type_script_lang_default, [["render", _sfc_render219], ["__file", "remove-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/remove.vue?vue&type=script&lang.ts +var remove_vue_vue_type_script_lang_default = { + name: "Remove" +}; + +// src/components/remove.vue +import { createElementVNode as _createElementVNode219, openBlock as _openBlock220, createElementBlock as _createElementBlock220 } from "vue"; +var _hoisted_1220 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2220 = /* @__PURE__ */ _createElementVNode219( + "path", + { + fill: "currentColor", + d: "M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3219 = /* @__PURE__ */ _createElementVNode219( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_469 = [ + _hoisted_2220, + _hoisted_3219 +]; +function _sfc_render220(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock220(), _createElementBlock220("svg", _hoisted_1220, _hoisted_469); +} +var remove_default = /* @__PURE__ */ export_helper_default(remove_vue_vue_type_script_lang_default, [["render", _sfc_render220], ["__file", "remove.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/right.vue?vue&type=script&lang.ts +var right_vue_vue_type_script_lang_default = { + name: "Right" +}; + +// src/components/right.vue +import { createElementVNode as _createElementVNode220, openBlock as _openBlock221, createElementBlock as _createElementBlock221 } from "vue"; +var _hoisted_1221 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2221 = /* @__PURE__ */ _createElementVNode220( + "path", + { + fill: "currentColor", + d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3220 = [ + _hoisted_2221 +]; +function _sfc_render221(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock221(), _createElementBlock221("svg", _hoisted_1221, _hoisted_3220); +} +var right_default = /* @__PURE__ */ export_helper_default(right_vue_vue_type_script_lang_default, [["render", _sfc_render221], ["__file", "right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/scale-to-original.vue?vue&type=script&lang.ts +var scale_to_original_vue_vue_type_script_lang_default = { + name: "ScaleToOriginal" +}; + +// src/components/scale-to-original.vue +import { createElementVNode as _createElementVNode221, openBlock as _openBlock222, createElementBlock as _createElementBlock222 } from "vue"; +var _hoisted_1222 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2222 = /* @__PURE__ */ _createElementVNode221( + "path", + { + fill: "currentColor", + d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3221 = [ + _hoisted_2222 +]; +function _sfc_render222(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock222(), _createElementBlock222("svg", _hoisted_1222, _hoisted_3221); +} +var scale_to_original_default = /* @__PURE__ */ export_helper_default(scale_to_original_vue_vue_type_script_lang_default, [["render", _sfc_render222], ["__file", "scale-to-original.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/school.vue?vue&type=script&lang.ts +var school_vue_vue_type_script_lang_default = { + name: "School" +}; + +// src/components/school.vue +import { createElementVNode as _createElementVNode222, openBlock as _openBlock223, createElementBlock as _createElementBlock223 } from "vue"; +var _hoisted_1223 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2223 = /* @__PURE__ */ _createElementVNode222( + "path", + { + fill: "currentColor", + d: "M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3222 = /* @__PURE__ */ _createElementVNode222( + "path", + { + fill: "currentColor", + d: "M64 832h896v64H64zm256-640h128v96H320z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_470 = /* @__PURE__ */ _createElementVNode222( + "path", + { + fill: "currentColor", + d: "M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_520 = [ + _hoisted_2223, + _hoisted_3222, + _hoisted_470 +]; +function _sfc_render223(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock223(), _createElementBlock223("svg", _hoisted_1223, _hoisted_520); +} +var school_default = /* @__PURE__ */ export_helper_default(school_vue_vue_type_script_lang_default, [["render", _sfc_render223], ["__file", "school.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/scissor.vue?vue&type=script&lang.ts +var scissor_vue_vue_type_script_lang_default = { + name: "Scissor" +}; + +// src/components/scissor.vue +import { createElementVNode as _createElementVNode223, openBlock as _openBlock224, createElementBlock as _createElementBlock224 } from "vue"; +var _hoisted_1224 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2224 = /* @__PURE__ */ _createElementVNode223( + "path", + { + fill: "currentColor", + d: "m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3223 = [ + _hoisted_2224 +]; +function _sfc_render224(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock224(), _createElementBlock224("svg", _hoisted_1224, _hoisted_3223); +} +var scissor_default = /* @__PURE__ */ export_helper_default(scissor_vue_vue_type_script_lang_default, [["render", _sfc_render224], ["__file", "scissor.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/search.vue?vue&type=script&lang.ts +var search_vue_vue_type_script_lang_default = { + name: "Search" +}; + +// src/components/search.vue +import { createElementVNode as _createElementVNode224, openBlock as _openBlock225, createElementBlock as _createElementBlock225 } from "vue"; +var _hoisted_1225 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2225 = /* @__PURE__ */ _createElementVNode224( + "path", + { + fill: "currentColor", + d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3224 = [ + _hoisted_2225 +]; +function _sfc_render225(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock225(), _createElementBlock225("svg", _hoisted_1225, _hoisted_3224); +} +var search_default = /* @__PURE__ */ export_helper_default(search_vue_vue_type_script_lang_default, [["render", _sfc_render225], ["__file", "search.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/select.vue?vue&type=script&lang.ts +var select_vue_vue_type_script_lang_default = { + name: "Select" +}; + +// src/components/select.vue +import { createElementVNode as _createElementVNode225, openBlock as _openBlock226, createElementBlock as _createElementBlock226 } from "vue"; +var _hoisted_1226 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2226 = /* @__PURE__ */ _createElementVNode225( + "path", + { + fill: "currentColor", + d: "M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3225 = [ + _hoisted_2226 +]; +function _sfc_render226(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock226(), _createElementBlock226("svg", _hoisted_1226, _hoisted_3225); +} +var select_default = /* @__PURE__ */ export_helper_default(select_vue_vue_type_script_lang_default, [["render", _sfc_render226], ["__file", "select.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sell.vue?vue&type=script&lang.ts +var sell_vue_vue_type_script_lang_default = { + name: "Sell" +}; + +// src/components/sell.vue +import { createElementVNode as _createElementVNode226, openBlock as _openBlock227, createElementBlock as _createElementBlock227 } from "vue"; +var _hoisted_1227 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2227 = /* @__PURE__ */ _createElementVNode226( + "path", + { + fill: "currentColor", + d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3226 = [ + _hoisted_2227 +]; +function _sfc_render227(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock227(), _createElementBlock227("svg", _hoisted_1227, _hoisted_3226); +} +var sell_default = /* @__PURE__ */ export_helper_default(sell_vue_vue_type_script_lang_default, [["render", _sfc_render227], ["__file", "sell.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/semi-select.vue?vue&type=script&lang.ts +var semi_select_vue_vue_type_script_lang_default = { + name: "SemiSelect" +}; + +// src/components/semi-select.vue +import { createElementVNode as _createElementVNode227, openBlock as _openBlock228, createElementBlock as _createElementBlock228 } from "vue"; +var _hoisted_1228 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2228 = /* @__PURE__ */ _createElementVNode227( + "path", + { + fill: "currentColor", + d: "M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3227 = [ + _hoisted_2228 +]; +function _sfc_render228(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock228(), _createElementBlock228("svg", _hoisted_1228, _hoisted_3227); +} +var semi_select_default = /* @__PURE__ */ export_helper_default(semi_select_vue_vue_type_script_lang_default, [["render", _sfc_render228], ["__file", "semi-select.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/service.vue?vue&type=script&lang.ts +var service_vue_vue_type_script_lang_default = { + name: "Service" +}; + +// src/components/service.vue +import { createElementVNode as _createElementVNode228, openBlock as _openBlock229, createElementBlock as _createElementBlock229 } from "vue"; +var _hoisted_1229 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2229 = /* @__PURE__ */ _createElementVNode228( + "path", + { + fill: "currentColor", + d: "M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3228 = [ + _hoisted_2229 +]; +function _sfc_render229(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock229(), _createElementBlock229("svg", _hoisted_1229, _hoisted_3228); +} +var service_default = /* @__PURE__ */ export_helper_default(service_vue_vue_type_script_lang_default, [["render", _sfc_render229], ["__file", "service.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/set-up.vue?vue&type=script&lang.ts +var set_up_vue_vue_type_script_lang_default = { + name: "SetUp" +}; + +// src/components/set-up.vue +import { createElementVNode as _createElementVNode229, openBlock as _openBlock230, createElementBlock as _createElementBlock230 } from "vue"; +var _hoisted_1230 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2230 = /* @__PURE__ */ _createElementVNode229( + "path", + { + fill: "currentColor", + d: "M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3229 = /* @__PURE__ */ _createElementVNode229( + "path", + { + fill: "currentColor", + d: "M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_471 = /* @__PURE__ */ _createElementVNode229( + "path", + { + fill: "currentColor", + d: "M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_521 = /* @__PURE__ */ _createElementVNode229( + "path", + { + fill: "currentColor", + d: "M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_62 = [ + _hoisted_2230, + _hoisted_3229, + _hoisted_471, + _hoisted_521 +]; +function _sfc_render230(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock230(), _createElementBlock230("svg", _hoisted_1230, _hoisted_62); +} +var set_up_default = /* @__PURE__ */ export_helper_default(set_up_vue_vue_type_script_lang_default, [["render", _sfc_render230], ["__file", "set-up.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/setting.vue?vue&type=script&lang.ts +var setting_vue_vue_type_script_lang_default = { + name: "Setting" +}; + +// src/components/setting.vue +import { createElementVNode as _createElementVNode230, openBlock as _openBlock231, createElementBlock as _createElementBlock231 } from "vue"; +var _hoisted_1231 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2231 = /* @__PURE__ */ _createElementVNode230( + "path", + { + fill: "currentColor", + d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3230 = [ + _hoisted_2231 +]; +function _sfc_render231(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock231(), _createElementBlock231("svg", _hoisted_1231, _hoisted_3230); +} +var setting_default = /* @__PURE__ */ export_helper_default(setting_vue_vue_type_script_lang_default, [["render", _sfc_render231], ["__file", "setting.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/share.vue?vue&type=script&lang.ts +var share_vue_vue_type_script_lang_default = { + name: "Share" +}; + +// src/components/share.vue +import { createElementVNode as _createElementVNode231, openBlock as _openBlock232, createElementBlock as _createElementBlock232 } from "vue"; +var _hoisted_1232 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2232 = /* @__PURE__ */ _createElementVNode231( + "path", + { + fill: "currentColor", + d: "m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3231 = [ + _hoisted_2232 +]; +function _sfc_render232(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock232(), _createElementBlock232("svg", _hoisted_1232, _hoisted_3231); +} +var share_default = /* @__PURE__ */ export_helper_default(share_vue_vue_type_script_lang_default, [["render", _sfc_render232], ["__file", "share.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ship.vue?vue&type=script&lang.ts +var ship_vue_vue_type_script_lang_default = { + name: "Ship" +}; + +// src/components/ship.vue +import { createElementVNode as _createElementVNode232, openBlock as _openBlock233, createElementBlock as _createElementBlock233 } from "vue"; +var _hoisted_1233 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2233 = /* @__PURE__ */ _createElementVNode232( + "path", + { + fill: "currentColor", + d: "M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3232 = [ + _hoisted_2233 +]; +function _sfc_render233(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock233(), _createElementBlock233("svg", _hoisted_1233, _hoisted_3232); +} +var ship_default = /* @__PURE__ */ export_helper_default(ship_vue_vue_type_script_lang_default, [["render", _sfc_render233], ["__file", "ship.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shop.vue?vue&type=script&lang.ts +var shop_vue_vue_type_script_lang_default = { + name: "Shop" +}; + +// src/components/shop.vue +import { createElementVNode as _createElementVNode233, openBlock as _openBlock234, createElementBlock as _createElementBlock234 } from "vue"; +var _hoisted_1234 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2234 = /* @__PURE__ */ _createElementVNode233( + "path", + { + fill: "currentColor", + d: "M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3233 = [ + _hoisted_2234 +]; +function _sfc_render234(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock234(), _createElementBlock234("svg", _hoisted_1234, _hoisted_3233); +} +var shop_default = /* @__PURE__ */ export_helper_default(shop_vue_vue_type_script_lang_default, [["render", _sfc_render234], ["__file", "shop.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-bag.vue?vue&type=script&lang.ts +var shopping_bag_vue_vue_type_script_lang_default = { + name: "ShoppingBag" +}; + +// src/components/shopping-bag.vue +import { createElementVNode as _createElementVNode234, openBlock as _openBlock235, createElementBlock as _createElementBlock235 } from "vue"; +var _hoisted_1235 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2235 = /* @__PURE__ */ _createElementVNode234( + "path", + { + fill: "currentColor", + d: "M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3234 = /* @__PURE__ */ _createElementVNode234( + "path", + { + fill: "currentColor", + d: "M192 704h640v64H192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_472 = [ + _hoisted_2235, + _hoisted_3234 +]; +function _sfc_render235(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock235(), _createElementBlock235("svg", _hoisted_1235, _hoisted_472); +} +var shopping_bag_default = /* @__PURE__ */ export_helper_default(shopping_bag_vue_vue_type_script_lang_default, [["render", _sfc_render235], ["__file", "shopping-bag.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-cart-full.vue?vue&type=script&lang.ts +var shopping_cart_full_vue_vue_type_script_lang_default = { + name: "ShoppingCartFull" +}; + +// src/components/shopping-cart-full.vue +import { createElementVNode as _createElementVNode235, openBlock as _openBlock236, createElementBlock as _createElementBlock236 } from "vue"; +var _hoisted_1236 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2236 = /* @__PURE__ */ _createElementVNode235( + "path", + { + fill: "currentColor", + d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3235 = /* @__PURE__ */ _createElementVNode235( + "path", + { + fill: "currentColor", + d: "M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_473 = [ + _hoisted_2236, + _hoisted_3235 +]; +function _sfc_render236(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock236(), _createElementBlock236("svg", _hoisted_1236, _hoisted_473); +} +var shopping_cart_full_default = /* @__PURE__ */ export_helper_default(shopping_cart_full_vue_vue_type_script_lang_default, [["render", _sfc_render236], ["__file", "shopping-cart-full.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-cart.vue?vue&type=script&lang.ts +var shopping_cart_vue_vue_type_script_lang_default = { + name: "ShoppingCart" +}; + +// src/components/shopping-cart.vue +import { createElementVNode as _createElementVNode236, openBlock as _openBlock237, createElementBlock as _createElementBlock237 } from "vue"; +var _hoisted_1237 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2237 = /* @__PURE__ */ _createElementVNode236( + "path", + { + fill: "currentColor", + d: "M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3236 = [ + _hoisted_2237 +]; +function _sfc_render237(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock237(), _createElementBlock237("svg", _hoisted_1237, _hoisted_3236); +} +var shopping_cart_default = /* @__PURE__ */ export_helper_default(shopping_cart_vue_vue_type_script_lang_default, [["render", _sfc_render237], ["__file", "shopping-cart.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/shopping-trolley.vue?vue&type=script&lang.ts +var shopping_trolley_vue_vue_type_script_lang_default = { + name: "ShoppingTrolley" +}; + +// src/components/shopping-trolley.vue +import { createElementVNode as _createElementVNode237, openBlock as _openBlock238, createElementBlock as _createElementBlock238 } from "vue"; +var _hoisted_1238 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2238 = /* @__PURE__ */ _createElementVNode237( + "path", + { + fill: "currentColor", + d: "M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833zm439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64h551zM256 192h622l-96 384H256V192zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3237 = [ + _hoisted_2238 +]; +function _sfc_render238(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock238(), _createElementBlock238("svg", _hoisted_1238, _hoisted_3237); +} +var shopping_trolley_default = /* @__PURE__ */ export_helper_default(shopping_trolley_vue_vue_type_script_lang_default, [["render", _sfc_render238], ["__file", "shopping-trolley.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/smoking.vue?vue&type=script&lang.ts +var smoking_vue_vue_type_script_lang_default = { + name: "Smoking" +}; + +// src/components/smoking.vue +import { createElementVNode as _createElementVNode238, openBlock as _openBlock239, createElementBlock as _createElementBlock239 } from "vue"; +var _hoisted_1239 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2239 = /* @__PURE__ */ _createElementVNode238( + "path", + { + fill: "currentColor", + d: "M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3238 = /* @__PURE__ */ _createElementVNode238( + "path", + { + fill: "currentColor", + d: "M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_474 = [ + _hoisted_2239, + _hoisted_3238 +]; +function _sfc_render239(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock239(), _createElementBlock239("svg", _hoisted_1239, _hoisted_474); +} +var smoking_default = /* @__PURE__ */ export_helper_default(smoking_vue_vue_type_script_lang_default, [["render", _sfc_render239], ["__file", "smoking.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/soccer.vue?vue&type=script&lang.ts +var soccer_vue_vue_type_script_lang_default = { + name: "Soccer" +}; + +// src/components/soccer.vue +import { createElementVNode as _createElementVNode239, openBlock as _openBlock240, createElementBlock as _createElementBlock240 } from "vue"; +var _hoisted_1240 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2240 = /* @__PURE__ */ _createElementVNode239( + "path", + { + fill: "currentColor", + d: "M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3239 = [ + _hoisted_2240 +]; +function _sfc_render240(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock240(), _createElementBlock240("svg", _hoisted_1240, _hoisted_3239); +} +var soccer_default = /* @__PURE__ */ export_helper_default(soccer_vue_vue_type_script_lang_default, [["render", _sfc_render240], ["__file", "soccer.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sold-out.vue?vue&type=script&lang.ts +var sold_out_vue_vue_type_script_lang_default = { + name: "SoldOut" +}; + +// src/components/sold-out.vue +import { createElementVNode as _createElementVNode240, openBlock as _openBlock241, createElementBlock as _createElementBlock241 } from "vue"; +var _hoisted_1241 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2241 = /* @__PURE__ */ _createElementVNode240( + "path", + { + fill: "currentColor", + d: "M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3240 = [ + _hoisted_2241 +]; +function _sfc_render241(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock241(), _createElementBlock241("svg", _hoisted_1241, _hoisted_3240); +} +var sold_out_default = /* @__PURE__ */ export_helper_default(sold_out_vue_vue_type_script_lang_default, [["render", _sfc_render241], ["__file", "sold-out.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort-down.vue?vue&type=script&lang.ts +var sort_down_vue_vue_type_script_lang_default = { + name: "SortDown" +}; + +// src/components/sort-down.vue +import { createElementVNode as _createElementVNode241, openBlock as _openBlock242, createElementBlock as _createElementBlock242 } from "vue"; +var _hoisted_1242 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2242 = /* @__PURE__ */ _createElementVNode241( + "path", + { + fill: "currentColor", + d: "M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3241 = [ + _hoisted_2242 +]; +function _sfc_render242(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock242(), _createElementBlock242("svg", _hoisted_1242, _hoisted_3241); +} +var sort_down_default = /* @__PURE__ */ export_helper_default(sort_down_vue_vue_type_script_lang_default, [["render", _sfc_render242], ["__file", "sort-down.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort-up.vue?vue&type=script&lang.ts +var sort_up_vue_vue_type_script_lang_default = { + name: "SortUp" +}; + +// src/components/sort-up.vue +import { createElementVNode as _createElementVNode242, openBlock as _openBlock243, createElementBlock as _createElementBlock243 } from "vue"; +var _hoisted_1243 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2243 = /* @__PURE__ */ _createElementVNode242( + "path", + { + fill: "currentColor", + d: "M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3242 = [ + _hoisted_2243 +]; +function _sfc_render243(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock243(), _createElementBlock243("svg", _hoisted_1243, _hoisted_3242); +} +var sort_up_default = /* @__PURE__ */ export_helper_default(sort_up_vue_vue_type_script_lang_default, [["render", _sfc_render243], ["__file", "sort-up.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sort.vue?vue&type=script&lang.ts +var sort_vue_vue_type_script_lang_default = { + name: "Sort" +}; + +// src/components/sort.vue +import { createElementVNode as _createElementVNode243, openBlock as _openBlock244, createElementBlock as _createElementBlock244 } from "vue"; +var _hoisted_1244 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2244 = /* @__PURE__ */ _createElementVNode243( + "path", + { + fill: "currentColor", + d: "M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3243 = [ + _hoisted_2244 +]; +function _sfc_render244(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock244(), _createElementBlock244("svg", _hoisted_1244, _hoisted_3243); +} +var sort_default = /* @__PURE__ */ export_helper_default(sort_vue_vue_type_script_lang_default, [["render", _sfc_render244], ["__file", "sort.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/stamp.vue?vue&type=script&lang.ts +var stamp_vue_vue_type_script_lang_default = { + name: "Stamp" +}; + +// src/components/stamp.vue +import { createElementVNode as _createElementVNode244, openBlock as _openBlock245, createElementBlock as _createElementBlock245 } from "vue"; +var _hoisted_1245 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2245 = /* @__PURE__ */ _createElementVNode244( + "path", + { + fill: "currentColor", + d: "M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3244 = [ + _hoisted_2245 +]; +function _sfc_render245(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock245(), _createElementBlock245("svg", _hoisted_1245, _hoisted_3244); +} +var stamp_default = /* @__PURE__ */ export_helper_default(stamp_vue_vue_type_script_lang_default, [["render", _sfc_render245], ["__file", "stamp.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/star-filled.vue?vue&type=script&lang.ts +var star_filled_vue_vue_type_script_lang_default = { + name: "StarFilled" +}; + +// src/components/star-filled.vue +import { createElementVNode as _createElementVNode245, openBlock as _openBlock246, createElementBlock as _createElementBlock246 } from "vue"; +var _hoisted_1246 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2246 = /* @__PURE__ */ _createElementVNode245( + "path", + { + fill: "currentColor", + d: "M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3245 = [ + _hoisted_2246 +]; +function _sfc_render246(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock246(), _createElementBlock246("svg", _hoisted_1246, _hoisted_3245); +} +var star_filled_default = /* @__PURE__ */ export_helper_default(star_filled_vue_vue_type_script_lang_default, [["render", _sfc_render246], ["__file", "star-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/star.vue?vue&type=script&lang.ts +var star_vue_vue_type_script_lang_default = { + name: "Star" +}; + +// src/components/star.vue +import { createElementVNode as _createElementVNode246, openBlock as _openBlock247, createElementBlock as _createElementBlock247 } from "vue"; +var _hoisted_1247 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2247 = /* @__PURE__ */ _createElementVNode246( + "path", + { + fill: "currentColor", + d: "m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3246 = [ + _hoisted_2247 +]; +function _sfc_render247(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock247(), _createElementBlock247("svg", _hoisted_1247, _hoisted_3246); +} +var star_default = /* @__PURE__ */ export_helper_default(star_vue_vue_type_script_lang_default, [["render", _sfc_render247], ["__file", "star.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/stopwatch.vue?vue&type=script&lang.ts +var stopwatch_vue_vue_type_script_lang_default = { + name: "Stopwatch" +}; + +// src/components/stopwatch.vue +import { createElementVNode as _createElementVNode247, openBlock as _openBlock248, createElementBlock as _createElementBlock248 } from "vue"; +var _hoisted_1248 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2248 = /* @__PURE__ */ _createElementVNode247( + "path", + { + fill: "currentColor", + d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3247 = /* @__PURE__ */ _createElementVNode247( + "path", + { + fill: "currentColor", + d: "M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_475 = [ + _hoisted_2248, + _hoisted_3247 +]; +function _sfc_render248(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock248(), _createElementBlock248("svg", _hoisted_1248, _hoisted_475); +} +var stopwatch_default = /* @__PURE__ */ export_helper_default(stopwatch_vue_vue_type_script_lang_default, [["render", _sfc_render248], ["__file", "stopwatch.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/success-filled.vue?vue&type=script&lang.ts +var success_filled_vue_vue_type_script_lang_default = { + name: "SuccessFilled" +}; + +// src/components/success-filled.vue +import { createElementVNode as _createElementVNode248, openBlock as _openBlock249, createElementBlock as _createElementBlock249 } from "vue"; +var _hoisted_1249 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2249 = /* @__PURE__ */ _createElementVNode248( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3248 = [ + _hoisted_2249 +]; +function _sfc_render249(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock249(), _createElementBlock249("svg", _hoisted_1249, _hoisted_3248); +} +var success_filled_default = /* @__PURE__ */ export_helper_default(success_filled_vue_vue_type_script_lang_default, [["render", _sfc_render249], ["__file", "success-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sugar.vue?vue&type=script&lang.ts +var sugar_vue_vue_type_script_lang_default = { + name: "Sugar" +}; + +// src/components/sugar.vue +import { createElementVNode as _createElementVNode249, openBlock as _openBlock250, createElementBlock as _createElementBlock250 } from "vue"; +var _hoisted_1250 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2250 = /* @__PURE__ */ _createElementVNode249( + "path", + { + fill: "currentColor", + d: "m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3249 = [ + _hoisted_2250 +]; +function _sfc_render250(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock250(), _createElementBlock250("svg", _hoisted_1250, _hoisted_3249); +} +var sugar_default = /* @__PURE__ */ export_helper_default(sugar_vue_vue_type_script_lang_default, [["render", _sfc_render250], ["__file", "sugar.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/suitcase-line.vue?vue&type=script&lang.ts +var suitcase_line_vue_vue_type_script_lang_default = { + name: "SuitcaseLine" +}; + +// src/components/suitcase-line.vue +import { createElementVNode as _createElementVNode250, openBlock as _openBlock251, createElementBlock as _createElementBlock251 } from "vue"; +var _hoisted_1251 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2251 = /* @__PURE__ */ _createElementVNode250( + "path", + { + fill: "currentColor", + d: "M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5zM384 128h256v64H384v-64zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128v384zm448 0H320V448h384v384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128v320zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320v64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3250 = [ + _hoisted_2251 +]; +function _sfc_render251(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock251(), _createElementBlock251("svg", _hoisted_1251, _hoisted_3250); +} +var suitcase_line_default = /* @__PURE__ */ export_helper_default(suitcase_line_vue_vue_type_script_lang_default, [["render", _sfc_render251], ["__file", "suitcase-line.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/suitcase.vue?vue&type=script&lang.ts +var suitcase_vue_vue_type_script_lang_default = { + name: "Suitcase" +}; + +// src/components/suitcase.vue +import { createElementVNode as _createElementVNode251, openBlock as _openBlock252, createElementBlock as _createElementBlock252 } from "vue"; +var _hoisted_1252 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2252 = /* @__PURE__ */ _createElementVNode251( + "path", + { + fill: "currentColor", + d: "M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3251 = /* @__PURE__ */ _createElementVNode251( + "path", + { + fill: "currentColor", + d: "M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_476 = [ + _hoisted_2252, + _hoisted_3251 +]; +function _sfc_render252(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock252(), _createElementBlock252("svg", _hoisted_1252, _hoisted_476); +} +var suitcase_default = /* @__PURE__ */ export_helper_default(suitcase_vue_vue_type_script_lang_default, [["render", _sfc_render252], ["__file", "suitcase.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunny.vue?vue&type=script&lang.ts +var sunny_vue_vue_type_script_lang_default = { + name: "Sunny" +}; + +// src/components/sunny.vue +import { createElementVNode as _createElementVNode252, openBlock as _openBlock253, createElementBlock as _createElementBlock253 } from "vue"; +var _hoisted_1253 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2253 = /* @__PURE__ */ _createElementVNode252( + "path", + { + fill: "currentColor", + d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3252 = [ + _hoisted_2253 +]; +function _sfc_render253(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock253(), _createElementBlock253("svg", _hoisted_1253, _hoisted_3252); +} +var sunny_default = /* @__PURE__ */ export_helper_default(sunny_vue_vue_type_script_lang_default, [["render", _sfc_render253], ["__file", "sunny.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunrise.vue?vue&type=script&lang.ts +var sunrise_vue_vue_type_script_lang_default = { + name: "Sunrise" +}; + +// src/components/sunrise.vue +import { createElementVNode as _createElementVNode253, openBlock as _openBlock254, createElementBlock as _createElementBlock254 } from "vue"; +var _hoisted_1254 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2254 = /* @__PURE__ */ _createElementVNode253( + "path", + { + fill: "currentColor", + d: "M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3253 = [ + _hoisted_2254 +]; +function _sfc_render254(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock254(), _createElementBlock254("svg", _hoisted_1254, _hoisted_3253); +} +var sunrise_default = /* @__PURE__ */ export_helper_default(sunrise_vue_vue_type_script_lang_default, [["render", _sfc_render254], ["__file", "sunrise.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/sunset.vue?vue&type=script&lang.ts +var sunset_vue_vue_type_script_lang_default = { + name: "Sunset" +}; + +// src/components/sunset.vue +import { createElementVNode as _createElementVNode254, openBlock as _openBlock255, createElementBlock as _createElementBlock255 } from "vue"; +var _hoisted_1255 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2255 = /* @__PURE__ */ _createElementVNode254( + "path", + { + fill: "currentColor", + d: "M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3254 = [ + _hoisted_2255 +]; +function _sfc_render255(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock255(), _createElementBlock255("svg", _hoisted_1255, _hoisted_3254); +} +var sunset_default = /* @__PURE__ */ export_helper_default(sunset_vue_vue_type_script_lang_default, [["render", _sfc_render255], ["__file", "sunset.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch-button.vue?vue&type=script&lang.ts +var switch_button_vue_vue_type_script_lang_default = { + name: "SwitchButton" +}; + +// src/components/switch-button.vue +import { createElementVNode as _createElementVNode255, openBlock as _openBlock256, createElementBlock as _createElementBlock256 } from "vue"; +var _hoisted_1256 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2256 = /* @__PURE__ */ _createElementVNode255( + "path", + { + fill: "currentColor", + d: "M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3255 = /* @__PURE__ */ _createElementVNode255( + "path", + { + fill: "currentColor", + d: "M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_477 = [ + _hoisted_2256, + _hoisted_3255 +]; +function _sfc_render256(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock256(), _createElementBlock256("svg", _hoisted_1256, _hoisted_477); +} +var switch_button_default = /* @__PURE__ */ export_helper_default(switch_button_vue_vue_type_script_lang_default, [["render", _sfc_render256], ["__file", "switch-button.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch-filled.vue?vue&type=script&lang.ts +var switch_filled_vue_vue_type_script_lang_default = { + name: "SwitchFilled" +}; + +// src/components/switch-filled.vue +import { createElementVNode as _createElementVNode256, openBlock as _openBlock257, createElementBlock as _createElementBlock257 } from "vue"; +var _hoisted_1257 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2257 = /* @__PURE__ */ _createElementVNode256( + "path", + { + fill: "currentColor", + d: "M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3256 = /* @__PURE__ */ _createElementVNode256( + "path", + { + fill: "currentColor", + d: "M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57v644.36zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_478 = [ + _hoisted_2257, + _hoisted_3256 +]; +function _sfc_render257(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock257(), _createElementBlock257("svg", _hoisted_1257, _hoisted_478); +} +var switch_filled_default = /* @__PURE__ */ export_helper_default(switch_filled_vue_vue_type_script_lang_default, [["render", _sfc_render257], ["__file", "switch-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/switch.vue?vue&type=script&lang.ts +var switch_vue_vue_type_script_lang_default = { + name: "Switch" +}; + +// src/components/switch.vue +import { createElementVNode as _createElementVNode257, openBlock as _openBlock258, createElementBlock as _createElementBlock258 } from "vue"; +var _hoisted_1258 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2258 = /* @__PURE__ */ _createElementVNode257( + "path", + { + fill: "currentColor", + d: "M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3257 = [ + _hoisted_2258 +]; +function _sfc_render258(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock258(), _createElementBlock258("svg", _hoisted_1258, _hoisted_3257); +} +var switch_default = /* @__PURE__ */ export_helper_default(switch_vue_vue_type_script_lang_default, [["render", _sfc_render258], ["__file", "switch.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/takeaway-box.vue?vue&type=script&lang.ts +var takeaway_box_vue_vue_type_script_lang_default = { + name: "TakeawayBox" +}; + +// src/components/takeaway-box.vue +import { createElementVNode as _createElementVNode258, openBlock as _openBlock259, createElementBlock as _createElementBlock259 } from "vue"; +var _hoisted_1259 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2259 = /* @__PURE__ */ _createElementVNode258( + "path", + { + fill: "currentColor", + d: "M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3258 = [ + _hoisted_2259 +]; +function _sfc_render259(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock259(), _createElementBlock259("svg", _hoisted_1259, _hoisted_3258); +} +var takeaway_box_default = /* @__PURE__ */ export_helper_default(takeaway_box_vue_vue_type_script_lang_default, [["render", _sfc_render259], ["__file", "takeaway-box.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/ticket.vue?vue&type=script&lang.ts +var ticket_vue_vue_type_script_lang_default = { + name: "Ticket" +}; + +// src/components/ticket.vue +import { createElementVNode as _createElementVNode259, openBlock as _openBlock260, createElementBlock as _createElementBlock260 } from "vue"; +var _hoisted_1260 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2260 = /* @__PURE__ */ _createElementVNode259( + "path", + { + fill: "currentColor", + d: "M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3259 = [ + _hoisted_2260 +]; +function _sfc_render260(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock260(), _createElementBlock260("svg", _hoisted_1260, _hoisted_3259); +} +var ticket_default = /* @__PURE__ */ export_helper_default(ticket_vue_vue_type_script_lang_default, [["render", _sfc_render260], ["__file", "ticket.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/tickets.vue?vue&type=script&lang.ts +var tickets_vue_vue_type_script_lang_default = { + name: "Tickets" +}; + +// src/components/tickets.vue +import { createElementVNode as _createElementVNode260, openBlock as _openBlock261, createElementBlock as _createElementBlock261 } from "vue"; +var _hoisted_1261 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2261 = /* @__PURE__ */ _createElementVNode260( + "path", + { + fill: "currentColor", + d: "M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3260 = [ + _hoisted_2261 +]; +function _sfc_render261(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock261(), _createElementBlock261("svg", _hoisted_1261, _hoisted_3260); +} +var tickets_default = /* @__PURE__ */ export_helper_default(tickets_vue_vue_type_script_lang_default, [["render", _sfc_render261], ["__file", "tickets.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/timer.vue?vue&type=script&lang.ts +var timer_vue_vue_type_script_lang_default = { + name: "Timer" +}; + +// src/components/timer.vue +import { createElementVNode as _createElementVNode261, openBlock as _openBlock262, createElementBlock as _createElementBlock262 } from "vue"; +var _hoisted_1262 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2262 = /* @__PURE__ */ _createElementVNode261( + "path", + { + fill: "currentColor", + d: "M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3261 = /* @__PURE__ */ _createElementVNode261( + "path", + { + fill: "currentColor", + d: "M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_479 = /* @__PURE__ */ _createElementVNode261( + "path", + { + fill: "currentColor", + d: "M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_522 = [ + _hoisted_2262, + _hoisted_3261, + _hoisted_479 +]; +function _sfc_render262(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock262(), _createElementBlock262("svg", _hoisted_1262, _hoisted_522); +} +var timer_default = /* @__PURE__ */ export_helper_default(timer_vue_vue_type_script_lang_default, [["render", _sfc_render262], ["__file", "timer.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/toilet-paper.vue?vue&type=script&lang.ts +var toilet_paper_vue_vue_type_script_lang_default = { + name: "ToiletPaper" +}; + +// src/components/toilet-paper.vue +import { createElementVNode as _createElementVNode262, openBlock as _openBlock263, createElementBlock as _createElementBlock263 } from "vue"; +var _hoisted_1263 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2263 = /* @__PURE__ */ _createElementVNode262( + "path", + { + fill: "currentColor", + d: "M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3262 = /* @__PURE__ */ _createElementVNode262( + "path", + { + fill: "currentColor", + d: "M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_480 = [ + _hoisted_2263, + _hoisted_3262 +]; +function _sfc_render263(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock263(), _createElementBlock263("svg", _hoisted_1263, _hoisted_480); +} +var toilet_paper_default = /* @__PURE__ */ export_helper_default(toilet_paper_vue_vue_type_script_lang_default, [["render", _sfc_render263], ["__file", "toilet-paper.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/tools.vue?vue&type=script&lang.ts +var tools_vue_vue_type_script_lang_default = { + name: "Tools" +}; + +// src/components/tools.vue +import { createElementVNode as _createElementVNode263, openBlock as _openBlock264, createElementBlock as _createElementBlock264 } from "vue"; +var _hoisted_1264 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2264 = /* @__PURE__ */ _createElementVNode263( + "path", + { + fill: "currentColor", + d: "M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3263 = [ + _hoisted_2264 +]; +function _sfc_render264(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock264(), _createElementBlock264("svg", _hoisted_1264, _hoisted_3263); +} +var tools_default = /* @__PURE__ */ export_helper_default(tools_vue_vue_type_script_lang_default, [["render", _sfc_render264], ["__file", "tools.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top-left.vue?vue&type=script&lang.ts +var top_left_vue_vue_type_script_lang_default = { + name: "TopLeft" +}; + +// src/components/top-left.vue +import { createElementVNode as _createElementVNode264, openBlock as _openBlock265, createElementBlock as _createElementBlock265 } from "vue"; +var _hoisted_1265 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2265 = /* @__PURE__ */ _createElementVNode264( + "path", + { + fill: "currentColor", + d: "M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3264 = /* @__PURE__ */ _createElementVNode264( + "path", + { + fill: "currentColor", + d: "M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_481 = [ + _hoisted_2265, + _hoisted_3264 +]; +function _sfc_render265(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock265(), _createElementBlock265("svg", _hoisted_1265, _hoisted_481); +} +var top_left_default = /* @__PURE__ */ export_helper_default(top_left_vue_vue_type_script_lang_default, [["render", _sfc_render265], ["__file", "top-left.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top-right.vue?vue&type=script&lang.ts +var top_right_vue_vue_type_script_lang_default = { + name: "TopRight" +}; + +// src/components/top-right.vue +import { createElementVNode as _createElementVNode265, openBlock as _openBlock266, createElementBlock as _createElementBlock266 } from "vue"; +var _hoisted_1266 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2266 = /* @__PURE__ */ _createElementVNode265( + "path", + { + fill: "currentColor", + d: "M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3265 = /* @__PURE__ */ _createElementVNode265( + "path", + { + fill: "currentColor", + d: "M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_482 = [ + _hoisted_2266, + _hoisted_3265 +]; +function _sfc_render266(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock266(), _createElementBlock266("svg", _hoisted_1266, _hoisted_482); +} +var top_right_default = /* @__PURE__ */ export_helper_default(top_right_vue_vue_type_script_lang_default, [["render", _sfc_render266], ["__file", "top-right.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/top.vue?vue&type=script&lang.ts +var top_vue_vue_type_script_lang_default = { + name: "Top" +}; + +// src/components/top.vue +import { createElementVNode as _createElementVNode266, openBlock as _openBlock267, createElementBlock as _createElementBlock267 } from "vue"; +var _hoisted_1267 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2267 = /* @__PURE__ */ _createElementVNode266( + "path", + { + fill: "currentColor", + d: "M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3266 = [ + _hoisted_2267 +]; +function _sfc_render267(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock267(), _createElementBlock267("svg", _hoisted_1267, _hoisted_3266); +} +var top_default = /* @__PURE__ */ export_helper_default(top_vue_vue_type_script_lang_default, [["render", _sfc_render267], ["__file", "top.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trend-charts.vue?vue&type=script&lang.ts +var trend_charts_vue_vue_type_script_lang_default = { + name: "TrendCharts" +}; + +// src/components/trend-charts.vue +import { createElementVNode as _createElementVNode267, openBlock as _openBlock268, createElementBlock as _createElementBlock268 } from "vue"; +var _hoisted_1268 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2268 = /* @__PURE__ */ _createElementVNode267( + "path", + { + fill: "currentColor", + d: "M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3267 = [ + _hoisted_2268 +]; +function _sfc_render268(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock268(), _createElementBlock268("svg", _hoisted_1268, _hoisted_3267); +} +var trend_charts_default = /* @__PURE__ */ export_helper_default(trend_charts_vue_vue_type_script_lang_default, [["render", _sfc_render268], ["__file", "trend-charts.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trophy-base.vue?vue&type=script&lang.ts +var trophy_base_vue_vue_type_script_lang_default = { + name: "TrophyBase" +}; + +// src/components/trophy-base.vue +import { createElementVNode as _createElementVNode268, openBlock as _openBlock269, createElementBlock as _createElementBlock269 } from "vue"; +var _hoisted_1269 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2269 = /* @__PURE__ */ _createElementVNode268( + "path", + { + fill: "currentColor", + d: "M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256v182.4zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4zm172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3268 = [ + _hoisted_2269 +]; +function _sfc_render269(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock269(), _createElementBlock269("svg", _hoisted_1269, _hoisted_3268); +} +var trophy_base_default = /* @__PURE__ */ export_helper_default(trophy_base_vue_vue_type_script_lang_default, [["render", _sfc_render269], ["__file", "trophy-base.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/trophy.vue?vue&type=script&lang.ts +var trophy_vue_vue_type_script_lang_default = { + name: "Trophy" +}; + +// src/components/trophy.vue +import { createElementVNode as _createElementVNode269, openBlock as _openBlock270, createElementBlock as _createElementBlock270 } from "vue"; +var _hoisted_1270 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2270 = /* @__PURE__ */ _createElementVNode269( + "path", + { + fill: "currentColor", + d: "M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3269 = [ + _hoisted_2270 +]; +function _sfc_render270(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock270(), _createElementBlock270("svg", _hoisted_1270, _hoisted_3269); +} +var trophy_default = /* @__PURE__ */ export_helper_default(trophy_vue_vue_type_script_lang_default, [["render", _sfc_render270], ["__file", "trophy.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/turn-off.vue?vue&type=script&lang.ts +var turn_off_vue_vue_type_script_lang_default = { + name: "TurnOff" +}; + +// src/components/turn-off.vue +import { createElementVNode as _createElementVNode270, openBlock as _openBlock271, createElementBlock as _createElementBlock271 } from "vue"; +var _hoisted_1271 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2271 = /* @__PURE__ */ _createElementVNode270( + "path", + { + fill: "currentColor", + d: "M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3270 = /* @__PURE__ */ _createElementVNode270( + "path", + { + fill: "currentColor", + d: "M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_483 = [ + _hoisted_2271, + _hoisted_3270 +]; +function _sfc_render271(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock271(), _createElementBlock271("svg", _hoisted_1271, _hoisted_483); +} +var turn_off_default = /* @__PURE__ */ export_helper_default(turn_off_vue_vue_type_script_lang_default, [["render", _sfc_render271], ["__file", "turn-off.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/umbrella.vue?vue&type=script&lang.ts +var umbrella_vue_vue_type_script_lang_default = { + name: "Umbrella" +}; + +// src/components/umbrella.vue +import { createElementVNode as _createElementVNode271, openBlock as _openBlock272, createElementBlock as _createElementBlock272 } from "vue"; +var _hoisted_1272 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2272 = /* @__PURE__ */ _createElementVNode271( + "path", + { + fill: "currentColor", + d: "M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3271 = [ + _hoisted_2272 +]; +function _sfc_render272(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock272(), _createElementBlock272("svg", _hoisted_1272, _hoisted_3271); +} +var umbrella_default = /* @__PURE__ */ export_helper_default(umbrella_vue_vue_type_script_lang_default, [["render", _sfc_render272], ["__file", "umbrella.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/unlock.vue?vue&type=script&lang.ts +var unlock_vue_vue_type_script_lang_default = { + name: "Unlock" +}; + +// src/components/unlock.vue +import { createElementVNode as _createElementVNode272, openBlock as _openBlock273, createElementBlock as _createElementBlock273 } from "vue"; +var _hoisted_1273 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2273 = /* @__PURE__ */ _createElementVNode272( + "path", + { + fill: "currentColor", + d: "M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3272 = /* @__PURE__ */ _createElementVNode272( + "path", + { + fill: "currentColor", + d: "M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_484 = [ + _hoisted_2273, + _hoisted_3272 +]; +function _sfc_render273(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock273(), _createElementBlock273("svg", _hoisted_1273, _hoisted_484); +} +var unlock_default = /* @__PURE__ */ export_helper_default(unlock_vue_vue_type_script_lang_default, [["render", _sfc_render273], ["__file", "unlock.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/upload-filled.vue?vue&type=script&lang.ts +var upload_filled_vue_vue_type_script_lang_default = { + name: "UploadFilled" +}; + +// src/components/upload-filled.vue +import { createElementVNode as _createElementVNode273, openBlock as _openBlock274, createElementBlock as _createElementBlock274 } from "vue"; +var _hoisted_1274 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2274 = /* @__PURE__ */ _createElementVNode273( + "path", + { + fill: "currentColor", + d: "M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3273 = [ + _hoisted_2274 +]; +function _sfc_render274(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock274(), _createElementBlock274("svg", _hoisted_1274, _hoisted_3273); +} +var upload_filled_default = /* @__PURE__ */ export_helper_default(upload_filled_vue_vue_type_script_lang_default, [["render", _sfc_render274], ["__file", "upload-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/upload.vue?vue&type=script&lang.ts +var upload_vue_vue_type_script_lang_default = { + name: "Upload" +}; + +// src/components/upload.vue +import { createElementVNode as _createElementVNode274, openBlock as _openBlock275, createElementBlock as _createElementBlock275 } from "vue"; +var _hoisted_1275 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2275 = /* @__PURE__ */ _createElementVNode274( + "path", + { + fill: "currentColor", + d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3274 = [ + _hoisted_2275 +]; +function _sfc_render275(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock275(), _createElementBlock275("svg", _hoisted_1275, _hoisted_3274); +} +var upload_default = /* @__PURE__ */ export_helper_default(upload_vue_vue_type_script_lang_default, [["render", _sfc_render275], ["__file", "upload.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/user-filled.vue?vue&type=script&lang.ts +var user_filled_vue_vue_type_script_lang_default = { + name: "UserFilled" +}; + +// src/components/user-filled.vue +import { createElementVNode as _createElementVNode275, openBlock as _openBlock276, createElementBlock as _createElementBlock276 } from "vue"; +var _hoisted_1276 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2276 = /* @__PURE__ */ _createElementVNode275( + "path", + { + fill: "currentColor", + d: "M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3275 = [ + _hoisted_2276 +]; +function _sfc_render276(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock276(), _createElementBlock276("svg", _hoisted_1276, _hoisted_3275); +} +var user_filled_default = /* @__PURE__ */ export_helper_default(user_filled_vue_vue_type_script_lang_default, [["render", _sfc_render276], ["__file", "user-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/user.vue?vue&type=script&lang.ts +var user_vue_vue_type_script_lang_default = { + name: "User" +}; + +// src/components/user.vue +import { createElementVNode as _createElementVNode276, openBlock as _openBlock277, createElementBlock as _createElementBlock277 } from "vue"; +var _hoisted_1277 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2277 = /* @__PURE__ */ _createElementVNode276( + "path", + { + fill: "currentColor", + d: "M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3276 = [ + _hoisted_2277 +]; +function _sfc_render277(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock277(), _createElementBlock277("svg", _hoisted_1277, _hoisted_3276); +} +var user_default = /* @__PURE__ */ export_helper_default(user_vue_vue_type_script_lang_default, [["render", _sfc_render277], ["__file", "user.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/van.vue?vue&type=script&lang.ts +var van_vue_vue_type_script_lang_default = { + name: "Van" +}; + +// src/components/van.vue +import { createElementVNode as _createElementVNode277, openBlock as _openBlock278, createElementBlock as _createElementBlock278 } from "vue"; +var _hoisted_1278 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2278 = /* @__PURE__ */ _createElementVNode277( + "path", + { + fill: "currentColor", + d: "M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3277 = [ + _hoisted_2278 +]; +function _sfc_render278(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock278(), _createElementBlock278("svg", _hoisted_1278, _hoisted_3277); +} +var van_default = /* @__PURE__ */ export_helper_default(van_vue_vue_type_script_lang_default, [["render", _sfc_render278], ["__file", "van.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-camera-filled.vue?vue&type=script&lang.ts +var video_camera_filled_vue_vue_type_script_lang_default = { + name: "VideoCameraFilled" +}; + +// src/components/video-camera-filled.vue +import { createElementVNode as _createElementVNode278, openBlock as _openBlock279, createElementBlock as _createElementBlock279 } from "vue"; +var _hoisted_1279 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2279 = /* @__PURE__ */ _createElementVNode278( + "path", + { + fill: "currentColor", + d: "m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3278 = [ + _hoisted_2279 +]; +function _sfc_render279(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock279(), _createElementBlock279("svg", _hoisted_1279, _hoisted_3278); +} +var video_camera_filled_default = /* @__PURE__ */ export_helper_default(video_camera_filled_vue_vue_type_script_lang_default, [["render", _sfc_render279], ["__file", "video-camera-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-camera.vue?vue&type=script&lang.ts +var video_camera_vue_vue_type_script_lang_default = { + name: "VideoCamera" +}; + +// src/components/video-camera.vue +import { createElementVNode as _createElementVNode279, openBlock as _openBlock280, createElementBlock as _createElementBlock280 } from "vue"; +var _hoisted_1280 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2280 = /* @__PURE__ */ _createElementVNode279( + "path", + { + fill: "currentColor", + d: "M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3279 = [ + _hoisted_2280 +]; +function _sfc_render280(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock280(), _createElementBlock280("svg", _hoisted_1280, _hoisted_3279); +} +var video_camera_default = /* @__PURE__ */ export_helper_default(video_camera_vue_vue_type_script_lang_default, [["render", _sfc_render280], ["__file", "video-camera.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-pause.vue?vue&type=script&lang.ts +var video_pause_vue_vue_type_script_lang_default = { + name: "VideoPause" +}; + +// src/components/video-pause.vue +import { createElementVNode as _createElementVNode280, openBlock as _openBlock281, createElementBlock as _createElementBlock281 } from "vue"; +var _hoisted_1281 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2281 = /* @__PURE__ */ _createElementVNode280( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3280 = [ + _hoisted_2281 +]; +function _sfc_render281(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock281(), _createElementBlock281("svg", _hoisted_1281, _hoisted_3280); +} +var video_pause_default = /* @__PURE__ */ export_helper_default(video_pause_vue_vue_type_script_lang_default, [["render", _sfc_render281], ["__file", "video-pause.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/video-play.vue?vue&type=script&lang.ts +var video_play_vue_vue_type_script_lang_default = { + name: "VideoPlay" +}; + +// src/components/video-play.vue +import { createElementVNode as _createElementVNode281, openBlock as _openBlock282, createElementBlock as _createElementBlock282 } from "vue"; +var _hoisted_1282 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2282 = /* @__PURE__ */ _createElementVNode281( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3281 = [ + _hoisted_2282 +]; +function _sfc_render282(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock282(), _createElementBlock282("svg", _hoisted_1282, _hoisted_3281); +} +var video_play_default = /* @__PURE__ */ export_helper_default(video_play_vue_vue_type_script_lang_default, [["render", _sfc_render282], ["__file", "video-play.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/view.vue?vue&type=script&lang.ts +var view_vue_vue_type_script_lang_default = { + name: "View" +}; + +// src/components/view.vue +import { createElementVNode as _createElementVNode282, openBlock as _openBlock283, createElementBlock as _createElementBlock283 } from "vue"; +var _hoisted_1283 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2283 = /* @__PURE__ */ _createElementVNode282( + "path", + { + fill: "currentColor", + d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3282 = [ + _hoisted_2283 +]; +function _sfc_render283(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock283(), _createElementBlock283("svg", _hoisted_1283, _hoisted_3282); +} +var view_default = /* @__PURE__ */ export_helper_default(view_vue_vue_type_script_lang_default, [["render", _sfc_render283], ["__file", "view.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wallet-filled.vue?vue&type=script&lang.ts +var wallet_filled_vue_vue_type_script_lang_default = { + name: "WalletFilled" +}; + +// src/components/wallet-filled.vue +import { createElementVNode as _createElementVNode283, openBlock as _openBlock284, createElementBlock as _createElementBlock284 } from "vue"; +var _hoisted_1284 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2284 = /* @__PURE__ */ _createElementVNode283( + "path", + { + fill: "currentColor", + d: "M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3283 = [ + _hoisted_2284 +]; +function _sfc_render284(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock284(), _createElementBlock284("svg", _hoisted_1284, _hoisted_3283); +} +var wallet_filled_default = /* @__PURE__ */ export_helper_default(wallet_filled_vue_vue_type_script_lang_default, [["render", _sfc_render284], ["__file", "wallet-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wallet.vue?vue&type=script&lang.ts +var wallet_vue_vue_type_script_lang_default = { + name: "Wallet" +}; + +// src/components/wallet.vue +import { createElementVNode as _createElementVNode284, openBlock as _openBlock285, createElementBlock as _createElementBlock285 } from "vue"; +var _hoisted_1285 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2285 = /* @__PURE__ */ _createElementVNode284( + "path", + { + fill: "currentColor", + d: "M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3284 = /* @__PURE__ */ _createElementVNode284( + "path", + { + fill: "currentColor", + d: "M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_485 = /* @__PURE__ */ _createElementVNode284( + "path", + { + fill: "currentColor", + d: "M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_523 = [ + _hoisted_2285, + _hoisted_3284, + _hoisted_485 +]; +function _sfc_render285(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock285(), _createElementBlock285("svg", _hoisted_1285, _hoisted_523); +} +var wallet_default = /* @__PURE__ */ export_helper_default(wallet_vue_vue_type_script_lang_default, [["render", _sfc_render285], ["__file", "wallet.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warn-triangle-filled.vue?vue&type=script&lang.ts +var warn_triangle_filled_vue_vue_type_script_lang_default = { + name: "WarnTriangleFilled" +}; + +// src/components/warn-triangle-filled.vue +import { createElementVNode as _createElementVNode285, openBlock as _openBlock286, createElementBlock as _createElementBlock286 } from "vue"; +var _hoisted_1286 = { + xmlns: "http://www.w3.org/2000/svg", + "xml:space": "preserve", + style: { "enable-background": "new 0 0 1024 1024" }, + viewBox: "0 0 1024 1024" +}, _hoisted_2286 = /* @__PURE__ */ _createElementVNode285( + "path", + { + fill: "currentColor", + d: "M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03zM554.67 768h-85.33v-85.33h85.33V768zm0-426.67v298.66h-85.33V341.32l85.33.01z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3285 = [ + _hoisted_2286 +]; +function _sfc_render286(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock286(), _createElementBlock286("svg", _hoisted_1286, _hoisted_3285); +} +var warn_triangle_filled_default = /* @__PURE__ */ export_helper_default(warn_triangle_filled_vue_vue_type_script_lang_default, [["render", _sfc_render286], ["__file", "warn-triangle-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warning-filled.vue?vue&type=script&lang.ts +var warning_filled_vue_vue_type_script_lang_default = { + name: "WarningFilled" +}; + +// src/components/warning-filled.vue +import { createElementVNode as _createElementVNode286, openBlock as _openBlock287, createElementBlock as _createElementBlock287 } from "vue"; +var _hoisted_1287 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2287 = /* @__PURE__ */ _createElementVNode286( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3286 = [ + _hoisted_2287 +]; +function _sfc_render287(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock287(), _createElementBlock287("svg", _hoisted_1287, _hoisted_3286); +} +var warning_filled_default = /* @__PURE__ */ export_helper_default(warning_filled_vue_vue_type_script_lang_default, [["render", _sfc_render287], ["__file", "warning-filled.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/warning.vue?vue&type=script&lang.ts +var warning_vue_vue_type_script_lang_default = { + name: "Warning" +}; + +// src/components/warning.vue +import { createElementVNode as _createElementVNode287, openBlock as _openBlock288, createElementBlock as _createElementBlock288 } from "vue"; +var _hoisted_1288 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2288 = /* @__PURE__ */ _createElementVNode287( + "path", + { + fill: "currentColor", + d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3287 = [ + _hoisted_2288 +]; +function _sfc_render288(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock288(), _createElementBlock288("svg", _hoisted_1288, _hoisted_3287); +} +var warning_default = /* @__PURE__ */ export_helper_default(warning_vue_vue_type_script_lang_default, [["render", _sfc_render288], ["__file", "warning.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/watch.vue?vue&type=script&lang.ts +var watch_vue_vue_type_script_lang_default = { + name: "Watch" +}; + +// src/components/watch.vue +import { createElementVNode as _createElementVNode288, openBlock as _openBlock289, createElementBlock as _createElementBlock289 } from "vue"; +var _hoisted_1289 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2289 = /* @__PURE__ */ _createElementVNode288( + "path", + { + fill: "currentColor", + d: "M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3288 = /* @__PURE__ */ _createElementVNode288( + "path", + { + fill: "currentColor", + d: "M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_486 = /* @__PURE__ */ _createElementVNode288( + "path", + { + fill: "currentColor", + d: "M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_524 = [ + _hoisted_2289, + _hoisted_3288, + _hoisted_486 +]; +function _sfc_render289(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock289(), _createElementBlock289("svg", _hoisted_1289, _hoisted_524); +} +var watch_default = /* @__PURE__ */ export_helper_default(watch_vue_vue_type_script_lang_default, [["render", _sfc_render289], ["__file", "watch.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/watermelon.vue?vue&type=script&lang.ts +var watermelon_vue_vue_type_script_lang_default = { + name: "Watermelon" +}; + +// src/components/watermelon.vue +import { createElementVNode as _createElementVNode289, openBlock as _openBlock290, createElementBlock as _createElementBlock290 } from "vue"; +var _hoisted_1290 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2290 = /* @__PURE__ */ _createElementVNode289( + "path", + { + fill: "currentColor", + d: "m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3289 = [ + _hoisted_2290 +]; +function _sfc_render290(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock290(), _createElementBlock290("svg", _hoisted_1290, _hoisted_3289); +} +var watermelon_default = /* @__PURE__ */ export_helper_default(watermelon_vue_vue_type_script_lang_default, [["render", _sfc_render290], ["__file", "watermelon.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/wind-power.vue?vue&type=script&lang.ts +var wind_power_vue_vue_type_script_lang_default = { + name: "WindPower" +}; + +// src/components/wind-power.vue +import { createElementVNode as _createElementVNode290, openBlock as _openBlock291, createElementBlock as _createElementBlock291 } from "vue"; +var _hoisted_1291 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2291 = /* @__PURE__ */ _createElementVNode290( + "path", + { + fill: "currentColor", + d: "M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3290 = [ + _hoisted_2291 +]; +function _sfc_render291(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock291(), _createElementBlock291("svg", _hoisted_1291, _hoisted_3290); +} +var wind_power_default = /* @__PURE__ */ export_helper_default(wind_power_vue_vue_type_script_lang_default, [["render", _sfc_render291], ["__file", "wind-power.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-in.vue?vue&type=script&lang.ts +var zoom_in_vue_vue_type_script_lang_default = { + name: "ZoomIn" +}; + +// src/components/zoom-in.vue +import { createElementVNode as _createElementVNode291, openBlock as _openBlock292, createElementBlock as _createElementBlock292 } from "vue"; +var _hoisted_1292 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2292 = /* @__PURE__ */ _createElementVNode291( + "path", + { + fill: "currentColor", + d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3291 = [ + _hoisted_2292 +]; +function _sfc_render292(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock292(), _createElementBlock292("svg", _hoisted_1292, _hoisted_3291); +} +var zoom_in_default = /* @__PURE__ */ export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]); + +// unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-out.vue?vue&type=script&lang.ts +var zoom_out_vue_vue_type_script_lang_default = { + name: "ZoomOut" +}; + +// src/components/zoom-out.vue +import { createElementVNode as _createElementVNode292, openBlock as _openBlock293, createElementBlock as _createElementBlock293 } from "vue"; +var _hoisted_1293 = { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 1024 1024" +}, _hoisted_2293 = /* @__PURE__ */ _createElementVNode292( + "path", + { + fill: "currentColor", + d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z" + }, + null, + -1 + /* HOISTED */ +), _hoisted_3292 = [ + _hoisted_2293 +]; +function _sfc_render293(_ctx, _cache, $props, $setup, $data, $options) { + return _openBlock293(), _createElementBlock293("svg", _hoisted_1293, _hoisted_3292); +} +var zoom_out_default = /* @__PURE__ */ export_helper_default(zoom_out_vue_vue_type_script_lang_default, [["render", _sfc_render293], ["__file", "zoom-out.vue"]]); +export { + add_location_default as AddLocation, + aim_default as Aim, + alarm_clock_default as AlarmClock, + apple_default as Apple, + arrow_down_default as ArrowDown, + arrow_down_bold_default as ArrowDownBold, + arrow_left_default as ArrowLeft, + arrow_left_bold_default as ArrowLeftBold, + arrow_right_default as ArrowRight, + arrow_right_bold_default as ArrowRightBold, + arrow_up_default as ArrowUp, + arrow_up_bold_default as ArrowUpBold, + avatar_default as Avatar, + back_default as Back, + baseball_default as Baseball, + basketball_default as Basketball, + bell_default as Bell, + bell_filled_default as BellFilled, + bicycle_default as Bicycle, + bottom_default as Bottom, + bottom_left_default as BottomLeft, + bottom_right_default as BottomRight, + bowl_default as Bowl, + box_default as Box, + briefcase_default as Briefcase, + brush_default as Brush, + brush_filled_default as BrushFilled, + burger_default as Burger, + calendar_default as Calendar, + camera_default as Camera, + camera_filled_default as CameraFilled, + caret_bottom_default as CaretBottom, + caret_left_default as CaretLeft, + caret_right_default as CaretRight, + caret_top_default as CaretTop, + cellphone_default as Cellphone, + chat_dot_round_default as ChatDotRound, + chat_dot_square_default as ChatDotSquare, + chat_line_round_default as ChatLineRound, + chat_line_square_default as ChatLineSquare, + chat_round_default as ChatRound, + chat_square_default as ChatSquare, + check_default as Check, + checked_default as Checked, + cherry_default as Cherry, + chicken_default as Chicken, + chrome_filled_default as ChromeFilled, + circle_check_default as CircleCheck, + circle_check_filled_default as CircleCheckFilled, + circle_close_default as CircleClose, + circle_close_filled_default as CircleCloseFilled, + circle_plus_default as CirclePlus, + circle_plus_filled_default as CirclePlusFilled, + clock_default as Clock, + close_default as Close, + close_bold_default as CloseBold, + cloudy_default as Cloudy, + coffee_default as Coffee, + coffee_cup_default as CoffeeCup, + coin_default as Coin, + cold_drink_default as ColdDrink, + collection_default as Collection, + collection_tag_default as CollectionTag, + comment_default as Comment, + compass_default as Compass, + connection_default as Connection, + coordinate_default as Coordinate, + copy_document_default as CopyDocument, + cpu_default as Cpu, + credit_card_default as CreditCard, + crop_default as Crop, + d_arrow_left_default as DArrowLeft, + d_arrow_right_default as DArrowRight, + d_caret_default as DCaret, + data_analysis_default as DataAnalysis, + data_board_default as DataBoard, + data_line_default as DataLine, + delete_default as Delete, + delete_filled_default as DeleteFilled, + delete_location_default as DeleteLocation, + dessert_default as Dessert, + discount_default as Discount, + dish_default as Dish, + dish_dot_default as DishDot, + document_default as Document, + document_add_default as DocumentAdd, + document_checked_default as DocumentChecked, + document_copy_default as DocumentCopy, + document_delete_default as DocumentDelete, + document_remove_default as DocumentRemove, + download_default as Download, + drizzling_default as Drizzling, + edit_default as Edit, + edit_pen_default as EditPen, + eleme_default as Eleme, + eleme_filled_default as ElemeFilled, + element_plus_default as ElementPlus, + expand_default as Expand, + failed_default as Failed, + female_default as Female, + files_default as Files, + film_default as Film, + filter_default as Filter, + finished_default as Finished, + first_aid_kit_default as FirstAidKit, + flag_default as Flag, + fold_default as Fold, + folder_default as Folder, + folder_add_default as FolderAdd, + folder_checked_default as FolderChecked, + folder_delete_default as FolderDelete, + folder_opened_default as FolderOpened, + folder_remove_default as FolderRemove, + food_default as Food, + football_default as Football, + fork_spoon_default as ForkSpoon, + fries_default as Fries, + full_screen_default as FullScreen, + goblet_default as Goblet, + goblet_full_default as GobletFull, + goblet_square_default as GobletSquare, + goblet_square_full_default as GobletSquareFull, + gold_medal_default as GoldMedal, + goods_default as Goods, + goods_filled_default as GoodsFilled, + grape_default as Grape, + grid_default as Grid, + guide_default as Guide, + handbag_default as Handbag, + headset_default as Headset, + help_default as Help, + help_filled_default as HelpFilled, + hide_default as Hide, + histogram_default as Histogram, + home_filled_default as HomeFilled, + hot_water_default as HotWater, + house_default as House, + ice_cream_default as IceCream, + ice_cream_round_default as IceCreamRound, + ice_cream_square_default as IceCreamSquare, + ice_drink_default as IceDrink, + ice_tea_default as IceTea, + info_filled_default as InfoFilled, + iphone_default as Iphone, + key_default as Key, + knife_fork_default as KnifeFork, + lightning_default as Lightning, + link_default as Link, + list_default as List, + loading_default as Loading, + location_default as Location, + location_filled_default as LocationFilled, + location_information_default as LocationInformation, + lock_default as Lock, + lollipop_default as Lollipop, + magic_stick_default as MagicStick, + magnet_default as Magnet, + male_default as Male, + management_default as Management, + map_location_default as MapLocation, + medal_default as Medal, + memo_default as Memo, + menu_default as Menu, + message_default as Message, + message_box_default as MessageBox, + mic_default as Mic, + microphone_default as Microphone, + milk_tea_default as MilkTea, + minus_default as Minus, + money_default as Money, + monitor_default as Monitor, + moon_default as Moon, + moon_night_default as MoonNight, + more_default as More, + more_filled_default as MoreFilled, + mostly_cloudy_default as MostlyCloudy, + mouse_default as Mouse, + mug_default as Mug, + mute_default as Mute, + mute_notification_default as MuteNotification, + no_smoking_default as NoSmoking, + notebook_default as Notebook, + notification_default as Notification, + odometer_default as Odometer, + office_building_default as OfficeBuilding, + open_default as Open, + operation_default as Operation, + opportunity_default as Opportunity, + orange_default as Orange, + paperclip_default as Paperclip, + partly_cloudy_default as PartlyCloudy, + pear_default as Pear, + phone_default as Phone, + phone_filled_default as PhoneFilled, + picture_default as Picture, + picture_filled_default as PictureFilled, + picture_rounded_default as PictureRounded, + pie_chart_default as PieChart, + place_default as Place, + platform_default as Platform, + plus_default as Plus, + pointer_default as Pointer, + position_default as Position, + postcard_default as Postcard, + pouring_default as Pouring, + present_default as Present, + price_tag_default as PriceTag, + printer_default as Printer, + promotion_default as Promotion, + quartz_watch_default as QuartzWatch, + question_filled_default as QuestionFilled, + rank_default as Rank, + reading_default as Reading, + reading_lamp_default as ReadingLamp, + refresh_default as Refresh, + refresh_left_default as RefreshLeft, + refresh_right_default as RefreshRight, + refrigerator_default as Refrigerator, + remove_default as Remove, + remove_filled_default as RemoveFilled, + right_default as Right, + scale_to_original_default as ScaleToOriginal, + school_default as School, + scissor_default as Scissor, + search_default as Search, + select_default as Select, + sell_default as Sell, + semi_select_default as SemiSelect, + service_default as Service, + set_up_default as SetUp, + setting_default as Setting, + share_default as Share, + ship_default as Ship, + shop_default as Shop, + shopping_bag_default as ShoppingBag, + shopping_cart_default as ShoppingCart, + shopping_cart_full_default as ShoppingCartFull, + shopping_trolley_default as ShoppingTrolley, + smoking_default as Smoking, + soccer_default as Soccer, + sold_out_default as SoldOut, + sort_default as Sort, + sort_down_default as SortDown, + sort_up_default as SortUp, + stamp_default as Stamp, + star_default as Star, + star_filled_default as StarFilled, + stopwatch_default as Stopwatch, + success_filled_default as SuccessFilled, + sugar_default as Sugar, + suitcase_default as Suitcase, + suitcase_line_default as SuitcaseLine, + sunny_default as Sunny, + sunrise_default as Sunrise, + sunset_default as Sunset, + switch_default as Switch, + switch_button_default as SwitchButton, + switch_filled_default as SwitchFilled, + takeaway_box_default as TakeawayBox, + ticket_default as Ticket, + tickets_default as Tickets, + timer_default as Timer, + toilet_paper_default as ToiletPaper, + tools_default as Tools, + top_default as Top, + top_left_default as TopLeft, + top_right_default as TopRight, + trend_charts_default as TrendCharts, + trophy_default as Trophy, + trophy_base_default as TrophyBase, + turn_off_default as TurnOff, + umbrella_default as Umbrella, + unlock_default as Unlock, + upload_default as Upload, + upload_filled_default as UploadFilled, + user_default as User, + user_filled_default as UserFilled, + van_default as Van, + video_camera_default as VideoCamera, + video_camera_filled_default as VideoCameraFilled, + video_pause_default as VideoPause, + video_play_default as VideoPlay, + view_default as View, + wallet_default as Wallet, + wallet_filled_default as WalletFilled, + warn_triangle_filled_default as WarnTriangleFilled, + warning_default as Warning, + warning_filled_default as WarningFilled, + watch_default as Watch, + watermelon_default as Watermelon, + wind_power_default as WindPower, + zoom_in_default as ZoomIn, + zoom_out_default as ZoomOut +}; diff --git a/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js b/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js new file mode 100644 index 00000000..9494fd53 --- /dev/null +++ b/code/WebApp/vanilla/lib/@microsoft/signalr/signalr.esm.js @@ -0,0 +1,2568 @@ +const __require = /* @__PURE__ */ ((x) => + typeof require !== "undefined" + ? require + : typeof Proxy !== "undefined" + ? new Proxy(x, { + get: (a, b) => (typeof require !== "undefined" ? require : a)[b], + }) + : x)(function (x) { + if (typeof require !== "undefined") return require.apply(this, arguments); + throw new Error('Dynamic require of "' + x + '" is not supported'); +}); + +// node_modules/@microsoft/signalr/dist/esm/Errors.js +var HttpError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.HttpError}. + * + * @param {string} errorMessage A descriptive error message. + * @param {number} statusCode The HTTP status code represented by this error. + */ + constructor(errorMessage, statusCode) { + const trueProto = new.target.prototype; + super(`${errorMessage}: Status code '${statusCode}'`); + this.statusCode = statusCode; + this.__proto__ = trueProto; + } +}; +var TimeoutError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}. + * + * @param {string} errorMessage A descriptive error message. + */ + constructor(errorMessage = "A timeout occurred.") { + const trueProto = new.target.prototype; + super(errorMessage); + this.__proto__ = trueProto; + } +}; +var AbortError = class extends Error { + /** Constructs a new instance of {@link AbortError}. + * + * @param {string} errorMessage A descriptive error message. + */ + constructor(errorMessage = "An abort occurred.") { + const trueProto = new.target.prototype; + super(errorMessage); + this.__proto__ = trueProto; + } +}; +var UnsupportedTransportError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}. + * + * @param {string} message A descriptive error message. + * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on. + */ + constructor(message, transport) { + const trueProto = new.target.prototype; + super(message); + this.transport = transport; + this.errorType = "UnsupportedTransportError"; + this.__proto__ = trueProto; + } +}; +var DisabledTransportError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}. + * + * @param {string} message A descriptive error message. + * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on. + */ + constructor(message, transport) { + const trueProto = new.target.prototype; + super(message); + this.transport = transport; + this.errorType = "DisabledTransportError"; + this.__proto__ = trueProto; + } +}; +var FailedToStartTransportError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}. + * + * @param {string} message A descriptive error message. + * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on. + */ + constructor(message, transport) { + const trueProto = new.target.prototype; + super(message); + this.transport = transport; + this.errorType = "FailedToStartTransportError"; + this.__proto__ = trueProto; + } +}; +var FailedToNegotiateWithServerError = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}. + * + * @param {string} message A descriptive error message. + */ + constructor(message) { + const trueProto = new.target.prototype; + super(message); + this.errorType = "FailedToNegotiateWithServerError"; + this.__proto__ = trueProto; + } +}; +var AggregateErrors = class extends Error { + /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}. + * + * @param {string} message A descriptive error message. + * @param {Error[]} innerErrors The collection of errors this error is aggregating. + */ + constructor(message, innerErrors) { + const trueProto = new.target.prototype; + super(message); + this.innerErrors = innerErrors; + this.__proto__ = trueProto; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/HttpClient.js +var HttpResponse = class { + constructor(statusCode, statusText, content) { + this.statusCode = statusCode; + this.statusText = statusText; + this.content = content; + } +}; +var HttpClient = class { + get(url, options) { + return this.send({ + ...options, + method: "GET", + url + }); + } + post(url, options) { + return this.send({ + ...options, + method: "POST", + url + }); + } + delete(url, options) { + return this.send({ + ...options, + method: "DELETE", + url + }); + } + /** Gets all cookies that apply to the specified URL. + * + * @param url The URL that the cookies are valid for. + * @returns {string} A string containing all the key-value cookie pairs for the specified URL. + */ + // @ts-ignore + getCookieString(url) { + return ""; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/ILogger.js +var LogLevel; +(function(LogLevel2) { + LogLevel2[LogLevel2["Trace"] = 0] = "Trace"; + LogLevel2[LogLevel2["Debug"] = 1] = "Debug"; + LogLevel2[LogLevel2["Information"] = 2] = "Information"; + LogLevel2[LogLevel2["Warning"] = 3] = "Warning"; + LogLevel2[LogLevel2["Error"] = 4] = "Error"; + LogLevel2[LogLevel2["Critical"] = 5] = "Critical"; + LogLevel2[LogLevel2["None"] = 6] = "None"; +})(LogLevel || (LogLevel = {})); + +// node_modules/@microsoft/signalr/dist/esm/Loggers.js +var NullLogger = class { + constructor() { + } + /** @inheritDoc */ + // eslint-disable-next-line + log(_logLevel, _message) { + } +}; +NullLogger.instance = new NullLogger(); + +// node_modules/@microsoft/signalr/dist/esm/Utils.js +var VERSION = "7.0.7"; +var Arg = class { + static isRequired(val, name) { + if (val === null || val === void 0) { + throw new Error(`The '${name}' argument is required.`); + } + } + static isNotEmpty(val, name) { + if (!val || val.match(/^\s*$/)) { + throw new Error(`The '${name}' argument should not be empty.`); + } + } + static isIn(val, values, name) { + if (!(val in values)) { + throw new Error(`Unknown ${name} value: ${val}.`); + } + } +}; +var Platform = class { + // react-native has a window but no document so we should check both + static get isBrowser() { + return typeof window === "object" && typeof window.document === "object"; + } + // WebWorkers don't have a window object so the isBrowser check would fail + static get isWebWorker() { + return typeof self === "object" && "importScripts" in self; + } + // react-native has a window but no document + static get isReactNative() { + return typeof window === "object" && typeof window.document === "undefined"; + } + // Node apps shouldn't have a window object, but WebWorkers don't either + // so we need to check for both WebWorker and window + static get isNode() { + return !this.isBrowser && !this.isWebWorker && !this.isReactNative; + } +}; +function getDataDetail(data, includeContent) { + let detail = ""; + if (isArrayBuffer(data)) { + detail = `Binary data of length ${data.byteLength}`; + if (includeContent) { + detail += `. Content: '${formatArrayBuffer(data)}'`; + } + } else if (typeof data === "string") { + detail = `String data of length ${data.length}`; + if (includeContent) { + detail += `. Content: '${data}'`; + } + } + return detail; +} +function formatArrayBuffer(data) { + const view = new Uint8Array(data); + let str = ""; + view.forEach((num) => { + const pad = num < 16 ? "0" : ""; + str += `0x${pad}${num.toString(16)} `; + }); + return str.substr(0, str.length - 1); +} +function isArrayBuffer(val) { + return val && typeof ArrayBuffer !== "undefined" && (val instanceof ArrayBuffer || // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof + val.constructor && val.constructor.name === "ArrayBuffer"); +} +async function sendMessage(logger, transportName, httpClient, url, content, options) { + const headers = {}; + const [name, value] = getUserAgentHeader(); + headers[name] = value; + logger.log(LogLevel.Trace, `(${transportName} transport) sending data. ${getDataDetail(content, options.logMessageContent)}.`); + const responseType = isArrayBuffer(content) ? "arraybuffer" : "text"; + const response = await httpClient.post(url, { + content, + headers: { ...headers, ...options.headers }, + responseType, + timeout: options.timeout, + withCredentials: options.withCredentials + }); + logger.log(LogLevel.Trace, `(${transportName} transport) request complete. Response status: ${response.statusCode}.`); +} +function createLogger(logger) { + if (logger === void 0) { + return new ConsoleLogger(LogLevel.Information); + } + if (logger === null) { + return NullLogger.instance; + } + if (logger.log !== void 0) { + return logger; + } + return new ConsoleLogger(logger); +} +var SubjectSubscription = class { + constructor(subject, observer) { + this._subject = subject; + this._observer = observer; + } + dispose() { + const index = this._subject.observers.indexOf(this._observer); + if (index > -1) { + this._subject.observers.splice(index, 1); + } + if (this._subject.observers.length === 0 && this._subject.cancelCallback) { + this._subject.cancelCallback().catch((_) => { + }); + } + } +}; +var ConsoleLogger = class { + constructor(minimumLogLevel) { + this._minLevel = minimumLogLevel; + this.out = console; + } + log(logLevel, message) { + if (logLevel >= this._minLevel) { + const msg = `[${(/* @__PURE__ */ new Date()).toISOString()}] ${LogLevel[logLevel]}: ${message}`; + switch (logLevel) { + case LogLevel.Critical: + case LogLevel.Error: + this.out.error(msg); + break; + case LogLevel.Warning: + this.out.warn(msg); + break; + case LogLevel.Information: + this.out.info(msg); + break; + default: + this.out.log(msg); + break; + } + } + } +}; +function getUserAgentHeader() { + let userAgentHeaderName = "X-SignalR-User-Agent"; + if (Platform.isNode) { + userAgentHeaderName = "User-Agent"; + } + return [userAgentHeaderName, constructUserAgent(VERSION, getOsName(), getRuntime(), getRuntimeVersion())]; +} +function constructUserAgent(version, os, runtime, runtimeVersion) { + let userAgent = "Microsoft SignalR/"; + const majorAndMinor = version.split("."); + userAgent += `${majorAndMinor[0]}.${majorAndMinor[1]}`; + userAgent += ` (${version}; `; + if (os && os !== "") { + userAgent += `${os}; `; + } else { + userAgent += "Unknown OS; "; + } + userAgent += `${runtime}`; + if (runtimeVersion) { + userAgent += `; ${runtimeVersion}`; + } else { + userAgent += "; Unknown Runtime Version"; + } + userAgent += ")"; + return userAgent; +} +function getOsName() { + if (Platform.isNode) { + switch (process.platform) { + case "win32": + return "Windows NT"; + case "darwin": + return "macOS"; + case "linux": + return "Linux"; + default: + return process.platform; + } + } else { + return ""; + } +} +function getRuntimeVersion() { + if (Platform.isNode) { + return process.versions.node; + } + return void 0; +} +function getRuntime() { + if (Platform.isNode) { + return "NodeJS"; + } else { + return "Browser"; + } +} +function getErrorString(e) { + if (e.stack) { + return e.stack; + } else if (e.message) { + return e.message; + } + return `${e}`; +} +function getGlobalThis() { + if (typeof globalThis !== "undefined") { + return globalThis; + } + if (typeof self !== "undefined") { + return self; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + throw new Error("could not find global"); +} + +// node_modules/@microsoft/signalr/dist/esm/FetchHttpClient.js +var FetchHttpClient = class extends HttpClient { + constructor(logger) { + super(); + this._logger = logger; + if (typeof fetch === "undefined") { + const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; + this._jar = new (requireFunc("tough-cookie")).CookieJar(); + this._fetchType = requireFunc("node-fetch"); + this._fetchType = requireFunc("fetch-cookie")(this._fetchType, this._jar); + } else { + this._fetchType = fetch.bind(getGlobalThis()); + } + if (typeof AbortController === "undefined") { + const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; + this._abortControllerType = requireFunc("abort-controller"); + } else { + this._abortControllerType = AbortController; + } + } + /** @inheritDoc */ + async send(request) { + if (request.abortSignal && request.abortSignal.aborted) { + throw new AbortError(); + } + if (!request.method) { + throw new Error("No method defined."); + } + if (!request.url) { + throw new Error("No url defined."); + } + const abortController = new this._abortControllerType(); + let error; + if (request.abortSignal) { + request.abortSignal.onabort = () => { + abortController.abort(); + error = new AbortError(); + }; + } + let timeoutId = null; + if (request.timeout) { + const msTimeout = request.timeout; + timeoutId = setTimeout(() => { + abortController.abort(); + this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`); + error = new TimeoutError(); + }, msTimeout); + } + if (request.content === "") { + request.content = void 0; + } + if (request.content) { + request.headers = request.headers || {}; + if (isArrayBuffer(request.content)) { + request.headers["Content-Type"] = "application/octet-stream"; + } else { + request.headers["Content-Type"] = "text/plain;charset=UTF-8"; + } + } + let response; + try { + response = await this._fetchType(request.url, { + body: request.content, + cache: "no-cache", + credentials: request.withCredentials === true ? "include" : "same-origin", + headers: { + "X-Requested-With": "XMLHttpRequest", + ...request.headers + }, + method: request.method, + mode: "cors", + redirect: "follow", + signal: abortController.signal + }); + } catch (e) { + if (error) { + throw error; + } + this._logger.log(LogLevel.Warning, `Error from HTTP request. ${e}.`); + throw e; + } finally { + if (timeoutId) { + clearTimeout(timeoutId); + } + if (request.abortSignal) { + request.abortSignal.onabort = null; + } + } + if (!response.ok) { + const errorMessage = await deserializeContent(response, "text"); + throw new HttpError(errorMessage || response.statusText, response.status); + } + const content = deserializeContent(response, request.responseType); + const payload = await content; + return new HttpResponse(response.status, response.statusText, payload); + } + getCookieString(url) { + let cookies = ""; + if (Platform.isNode && this._jar) { + this._jar.getCookies(url, (e, c) => cookies = c.join("; ")); + } + return cookies; + } +}; +function deserializeContent(response, responseType) { + let content; + switch (responseType) { + case "arraybuffer": + content = response.arrayBuffer(); + break; + case "text": + content = response.text(); + break; + case "blob": + case "document": + case "json": + throw new Error(`${responseType} is not supported.`); + default: + content = response.text(); + break; + } + return content; +} + +// node_modules/@microsoft/signalr/dist/esm/XhrHttpClient.js +var XhrHttpClient = class extends HttpClient { + constructor(logger) { + super(); + this._logger = logger; + } + /** @inheritDoc */ + send(request) { + if (request.abortSignal && request.abortSignal.aborted) { + return Promise.reject(new AbortError()); + } + if (!request.method) { + return Promise.reject(new Error("No method defined.")); + } + if (!request.url) { + return Promise.reject(new Error("No url defined.")); + } + return new Promise((resolve, reject) => { + const xhr = new XMLHttpRequest(); + xhr.open(request.method, request.url, true); + xhr.withCredentials = request.withCredentials === void 0 ? true : request.withCredentials; + xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); + if (request.content === "") { + request.content = void 0; + } + if (request.content) { + if (isArrayBuffer(request.content)) { + xhr.setRequestHeader("Content-Type", "application/octet-stream"); + } else { + xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"); + } + } + const headers = request.headers; + if (headers) { + Object.keys(headers).forEach((header) => { + xhr.setRequestHeader(header, headers[header]); + }); + } + if (request.responseType) { + xhr.responseType = request.responseType; + } + if (request.abortSignal) { + request.abortSignal.onabort = () => { + xhr.abort(); + reject(new AbortError()); + }; + } + if (request.timeout) { + xhr.timeout = request.timeout; + } + xhr.onload = () => { + if (request.abortSignal) { + request.abortSignal.onabort = null; + } + if (xhr.status >= 200 && xhr.status < 300) { + resolve(new HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText)); + } else { + reject(new HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status)); + } + }; + xhr.onerror = () => { + this._logger.log(LogLevel.Warning, `Error from HTTP request. ${xhr.status}: ${xhr.statusText}.`); + reject(new HttpError(xhr.statusText, xhr.status)); + }; + xhr.ontimeout = () => { + this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`); + reject(new TimeoutError()); + }; + xhr.send(request.content); + }); + } +}; + +// node_modules/@microsoft/signalr/dist/esm/DefaultHttpClient.js +var DefaultHttpClient = class extends HttpClient { + /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */ + constructor(logger) { + super(); + if (typeof fetch !== "undefined" || Platform.isNode) { + this._httpClient = new FetchHttpClient(logger); + } else if (typeof XMLHttpRequest !== "undefined") { + this._httpClient = new XhrHttpClient(logger); + } else { + throw new Error("No usable HttpClient found."); + } + } + /** @inheritDoc */ + send(request) { + if (request.abortSignal && request.abortSignal.aborted) { + return Promise.reject(new AbortError()); + } + if (!request.method) { + return Promise.reject(new Error("No method defined.")); + } + if (!request.url) { + return Promise.reject(new Error("No url defined.")); + } + return this._httpClient.send(request); + } + getCookieString(url) { + return this._httpClient.getCookieString(url); + } +}; + +// node_modules/@microsoft/signalr/dist/esm/TextMessageFormat.js +var TextMessageFormat = class { + static write(output) { + return `${output}${TextMessageFormat.RecordSeparator}`; + } + static parse(input) { + if (input[input.length - 1] !== TextMessageFormat.RecordSeparator) { + throw new Error("Message is incomplete."); + } + const messages = input.split(TextMessageFormat.RecordSeparator); + messages.pop(); + return messages; + } +}; +TextMessageFormat.RecordSeparatorCode = 30; +TextMessageFormat.RecordSeparator = String.fromCharCode(TextMessageFormat.RecordSeparatorCode); + +// node_modules/@microsoft/signalr/dist/esm/HandshakeProtocol.js +var HandshakeProtocol = class { + // Handshake request is always JSON + writeHandshakeRequest(handshakeRequest) { + return TextMessageFormat.write(JSON.stringify(handshakeRequest)); + } + parseHandshakeResponse(data) { + let messageData; + let remainingData; + if (isArrayBuffer(data)) { + const binaryData = new Uint8Array(data); + const separatorIndex = binaryData.indexOf(TextMessageFormat.RecordSeparatorCode); + if (separatorIndex === -1) { + throw new Error("Message is incomplete."); + } + const responseLength = separatorIndex + 1; + messageData = String.fromCharCode.apply(null, Array.prototype.slice.call(binaryData.slice(0, responseLength))); + remainingData = binaryData.byteLength > responseLength ? binaryData.slice(responseLength).buffer : null; + } else { + const textData = data; + const separatorIndex = textData.indexOf(TextMessageFormat.RecordSeparator); + if (separatorIndex === -1) { + throw new Error("Message is incomplete."); + } + const responseLength = separatorIndex + 1; + messageData = textData.substring(0, responseLength); + remainingData = textData.length > responseLength ? textData.substring(responseLength) : null; + } + const messages = TextMessageFormat.parse(messageData); + const response = JSON.parse(messages[0]); + if (response.type) { + throw new Error("Expected a handshake response from the server."); + } + const responseMessage = response; + return [remainingData, responseMessage]; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/IHubProtocol.js +var MessageType; +(function(MessageType2) { + MessageType2[MessageType2["Invocation"] = 1] = "Invocation"; + MessageType2[MessageType2["StreamItem"] = 2] = "StreamItem"; + MessageType2[MessageType2["Completion"] = 3] = "Completion"; + MessageType2[MessageType2["StreamInvocation"] = 4] = "StreamInvocation"; + MessageType2[MessageType2["CancelInvocation"] = 5] = "CancelInvocation"; + MessageType2[MessageType2["Ping"] = 6] = "Ping"; + MessageType2[MessageType2["Close"] = 7] = "Close"; +})(MessageType || (MessageType = {})); + +// node_modules/@microsoft/signalr/dist/esm/Subject.js +var Subject = class { + constructor() { + this.observers = []; + } + next(item) { + for (const observer of this.observers) { + observer.next(item); + } + } + error(err) { + for (const observer of this.observers) { + if (observer.error) { + observer.error(err); + } + } + } + complete() { + for (const observer of this.observers) { + if (observer.complete) { + observer.complete(); + } + } + } + subscribe(observer) { + this.observers.push(observer); + return new SubjectSubscription(this, observer); + } +}; + +// node_modules/@microsoft/signalr/dist/esm/HubConnection.js +var DEFAULT_TIMEOUT_IN_MS = 30 * 1e3; +var DEFAULT_PING_INTERVAL_IN_MS = 15 * 1e3; +var HubConnectionState; +(function(HubConnectionState2) { + HubConnectionState2["Disconnected"] = "Disconnected"; + HubConnectionState2["Connecting"] = "Connecting"; + HubConnectionState2["Connected"] = "Connected"; + HubConnectionState2["Disconnecting"] = "Disconnecting"; + HubConnectionState2["Reconnecting"] = "Reconnecting"; +})(HubConnectionState || (HubConnectionState = {})); +var HubConnection = class { + constructor(connection, logger, protocol, reconnectPolicy) { + this._nextKeepAlive = 0; + this._freezeEventListener = () => { + this._logger.log(LogLevel.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep"); + }; + Arg.isRequired(connection, "connection"); + Arg.isRequired(logger, "logger"); + Arg.isRequired(protocol, "protocol"); + this.serverTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MS; + this.keepAliveIntervalInMilliseconds = DEFAULT_PING_INTERVAL_IN_MS; + this._logger = logger; + this._protocol = protocol; + this.connection = connection; + this._reconnectPolicy = reconnectPolicy; + this._handshakeProtocol = new HandshakeProtocol(); + this.connection.onreceive = (data) => this._processIncomingData(data); + this.connection.onclose = (error) => this._connectionClosed(error); + this._callbacks = {}; + this._methods = {}; + this._closedCallbacks = []; + this._reconnectingCallbacks = []; + this._reconnectedCallbacks = []; + this._invocationId = 0; + this._receivedHandshakeResponse = false; + this._connectionState = HubConnectionState.Disconnected; + this._connectionStarted = false; + this._cachedPingMessage = this._protocol.writeMessage({ type: MessageType.Ping }); + } + /** @internal */ + // Using a public static factory method means we can have a private constructor and an _internal_ + // create method that can be used by HubConnectionBuilder. An "internal" constructor would just + // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a + // public parameter-less constructor. + static create(connection, logger, protocol, reconnectPolicy) { + return new HubConnection(connection, logger, protocol, reconnectPolicy); + } + /** Indicates the state of the {@link HubConnection} to the server. */ + get state() { + return this._connectionState; + } + /** Represents the connection id of the {@link HubConnection} on the server. The connection id will be null when the connection is either + * in the disconnected state or if the negotiation step was skipped. + */ + get connectionId() { + return this.connection ? this.connection.connectionId || null : null; + } + /** Indicates the url of the {@link HubConnection} to the server. */ + get baseUrl() { + return this.connection.baseUrl || ""; + } + /** + * Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or + * Reconnecting states. + * @param {string} url The url to connect to. + */ + set baseUrl(url) { + if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) { + throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url."); + } + if (!url) { + throw new Error("The HubConnection url must be a valid url."); + } + this.connection.baseUrl = url; + } + /** Starts the connection. + * + * @returns {Promise} A Promise that resolves when the connection has been successfully established, or rejects with an error. + */ + start() { + this._startPromise = this._startWithStateTransitions(); + return this._startPromise; + } + async _startWithStateTransitions() { + if (this._connectionState !== HubConnectionState.Disconnected) { + return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state.")); + } + this._connectionState = HubConnectionState.Connecting; + this._logger.log(LogLevel.Debug, "Starting HubConnection."); + try { + await this._startInternal(); + if (Platform.isBrowser) { + window.document.addEventListener("freeze", this._freezeEventListener); + } + this._connectionState = HubConnectionState.Connected; + this._connectionStarted = true; + this._logger.log(LogLevel.Debug, "HubConnection connected successfully."); + } catch (e) { + this._connectionState = HubConnectionState.Disconnected; + this._logger.log(LogLevel.Debug, `HubConnection failed to start successfully because of error '${e}'.`); + return Promise.reject(e); + } + } + async _startInternal() { + this._stopDuringStartError = void 0; + this._receivedHandshakeResponse = false; + const handshakePromise = new Promise((resolve, reject) => { + this._handshakeResolver = resolve; + this._handshakeRejecter = reject; + }); + await this.connection.start(this._protocol.transferFormat); + try { + const handshakeRequest = { + protocol: this._protocol.name, + version: this._protocol.version + }; + this._logger.log(LogLevel.Debug, "Sending handshake request."); + await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(handshakeRequest)); + this._logger.log(LogLevel.Information, `Using HubProtocol '${this._protocol.name}'.`); + this._cleanupTimeout(); + this._resetTimeoutPeriod(); + this._resetKeepAliveInterval(); + await handshakePromise; + if (this._stopDuringStartError) { + throw this._stopDuringStartError; + } + if (!this.connection.features.inherentKeepAlive) { + await this._sendMessage(this._cachedPingMessage); + } + } catch (e) { + this._logger.log(LogLevel.Debug, `Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`); + this._cleanupTimeout(); + this._cleanupPingTimer(); + await this.connection.stop(e); + throw e; + } + } + /** Stops the connection. + * + * @returns {Promise} A Promise that resolves when the connection has been successfully terminated, or rejects with an error. + */ + async stop() { + const startPromise = this._startPromise; + this._stopPromise = this._stopInternal(); + await this._stopPromise; + try { + await startPromise; + } catch (e) { + } + } + _stopInternal(error) { + if (this._connectionState === HubConnectionState.Disconnected) { + this._logger.log(LogLevel.Debug, `Call to HubConnection.stop(${error}) ignored because it is already in the disconnected state.`); + return Promise.resolve(); + } + if (this._connectionState === HubConnectionState.Disconnecting) { + this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`); + return this._stopPromise; + } + this._connectionState = HubConnectionState.Disconnecting; + this._logger.log(LogLevel.Debug, "Stopping HubConnection."); + if (this._reconnectDelayHandle) { + this._logger.log(LogLevel.Debug, "Connection stopped during reconnect delay. Done reconnecting."); + clearTimeout(this._reconnectDelayHandle); + this._reconnectDelayHandle = void 0; + this._completeClose(); + return Promise.resolve(); + } + this._cleanupTimeout(); + this._cleanupPingTimer(); + this._stopDuringStartError = error || new AbortError("The connection was stopped before the hub handshake could complete."); + return this.connection.stop(error); + } + /** Invokes a streaming hub method on the server using the specified name and arguments. + * + * @typeparam T The type of the items returned by the server. + * @param {string} methodName The name of the server method to invoke. + * @param {any[]} args The arguments used to invoke the server method. + * @returns {IStreamResult} An object that yields results from the server as they are received. + */ + stream(methodName, ...args) { + const [streams, streamIds] = this._replaceStreamingParams(args); + const invocationDescriptor = this._createStreamInvocation(methodName, args, streamIds); + let promiseQueue; + const subject = new Subject(); + subject.cancelCallback = () => { + const cancelInvocation = this._createCancelInvocation(invocationDescriptor.invocationId); + delete this._callbacks[invocationDescriptor.invocationId]; + return promiseQueue.then(() => { + return this._sendWithProtocol(cancelInvocation); + }); + }; + this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => { + if (error) { + subject.error(error); + return; + } else if (invocationEvent) { + if (invocationEvent.type === MessageType.Completion) { + if (invocationEvent.error) { + subject.error(new Error(invocationEvent.error)); + } else { + subject.complete(); + } + } else { + subject.next(invocationEvent.item); + } + } + }; + promiseQueue = this._sendWithProtocol(invocationDescriptor).catch((e) => { + subject.error(e); + delete this._callbacks[invocationDescriptor.invocationId]; + }); + this._launchStreams(streams, promiseQueue); + return subject; + } + _sendMessage(message) { + this._resetKeepAliveInterval(); + return this.connection.send(message); + } + /** + * Sends a js object to the server. + * @param message The js object to serialize and send. + */ + _sendWithProtocol(message) { + return this._sendMessage(this._protocol.writeMessage(message)); + } + /** Invokes a hub method on the server using the specified name and arguments. Does not wait for a response from the receiver. + * + * The Promise returned by this method resolves when the client has sent the invocation to the server. The server may still + * be processing the invocation. + * + * @param {string} methodName The name of the server method to invoke. + * @param {any[]} args The arguments used to invoke the server method. + * @returns {Promise} A Promise that resolves when the invocation has been successfully sent, or rejects with an error. + */ + send(methodName, ...args) { + const [streams, streamIds] = this._replaceStreamingParams(args); + const sendPromise = this._sendWithProtocol(this._createInvocation(methodName, args, true, streamIds)); + this._launchStreams(streams, sendPromise); + return sendPromise; + } + /** Invokes a hub method on the server using the specified name and arguments. + * + * The Promise returned by this method resolves when the server indicates it has finished invoking the method. When the promise + * resolves, the server has finished invoking the method. If the server method returns a result, it is produced as the result of + * resolving the Promise. + * + * @typeparam T The expected return type. + * @param {string} methodName The name of the server method to invoke. + * @param {any[]} args The arguments used to invoke the server method. + * @returns {Promise} A Promise that resolves with the result of the server method (if any), or rejects with an error. + */ + invoke(methodName, ...args) { + const [streams, streamIds] = this._replaceStreamingParams(args); + const invocationDescriptor = this._createInvocation(methodName, args, false, streamIds); + const p = new Promise((resolve, reject) => { + this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => { + if (error) { + reject(error); + return; + } else if (invocationEvent) { + if (invocationEvent.type === MessageType.Completion) { + if (invocationEvent.error) { + reject(new Error(invocationEvent.error)); + } else { + resolve(invocationEvent.result); + } + } else { + reject(new Error(`Unexpected message type: ${invocationEvent.type}`)); + } + } + }; + const promiseQueue = this._sendWithProtocol(invocationDescriptor).catch((e) => { + reject(e); + delete this._callbacks[invocationDescriptor.invocationId]; + }); + this._launchStreams(streams, promiseQueue); + }); + return p; + } + on(methodName, newMethod) { + if (!methodName || !newMethod) { + return; + } + methodName = methodName.toLowerCase(); + if (!this._methods[methodName]) { + this._methods[methodName] = []; + } + if (this._methods[methodName].indexOf(newMethod) !== -1) { + return; + } + this._methods[methodName].push(newMethod); + } + off(methodName, method) { + if (!methodName) { + return; + } + methodName = methodName.toLowerCase(); + const handlers = this._methods[methodName]; + if (!handlers) { + return; + } + if (method) { + const removeIdx = handlers.indexOf(method); + if (removeIdx !== -1) { + handlers.splice(removeIdx, 1); + if (handlers.length === 0) { + delete this._methods[methodName]; + } + } + } else { + delete this._methods[methodName]; + } + } + /** Registers a handler that will be invoked when the connection is closed. + * + * @param {Function} callback The handler that will be invoked when the connection is closed. Optionally receives a single argument containing the error that caused the connection to close (if any). + */ + onclose(callback) { + if (callback) { + this._closedCallbacks.push(callback); + } + } + /** Registers a handler that will be invoked when the connection starts reconnecting. + * + * @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any). + */ + onreconnecting(callback) { + if (callback) { + this._reconnectingCallbacks.push(callback); + } + } + /** Registers a handler that will be invoked when the connection successfully reconnects. + * + * @param {Function} callback The handler that will be invoked when the connection successfully reconnects. + */ + onreconnected(callback) { + if (callback) { + this._reconnectedCallbacks.push(callback); + } + } + _processIncomingData(data) { + this._cleanupTimeout(); + if (!this._receivedHandshakeResponse) { + data = this._processHandshakeResponse(data); + this._receivedHandshakeResponse = true; + } + if (data) { + const messages = this._protocol.parseMessages(data, this._logger); + for (const message of messages) { + switch (message.type) { + case MessageType.Invocation: + this._invokeClientMethod(message); + break; + case MessageType.StreamItem: + case MessageType.Completion: { + const callback = this._callbacks[message.invocationId]; + if (callback) { + if (message.type === MessageType.Completion) { + delete this._callbacks[message.invocationId]; + } + try { + callback(message); + } catch (e) { + this._logger.log(LogLevel.Error, `Stream callback threw error: ${getErrorString(e)}`); + } + } + break; + } + case MessageType.Ping: + break; + case MessageType.Close: { + this._logger.log(LogLevel.Information, "Close message received from server."); + const error = message.error ? new Error("Server returned an error on close: " + message.error) : void 0; + if (message.allowReconnect === true) { + this.connection.stop(error); + } else { + this._stopPromise = this._stopInternal(error); + } + break; + } + default: + this._logger.log(LogLevel.Warning, `Invalid message type: ${message.type}.`); + break; + } + } + } + this._resetTimeoutPeriod(); + } + _processHandshakeResponse(data) { + let responseMessage; + let remainingData; + try { + [remainingData, responseMessage] = this._handshakeProtocol.parseHandshakeResponse(data); + } catch (e) { + const message = "Error parsing handshake response: " + e; + this._logger.log(LogLevel.Error, message); + const error = new Error(message); + this._handshakeRejecter(error); + throw error; + } + if (responseMessage.error) { + const message = "Server returned handshake error: " + responseMessage.error; + this._logger.log(LogLevel.Error, message); + const error = new Error(message); + this._handshakeRejecter(error); + throw error; + } else { + this._logger.log(LogLevel.Debug, "Server handshake complete."); + } + this._handshakeResolver(); + return remainingData; + } + _resetKeepAliveInterval() { + if (this.connection.features.inherentKeepAlive) { + return; + } + this._nextKeepAlive = (/* @__PURE__ */ new Date()).getTime() + this.keepAliveIntervalInMilliseconds; + this._cleanupPingTimer(); + } + _resetTimeoutPeriod() { + if (!this.connection.features || !this.connection.features.inherentKeepAlive) { + this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds); + if (this._pingServerHandle === void 0) { + let nextPing = this._nextKeepAlive - (/* @__PURE__ */ new Date()).getTime(); + if (nextPing < 0) { + nextPing = 0; + } + this._pingServerHandle = setTimeout(async () => { + if (this._connectionState === HubConnectionState.Connected) { + try { + await this._sendMessage(this._cachedPingMessage); + } catch { + this._cleanupPingTimer(); + } + } + }, nextPing); + } + } + } + // eslint-disable-next-line @typescript-eslint/naming-convention + serverTimeout() { + this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server.")); + } + async _invokeClientMethod(invocationMessage) { + const methodName = invocationMessage.target.toLowerCase(); + const methods = this._methods[methodName]; + if (!methods) { + this._logger.log(LogLevel.Warning, `No client method with the name '${methodName}' found.`); + if (invocationMessage.invocationId) { + this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`); + await this._sendWithProtocol(this._createCompletionMessage(invocationMessage.invocationId, "Client didn't provide a result.", null)); + } + return; + } + const methodsCopy = methods.slice(); + const expectsResponse = invocationMessage.invocationId ? true : false; + let res; + let exception; + let completionMessage; + for (const m of methodsCopy) { + try { + const prevRes = res; + res = await m.apply(this, invocationMessage.arguments); + if (expectsResponse && res && prevRes) { + this._logger.log(LogLevel.Error, `Multiple results provided for '${methodName}'. Sending error to server.`); + completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `Client provided multiple results.`, null); + } + exception = void 0; + } catch (e) { + exception = e; + this._logger.log(LogLevel.Error, `A callback for the method '${methodName}' threw error '${e}'.`); + } + } + if (completionMessage) { + await this._sendWithProtocol(completionMessage); + } else if (expectsResponse) { + if (exception) { + completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `${exception}`, null); + } else if (res !== void 0) { + completionMessage = this._createCompletionMessage(invocationMessage.invocationId, null, res); + } else { + this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`); + completionMessage = this._createCompletionMessage(invocationMessage.invocationId, "Client didn't provide a result.", null); + } + await this._sendWithProtocol(completionMessage); + } else { + if (res) { + this._logger.log(LogLevel.Error, `Result given for '${methodName}' method but server is not expecting a result.`); + } + } + } + _connectionClosed(error) { + this._logger.log(LogLevel.Debug, `HubConnection.connectionClosed(${error}) called while in state ${this._connectionState}.`); + this._stopDuringStartError = this._stopDuringStartError || error || new AbortError("The underlying connection was closed before the hub handshake could complete."); + if (this._handshakeResolver) { + this._handshakeResolver(); + } + this._cancelCallbacksWithError(error || new Error("Invocation canceled due to the underlying connection being closed.")); + this._cleanupTimeout(); + this._cleanupPingTimer(); + if (this._connectionState === HubConnectionState.Disconnecting) { + this._completeClose(error); + } else if (this._connectionState === HubConnectionState.Connected && this._reconnectPolicy) { + this._reconnect(error); + } else if (this._connectionState === HubConnectionState.Connected) { + this._completeClose(error); + } + } + _completeClose(error) { + if (this._connectionStarted) { + this._connectionState = HubConnectionState.Disconnected; + this._connectionStarted = false; + if (Platform.isBrowser) { + window.document.removeEventListener("freeze", this._freezeEventListener); + } + try { + this._closedCallbacks.forEach((c) => c.apply(this, [error])); + } catch (e) { + this._logger.log(LogLevel.Error, `An onclose callback called with error '${error}' threw error '${e}'.`); + } + } + } + async _reconnect(error) { + const reconnectStartTime = Date.now(); + let previousReconnectAttempts = 0; + let retryError = error !== void 0 ? error : new Error("Attempting to reconnect due to a unknown error."); + let nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, 0, retryError); + if (nextRetryDelay === null) { + this._logger.log(LogLevel.Debug, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."); + this._completeClose(error); + return; + } + this._connectionState = HubConnectionState.Reconnecting; + if (error) { + this._logger.log(LogLevel.Information, `Connection reconnecting because of error '${error}'.`); + } else { + this._logger.log(LogLevel.Information, "Connection reconnecting."); + } + if (this._reconnectingCallbacks.length !== 0) { + try { + this._reconnectingCallbacks.forEach((c) => c.apply(this, [error])); + } catch (e) { + this._logger.log(LogLevel.Error, `An onreconnecting callback called with error '${error}' threw error '${e}'.`); + } + if (this._connectionState !== HubConnectionState.Reconnecting) { + this._logger.log(LogLevel.Debug, "Connection left the reconnecting state in onreconnecting callback. Done reconnecting."); + return; + } + } + while (nextRetryDelay !== null) { + this._logger.log(LogLevel.Information, `Reconnect attempt number ${previousReconnectAttempts} will start in ${nextRetryDelay} ms.`); + await new Promise((resolve) => { + this._reconnectDelayHandle = setTimeout(resolve, nextRetryDelay); + }); + this._reconnectDelayHandle = void 0; + if (this._connectionState !== HubConnectionState.Reconnecting) { + this._logger.log(LogLevel.Debug, "Connection left the reconnecting state during reconnect delay. Done reconnecting."); + return; + } + try { + await this._startInternal(); + this._connectionState = HubConnectionState.Connected; + this._logger.log(LogLevel.Information, "HubConnection reconnected successfully."); + if (this._reconnectedCallbacks.length !== 0) { + try { + this._reconnectedCallbacks.forEach((c) => c.apply(this, [this.connection.connectionId])); + } catch (e) { + this._logger.log(LogLevel.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`); + } + } + return; + } catch (e) { + this._logger.log(LogLevel.Information, `Reconnect attempt failed because of error '${e}'.`); + if (this._connectionState !== HubConnectionState.Reconnecting) { + this._logger.log(LogLevel.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`); + if (this._connectionState === HubConnectionState.Disconnecting) { + this._completeClose(); + } + return; + } + retryError = e instanceof Error ? e : new Error(e.toString()); + nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, Date.now() - reconnectStartTime, retryError); + } + } + this._logger.log(LogLevel.Information, `Reconnect retries have been exhausted after ${Date.now() - reconnectStartTime} ms and ${previousReconnectAttempts} failed attempts. Connection disconnecting.`); + this._completeClose(); + } + _getNextRetryDelay(previousRetryCount, elapsedMilliseconds, retryReason) { + try { + return this._reconnectPolicy.nextRetryDelayInMilliseconds({ + elapsedMilliseconds, + previousRetryCount, + retryReason + }); + } catch (e) { + this._logger.log(LogLevel.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${previousRetryCount}, ${elapsedMilliseconds}) threw error '${e}'.`); + return null; + } + } + _cancelCallbacksWithError(error) { + const callbacks = this._callbacks; + this._callbacks = {}; + Object.keys(callbacks).forEach((key) => { + const callback = callbacks[key]; + try { + callback(null, error); + } catch (e) { + this._logger.log(LogLevel.Error, `Stream 'error' callback called with '${error}' threw error: ${getErrorString(e)}`); + } + }); + } + _cleanupPingTimer() { + if (this._pingServerHandle) { + clearTimeout(this._pingServerHandle); + this._pingServerHandle = void 0; + } + } + _cleanupTimeout() { + if (this._timeoutHandle) { + clearTimeout(this._timeoutHandle); + } + } + _createInvocation(methodName, args, nonblocking, streamIds) { + if (nonblocking) { + if (streamIds.length !== 0) { + return { + arguments: args, + streamIds, + target: methodName, + type: MessageType.Invocation + }; + } else { + return { + arguments: args, + target: methodName, + type: MessageType.Invocation + }; + } + } else { + const invocationId = this._invocationId; + this._invocationId++; + if (streamIds.length !== 0) { + return { + arguments: args, + invocationId: invocationId.toString(), + streamIds, + target: methodName, + type: MessageType.Invocation + }; + } else { + return { + arguments: args, + invocationId: invocationId.toString(), + target: methodName, + type: MessageType.Invocation + }; + } + } + } + _launchStreams(streams, promiseQueue) { + if (streams.length === 0) { + return; + } + if (!promiseQueue) { + promiseQueue = Promise.resolve(); + } + for (const streamId in streams) { + streams[streamId].subscribe({ + complete: () => { + promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId))); + }, + error: (err) => { + let message; + if (err instanceof Error) { + message = err.message; + } else if (err && err.toString) { + message = err.toString(); + } else { + message = "Unknown error"; + } + promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId, message))); + }, + next: (item) => { + promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createStreamItemMessage(streamId, item))); + } + }); + } + } + _replaceStreamingParams(args) { + const streams = []; + const streamIds = []; + for (let i = 0; i < args.length; i++) { + const argument = args[i]; + if (this._isObservable(argument)) { + const streamId = this._invocationId; + this._invocationId++; + streams[streamId] = argument; + streamIds.push(streamId.toString()); + args.splice(i, 1); + } + } + return [streams, streamIds]; + } + _isObservable(arg) { + return arg && arg.subscribe && typeof arg.subscribe === "function"; + } + _createStreamInvocation(methodName, args, streamIds) { + const invocationId = this._invocationId; + this._invocationId++; + if (streamIds.length !== 0) { + return { + arguments: args, + invocationId: invocationId.toString(), + streamIds, + target: methodName, + type: MessageType.StreamInvocation + }; + } else { + return { + arguments: args, + invocationId: invocationId.toString(), + target: methodName, + type: MessageType.StreamInvocation + }; + } + } + _createCancelInvocation(id) { + return { + invocationId: id, + type: MessageType.CancelInvocation + }; + } + _createStreamItemMessage(id, item) { + return { + invocationId: id, + item, + type: MessageType.StreamItem + }; + } + _createCompletionMessage(id, error, result) { + if (error) { + return { + error, + invocationId: id, + type: MessageType.Completion + }; + } + return { + invocationId: id, + result, + type: MessageType.Completion + }; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/DefaultReconnectPolicy.js +var DEFAULT_RETRY_DELAYS_IN_MILLISECONDS = [0, 2e3, 1e4, 3e4, null]; +var DefaultReconnectPolicy = class { + constructor(retryDelays) { + this._retryDelays = retryDelays !== void 0 ? [...retryDelays, null] : DEFAULT_RETRY_DELAYS_IN_MILLISECONDS; + } + nextRetryDelayInMilliseconds(retryContext) { + return this._retryDelays[retryContext.previousRetryCount]; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/HeaderNames.js +var HeaderNames = class { +}; +HeaderNames.Authorization = "Authorization"; +HeaderNames.Cookie = "Cookie"; + +// node_modules/@microsoft/signalr/dist/esm/AccessTokenHttpClient.js +var AccessTokenHttpClient = class extends HttpClient { + constructor(innerClient, accessTokenFactory) { + super(); + this._innerClient = innerClient; + this._accessTokenFactory = accessTokenFactory; + } + async send(request) { + let allowRetry = true; + if (this._accessTokenFactory && (!this._accessToken || request.url && request.url.indexOf("/negotiate?") > 0)) { + allowRetry = false; + this._accessToken = await this._accessTokenFactory(); + } + this._setAuthorizationHeader(request); + const response = await this._innerClient.send(request); + if (allowRetry && response.statusCode === 401 && this._accessTokenFactory) { + this._accessToken = await this._accessTokenFactory(); + this._setAuthorizationHeader(request); + return await this._innerClient.send(request); + } + return response; + } + _setAuthorizationHeader(request) { + if (!request.headers) { + request.headers = {}; + } + if (this._accessToken) { + request.headers[HeaderNames.Authorization] = `Bearer ${this._accessToken}`; + } else if (this._accessTokenFactory) { + if (request.headers[HeaderNames.Authorization]) { + delete request.headers[HeaderNames.Authorization]; + } + } + } + getCookieString(url) { + return this._innerClient.getCookieString(url); + } +}; + +// node_modules/@microsoft/signalr/dist/esm/ITransport.js +var HttpTransportType; +(function(HttpTransportType2) { + HttpTransportType2[HttpTransportType2["None"] = 0] = "None"; + HttpTransportType2[HttpTransportType2["WebSockets"] = 1] = "WebSockets"; + HttpTransportType2[HttpTransportType2["ServerSentEvents"] = 2] = "ServerSentEvents"; + HttpTransportType2[HttpTransportType2["LongPolling"] = 4] = "LongPolling"; +})(HttpTransportType || (HttpTransportType = {})); +var TransferFormat; +(function(TransferFormat2) { + TransferFormat2[TransferFormat2["Text"] = 1] = "Text"; + TransferFormat2[TransferFormat2["Binary"] = 2] = "Binary"; +})(TransferFormat || (TransferFormat = {})); + +// node_modules/@microsoft/signalr/dist/esm/AbortController.js +var AbortController2 = class { + constructor() { + this._isAborted = false; + this.onabort = null; + } + abort() { + if (!this._isAborted) { + this._isAborted = true; + if (this.onabort) { + this.onabort(); + } + } + } + get signal() { + return this; + } + get aborted() { + return this._isAborted; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js +var LongPollingTransport = class { + constructor(httpClient, logger, options) { + this._httpClient = httpClient; + this._logger = logger; + this._pollAbort = new AbortController2(); + this._options = options; + this._running = false; + this.onreceive = null; + this.onclose = null; + } + // This is an internal type, not exported from 'index' so this is really just internal. + get pollAborted() { + return this._pollAbort.aborted; + } + async connect(url, transferFormat) { + Arg.isRequired(url, "url"); + Arg.isRequired(transferFormat, "transferFormat"); + Arg.isIn(transferFormat, TransferFormat, "transferFormat"); + this._url = url; + this._logger.log(LogLevel.Trace, "(LongPolling transport) Connecting."); + if (transferFormat === TransferFormat.Binary && (typeof XMLHttpRequest !== "undefined" && typeof new XMLHttpRequest().responseType !== "string")) { + throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported."); + } + const [name, value] = getUserAgentHeader(); + const headers = { [name]: value, ...this._options.headers }; + const pollOptions = { + abortSignal: this._pollAbort.signal, + headers, + timeout: 1e5, + withCredentials: this._options.withCredentials + }; + if (transferFormat === TransferFormat.Binary) { + pollOptions.responseType = "arraybuffer"; + } + const pollUrl = `${url}&_=${Date.now()}`; + this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`); + const response = await this._httpClient.get(pollUrl, pollOptions); + if (response.statusCode !== 200) { + this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`); + this._closeError = new HttpError(response.statusText || "", response.statusCode); + this._running = false; + } else { + this._running = true; + } + this._receiving = this._poll(this._url, pollOptions); + } + async _poll(url, pollOptions) { + try { + while (this._running) { + try { + const pollUrl = `${url}&_=${Date.now()}`; + this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`); + const response = await this._httpClient.get(pollUrl, pollOptions); + if (response.statusCode === 204) { + this._logger.log(LogLevel.Information, "(LongPolling transport) Poll terminated by server."); + this._running = false; + } else if (response.statusCode !== 200) { + this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`); + this._closeError = new HttpError(response.statusText || "", response.statusCode); + this._running = false; + } else { + if (response.content) { + this._logger.log(LogLevel.Trace, `(LongPolling transport) data received. ${getDataDetail(response.content, this._options.logMessageContent)}.`); + if (this.onreceive) { + this.onreceive(response.content); + } + } else { + this._logger.log(LogLevel.Trace, "(LongPolling transport) Poll timed out, reissuing."); + } + } + } catch (e) { + if (!this._running) { + this._logger.log(LogLevel.Trace, `(LongPolling transport) Poll errored after shutdown: ${e.message}`); + } else { + if (e instanceof TimeoutError) { + this._logger.log(LogLevel.Trace, "(LongPolling transport) Poll timed out, reissuing."); + } else { + this._closeError = e; + this._running = false; + } + } + } + } + } finally { + this._logger.log(LogLevel.Trace, "(LongPolling transport) Polling complete."); + if (!this.pollAborted) { + this._raiseOnClose(); + } + } + } + async send(data) { + if (!this._running) { + return Promise.reject(new Error("Cannot send until the transport is connected")); + } + return sendMessage(this._logger, "LongPolling", this._httpClient, this._url, data, this._options); + } + async stop() { + this._logger.log(LogLevel.Trace, "(LongPolling transport) Stopping polling."); + this._running = false; + this._pollAbort.abort(); + try { + await this._receiving; + this._logger.log(LogLevel.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`); + const headers = {}; + const [name, value] = getUserAgentHeader(); + headers[name] = value; + const deleteOptions = { + headers: { ...headers, ...this._options.headers }, + timeout: this._options.timeout, + withCredentials: this._options.withCredentials + }; + await this._httpClient.delete(this._url, deleteOptions); + this._logger.log(LogLevel.Trace, "(LongPolling transport) DELETE request sent."); + } finally { + this._logger.log(LogLevel.Trace, "(LongPolling transport) Stop finished."); + this._raiseOnClose(); + } + } + _raiseOnClose() { + if (this.onclose) { + let logMessage = "(LongPolling transport) Firing onclose event."; + if (this._closeError) { + logMessage += " Error: " + this._closeError; + } + this._logger.log(LogLevel.Trace, logMessage); + this.onclose(this._closeError); + } + } +}; + +// node_modules/@microsoft/signalr/dist/esm/ServerSentEventsTransport.js +var ServerSentEventsTransport = class { + constructor(httpClient, accessToken, logger, options) { + this._httpClient = httpClient; + this._accessToken = accessToken; + this._logger = logger; + this._options = options; + this.onreceive = null; + this.onclose = null; + } + async connect(url, transferFormat) { + Arg.isRequired(url, "url"); + Arg.isRequired(transferFormat, "transferFormat"); + Arg.isIn(transferFormat, TransferFormat, "transferFormat"); + this._logger.log(LogLevel.Trace, "(SSE transport) Connecting."); + this._url = url; + if (this._accessToken) { + url += (url.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(this._accessToken)}`; + } + return new Promise((resolve, reject) => { + let opened = false; + if (transferFormat !== TransferFormat.Text) { + reject(new Error("The Server-Sent Events transport only supports the 'Text' transfer format")); + return; + } + let eventSource; + if (Platform.isBrowser || Platform.isWebWorker) { + eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials }); + } else { + const cookies = this._httpClient.getCookieString(url); + const headers = {}; + headers.Cookie = cookies; + const [name, value] = getUserAgentHeader(); + headers[name] = value; + eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials, headers: { ...headers, ...this._options.headers } }); + } + try { + eventSource.onmessage = (e) => { + if (this.onreceive) { + try { + this._logger.log(LogLevel.Trace, `(SSE transport) data received. ${getDataDetail(e.data, this._options.logMessageContent)}.`); + this.onreceive(e.data); + } catch (error) { + this._close(error); + return; + } + } + }; + eventSource.onerror = (e) => { + if (opened) { + this._close(); + } else { + reject(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled.")); + } + }; + eventSource.onopen = () => { + this._logger.log(LogLevel.Information, `SSE connected to ${this._url}`); + this._eventSource = eventSource; + opened = true; + resolve(); + }; + } catch (e) { + reject(e); + return; + } + }); + } + async send(data) { + if (!this._eventSource) { + return Promise.reject(new Error("Cannot send until the transport is connected")); + } + return sendMessage(this._logger, "SSE", this._httpClient, this._url, data, this._options); + } + stop() { + this._close(); + return Promise.resolve(); + } + _close(e) { + if (this._eventSource) { + this._eventSource.close(); + this._eventSource = void 0; + if (this.onclose) { + this.onclose(e); + } + } + } +}; + +// node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js +var WebSocketTransport = class { + constructor(httpClient, accessTokenFactory, logger, logMessageContent, webSocketConstructor, headers) { + this._logger = logger; + this._accessTokenFactory = accessTokenFactory; + this._logMessageContent = logMessageContent; + this._webSocketConstructor = webSocketConstructor; + this._httpClient = httpClient; + this.onreceive = null; + this.onclose = null; + this._headers = headers; + } + async connect(url, transferFormat) { + Arg.isRequired(url, "url"); + Arg.isRequired(transferFormat, "transferFormat"); + Arg.isIn(transferFormat, TransferFormat, "transferFormat"); + this._logger.log(LogLevel.Trace, "(WebSockets transport) Connecting."); + let token; + if (this._accessTokenFactory) { + token = await this._accessTokenFactory(); + } + return new Promise((resolve, reject) => { + url = url.replace(/^http/, "ws"); + let webSocket; + const cookies = this._httpClient.getCookieString(url); + let opened = false; + if (Platform.isNode || Platform.isReactNative) { + const headers = {}; + const [name, value] = getUserAgentHeader(); + headers[name] = value; + if (token) { + headers[HeaderNames.Authorization] = `Bearer ${token}`; + } + if (cookies) { + headers[HeaderNames.Cookie] = cookies; + } + webSocket = new this._webSocketConstructor(url, void 0, { + headers: { ...headers, ...this._headers } + }); + } else { + if (token) { + url += (url.indexOf("?") < 0 ? "?" : "&") + `access_token=${encodeURIComponent(token)}`; + } + } + if (!webSocket) { + webSocket = new this._webSocketConstructor(url); + } + if (transferFormat === TransferFormat.Binary) { + webSocket.binaryType = "arraybuffer"; + } + webSocket.onopen = (_event) => { + this._logger.log(LogLevel.Information, `WebSocket connected to ${url}.`); + this._webSocket = webSocket; + opened = true; + resolve(); + }; + webSocket.onerror = (event) => { + let error = null; + if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) { + error = event.error; + } else { + error = "There was an error with the transport"; + } + this._logger.log(LogLevel.Information, `(WebSockets transport) ${error}.`); + }; + webSocket.onmessage = (message) => { + this._logger.log(LogLevel.Trace, `(WebSockets transport) data received. ${getDataDetail(message.data, this._logMessageContent)}.`); + if (this.onreceive) { + try { + this.onreceive(message.data); + } catch (error) { + this._close(error); + return; + } + } + }; + webSocket.onclose = (event) => { + if (opened) { + this._close(event); + } else { + let error = null; + if (typeof ErrorEvent !== "undefined" && event instanceof ErrorEvent) { + error = event.error; + } else { + error = "WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled."; + } + reject(new Error(error)); + } + }; + }); + } + send(data) { + if (this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN) { + this._logger.log(LogLevel.Trace, `(WebSockets transport) sending data. ${getDataDetail(data, this._logMessageContent)}.`); + this._webSocket.send(data); + return Promise.resolve(); + } + return Promise.reject("WebSocket is not in the OPEN state"); + } + stop() { + if (this._webSocket) { + this._close(void 0); + } + return Promise.resolve(); + } + _close(event) { + if (this._webSocket) { + this._webSocket.onclose = () => { + }; + this._webSocket.onmessage = () => { + }; + this._webSocket.onerror = () => { + }; + this._webSocket.close(); + this._webSocket = void 0; + } + this._logger.log(LogLevel.Trace, "(WebSockets transport) socket closed."); + if (this.onclose) { + if (this._isCloseEvent(event) && (event.wasClean === false || event.code !== 1e3)) { + this.onclose(new Error(`WebSocket closed with status code: ${event.code} (${event.reason || "no reason given"}).`)); + } else if (event instanceof Error) { + this.onclose(event); + } else { + this.onclose(); + } + } + } + _isCloseEvent(event) { + return event && typeof event.wasClean === "boolean" && typeof event.code === "number"; + } +}; + +// node_modules/@microsoft/signalr/dist/esm/HttpConnection.js +var MAX_REDIRECTS = 100; +var HttpConnection = class { + constructor(url, options = {}) { + this._stopPromiseResolver = () => { + }; + this.features = {}; + this._negotiateVersion = 1; + Arg.isRequired(url, "url"); + this._logger = createLogger(options.logger); + this.baseUrl = this._resolveUrl(url); + options = options || {}; + options.logMessageContent = options.logMessageContent === void 0 ? false : options.logMessageContent; + if (typeof options.withCredentials === "boolean" || options.withCredentials === void 0) { + options.withCredentials = options.withCredentials === void 0 ? true : options.withCredentials; + } else { + throw new Error("withCredentials option was not a 'boolean' or 'undefined' value"); + } + options.timeout = options.timeout === void 0 ? 100 * 1e3 : options.timeout; + let webSocketModule = null; + let eventSourceModule = null; + if (Platform.isNode && typeof __require !== "undefined") { + const requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; + webSocketModule = requireFunc("ws"); + eventSourceModule = requireFunc("eventsource"); + } + if (!Platform.isNode && typeof WebSocket !== "undefined" && !options.WebSocket) { + options.WebSocket = WebSocket; + } else if (Platform.isNode && !options.WebSocket) { + if (webSocketModule) { + options.WebSocket = webSocketModule; + } + } + if (!Platform.isNode && typeof EventSource !== "undefined" && !options.EventSource) { + options.EventSource = EventSource; + } else if (Platform.isNode && !options.EventSource) { + if (typeof eventSourceModule !== "undefined") { + options.EventSource = eventSourceModule; + } + } + this._httpClient = new AccessTokenHttpClient(options.httpClient || new DefaultHttpClient(this._logger), options.accessTokenFactory); + this._connectionState = "Disconnected"; + this._connectionStarted = false; + this._options = options; + this.onreceive = null; + this.onclose = null; + } + async start(transferFormat) { + transferFormat = transferFormat || TransferFormat.Binary; + Arg.isIn(transferFormat, TransferFormat, "transferFormat"); + this._logger.log(LogLevel.Debug, `Starting connection with transfer format '${TransferFormat[transferFormat]}'.`); + if (this._connectionState !== "Disconnected") { + return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state.")); + } + this._connectionState = "Connecting"; + this._startInternalPromise = this._startInternal(transferFormat); + await this._startInternalPromise; + if (this._connectionState === "Disconnecting") { + const message = "Failed to start the HttpConnection before stop() was called."; + this._logger.log(LogLevel.Error, message); + await this._stopPromise; + return Promise.reject(new AbortError(message)); + } else if (this._connectionState !== "Connected") { + const message = "HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"; + this._logger.log(LogLevel.Error, message); + return Promise.reject(new AbortError(message)); + } + this._connectionStarted = true; + } + send(data) { + if (this._connectionState !== "Connected") { + return Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")); + } + if (!this._sendQueue) { + this._sendQueue = new TransportSendQueue(this.transport); + } + return this._sendQueue.send(data); + } + async stop(error) { + if (this._connectionState === "Disconnected") { + this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnected state.`); + return Promise.resolve(); + } + if (this._connectionState === "Disconnecting") { + this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`); + return this._stopPromise; + } + this._connectionState = "Disconnecting"; + this._stopPromise = new Promise((resolve) => { + this._stopPromiseResolver = resolve; + }); + await this._stopInternal(error); + await this._stopPromise; + } + async _stopInternal(error) { + this._stopError = error; + try { + await this._startInternalPromise; + } catch (e) { + } + if (this.transport) { + try { + await this.transport.stop(); + } catch (e) { + this._logger.log(LogLevel.Error, `HttpConnection.transport.stop() threw error '${e}'.`); + this._stopConnection(); + } + this.transport = void 0; + } else { + this._logger.log(LogLevel.Debug, "HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."); + } + } + async _startInternal(transferFormat) { + let url = this.baseUrl; + this._accessTokenFactory = this._options.accessTokenFactory; + this._httpClient._accessTokenFactory = this._accessTokenFactory; + try { + if (this._options.skipNegotiation) { + if (this._options.transport === HttpTransportType.WebSockets) { + this.transport = this._constructTransport(HttpTransportType.WebSockets); + await this._startTransport(url, transferFormat); + } else { + throw new Error("Negotiation can only be skipped when using the WebSocket transport directly."); + } + } else { + let negotiateResponse = null; + let redirects = 0; + do { + negotiateResponse = await this._getNegotiationResponse(url); + if (this._connectionState === "Disconnecting" || this._connectionState === "Disconnected") { + throw new AbortError("The connection was stopped during negotiation."); + } + if (negotiateResponse.error) { + throw new Error(negotiateResponse.error); + } + if (negotiateResponse.ProtocolVersion) { + throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details."); + } + if (negotiateResponse.url) { + url = negotiateResponse.url; + } + if (negotiateResponse.accessToken) { + const accessToken = negotiateResponse.accessToken; + this._accessTokenFactory = () => accessToken; + this._httpClient._accessToken = accessToken; + this._httpClient._accessTokenFactory = void 0; + } + redirects++; + } while (negotiateResponse.url && redirects < MAX_REDIRECTS); + if (redirects === MAX_REDIRECTS && negotiateResponse.url) { + throw new Error("Negotiate redirection limit exceeded."); + } + await this._createTransport(url, this._options.transport, negotiateResponse, transferFormat); + } + if (this.transport instanceof LongPollingTransport) { + this.features.inherentKeepAlive = true; + } + if (this._connectionState === "Connecting") { + this._logger.log(LogLevel.Debug, "The HttpConnection connected successfully."); + this._connectionState = "Connected"; + } + } catch (e) { + this._logger.log(LogLevel.Error, "Failed to start the connection: " + e); + this._connectionState = "Disconnected"; + this.transport = void 0; + this._stopPromiseResolver(); + return Promise.reject(e); + } + } + async _getNegotiationResponse(url) { + const headers = {}; + const [name, value] = getUserAgentHeader(); + headers[name] = value; + const negotiateUrl = this._resolveNegotiateUrl(url); + this._logger.log(LogLevel.Debug, `Sending negotiation request: ${negotiateUrl}.`); + try { + const response = await this._httpClient.post(negotiateUrl, { + content: "", + headers: { ...headers, ...this._options.headers }, + timeout: this._options.timeout, + withCredentials: this._options.withCredentials + }); + if (response.statusCode !== 200) { + return Promise.reject(new Error(`Unexpected status code returned from negotiate '${response.statusCode}'`)); + } + const negotiateResponse = JSON.parse(response.content); + if (!negotiateResponse.negotiateVersion || negotiateResponse.negotiateVersion < 1) { + negotiateResponse.connectionToken = negotiateResponse.connectionId; + } + return negotiateResponse; + } catch (e) { + let errorMessage = "Failed to complete negotiation with the server: " + e; + if (e instanceof HttpError) { + if (e.statusCode === 404) { + errorMessage = errorMessage + " Either this is not a SignalR endpoint or there is a proxy blocking the connection."; + } + } + this._logger.log(LogLevel.Error, errorMessage); + return Promise.reject(new FailedToNegotiateWithServerError(errorMessage)); + } + } + _createConnectUrl(url, connectionToken) { + if (!connectionToken) { + return url; + } + return url + (url.indexOf("?") === -1 ? "?" : "&") + `id=${connectionToken}`; + } + async _createTransport(url, requestedTransport, negotiateResponse, requestedTransferFormat) { + let connectUrl = this._createConnectUrl(url, negotiateResponse.connectionToken); + if (this._isITransport(requestedTransport)) { + this._logger.log(LogLevel.Debug, "Connection was provided an instance of ITransport, using that directly."); + this.transport = requestedTransport; + await this._startTransport(connectUrl, requestedTransferFormat); + this.connectionId = negotiateResponse.connectionId; + return; + } + const transportExceptions = []; + const transports = negotiateResponse.availableTransports || []; + let negotiate = negotiateResponse; + for (const endpoint of transports) { + const transportOrError = this._resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat); + if (transportOrError instanceof Error) { + transportExceptions.push(`${endpoint.transport} failed:`); + transportExceptions.push(transportOrError); + } else if (this._isITransport(transportOrError)) { + this.transport = transportOrError; + if (!negotiate) { + try { + negotiate = await this._getNegotiationResponse(url); + } catch (ex) { + return Promise.reject(ex); + } + connectUrl = this._createConnectUrl(url, negotiate.connectionToken); + } + try { + await this._startTransport(connectUrl, requestedTransferFormat); + this.connectionId = negotiate.connectionId; + return; + } catch (ex) { + this._logger.log(LogLevel.Error, `Failed to start the transport '${endpoint.transport}': ${ex}`); + negotiate = void 0; + transportExceptions.push(new FailedToStartTransportError(`${endpoint.transport} failed: ${ex}`, HttpTransportType[endpoint.transport])); + if (this._connectionState !== "Connecting") { + const message = "Failed to select transport before stop() was called."; + this._logger.log(LogLevel.Debug, message); + return Promise.reject(new AbortError(message)); + } + } + } + } + if (transportExceptions.length > 0) { + return Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${transportExceptions.join(" ")}`, transportExceptions)); + } + return Promise.reject(new Error("None of the transports supported by the client are supported by the server.")); + } + _constructTransport(transport) { + switch (transport) { + case HttpTransportType.WebSockets: + if (!this._options.WebSocket) { + throw new Error("'WebSocket' is not supported in your environment."); + } + return new WebSocketTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {}); + case HttpTransportType.ServerSentEvents: + if (!this._options.EventSource) { + throw new Error("'EventSource' is not supported in your environment."); + } + return new ServerSentEventsTransport(this._httpClient, this._httpClient._accessToken, this._logger, this._options); + case HttpTransportType.LongPolling: + return new LongPollingTransport(this._httpClient, this._logger, this._options); + default: + throw new Error(`Unknown transport: ${transport}.`); + } + } + _startTransport(url, transferFormat) { + this.transport.onreceive = this.onreceive; + this.transport.onclose = (e) => this._stopConnection(e); + return this.transport.connect(url, transferFormat); + } + _resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat) { + const transport = HttpTransportType[endpoint.transport]; + if (transport === null || transport === void 0) { + this._logger.log(LogLevel.Debug, `Skipping transport '${endpoint.transport}' because it is not supported by this client.`); + return new Error(`Skipping transport '${endpoint.transport}' because it is not supported by this client.`); + } else { + if (transportMatches(requestedTransport, transport)) { + const transferFormats = endpoint.transferFormats.map((s) => TransferFormat[s]); + if (transferFormats.indexOf(requestedTransferFormat) >= 0) { + if (transport === HttpTransportType.WebSockets && !this._options.WebSocket || transport === HttpTransportType.ServerSentEvents && !this._options.EventSource) { + this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it is not supported in your environment.'`); + return new UnsupportedTransportError(`'${HttpTransportType[transport]}' is not supported in your environment.`, transport); + } else { + this._logger.log(LogLevel.Debug, `Selecting transport '${HttpTransportType[transport]}'.`); + try { + return this._constructTransport(transport); + } catch (ex) { + return ex; + } + } + } else { + this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it does not support the requested transfer format '${TransferFormat[requestedTransferFormat]}'.`); + return new Error(`'${HttpTransportType[transport]}' does not support ${TransferFormat[requestedTransferFormat]}.`); + } + } else { + this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it was disabled by the client.`); + return new DisabledTransportError(`'${HttpTransportType[transport]}' is disabled by the client.`, transport); + } + } + } + _isITransport(transport) { + return transport && typeof transport === "object" && "connect" in transport; + } + _stopConnection(error) { + this._logger.log(LogLevel.Debug, `HttpConnection.stopConnection(${error}) called while in state ${this._connectionState}.`); + this.transport = void 0; + error = this._stopError || error; + this._stopError = void 0; + if (this._connectionState === "Disconnected") { + this._logger.log(LogLevel.Debug, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is already in the disconnected state.`); + return; + } + if (this._connectionState === "Connecting") { + this._logger.log(LogLevel.Warning, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is still in the connecting state.`); + throw new Error(`HttpConnection.stopConnection(${error}) was called while the connection is still in the connecting state.`); + } + if (this._connectionState === "Disconnecting") { + this._stopPromiseResolver(); + } + if (error) { + this._logger.log(LogLevel.Error, `Connection disconnected with error '${error}'.`); + } else { + this._logger.log(LogLevel.Information, "Connection disconnected."); + } + if (this._sendQueue) { + this._sendQueue.stop().catch((e) => { + this._logger.log(LogLevel.Error, `TransportSendQueue.stop() threw error '${e}'.`); + }); + this._sendQueue = void 0; + } + this.connectionId = void 0; + this._connectionState = "Disconnected"; + if (this._connectionStarted) { + this._connectionStarted = false; + try { + if (this.onclose) { + this.onclose(error); + } + } catch (e) { + this._logger.log(LogLevel.Error, `HttpConnection.onclose(${error}) threw error '${e}'.`); + } + } + } + _resolveUrl(url) { + if (url.lastIndexOf("https://", 0) === 0 || url.lastIndexOf("http://", 0) === 0) { + return url; + } + if (!Platform.isBrowser) { + throw new Error(`Cannot resolve '${url}'.`); + } + const aTag = window.document.createElement("a"); + aTag.href = url; + this._logger.log(LogLevel.Information, `Normalizing '${url}' to '${aTag.href}'.`); + return aTag.href; + } + _resolveNegotiateUrl(url) { + const index = url.indexOf("?"); + let negotiateUrl = url.substring(0, index === -1 ? url.length : index); + if (negotiateUrl[negotiateUrl.length - 1] !== "/") { + negotiateUrl += "/"; + } + negotiateUrl += "negotiate"; + negotiateUrl += index === -1 ? "" : url.substring(index); + if (negotiateUrl.indexOf("negotiateVersion") === -1) { + negotiateUrl += index === -1 ? "?" : "&"; + negotiateUrl += "negotiateVersion=" + this._negotiateVersion; + } + return negotiateUrl; + } +}; +function transportMatches(requestedTransport, actualTransport) { + return !requestedTransport || (actualTransport & requestedTransport) !== 0; +} +var TransportSendQueue = class { + constructor(_transport) { + this._transport = _transport; + this._buffer = []; + this._executing = true; + this._sendBufferedData = new PromiseSource(); + this._transportResult = new PromiseSource(); + this._sendLoopPromise = this._sendLoop(); + } + send(data) { + this._bufferData(data); + if (!this._transportResult) { + this._transportResult = new PromiseSource(); + } + return this._transportResult.promise; + } + stop() { + this._executing = false; + this._sendBufferedData.resolve(); + return this._sendLoopPromise; + } + _bufferData(data) { + if (this._buffer.length && typeof this._buffer[0] !== typeof data) { + throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof data}`); + } + this._buffer.push(data); + this._sendBufferedData.resolve(); + } + async _sendLoop() { + while (true) { + await this._sendBufferedData.promise; + if (!this._executing) { + if (this._transportResult) { + this._transportResult.reject("Connection stopped."); + } + break; + } + this._sendBufferedData = new PromiseSource(); + const transportResult = this._transportResult; + this._transportResult = void 0; + const data = typeof this._buffer[0] === "string" ? this._buffer.join("") : TransportSendQueue._concatBuffers(this._buffer); + this._buffer.length = 0; + try { + await this._transport.send(data); + transportResult.resolve(); + } catch (error) { + transportResult.reject(error); + } + } + } + static _concatBuffers(arrayBuffers) { + const totalLength = arrayBuffers.map((b) => b.byteLength).reduce((a, b) => a + b); + const result = new Uint8Array(totalLength); + let offset = 0; + for (const item of arrayBuffers) { + result.set(new Uint8Array(item), offset); + offset += item.byteLength; + } + return result.buffer; + } +}; +var PromiseSource = class { + constructor() { + this.promise = new Promise((resolve, reject) => [this._resolver, this._rejecter] = [resolve, reject]); + } + resolve() { + this._resolver(); + } + reject(reason) { + this._rejecter(reason); + } +}; + +// node_modules/@microsoft/signalr/dist/esm/JsonHubProtocol.js +var JSON_HUB_PROTOCOL_NAME = "json"; +var JsonHubProtocol = class { + constructor() { + this.name = JSON_HUB_PROTOCOL_NAME; + this.version = 1; + this.transferFormat = TransferFormat.Text; + } + /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation. + * + * @param {string} input A string containing the serialized representation. + * @param {ILogger} logger A logger that will be used to log messages that occur during parsing. + */ + parseMessages(input, logger) { + if (typeof input !== "string") { + throw new Error("Invalid input for JSON hub protocol. Expected a string."); + } + if (!input) { + return []; + } + if (logger === null) { + logger = NullLogger.instance; + } + const messages = TextMessageFormat.parse(input); + const hubMessages = []; + for (const message of messages) { + const parsedMessage = JSON.parse(message); + if (typeof parsedMessage.type !== "number") { + throw new Error("Invalid payload."); + } + switch (parsedMessage.type) { + case MessageType.Invocation: + this._isInvocationMessage(parsedMessage); + break; + case MessageType.StreamItem: + this._isStreamItemMessage(parsedMessage); + break; + case MessageType.Completion: + this._isCompletionMessage(parsedMessage); + break; + case MessageType.Ping: + break; + case MessageType.Close: + break; + default: + logger.log(LogLevel.Information, "Unknown message type '" + parsedMessage.type + "' ignored."); + continue; + } + hubMessages.push(parsedMessage); + } + return hubMessages; + } + /** Writes the specified {@link @microsoft/signalr.HubMessage} to a string and returns it. + * + * @param {HubMessage} message The message to write. + * @returns {string} A string containing the serialized representation of the message. + */ + writeMessage(message) { + return TextMessageFormat.write(JSON.stringify(message)); + } + _isInvocationMessage(message) { + this._assertNotEmptyString(message.target, "Invalid payload for Invocation message."); + if (message.invocationId !== void 0) { + this._assertNotEmptyString(message.invocationId, "Invalid payload for Invocation message."); + } + } + _isStreamItemMessage(message) { + this._assertNotEmptyString(message.invocationId, "Invalid payload for StreamItem message."); + if (message.item === void 0) { + throw new Error("Invalid payload for StreamItem message."); + } + } + _isCompletionMessage(message) { + if (message.result && message.error) { + throw new Error("Invalid payload for Completion message."); + } + if (!message.result && message.error) { + this._assertNotEmptyString(message.error, "Invalid payload for Completion message."); + } + this._assertNotEmptyString(message.invocationId, "Invalid payload for Completion message."); + } + _assertNotEmptyString(value, errorMessage) { + if (typeof value !== "string" || value === "") { + throw new Error(errorMessage); + } + } +}; + +// node_modules/@microsoft/signalr/dist/esm/HubConnectionBuilder.js +var LogLevelNameMapping = { + trace: LogLevel.Trace, + debug: LogLevel.Debug, + info: LogLevel.Information, + information: LogLevel.Information, + warn: LogLevel.Warning, + warning: LogLevel.Warning, + error: LogLevel.Error, + critical: LogLevel.Critical, + none: LogLevel.None +}; +function parseLogLevel(name) { + const mapping = LogLevelNameMapping[name.toLowerCase()]; + if (typeof mapping !== "undefined") { + return mapping; + } else { + throw new Error(`Unknown log level: ${name}`); + } +} +var HubConnectionBuilder = class { + configureLogging(logging) { + Arg.isRequired(logging, "logging"); + if (isLogger(logging)) { + this.logger = logging; + } else if (typeof logging === "string") { + const logLevel = parseLogLevel(logging); + this.logger = new ConsoleLogger(logLevel); + } else { + this.logger = new ConsoleLogger(logging); + } + return this; + } + withUrl(url, transportTypeOrOptions) { + Arg.isRequired(url, "url"); + Arg.isNotEmpty(url, "url"); + this.url = url; + if (typeof transportTypeOrOptions === "object") { + this.httpConnectionOptions = { ...this.httpConnectionOptions, ...transportTypeOrOptions }; + } else { + this.httpConnectionOptions = { + ...this.httpConnectionOptions, + transport: transportTypeOrOptions + }; + } + return this; + } + /** Configures the {@link @microsoft/signalr.HubConnection} to use the specified Hub Protocol. + * + * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use. + */ + withHubProtocol(protocol) { + Arg.isRequired(protocol, "protocol"); + this.protocol = protocol; + return this; + } + withAutomaticReconnect(retryDelaysOrReconnectPolicy) { + if (this.reconnectPolicy) { + throw new Error("A reconnectPolicy has already been set."); + } + if (!retryDelaysOrReconnectPolicy) { + this.reconnectPolicy = new DefaultReconnectPolicy(); + } else if (Array.isArray(retryDelaysOrReconnectPolicy)) { + this.reconnectPolicy = new DefaultReconnectPolicy(retryDelaysOrReconnectPolicy); + } else { + this.reconnectPolicy = retryDelaysOrReconnectPolicy; + } + return this; + } + /** Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder. + * + * @returns {HubConnection} The configured {@link @microsoft/signalr.HubConnection}. + */ + build() { + const httpConnectionOptions = this.httpConnectionOptions || {}; + if (httpConnectionOptions.logger === void 0) { + httpConnectionOptions.logger = this.logger; + } + if (!this.url) { + throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection."); + } + const connection = new HttpConnection(this.url, httpConnectionOptions); + return HubConnection.create(connection, this.logger || NullLogger.instance, this.protocol || new JsonHubProtocol(), this.reconnectPolicy); + } +}; +function isLogger(logger) { + return logger.log !== void 0; +} +export { + AbortError, + DefaultHttpClient, + HttpClient, + HttpError, + HttpResponse, + HttpTransportType, + HubConnection, + HubConnectionBuilder, + HubConnectionState, + JsonHubProtocol, + LogLevel, + MessageType, + NullLogger, + Subject, + TimeoutError, + TransferFormat, + VERSION +}; diff --git a/code/WebApp/vanilla/lib/@vue-office/excel/index.css b/code/WebApp/vanilla/lib/@vue-office/excel/index.css new file mode 100644 index 00000000..6378e797 --- /dev/null +++ b/code/WebApp/vanilla/lib/@vue-office/excel/index.css @@ -0,0 +1,765 @@ +body { + margin: 0; +} +.x-spreadsheet { + font-size: 13px; + line-height: normal; + user-select: none; + -moz-user-select: none; + font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif; + box-sizing: content-box; + background: #fff; + -webkit-font-smoothing: antialiased; +} +.x-spreadsheet textarea { + font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif; +} +.x-spreadsheet-sheet { + position: relative; + overflow: hidden; +} +.x-spreadsheet-table { + vertical-align: bottom; +} +.x-spreadsheet-tooltip { + font-family: inherit; + position: absolute; + padding: 5px 10px; + color: #fff; + border-radius: 1px; + background: #000000; + font-size: 12px; + z-index: 201; +} +.x-spreadsheet-tooltip:before { + pointer-events: none; + position: absolute; + left: calc(50% - 4px); + top: -4px; + content: ""; + width: 8px; + height: 8px; + background: inherit; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); + z-index: 1; + box-shadow: 1px 1px 3px -1px rgba(0, 0, 0, 0.3); +} +.x-spreadsheet-color-palette { + padding: 5px; +} +.x-spreadsheet-color-palette table { + margin: 0; + padding: 0; + border-collapse: separate; + border-spacing: 2; + background: #fff; +} +.x-spreadsheet-color-palette table td { + margin: 0; + cursor: pointer; + border: 1px solid transparent; +} +.x-spreadsheet-color-palette table td:hover { + border-color: #ddd; +} +.x-spreadsheet-color-palette table td .x-spreadsheet-color-palette-cell { + width: 16px; + height: 16px; +} +.x-spreadsheet-border-palette { + padding: 6px; +} +.x-spreadsheet-border-palette table { + margin: 0; + padding: 0; + border-collapse: separate; + border-spacing: 0; + background: #fff; + table-layout: fixed; +} +.x-spreadsheet-border-palette table td { + margin: 0; +} +.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left { + border-right: 1px solid #eee; + padding-right: 6px; +} +.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell { + width: 30px; + height: 30px; + cursor: pointer; + text-align: center; +} +.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell:hover { + background-color: #eee; +} +.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right { + padding-left: 6px; +} +.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right .x-spreadsheet-line-type { + position: relative; + left: 0; + top: -3px; +} +.x-spreadsheet-dropdown { + position: relative; +} +.x-spreadsheet-dropdown .x-spreadsheet-dropdown-content { + position: absolute; + z-index: 200; + background: #fff; + box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15); +} +.x-spreadsheet-dropdown.bottom-left .x-spreadsheet-dropdown-content { + top: calc(100% + 5px); + left: 0; +} +.x-spreadsheet-dropdown.bottom-right .x-spreadsheet-dropdown-content { + top: calc(100% + 5px); + right: 0; +} +.x-spreadsheet-dropdown.top-left .x-spreadsheet-dropdown-content { + bottom: calc(100% + 5px); + left: 0; +} +.x-spreadsheet-dropdown.top-right .x-spreadsheet-dropdown-content { + bottom: calc(100% + 5px); + right: 0; +} +.x-spreadsheet-dropdown .x-spreadsheet-dropdown-title { + padding: 0 5px; + display: inline-block; +} +/* resizer **/ +.x-spreadsheet-resizer { + position: absolute; + z-index: 11; +} +.x-spreadsheet-resizer .x-spreadsheet-resizer-hover { + background-color: rgba(75, 137, 255, 0.25); +} +.x-spreadsheet-resizer .x-spreadsheet-resizer-line { + position: absolute; +} +.x-spreadsheet-resizer.horizontal { + cursor: row-resize; +} +.x-spreadsheet-resizer.horizontal .x-spreadsheet-resizer-line { + border-bottom: 2px dashed #4b89ff; + left: 0; + bottom: 0; +} +.x-spreadsheet-resizer.vertical { + cursor: col-resize; +} +.x-spreadsheet-resizer.vertical .x-spreadsheet-resizer-line { + border-right: 2px dashed #4b89ff; + top: 0; + right: 0; +} +/* scrollbar */ +.x-spreadsheet-scrollbar { + position: absolute; + bottom: 0; + right: 0; + background-color: #f4f5f8; + opacity: 0.9; + z-index: 12; +} +.x-spreadsheet-scrollbar.horizontal { + right: 15px; + overflow-x: scroll; + overflow-y: hidden; +} +.x-spreadsheet-scrollbar.horizontal > div { + height: 1px; + background: #ddd; +} +.x-spreadsheet-scrollbar.vertical { + bottom: 15px; + overflow-x: hidden; + overflow-y: scroll; +} +.x-spreadsheet-scrollbar.vertical > div { + width: 1px; + background: #ddd; +} +/* @{css-prefix}-overlayer */ +.x-spreadsheet-overlayer { + position: absolute; + left: 0; + top: 0; + z-index: 10; +} +.x-spreadsheet-overlayer .x-spreadsheet-overlayer-content { + position: absolute; + overflow: hidden; + pointer-events: none; + width: 100%; + height: 100%; +} +.x-spreadsheet-editor, +.x-spreadsheet-selector { + box-sizing: content-box; + position: absolute; + overflow: hidden; + pointer-events: none; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* @{css-prefix}-selector */ +.x-spreadsheet-selector .hide-input { + position: absolute; + z-index: 0; +} +.x-spreadsheet-selector .hide-input input { + padding: 0; + width: 0; + border: none!important; +} +.x-spreadsheet-selector .x-spreadsheet-selector-area { + position: absolute; + border: 2px solid #4b89ff; + background: rgba(75, 137, 255, 0.1); + z-index: 5; +} +.x-spreadsheet-selector .x-spreadsheet-selector-clipboard, +.x-spreadsheet-selector .x-spreadsheet-selector-autofill { + position: absolute; + background: transparent; + z-index: 100; +} +.x-spreadsheet-selector .x-spreadsheet-selector-clipboard { + border: 2px dashed #4b89ff; +} +.x-spreadsheet-selector .x-spreadsheet-selector-autofill { + border: 1px dashed rgba(0, 0, 0, 0.45); +} +.x-spreadsheet-selector .x-spreadsheet-selector-corner { + pointer-events: auto; + position: absolute; + cursor: crosshair; + font-size: 0; + height: 5px; + width: 5px; + right: -5px; + bottom: -5px; + border: 2px solid #ffffff; + background: #4b89ff; +} +.x-spreadsheet-editor { + z-index: 20; +} +.x-spreadsheet-editor .x-spreadsheet-editor-area { + position: absolute; + text-align: left; + border: 2px solid #4b89ff; + line-height: 0; + z-index: 100; + pointer-events: auto; +} +.x-spreadsheet-editor .x-spreadsheet-editor-area textarea { + box-sizing: content-box; + border: none; + padding: 0 3px; + outline: none; + resize: none; + text-align: start; + overflow-y: hidden; + font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif; + color: inherit; + white-space: normal; + word-wrap: break-word; + line-height: 22px; + margin: 0; +} +.x-spreadsheet-editor .x-spreadsheet-editor-area .textline { + overflow: hidden; + visibility: hidden; + position: fixed; + top: 0; + left: 0; +} +.x-spreadsheet-item { + user-select: none; + background: 0; + border: 1px solid transparent; + outline: none; + height: 26px; + color: rgba(0, 0, 0, 0.9); + line-height: 26px; + list-style: none; + padding: 2px 10px; + cursor: default; + text-align: left; + overflow: hidden; +} +.x-spreadsheet-item.disabled { + pointer-events: none; + opacity: 0.5; +} +.x-spreadsheet-item:hover, +.x-spreadsheet-item.active { + background: rgba(0, 0, 0, 0.05); +} +.x-spreadsheet-item.divider { + height: 0; + padding: 0; + margin: 5px 0; + border: none; + border-bottom: 1px solid rgba(0, 0, 0, 0.1); +} +.x-spreadsheet-item .label { + float: right; + opacity: 0.65; + font-size: 1em; +} +.x-spreadsheet-item.state, +.x-spreadsheet-header.state { + padding-left: 35px!important; + position: relative; +} +.x-spreadsheet-item.state:before, +.x-spreadsheet-header.state:before { + content: ''; + position: absolute; + width: 10px; + height: 10px; + left: 12px; + top: calc(50% - 5px); + background: rgba(0, 0, 0, 0.08); + border-radius: 2px; +} +.x-spreadsheet-item.state.checked:before, +.x-spreadsheet-header.state.checked:before { + background: #4b89ff; +} +.x-spreadsheet-checkbox { + position: relative; + display: inline-block; + backface-visibility: hidden; + outline: 0; + vertical-align: baseline; + font-style: normal; + font-size: 1rem; + line-height: 1em; +} +.x-spreadsheet-checkbox > input { + position: absolute; + top: 0; + left: 0; + opacity: 0!important; + outline: 0; + z-index: -1; +} +.x-spreadsheet-suggest, +.x-spreadsheet-contextmenu, +.x-spreadsheet-sort-filter { + position: absolute; + box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15); + background: #fff; + z-index: 100; + width: 260px; + pointer-events: auto; + overflow: auto; +} +.x-spreadsheet-suggest { + width: 200px; +} +.x-spreadsheet-filter { + border: 1px solid #e9e9e9; + font-size: 12px; + margin: 10px; +} +.x-spreadsheet-filter .x-spreadsheet-header { + padding: 0.5em 0.75em; + background: #f8f8f9; + border-bottom: 1px solid #e9e9e9; + border-left: 1px solid transparent; +} +.x-spreadsheet-filter .x-spreadsheet-body { + height: 200px; + overflow-y: auto; +} +.x-spreadsheet-filter .x-spreadsheet-body .x-spreadsheet-item { + height: 20px; + line-height: 20px; +} +.x-spreadsheet-sort-filter .x-spreadsheet-buttons { + margin: 10px; +} +.x-spreadsheet-bottombar { + height: 40px; + padding: 0 30px; + text-align: left; + background: #f5f6f7; + display: flex; +} +.x-spreadsheet-bottombar { + position: relative; + border-top: 1px solid #e0e2e4; +} +.x-spreadsheet-bottombar .x-spreadsheet-menu > li { + line-height: 40px; + height: 40px; + padding-top: 0; + padding-bottom: 0; + vertical-align: middle; + border-right: 1px solid #e8eaed; +} +.x-spreadsheet-menu { + list-style: none; + margin: 0; + padding: 0; + user-select: none; +} +.x-spreadsheet-menu > li { + float: left; + line-height: 1.25em; + padding: 0.785em 1em; + margin: 0; + vertical-align: middle; + text-align: left; + font-weight: 400; + color: #80868b; + white-space: nowrap; + cursor: pointer; + transition: all 0.3s; + font-weight: bold; +} +.x-spreadsheet-menu > li.active { + background-color: #fff; + color: rgba(0, 0, 0, 0.65); +} +.x-spreadsheet-menu > li .x-spreadsheet-dropdown { + display: inline-block; +} +.x-spreadsheet-print { + position: absolute; + left: 0; + top: 0; + z-index: 100; + width: 100%; + height: 100%; + display: flex; + flex-direction: column; +} +.x-spreadsheet-print-bar { + background: #424242; + height: 60px; + line-height: 60px; + padding: 0 30px; +} +.x-spreadsheet-print-bar .-title { + color: #fff; + font-weight: bold; + font-size: 1.2em; + float: left; +} +.x-spreadsheet-print-bar .-right { + float: right; + margin-top: 12px; +} +.x-spreadsheet-print-content { + display: flex; + flex: auto; + flex-direction: row; + background: #d0d0d0; + height: calc(100% - 60px); +} +.x-spreadsheet-print-content .-sider { + flex: 0 0 300px; + width: 300px; + border-left: 2px solid #ccc; + background: #fff; +} +.x-spreadsheet-print-content .-content { + flex: auto; + overflow-x: auto; + overflow-y: scroll; + height: 100%; +} +.x-spreadsheet-canvas-card-wraper { + margin: 40px 20px; +} +.x-spreadsheet-canvas-card { + background: #fff; + margin: auto; + page-break-before: auto; + page-break-after: always; + box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 5px 0 rgba(0, 0, 0, 0.2); +} +.x-spreadsheet-calendar { + color: rgba(0, 0, 0, 0.65); + background: #ffffff; + user-select: none; +} +.x-spreadsheet-calendar .calendar-header { + font-weight: 700; + line-height: 30px; + text-align: center; + width: 100%; + float: left; + background: #f9fafb; +} +.x-spreadsheet-calendar .calendar-header .calendar-header-left { + padding-left: 5px; + float: left; +} +.x-spreadsheet-calendar .calendar-header .calendar-header-right { + float: right; +} +.x-spreadsheet-calendar .calendar-header .calendar-header-right a { + padding: 3px 0; + margin-right: 2px; + border-radius: 2px; +} +.x-spreadsheet-calendar .calendar-header .calendar-header-right a:hover { + background: rgba(0, 0, 0, 0.08); +} +.x-spreadsheet-calendar .calendar-body { + border-collapse: collapse; + border-spacing: 0; +} +.x-spreadsheet-calendar .calendar-body th, +.x-spreadsheet-calendar .calendar-body td { + width: 14.28571429%; + min-width: 32px; + text-align: center; + font-weight: 700; + line-height: 30px; + padding: 0; +} +.x-spreadsheet-calendar .calendar-body td > .cell:hover { + background: #ecf6fd; +} +.x-spreadsheet-calendar .calendar-body td > .cell.active, +.x-spreadsheet-calendar .calendar-body td > .cell.active:hover { + background: #ecf6fd; + color: #2185D0; +} +.x-spreadsheet-calendar .calendar-body td > .cell.disabled { + pointer-events: none; + opacity: 0.5; +} +.x-spreadsheet-datepicker { + box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); + position: absolute; + left: 0; + top: calc(100% + 5px); + z-index: 10; + width: auto; +} +.x-spreadsheet-buttons { + display: flex; + justify-content: flex-end; +} +.x-spreadsheet-buttons .x-spreadsheet-button { + margin-left: 8px; +} +.x-spreadsheet-button { + display: inline-block; + border-radius: 3px; + line-height: 1em; + min-height: 1em; + white-space: nowrap; + text-align: center; + cursor: pointer; + font-size: 1em; + font-weight: 700; + padding: 0.75em 1em; + color: rgba(0, 0, 0, 0.6); + background: #E0E1E2; + text-decoration: none; + font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif; + outline: none; + vertical-align: baseline; + zoom: 1; + user-select: none; + transition: all 0.1s linear; +} +.x-spreadsheet-button.active, +.x-spreadsheet-button:hover { + background-color: #C0C1C2; + color: rgba(0, 0, 0, 0.8); +} +.x-spreadsheet-button.primary { + color: #fff; + background-color: #2185D0; +} +.x-spreadsheet-button.primary:hover, +.x-spreadsheet-button.primary.active { + color: #fff; + background-color: #1678c2; +} +.x-spreadsheet-form-input { + font-size: 1em; + position: relative; + font-weight: 400; + display: inline-flex; + color: rgba(0, 0, 0, 0.87); +} +.x-spreadsheet-form-input input { + z-index: 1; + margin: 0; + max-width: 100%; + flex: 1 0 auto; + outline: 0; + -webkit-tap-highlight-color: rgba(255, 255, 255, 0); + text-align: left; + line-height: 30px; + height: 30px; + padding: 0 8px; + background: #fff; + border: 1px solid #e9e9e9; + border-radius: 3px; + transition: box-shadow 0.1s ease, border-color 0.1s ease; + box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06); +} +.x-spreadsheet-form-input input:focus { + border-color: #4b89ff; + box-shadow: inset 0 1px 2px rgba(75, 137, 255, 0.2); +} +.x-spreadsheet-form-select { + position: relative; + display: inline-block; + background: #fff; + border: 1px solid #e9e9e9; + border-radius: 2px; + cursor: pointer; + color: rgba(0, 0, 0, 0.87); + user-select: none; + box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06); +} +.x-spreadsheet-form-select .input-text { + text-overflow: ellipsis; + white-space: nowrap; + min-width: 60px; + width: auto; + height: 30px; + line-height: 30px; + padding: 0 8px; +} +.x-spreadsheet-form-fields { + display: flex; + flex-direction: row; + flex-wrap: wrap; +} +.x-spreadsheet-form-fields .x-spreadsheet-form-field { + flex: 0 1 auto; +} +.x-spreadsheet-form-fields .x-spreadsheet-form-field .label { + display: inline-block; + margin: 0 10px 0 0; +} +.x-spreadsheet-form-field { + display: block; + vertical-align: middle; + margin-left: 10px; + margin-bottom: 10px; +} +.x-spreadsheet-form-field:first-child { + margin-left: 0; +} +.x-spreadsheet-form-field.error .x-spreadsheet-form-select, +.x-spreadsheet-form-field.error input { + border-color: #f04134; +} +.x-spreadsheet-form-field .tip { + color: #f04134; + font-size: 0.9em; +} +.x-spreadsheet-dimmer { + display: none; + position: absolute; + top: 0 !important; + left: 0 !important; + width: 100%; + height: 100%; + text-align: center; + vertical-align: middle; + background-color: rgba(0, 0, 0, 0.6); + opacity: 0; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; + -webkit-animation-duration: 0.5s; + animation-duration: 0.5s; + transition: background-color 0.5s linear; + user-select: none; + z-index: 1000; +} +.x-spreadsheet-dimmer.active { + display: block; + opacity: 1; +} +form fieldset { + border: none; +} +form fieldset label { + display: block; + margin-bottom: 0.5em; + font-size: 1em; + color: #666; +} +form fieldset select { + font-size: 1.1em; + width: 100%; + background-color: #fff; + border: none; + border-bottom: 2px solid #ddd; + padding: 0.5em 0.85em; + border-radius: 2px; +} +.x-spreadsheet-modal, +.x-spreadsheet-toast { + font-size: 13px; + position: fixed; + z-index: 1001; + text-align: left; + line-height: 1.25em; + min-width: 360px; + color: rgba(0, 0, 0, 0.87); + font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif; + border-radius: 4px; + border: 1px solid rgba(0, 0, 0, 0.1); + background-color: #fff; + background-clip: padding-box; + box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px; +} +.x-spreadsheet-toast { + background-color: rgba(255, 255, 255, 0.85); +} +.x-spreadsheet-modal-header, +.x-spreadsheet-toast-header { + font-weight: 600; + background-clip: padding-box; + background-color: rgba(255, 255, 255, 0.85); + border-bottom: 1px solid rgba(0, 0, 0, 0.05); + border-radius: 4px 4px 0 0; +} + +.x-spreadsheet-toast-header { + color: #F2711C; +} +.x-spreadsheet-modal-header { + border-bottom: 1px solid #e0e2e4; + background: rgba(0, 0, 0, 0.08); + font-size: 1.0785em; +} +.x-spreadsheet-modal-header, +.x-spreadsheet-modal-content, +.x-spreadsheet-toast-header, +.x-spreadsheet-toast-content { + padding: 0.75em 1em; +} + +.x-spreadsheet-menu li:first-child { + display: none; +} + +.vue-office-excel { + height: 100%; +} \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs b/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs new file mode 100644 index 00000000..87b57a05 --- /dev/null +++ b/code/WebApp/vanilla/lib/@vue-office/excel/vue-office-excel.mjs @@ -0,0 +1,54424 @@ +var am = Object.defineProperty; +var El = Object.getOwnPropertySymbols; +var om = Object.prototype.hasOwnProperty, sm = Object.prototype.propertyIsEnumerable; +var Rl = Math.pow, Tl = (H, k, e) => k in H ? am(H, k, { enumerable: !0, configurable: !0, writable: !0, value: e }) : H[k] = e, Qs = (H, k) => { + for (var e in k || (k = {})) + om.call(k, e) && Tl(H, e, k[e]); + if (El) + for (var e of El(k)) + sm.call(k, e) && Tl(H, e, k[e]); + return H; +}; +import { defineComponent as fm, ref as Cl, onMounted as um, nextTick as lm, onBeforeUnmount as cm, watch as hm } from "vue-demi"; +import { openBlock as dm, createElementBlock as pm, createElementVNode as ym } from "vue"; +class Hi { + constructor(k, e = "") { + typeof k == "string" ? (this.el = document.createElement(k), this.el.className = e) : this.el = k, this.data = {}; + } + data(k, e) { + return e !== void 0 ? (this.data[k] = e, this) : this.data[k]; + } + on(k, e) { + const [x, ..._] = k.split("."); + let u = x; + return u === "mousewheel" && /Firefox/i.test(window.navigator.userAgent) && (u = "DOMMouseScroll"), this.el.addEventListener(u, (m) => { + e(m); + for (let g = 0; g < _.length; g += 1) { + const b = _[g]; + if (b === "left" && m.button !== 0 || b === "right" && m.button !== 2) + return; + b === "stop" && m.stopPropagation(); + } + }), this; + } + offset(k) { + if (k !== void 0) + return Object.keys(k).forEach((m) => { + this.css(m, `${k[m]}px`); + }), this; + const { + offsetTop: e, + offsetLeft: x, + offsetHeight: _, + offsetWidth: u + } = this.el; + return { + top: e, + left: x, + height: _, + width: u + }; + } + scroll(k) { + const { el: e } = this; + return k !== void 0 && (k.left !== void 0 && (e.scrollLeft = k.left), k.top !== void 0 && (e.scrollTop = k.top)), { left: e.scrollLeft, top: e.scrollTop }; + } + box() { + return this.el.getBoundingClientRect(); + } + parent() { + return new Hi(this.el.parentNode); + } + children(...k) { + return arguments.length === 0 ? this.el.childNodes : (k.forEach((e) => this.child(e)), this); + } + removeChild(k) { + this.el.removeChild(k); + } + /* + first() { + return this.el.firstChild; + } + + last() { + return this.el.lastChild; + } + + remove(ele) { + return this.el.removeChild(ele); + } + + prepend(ele) { + const { el } = this; + if (el.children.length > 0) { + el.insertBefore(ele, el.firstChild); + } else { + el.appendChild(ele); + } + return this; + } + + prev() { + return this.el.previousSibling; + } + + next() { + return this.el.nextSibling; + } + */ + child(k) { + let e = k; + return typeof k == "string" ? e = document.createTextNode(k) : k instanceof Hi && (e = k.el), this.el.appendChild(e), this; + } + contains(k) { + return this.el.contains(k); + } + className(k) { + return k !== void 0 ? (this.el.className = k, this) : this.el.className; + } + addClass(k) { + return this.el.classList.add(k), this; + } + hasClass(k) { + return this.el.classList.contains(k); + } + removeClass(k) { + return this.el.classList.remove(k), this; + } + toggle(k = "active") { + return this.toggleClass(k); + } + toggleClass(k) { + return this.el.classList.toggle(k); + } + active(k = !0, e = "active") { + return k ? this.addClass(e) : this.removeClass(e), this; + } + checked(k = !0) { + return this.active(k, "checked"), this; + } + disabled(k = !0) { + return k ? this.addClass("disabled") : this.removeClass("disabled"), this; + } + // key, value + // key + // {k, v}... + attr(k, e) { + if (e !== void 0) + this.el.setAttribute(k, e); + else { + if (typeof k == "string") + return this.el.getAttribute(k); + Object.keys(k).forEach((x) => { + this.el.setAttribute(x, k[x]); + }); + } + return this; + } + removeAttr(k) { + return this.el.removeAttribute(k), this; + } + html(k) { + return k !== void 0 ? (this.el.innerHTML = k, this) : this.el.innerHTML; + } + val(k) { + return k !== void 0 ? (this.el.value = k, this) : this.el.value; + } + focus() { + this.el.focus(); + } + cssRemoveKeys(...k) { + return k.forEach((e) => this.el.style.removeProperty(e)), this; + } + // css( propertyName ) + // css( propertyName, value ) + // css( properties ) + css(k, e) { + return e === void 0 && typeof k != "string" ? (Object.keys(k).forEach((x) => { + this.el.style[x] = k[x]; + }), this) : e !== void 0 ? (this.el.style[k] = e, this) : this.el.style[k]; + } + computedStyle() { + return window.getComputedStyle(this.el, null); + } + show() { + return this.css("display", "block"), this; + } + hide() { + return this.css("display", "none"), this; + } +} +const $e = (H, k = "") => new Hi(H, k), Ei = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; +function cc(H) { + let k = "", e = H; + for (; e >= Ei.length; ) + e /= Ei.length, e -= 1, k += Ei[parseInt(e, 10) % Ei.length]; + const x = H % Ei.length; + return k += Ei[x], k; +} +function vm(H) { + let k = 0; + for (let e = 0; e < H.length - 1; e += 1) { + const x = H.charCodeAt(e) - 65, _ = H.length - 1 - e; + k += Rl(Ei.length, _) + Ei.length * x; + } + return k += H.charCodeAt(H.length - 1) - 65, k; +} +function Ti(H) { + let k = "", e = ""; + for (let x = 0; x < H.length; x += 1) + H.charAt(x) >= "0" && H.charAt(x) <= "9" ? e += H.charAt(x) : k += H.charAt(x); + return [vm(k), parseInt(e, 10) - 1]; +} +function hi(H, k) { + return `${cc(H)}${k + 1}`; +} +function Ha(H, k, e, x = () => !0) { + if (k === 0 && e === 0) + return H; + const [_, u] = Ti(H); + return x(_, u) ? hi(_ + k, u + e) : H; +} +class kr { + constructor(k, e, x, _, u = 0, m = 0) { + this.sri = k, this.sci = e, this.eri = x, this.eci = _, this.w = u, this.h = m; + } + set(k, e, x, _) { + this.sri = k, this.sci = e, this.eri = x, this.eci = _; + } + multiple() { + return this.eri - this.sri > 0 || this.eci - this.sci > 0; + } + // cell-index: ri, ci + // cell-ref: A10 + includes(...k) { + let [e, x] = [0, 0]; + k.length === 1 ? [x, e] = Ti(k[0]) : k.length === 2 && ([e, x] = k); + const { + sri: _, + sci: u, + eri: m, + eci: g + } = this; + return _ <= e && e <= m && u <= x && x <= g; + } + each(k, e = () => !0) { + const { + sri: x, + sci: _, + eri: u, + eci: m + } = this; + for (let g = x; g <= u; g += 1) + if (e(g)) + for (let b = _; b <= m; b += 1) + k(g, b); + } + contains(k) { + return this.sri <= k.sri && this.sci <= k.sci && this.eri >= k.eri && this.eci >= k.eci; + } + // within + within(k) { + return this.sri >= k.sri && this.sci >= k.sci && this.eri <= k.eri && this.eci <= k.eci; + } + // disjoint + disjoint(k) { + return this.sri > k.eri || this.sci > k.eci || k.sri > this.eri || k.sci > this.eci; + } + // intersects + intersects(k) { + return this.sri <= k.eri && this.sci <= k.eci && k.sri <= this.eri && k.sci <= this.eci; + } + // union + union(k) { + const { + sri: e, + sci: x, + eri: _, + eci: u + } = this; + return new kr( + k.sri < e ? k.sri : e, + k.sci < x ? k.sci : x, + k.eri > _ ? k.eri : _, + k.eci > u ? k.eci : u + ); + } + // intersection + // intersection(other) {} + // Returns Array that represents that part of this that does not intersect with other + // difference + difference(k) { + const e = [], x = (h, l, d, s) => { + e.push(new kr(h, l, d, s)); + }, { + sri: _, + sci: u, + eri: m, + eci: g + } = this, b = k.sri - _, w = k.sci - u, f = m - k.eri, y = g - k.eci; + return b > 0 ? (x(_, u, k.sri - 1, g), f > 0 ? (x(k.eri + 1, u, m, g), w > 0 && x(k.sri, u, k.eri, k.sci - 1), y > 0 && x(k.sri, k.eci + 1, k.eri, g)) : (w > 0 && x(k.sri, u, m, k.sci - 1), y > 0 && x(k.sri, k.eci + 1, m, g))) : f > 0 && (x(k.eri + 1, u, m, g), w > 0 && x(_, u, k.eri, k.sci - 1), y > 0 && x(_, k.eci + 1, k.eri, g)), w > 0 ? (x(_, u, m, k.sci - 1), y > 0 ? (x(_, k.eri + 1, m, g), b > 0 && x(_, k.sci, k.sri - 1, k.eci), f > 0 && x(k.sri + 1, k.sci, m, k.eci)) : (b > 0 && x(_, k.sci, k.sri - 1, g), f > 0 && x(k.sri + 1, k.sci, m, g))) : y > 0 && (x(m, k.eci + 1, m, g), b > 0 && x(_, u, k.sri - 1, k.eci), f > 0 && x(k.eri + 1, u, m, k.eci)), e; + } + size() { + return [ + this.eri - this.sri + 1, + this.eci - this.sci + 1 + ]; + } + toString() { + const { + sri: k, + sci: e, + eri: x, + eci: _ + } = this; + let u = hi(e, k); + return this.multiple() && (u = `${u}:${hi(_, x)}`), u; + } + clone() { + const { + sri: k, + sci: e, + eri: x, + eci: _, + w: u, + h: m + } = this; + return new kr(k, e, x, _, u, m); + } + /* + toJSON() { + return this.toString(); + } + */ + equals(k) { + return this.eri === k.eri && this.eci === k.eci && this.sri === k.sri && this.sci === k.sci; + } + static valueOf(k) { + const e = k.split(":"), [x, _] = Ti(e[0]); + let [u, m] = [_, x]; + return e.length > 1 && ([m, u] = Ti(e[1])), new kr(_, x, u, m); + } +} +let mm = class { + constructor() { + this.range = new kr(0, 0, 0, 0), this.ri = 0, this.ci = 0; + } + multiple() { + return this.range.multiple(); + } + setIndexes(k, e) { + this.ri = k, this.ci = e; + } + size() { + return this.range.size(); + } +}; +class bm { + constructor() { + this.x = 0, this.y = 0, this.ri = 0, this.ci = 0; + } +} +class gm { + constructor() { + this.undoItems = [], this.redoItems = []; + } + add(k) { + this.undoItems.push(JSON.stringify(k)), this.redoItems = []; + } + canUndo() { + return this.undoItems.length > 0; + } + canRedo() { + return this.redoItems.length > 0; + } + undo(k, e) { + const { undoItems: x, redoItems: _ } = this; + this.canUndo() && (_.push(JSON.stringify(k)), e(JSON.parse(x.pop()))); + } + redo(k, e) { + const { undoItems: x, redoItems: _ } = this; + this.canRedo() && (x.push(JSON.stringify(k)), e(JSON.parse(_.pop()))); + } +} +class _m { + constructor() { + this.range = null, this.state = "clear"; + } + copy(k) { + return this.range = k, this.state = "copy", this; + } + cut(k) { + return this.range = k, this.state = "cut", this; + } + isCopy() { + return this.state === "copy"; + } + isCut() { + return this.state === "cut"; + } + isClear() { + return this.state === "clear"; + } + clear() { + this.range = null, this.state = "clear"; + } +} +class Pl { + constructor(k, e, x) { + this.ci = k, this.operator = e, this.value = x; + } + set(k, e) { + this.operator = k, this.value = e; + } + includes(k) { + const { operator: e, value: x } = this; + return e === "all" ? !0 : e === "in" ? x.includes(k) : !1; + } + vlength() { + const { operator: k, value: e } = this; + return k === "in" ? e.length : 0; + } + getData() { + const { ci: k, operator: e, value: x } = this; + return { ci: k, operator: e, value: x }; + } +} +class Al { + constructor(k, e) { + this.ci = k, this.order = e; + } + asc() { + return this.order === "asc"; + } + desc() { + return this.order === "desc"; + } +} +class wm { + constructor() { + this.ref = null, this.filters = [], this.sort = null; + } + setData({ ref: k, filters: e, sort: x }) { + k != null && (this.ref = k, this.filters = e.map((_) => new Pl(_.ci, _.operator, _.value)), x && (this.sort = new Al(x.ci, x.order))); + } + getData() { + if (this.active()) { + const { ref: k, filters: e, sort: x } = this; + return { ref: k, filters: e.map((_) => _.getData()), sort: x }; + } + return {}; + } + addFilter(k, e, x) { + const _ = this.getFilter(k); + _ == null ? this.filters.push(new Pl(k, e, x)) : _.set(e, x); + } + setSort(k, e) { + this.sort = e ? new Al(k, e) : null; + } + includes(k, e) { + return this.active() ? this.hrange().includes(k, e) : !1; + } + getSort(k) { + const { sort: e } = this; + return e && e.ci === k ? e : null; + } + getFilter(k) { + const { filters: e } = this; + for (let x = 0; x < e.length; x += 1) + if (e[x].ci === k) + return e[x]; + return null; + } + filteredRows(k) { + const e = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set(); + if (this.active()) { + const { sri: _, eri: u } = this.range(), { filters: m } = this; + for (let g = _ + 1; g <= u; g += 1) + for (let b = 0; b < m.length; b += 1) { + const w = m[b], f = k(g, w.ci), y = f ? f.text : ""; + if (w.includes(y)) + x.add(g); + else { + e.add(g); + break; + } + } + } + return { rset: e, fset: x }; + } + items(k, e) { + const x = {}; + if (this.active()) { + const { sri: _, eri: u } = this.range(); + for (let m = _ + 1; m <= u; m += 1) { + const g = e(m, k); + if (g !== null && !/^\s*$/.test(g.text)) { + const b = g.text, w = (x[b] || 0) + 1; + x[b] = w; + } else + x[""] = (x[""] || 0) + 1; + } + } + return x; + } + range() { + return kr.valueOf(this.ref); + } + hrange() { + const k = this.range(); + return k.eri = k.sri, k; + } + clear() { + this.ref = null, this.filters = [], this.sort = null; + } + active() { + return this.ref !== null; + } +} +class xf { + constructor(k = []) { + this._ = k; + } + forEach(k) { + this._.forEach(k); + } + deleteWithin(k) { + this._ = this._.filter((e) => !e.within(k)); + } + getFirstIncludes(k, e) { + for (let x = 0; x < this._.length; x += 1) { + const _ = this._[x]; + if (_.includes(k, e)) + return _; + } + return null; + } + filterIntersects(k) { + return new xf(this._.filter((e) => e.intersects(k))); + } + intersects(k) { + for (let e = 0; e < this._.length; e += 1) + if (this._[e].intersects(k)) + return !0; + return !1; + } + union(k) { + let e = k; + return this._.forEach((x) => { + x.intersects(e) && (e = x.union(e)); + }), e; + } + add(k) { + this.deleteWithin(k), this._.push(k); + } + // type: row | column + shift(k, e, x, _) { + this._.forEach((u) => { + const { + sri: m, + sci: g, + eri: b, + eci: w + } = u, f = u; + k === "row" ? m >= e ? (f.sri += x, f.eri += x) : m < e && e <= b && (f.eri += x, _(m, g, x, 0)) : k === "column" && (g >= e ? (f.sci += x, f.eci += x) : g < e && e <= w && (f.eci += x, _(m, g, 0, x))); + }); + } + move(k, e, x) { + this._.forEach((_) => { + const u = _; + u.within(k) && (u.eri += e, u.sri += e, u.sci += x, u.eci += x); + }); + } + setData(k) { + return this._ = k.map((e) => kr.valueOf(e)), this; + } + getData() { + return this._.map((k) => k.toString()); + } +} +function xm(H) { + return JSON.parse(JSON.stringify(H)); +} +const hc = (H = {}, ...k) => (k.forEach((e) => { + Object.keys(e).forEach((x) => { + const _ = e[x]; + typeof _ == "string" || typeof _ == "number" || typeof _ == "boolean" ? H[x] = _ : typeof _ != "function" && !Array.isArray(_) && _ instanceof Object ? (H[x] = H[x] || {}, hc(H[x], _)) : H[x] = _; + }); +}), H); +function cf(H, k) { + const e = Object.keys(H); + if (e.length !== Object.keys(k).length) + return !1; + for (let x = 0; x < e.length; x += 1) { + const _ = e[x], u = H[_], m = k[_]; + if (m === void 0) + return !1; + if (typeof u == "string" || typeof u == "number" || typeof u == "boolean") { + if (u !== m) + return !1; + } else if (Array.isArray(u)) { + if (u.length !== m.length) + return !1; + for (let g = 0; g < u.length; g += 1) + if (!cf(u[g], m[g])) + return !1; + } else if (typeof u != "function" && !Array.isArray(u) && u instanceof Object && !cf(u, m)) + return !1; + } + return !0; +} +const Sm = (H, k = (e) => e) => { + let e = 0, x = 0; + return Object.keys(H).forEach((_) => { + e += k(H[_], _), x += 1; + }), [e, x]; +}; +function km(H, k) { + const e = H[`${k}`]; + return delete H[`${k}`], e; +} +function Om(H, k, e, x, _, u) { + let m = e, g = x, b = H; + for (; b < k && !(m > _); b += 1) + g = u(b), m += g; + return [b, m - g, g]; +} +function Em(H, k, e) { + let x = 0; + for (let _ = H; _ < k; _ += 1) + x += e(_); + return x; +} +function Tm(H, k, e) { + for (let x = H; x < k; x += 1) + e(x); +} +function Rm(H, k) { + if (H.length === k.length) { + for (let e = 0; e < H.length; e += 1) + if (H[e] !== k[e]) + return !1; + } else + return !1; + return !0; +} +function qs(H) { + const k = `${H}`; + let e = 0, x = !1; + for (let _ = 0; _ < k.length; _ += 1) + x === !0 && (e += 1), k.charAt(_) === "." && (x = !0); + return e; +} +function ji(H, k, e) { + if (Number.isNaN(k) || Number.isNaN(e)) + return k + H + e; + const x = qs(k), _ = qs(e), u = Number(k), m = Number(e); + let g = 0; + if (H === "-") + g = u - m; + else if (H === "+") + g = u + m; + else if (H === "*") + g = u * m; + else if (H === "/") + return g = u / m, qs(g) > 5 ? g.toFixed(2) : g; + return g.toFixed(Math.max(x, _)); +} +const fn = { + cloneDeep: xm, + merge: (...H) => hc({}, ...H), + equals: cf, + arrayEquals: Rm, + sum: Sm, + rangeEach: Tm, + rangeSum: Em, + rangeReduceIf: Om, + deleteProperty: km, + numberCalc: ji +}; +class Cm { + constructor({ len: k, height: e }) { + this._ = {}, this.len = k, this.height = e; + } + getHeight(k) { + if (this.isHide(k)) + return 0; + const e = this.get(k); + return e && e.height ? e.height : this.height; + } + setHeight(k, e) { + const x = this.getOrNew(k); + x.height = e; + } + unhide(k) { + let e = k; + for (; e > 0 && (e -= 1, this.isHide(e)); ) + this.setHide(e, !1); + } + isHide(k) { + const e = this.get(k); + return e && e.hide; + } + setHide(k, e) { + const x = this.getOrNew(k); + e === !0 ? x.hide = !0 : delete x.hide; + } + setStyle(k, e) { + const x = this.getOrNew(k); + x.style = e; + } + sumHeight(k, e, x) { + return fn.rangeSum(k, e, (_) => x && x.has(_) ? 0 : this.getHeight(_)); + } + totalHeight() { + return this.sumHeight(0, this.len); + } + get(k) { + return this._[k]; + } + getOrNew(k) { + return this._[k] = this._[k] || { cells: {} }, this._[k]; + } + getCell(k, e) { + const x = this.get(k); + return x !== void 0 && x.cells !== void 0 && x.cells[e] !== void 0 ? x.cells[e] : null; + } + getCellMerge(k, e) { + const x = this.getCell(k, e); + return x && x.merge ? x.merge : [0, 0]; + } + getCellOrNew(k, e) { + const x = this.getOrNew(k); + return x.cells[e] = x.cells[e] || {}, x.cells[e]; + } + // what: all | text | format + setCell(k, e, x, _ = "all") { + const u = this.getOrNew(k); + _ === "all" ? u.cells[e] = x : _ === "text" ? (u.cells[e] = u.cells[e] || {}, u.cells[e].text = x.text) : _ === "format" && (u.cells[e] = u.cells[e] || {}, u.cells[e].style = x.style, x.merge && (u.cells[e].merge = x.merge)); + } + setCellText(k, e, x) { + const _ = this.getCellOrNew(k, e); + _.editable !== !1 && (_.text = x); + } + // what: all | format | text + copyPaste(k, e, x, _ = !1, u = () => { + }) { + const { + sri: m, + sci: g, + eri: b, + eci: w + } = k, f = e.sri, y = e.sci, h = e.eri, l = e.eci, [d, s] = k.size(), [v, c] = e.size(); + let a = !0, r = 0; + (h < m || l < g) && (a = !1, h < m ? r = v : r = c); + for (let t = m; t <= b; t += 1) + if (this._[t]) { + for (let i = g; i <= w; i += 1) + if (this._[t].cells && this._[t].cells[i]) + for (let n = f; n <= h; n += d) + for (let o = y; o <= l; o += s) { + const p = n + (t - m), O = o + (i - g), P = fn.cloneDeep(this._[t].cells[i]); + if (_ && P && P.text && P.text.length > 0) { + const { text: F } = P; + let z = o - y + (n - f) + 2; + if (a || (z -= r + 1), F[0] === "=") + P.text = F.replace(/[a-zA-Z]{1,3}\d+/g, (N) => { + let [M, I] = [0, 0]; + return m === f ? M = z - 1 : I = z - 1, /^\d+$/.test(N) ? N : Ha(N, M, I); + }); + else if (d <= 1 && s > 1 && (f > b || h < m) || s <= 1 && d > 1 && (y > w || l < g) || d <= 1 && s <= 1) { + const N = /[\\.\d]+$/.exec(F); + if (N !== null) { + const M = Number(N[0]) + z - 1; + P.text = F.substring(0, N.index) + M; + } + } + } + this.setCell(p, O, P, x), u(p, O, P); + } + } + } + cutPaste(k, e) { + const x = {}; + this.each((_) => { + this.eachCells(_, (u) => { + let m = parseInt(_, 10), g = parseInt(u, 10); + k.includes(_, u) && (m = e.sri + (m - k.sri), g = e.sci + (g - k.sci)), x[m] = x[m] || { cells: {} }, x[m].cells[g] = this._[_].cells[u]; + }); + }), this._ = x; + } + // src: Array> + paste(k, e) { + if (k.length <= 0) + return; + const { sri: x, sci: _ } = e; + k.forEach((u, m) => { + const g = x + m; + u.forEach((b, w) => { + const f = _ + w; + this.setCellText(g, f, b); + }); + }); + } + insert(k, e = 1) { + const x = {}; + this.each((_, u) => { + let m = parseInt(_, 10); + m >= k && (m += e, this.eachCells(_, (g, b) => { + b.text && b.text[0] === "=" && (b.text = b.text.replace(/[a-zA-Z]{1,3}\d+/g, (w) => Ha(w, 0, e, (f, y) => y >= k))); + })), x[m] = u; + }), this._ = x, this.len += e; + } + delete(k, e) { + const x = e - k + 1, _ = {}; + this.each((u, m) => { + const g = parseInt(u, 10); + g < k ? _[g] = m : u > e && (_[g - x] = m, this.eachCells(u, (b, w) => { + w.text && w.text[0] === "=" && (w.text = w.text.replace(/[a-zA-Z]{1,3}\d+/g, (f) => Ha(f, 0, -x, (y, h) => h > e))); + })); + }), this._ = _, this.len -= x; + } + insertColumn(k, e = 1) { + this.each((x, _) => { + const u = {}; + this.eachCells(x, (m, g) => { + let b = parseInt(m, 10); + b >= k && (b += e, g.text && g.text[0] === "=" && (g.text = g.text.replace(/[a-zA-Z]{1,3}\d+/g, (w) => Ha(w, e, 0, (f) => f >= k)))), u[b] = g; + }), _.cells = u; + }); + } + deleteColumn(k, e) { + const x = e - k + 1; + this.each((_, u) => { + const m = {}; + this.eachCells(_, (g, b) => { + const w = parseInt(g, 10); + w < k ? m[w] = b : w > e && (m[w - x] = b, b.text && b.text[0] === "=" && (b.text = b.text.replace(/[a-zA-Z]{1,3}\d+/g, (f) => Ha(f, -x, 0, (y) => y > e)))); + }), u.cells = m; + }); + } + // what: all | text | format | merge + deleteCells(k, e = "all") { + k.each((x, _) => { + this.deleteCell(x, _, e); + }); + } + // what: all | text | format | merge + deleteCell(k, e, x = "all") { + const _ = this.get(k); + if (_ !== null) { + const u = this.getCell(k, e); + u !== null && u.editable !== !1 && (x === "all" ? delete _.cells[e] : x === "text" ? (u.text && delete u.text, u.value && delete u.value) : x === "format" ? (u.style !== void 0 && delete u.style, u.merge && delete u.merge) : x === "merge" && u.merge && delete u.merge); + } + } + maxCell() { + const k = Object.keys(this._), e = k[k.length - 1], x = this._[e]; + if (x) { + const { cells: _ } = x, u = Object.keys(_), m = u[u.length - 1]; + return [parseInt(e, 10), parseInt(m, 10)]; + } + return [0, 0]; + } + each(k) { + Object.entries(this._).forEach(([e, x]) => { + k(e, x); + }); + } + eachCells(k, e) { + this._[k] && this._[k].cells && Object.entries(this._[k].cells).forEach(([x, _]) => { + e(x, _); + }); + } + setData(k) { + k.len && (this.len = k.len, delete k.len), this._ = k; + } + getData() { + const { len: k } = this; + return Object.assign({ len: k }, this._); + } +} +class Pm { + constructor({ + len: k, + width: e, + indexWidth: x, + minWidth: _ + }) { + this._ = {}, this.len = k, this.width = e, this.indexWidth = x, this.minWidth = _; + } + setData(k) { + k.len && (this.len = k.len, delete k.len), this._ = k; + } + getData() { + const { len: k } = this; + return Object.assign({ len: k }, this._); + } + getWidth(k) { + if (this.isHide(k)) + return 0; + const e = this._[k]; + return e && e.width ? e.width : this.width; + } + getOrNew(k) { + return this._[k] = this._[k] || {}, this._[k]; + } + setWidth(k, e) { + const x = this.getOrNew(k); + x.width = e; + } + unhide(k) { + let e = k; + for (; e > 0 && (e -= 1, this.isHide(e)); ) + this.setHide(e, !1); + } + isHide(k) { + const e = this._[k]; + return e && e.hide; + } + setHide(k, e) { + const x = this.getOrNew(k); + e === !0 ? x.hide = !0 : delete x.hide; + } + setStyle(k, e) { + const x = this.getOrNew(k); + x.style = e; + } + sumWidth(k, e) { + return fn.rangeSum(k, e, (x) => this.getWidth(x)); + } + totalWidth() { + return this.sumWidth(0, this.len); + } +} +const Am = { + toolbar: { + undo: "Undo", + redo: "Redo", + print: "Print", + paintformat: "Paint format", + clearformat: "Clear format", + format: "Format", + fontName: "Font", + fontSize: "Font size", + fontBold: "Font bold", + fontItalic: "Font italic", + underline: "Underline", + strike: "Strike", + color: "Text color", + bgcolor: "Fill color", + border: "Borders", + merge: "Merge cells", + align: "Horizontal align", + valign: "Vertical align", + textwrap: "Text wrapping", + freeze: "Freeze cell", + autofilter: "Filter", + formula: "Functions", + more: "More" + }, + contextmenu: { + copy: "Copy", + cut: "Cut", + paste: "Paste", + pasteValue: "Paste values only", + pasteFormat: "Paste format only", + hide: "Hide", + insertRow: "Insert row", + insertColumn: "Insert column", + deleteSheet: "Delete", + deleteRow: "Delete row", + deleteColumn: "Delete column", + deleteCell: "Delete cell", + deleteCellText: "Delete cell text", + validation: "Data validations", + cellprintable: "Enable export", + cellnonprintable: "Disable export", + celleditable: "Enable editing", + cellnoneditable: "Disable editing" + }, + print: { + size: "Paper size", + orientation: "Page orientation", + orientations: ["Landscape", "Portrait"] + }, + format: { + normal: "Normal", + text: "Plain Text", + number: "Number", + percent: "Percent", + rmb: "RMB", + usd: "USD", + eur: "EUR", + date: "Date", + time: "Time", + datetime: "Date time", + duration: "Duration" + }, + formula: { + sum: "Sum", + average: "Average", + max: "Max", + min: "Min", + _if: "IF", + and: "AND", + or: "OR", + concat: "Concat" + }, + validation: { + required: "it must be required", + notMatch: "it not match its validation rule", + between: "it is between {} and {}", + notBetween: "it is not between {} and {}", + notIn: "it is not in list", + equal: "it equal to {}", + notEqual: "it not equal to {}", + lessThan: "it less than {}", + lessThanEqual: "it less than or equal to {}", + greaterThan: "it greater than {}", + greaterThanEqual: "it greater than or equal to {}" + }, + error: { + pasteForMergedCell: "Unable to do this for merged cells" + }, + calendar: { + weeks: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], + months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] + }, + button: { + next: "Next", + cancel: "Cancel", + remove: "Remove", + save: "Save", + ok: "OK" + }, + sort: { + desc: "Sort Z -> A", + asc: "Sort A -> Z" + }, + filter: { + empty: "empty" + }, + dataValidation: { + mode: "Mode", + range: "Cell Range", + criteria: "Criteria", + modeType: { + cell: "Cell", + column: "Colun", + row: "Row" + }, + type: { + list: "List", + number: "Number", + date: "Date", + phone: "Phone", + email: "Email" + }, + operator: { + be: "between", + nbe: "not betwwen", + lt: "less than", + lte: "less than or equal to", + gt: "greater than", + gte: "greater than or equal to", + eq: "equal to", + neq: "not equal to" + } + } +}; +let hf = ["en"]; +const dc = { + en: Am +}; +function Ml(H, k) { + if (k) + for (const e of hf) { + if (!k[e]) + break; + let x = k[e]; + const _ = H.match(/(?:\\.|[^.])+/g); + for (let u = 0; u < _.length; u += 1) { + const m = _[u], g = x[m]; + if (!g) + break; + if (u === _.length - 1) + return g; + x = g; + } + } +} +function Cr(H) { + let k = Ml(H, dc); + return !k && window && window.x_spreadsheet && window.x_spreadsheet.$messages && (k = Ml(H, window.x_spreadsheet.$messages)), k || ""; +} +function Jt(H) { + return () => Cr(H); +} +function pc(H, k, e = !1) { + e ? hf = [H] : hf.unshift(H), k && (dc[H] = k); +} +const Il = { + phone: /^[1-9]\d{10}$/, + email: /w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/ +}; +function Un(H, k, ...e) { + let x = ""; + return H || (x = Cr(`validation.${k}`, ...e)), [H, x]; +} +class yc { + // operator: b|nb|eq|neq|lt|lte|gt|gte + // type: date|number|list|phone|email + constructor(k, e, x, _) { + this.required = e, this.value = x, this.type = k, this.operator = _, this.message = ""; + } + parseValue(k) { + const { type: e } = this; + return e === "date" ? new Date(k) : e === "number" ? Number(k) : k; + } + equals(k) { + let e = this.type === k.type && this.required === k.required && this.operator === k.operator; + return e && (Array.isArray(this.value) ? e = fn.arrayEquals(this.value, k.value) : e = this.value === k.value), e; + } + values() { + return this.value.split(","); + } + validate(k) { + const { + required: e, + operator: x, + value: _, + type: u + } = this; + if (e && /^\s*$/.test(k)) + return Un(!1, "required"); + if (/^\s*$/.test(k)) + return [!0]; + if (Il[u] && !Il[u].test(k)) + return Un(!1, "notMatch"); + if (u === "list") + return Un(this.values().includes(k), "notIn"); + if (x) { + const m = this.parseValue(k); + if (x === "be") { + const [g, b] = _; + return Un( + m >= this.parseValue(g) && m <= this.parseValue(b), + "between", + g, + b + ); + } + if (x === "nbe") { + const [g, b] = _; + return Un( + m < this.parseValue(g) || m > this.parseValue(b), + "notBetween", + g, + b + ); + } + if (x === "eq") + return Un( + m === this.parseValue(_), + "equal", + _ + ); + if (x === "neq") + return Un( + m !== this.parseValue(_), + "notEqual", + _ + ); + if (x === "lt") + return Un( + m < this.parseValue(_), + "lessThan", + _ + ); + if (x === "lte") + return Un( + m <= this.parseValue(_), + "lessThanEqual", + _ + ); + if (x === "gt") + return Un( + m > this.parseValue(_), + "greaterThan", + _ + ); + if (x === "gte") + return Un( + m >= this.parseValue(_), + "greaterThanEqual", + _ + ); + } + return [!0]; + } +} +class Ko { + constructor(k, e, x) { + this.refs = e, this.mode = k, this.validator = x; + } + includes(k, e) { + const { refs: x } = this; + for (let _ = 0; _ < x.length; _ += 1) + if (kr.valueOf(x[_]).includes(k, e)) + return !0; + return !1; + } + addRef(k) { + this.remove(kr.valueOf(k)), this.refs.push(k); + } + remove(k) { + const e = []; + this.refs.forEach((x) => { + const _ = kr.valueOf(x); + _.intersects(k) ? _.difference(k).forEach((m) => e.push(m.toString())) : e.push(x); + }), this.refs = e; + } + getData() { + const { refs: k, mode: e, validator: x } = this, { + type: _, + required: u, + operator: m, + value: g + } = x; + return { + refs: k, + mode: e, + type: _, + required: u, + operator: m, + value: g + }; + } + static valueOf({ + refs: k, + mode: e, + type: x, + required: _, + operator: u, + value: m + }) { + return new Ko(e, k, new yc(x, _, m, u)); + } +} +class Mm { + constructor() { + this._ = [], this.errors = /* @__PURE__ */ new Map(); + } + getError(k, e) { + return this.errors.get(`${k}_${e}`); + } + validate(k, e, x) { + const _ = this.get(k, e), u = `${k}_${e}`, { errors: m } = this; + if (_ !== null) { + const [g, b] = _.validator.validate(x); + g ? m.delete(u) : m.set(u, b); + } else + m.delete(u); + return !0; + } + // type: date|number|phone|email|list + // validator: { required, value, operator } + add(k, e, { + type: x, + required: _, + value: u, + operator: m + }) { + const g = new yc( + x, + _, + u, + m + ), b = this.getByValidator(g); + b !== null ? b.addRef(e) : this._.push(new Ko(k, [e], g)); + } + getByValidator(k) { + for (let e = 0; e < this._.length; e += 1) { + const x = this._[e]; + if (x.validator.equals(k)) + return x; + } + return null; + } + get(k, e) { + for (let x = 0; x < this._.length; x += 1) { + const _ = this._[x]; + if (_.includes(k, e)) + return _; + } + return null; + } + remove(k) { + this.each((e) => { + e.remove(k); + }); + } + each(k) { + this._.forEach((e) => k(e)); + } + getData() { + return this._.filter((k) => k.refs.length > 0).map((k) => k.getData()); + } + setData(k) { + this._ = k.map((e) => Ko.valueOf(e)); + } +} +const Im = { + mode: "edit", + // edit | read + view: { + height: () => document.documentElement.clientHeight, + width: () => document.documentElement.clientWidth + }, + showGrid: !0, + showToolbar: !0, + showContextmenu: !0, + showBottomBar: !0, + row: { + len: 100, + height: 25 + }, + col: { + len: 26, + width: 100, + indexWidth: 60, + minWidth: 60 + }, + style: { + bgcolor: "#ffffff", + align: "left", + valign: "middle", + textwrap: !1, + strike: !1, + underline: !1, + color: "#0a0a0a", + font: { + name: "Arial", + size: 10, + bold: !1, + italic: !1 + }, + format: "normal" + } +}, Dm = 41, Nm = 41, Dl = (H, k) => Object.prototype.hasOwnProperty.call(H, k); +function Nl(H, k, e = () => { +}) { + const { merges: x } = this, _ = k.clone(), [u, m] = H.size(), [g, b] = k.size(); + return u > g && (_.eri = k.sri + u - 1), m > b && (_.eci = k.sci + m - 1), x.intersects(_) ? (e(Cr("error.pasteForMergedCell")), !1) : !0; +} +function Fl(H, k, e, x = !1) { + const { rows: _, merges: u } = this; + (e === "all" || e === "format") && (_.deleteCells(k, e), u.deleteWithin(k)), _.copyPaste(H, k, e, x, (m, g, b) => { + if (b && b.merge) { + const [w, f] = b.merge; + if (w <= 0 && f <= 0) + return; + u.add(new kr(m, g, m + w, g + f)); + } + }); +} +function Fm(H, k) { + const { clipboard: e, rows: x, merges: _ } = this; + x.cutPaste(H, k), _.move( + H, + k.sri - H.sri, + k.sci - H.sci + ), e.clear(); +} +function pa(H, k, e) { + const { styles: x, rows: _ } = this, u = _.getCellOrNew(H, k); + let m = {}; + u.style !== void 0 && (m = fn.cloneDeep(x[u.style])), m = fn.merge(m, { border: e }), u.style = this.addStyle(m); +} +function Bm({ mode: H, style: k, color: e }) { + const { styles: x, selector: _, rows: u } = this, { + sri: m, + sci: g, + eri: b, + eci: w + } = _.range, f = !this.isSignleSelected(); + if (!(!f && (H === "inside" || H === "horizontal" || H === "vertical"))) { + if (H === "outside" && !f) + pa.call(this, m, g, { + top: [k, e], + bottom: [k, e], + left: [k, e], + right: [k, e] + }); + else if (H === "none") + _.range.each((y, h) => { + const l = u.getCell(y, h); + if (l && l.style !== void 0) { + const d = fn.cloneDeep(x[l.style]); + delete d.border, l.style = this.addStyle(d); + } + }); + else if (H === "all" || H === "inside" || H === "outside" || H === "horizontal" || H === "vertical") { + const y = []; + for (let h = m; h <= b; h += 1) + for (let l = g; l <= w; l += 1) { + const d = []; + for (let i = 0; i < y.length; i += 1) { + const [n, o, p, O] = y[i]; + if (h === n + p + 1 && d.push(i), n <= h && h <= n + p && l === o) { + l += O + 1; + break; + } + } + if (d.forEach((i) => y.splice(i, 1)), l > w) + break; + const s = u.getCell(h, l); + let [v, c] = [0, 0]; + s && s.merge && ([v, c] = s.merge, y.push([h, l, v, c])); + const a = v > 0 && h + v === b, r = c > 0 && l + c === w; + let t = {}; + H === "all" ? t = { + bottom: [k, e], + top: [k, e], + left: [k, e], + right: [k, e] + } : H === "inside" ? (!r && l < w && (t.right = [k, e]), !a && h < b && (t.bottom = [k, e])) : H === "horizontal" ? !a && h < b && (t.bottom = [k, e]) : H === "vertical" ? !r && l < w && (t.right = [k, e]) : H === "outside" && f && (m === h && (t.top = [k, e]), (a || b === h) && (t.bottom = [k, e]), g === l && (t.left = [k, e]), (r || w === l) && (t.right = [k, e])), Object.keys(t).length > 0 && pa.call(this, h, l, t), l += c; + } + } else if (H === "top" || H === "bottom") + for (let y = g; y <= w; y += 1) + H === "top" && (pa.call(this, m, y, { top: [k, e] }), y += u.getCellMerge(m, y)[1]), H === "bottom" && (pa.call(this, b, y, { bottom: [k, e] }), y += u.getCellMerge(b, y)[1]); + else if (H === "left" || H === "right") + for (let y = m; y <= b; y += 1) + H === "left" && (pa.call(this, y, g, { left: [k, e] }), y += u.getCellMerge(y, g)[0]), H === "right" && (pa.call(this, y, w, { right: [k, e] }), y += u.getCellMerge(y, w)[0]); + } +} +function jm(H, k) { + const { rows: e } = this, x = this.freezeTotalHeight(); + let _ = e.height; + x + e.height < H && (_ -= k); + const u = this.exceptRowSet; + let m = 0, g = _, { height: b } = e; + for (; m < e.len && !(g > H); m += 1) + u.has(m) || (b = e.getHeight(m), g += b); + return g -= b, g <= 0 ? { ri: -1, top: 0, height: b } : { ri: m - 1, top: g, height: b }; +} +function Lm(H, k) { + const { cols: e } = this, x = this.freezeTotalWidth(); + let _ = e.indexWidth; + x + e.indexWidth < H && (_ -= k); + const [u, m, g] = fn.rangeReduceIf( + 0, + e.len, + _, + e.indexWidth, + H, + (b) => e.getWidth(b) + ); + return m <= 0 ? { ci: -1, left: 0, width: e.indexWidth } : { ci: u - 1, left: m, width: g }; +} +class zm { + constructor(k, e) { + this.settings = fn.merge(Im, e || {}), this.name = k || "sheet", this.freeze = [0, 0], this.styles = [], this.merges = new xf(), this.rows = new Cm(this.settings.row), this.cols = new Pm(this.settings.col), this.validations = new Mm(), this.hyperlinks = {}, this.comments = {}, this.selector = new mm(), this.scroll = new bm(), this.history = new gm(), this.clipboard = new _m(), this.autoFilter = new wm(), this.change = () => { + }, this.exceptRowSet = /* @__PURE__ */ new Set(), this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map(); + } + addValidation(k, e, x) { + this.changeData(() => { + this.validations.add(k, e, x); + }); + } + removeValidation() { + const { range: k } = this.selector; + this.changeData(() => { + this.validations.remove(k); + }); + } + getSelectedValidator() { + const { ri: k, ci: e } = this.selector, x = this.validations.get(k, e); + return x ? x.validator : null; + } + getSelectedValidation() { + const { ri: k, ci: e, range: x } = this.selector, _ = this.validations.get(k, e), u = { ref: x.toString() }; + return _ !== null && (u.mode = _.mode, u.validator = _.validator), u; + } + canUndo() { + return this.history.canUndo(); + } + canRedo() { + return this.history.canRedo(); + } + undo() { + this.history.undo(this.getData(), (k) => { + this.setData(k); + }); + } + redo() { + this.history.redo(this.getData(), (k) => { + this.setData(k); + }); + } + copy() { + this.clipboard.copy(this.selector.range); + } + copyToSystemClipboard() { + if (navigator.clipboard === void 0) + return; + let k = ""; + const e = this.rows.getData(); + for (let x = this.selector.range.sri; x <= this.selector.range.eri; x += 1) { + if (Dl(e, x)) { + for (let _ = this.selector.range.sci; _ <= this.selector.range.eci; _ += 1) + if (_ > this.selector.range.sci && (k += " "), Dl(e[x].cells, _)) { + const u = String(e[x].cells[_].text); + u.indexOf(` +`) === -1 && u.indexOf(" ") === -1 && u.indexOf('"') === -1 ? k += u : k += `"${u}"`; + } + } else + for (let _ = this.selector.range.sci; _ <= this.selector.range.eci; _ += 1) + k += " "; + k += ` +`; + } + navigator.clipboard.writeText(k).then(() => { + }, (x) => { + console.log("text copy to the system clipboard error ", k, x); + }); + } + cut() { + this.clipboard.cut(this.selector.range); + } + // what: all | text | format + paste(k = "all", e = () => { + }) { + const { clipboard: x, selector: _ } = this; + return x.isClear() || !Nl.call(this, x.range, _.range, e) ? !1 : (this.changeData(() => { + x.isCopy() ? Fl.call(this, x.range, _.range, k) : x.isCut() && Fm.call(this, x.range, _.range); + }), !0); + } + pasteFromText(k) { + const e = k.split(`\r +`).map((u) => u.replace(/"/g, "").split(" ")); + e.length > 0 && (e.length -= 1); + const { rows: x, selector: _ } = this; + this.changeData(() => { + x.paste(e, _.range); + }); + } + autofill(k, e, x = () => { + }) { + const _ = this.selector.range; + return Nl.call(this, _, k, x) ? (this.changeData(() => { + Fl.call(this, _, k, e, !0); + }), !0) : !1; + } + clearClipboard() { + this.clipboard.clear(); + } + calSelectedRangeByEnd(k, e) { + const { + selector: x, + rows: _, + cols: u, + merges: m + } = this; + let { + sri: g, + sci: b, + eri: w, + eci: f + } = x.range; + const y = x.ri, h = x.ci; + let [l, d] = [k, e]; + return k < 0 && (l = _.len - 1), e < 0 && (d = u.len - 1), l > y ? [g, w] = [y, l] : [g, w] = [l, y], d > h ? [b, f] = [h, d] : [b, f] = [d, h], x.range = m.union(new kr( + g, + b, + w, + f + )), x.range = m.union(x.range), x.range; + } + calSelectedRangeByStart(k, e) { + const { + selector: x, + rows: _, + cols: u, + merges: m + } = this; + let g = m.getFirstIncludes(k, e); + return g === null && (g = new kr(k, e, k, e), k === -1 && (g.sri = 0, g.eri = _.len - 1), e === -1 && (g.sci = 0, g.eci = u.len - 1)), x.range = g, g; + } + setSelectedCellAttr(k, e) { + this.changeData(() => { + const { selector: x, styles: _, rows: u } = this; + if (k === "merge") + e ? this.merge() : this.unmerge(); + else if (k === "border") + Bm.call(this, e); + else if (k === "formula") { + const { ri: m, ci: g, range: b } = x; + if (x.multiple()) { + const [w, f] = x.size(), { + sri: y, + sci: h, + eri: l, + eci: d + } = b; + if (w > 1) + for (let s = h; s <= d; s += 1) { + const v = u.getCellOrNew(l + 1, s); + v.text = `=${e}(${hi(s, y)}:${hi(s, l)})`; + } + else if (f > 1) { + const s = u.getCellOrNew(m, d + 1); + s.text = `=${e}(${hi(h, m)}:${hi(d, m)})`; + } + } else { + const w = u.getCellOrNew(m, g); + w.text = `=${e}()`; + } + } else + x.range.each((m, g) => { + const b = u.getCellOrNew(m, g); + let w = {}; + if (b.style !== void 0 && (w = fn.cloneDeep(_[b.style])), k === "format") + w.format = e, b.style = this.addStyle(w); + else if (k === "font-bold" || k === "font-italic" || k === "font-name" || k === "font-size") { + const f = {}; + f[k.split("-")[1]] = e, w.font = Object.assign(w.font || {}, f), b.style = this.addStyle(w); + } else + k === "strike" || k === "textwrap" || k === "underline" || k === "align" || k === "valign" || k === "color" || k === "bgcolor" ? (w[k] = e, b.style = this.addStyle(w)) : b[k] = e; + }); + }); + } + // state: input | finished + setSelectedCellText(k, e = "input") { + const { autoFilter: x, selector: _, rows: u } = this, { ri: m, ci: g } = _; + let b = m; + this.unsortedRowMap.has(m) && (b = this.unsortedRowMap.get(m)); + const w = u.getCell(b, g), f = w ? w.text : ""; + if (this.setCellText(b, g, k, e), x.active()) { + const y = x.getFilter(g); + if (y) { + const h = y.value.findIndex((l) => l === f); + h >= 0 && y.value.splice(h, 1, k); + } + } + } + getSelectedCell() { + const { ri: k, ci: e } = this.selector; + let x = k; + return this.unsortedRowMap.has(k) && (x = this.unsortedRowMap.get(k)), this.rows.getCell(x, e); + } + xyInSelectedRect(k, e) { + const { + left: x, + top: _, + width: u, + height: m + } = this.getSelectedRect(), g = k - this.cols.indexWidth, b = e - this.rows.height; + return g > x && g < x + u && b > _ && b < _ + m; + } + getSelectedRect() { + return this.getRect(this.selector.range); + } + getClipboardRect() { + const { clipboard: k } = this; + return k.isClear() ? { left: -100, top: -100 } : this.getRect(k.range); + } + getRect(k) { + const { + scroll: e, + rows: x, + cols: _, + exceptRowSet: u + } = this, { + sri: m, + sci: g, + eri: b, + eci: w + } = k; + if (m < 0 && g < 0) + return { + left: 0, + l: 0, + top: 0, + t: 0, + scroll: e + }; + const f = _.sumWidth(0, g), y = x.sumHeight(0, m, u), h = x.sumHeight(m, b + 1, u), l = _.sumWidth(g, w + 1); + let d = f - e.x, s = y - e.y; + const v = this.freezeTotalHeight(), c = this.freezeTotalWidth(); + return c > 0 && c > f && (d = f), v > 0 && v > y && (s = y), { + l: f, + t: y, + left: d, + top: s, + height: h, + width: l, + scroll: e + }; + } + getCellRectByXY(k, e) { + const { + scroll: x, + merges: _, + rows: u, + cols: m + } = this; + let { ri: g, top: b, height: w } = jm.call(this, e, x.y), { ci: f, left: y, width: h } = Lm.call(this, k, x.x); + if (f === -1 && (h = m.totalWidth()), g === -1 && (w = u.totalHeight()), g >= 0 || f >= 0) { + const l = _.getFirstIncludes(g, f); + l && (g = l.sri, f = l.sci, { + left: y, + top: b, + width: h, + height: w + } = this.cellRect(g, f)); + } + return { + ri: g, + ci: f, + left: y, + top: b, + width: h, + height: w + }; + } + isSignleSelected() { + const { + sri: k, + sci: e, + eri: x, + eci: _ + } = this.selector.range, u = this.getCell(k, e); + if (u && u.merge) { + const [m, g] = u.merge; + if (k + m === x && e + g === _) + return !0; + } + return !this.selector.multiple(); + } + canUnmerge() { + const { + sri: k, + sci: e, + eri: x, + eci: _ + } = this.selector.range, u = this.getCell(k, e); + if (u && u.merge) { + const [m, g] = u.merge; + if (k + m === x && e + g === _) + return !0; + } + return !1; + } + merge() { + const { selector: k, rows: e } = this; + if (this.isSignleSelected()) + return; + const [x, _] = k.size(); + if (x > 1 || _ > 1) { + const { sri: u, sci: m } = k.range; + this.changeData(() => { + const g = e.getCellOrNew(u, m); + g.merge = [x - 1, _ - 1], this.merges.add(k.range), this.rows.deleteCells(k.range), this.rows.setCell(u, m, g); + }); + } + } + unmerge() { + const { selector: k } = this; + if (!this.isSignleSelected()) + return; + const { sri: e, sci: x } = k.range; + this.changeData(() => { + this.rows.deleteCell(e, x, "merge"), this.merges.deleteWithin(k.range); + }); + } + canAutofilter() { + return !this.autoFilter.active(); + } + autofilter() { + const { autoFilter: k, selector: e } = this; + this.changeData(() => { + k.active() ? (k.clear(), this.exceptRowSet = /* @__PURE__ */ new Set(), this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map()) : k.ref = e.range.toString(); + }); + } + setAutoFilter(k, e, x, _) { + const { autoFilter: u } = this; + u.addFilter(k, x, _), u.setSort(k, e), this.resetAutoFilter(); + } + resetAutoFilter() { + const { autoFilter: k, rows: e } = this; + if (!k.active()) + return; + const { sort: x } = k, { rset: _, fset: u } = k.filteredRows((b, w) => e.getCell(b, w)), m = Array.from(u), g = Array.from(u); + x && m.sort((b, w) => x.order === "asc" ? b - w : x.order === "desc" ? w - b : 0), this.exceptRowSet = _, this.sortedRowMap = /* @__PURE__ */ new Map(), this.unsortedRowMap = /* @__PURE__ */ new Map(), m.forEach((b, w) => { + this.sortedRowMap.set(g[w], b), this.unsortedRowMap.set(b, g[w]); + }); + } + deleteCell(k = "all") { + const { selector: e } = this; + this.changeData(() => { + this.rows.deleteCells(e.range, k), (k === "all" || k === "format") && this.merges.deleteWithin(e.range); + }); + } + // type: row | column + insert(k, e = 1) { + this.changeData(() => { + const { sri: x, sci: _ } = this.selector.range, { rows: u, merges: m, cols: g } = this; + let b = x; + k === "row" ? u.insert(x, e) : k === "column" && (u.insertColumn(_, e), b = _, g.len += 1), m.shift(k, b, e, (w, f, y, h) => { + const l = u.getCell(w, f); + l.merge[0] += y, l.merge[1] += h; + }); + }); + } + // type: row | column + delete(k) { + this.changeData(() => { + const { + rows: e, + merges: x, + selector: _, + cols: u + } = this, { range: m } = _, { + sri: g, + sci: b, + eri: w, + eci: f + } = _.range, [y, h] = _.range.size(); + let l = g, d = y; + k === "row" ? e.delete(g, w) : k === "column" && (e.deleteColumn(b, f), l = m.sci, d = h, u.len -= 1), x.shift(k, l, -d, (s, v, c, a) => { + const r = e.getCell(s, v); + r.merge[0] += c, r.merge[1] += a, r.merge[0] === 0 && r.merge[1] === 0 && delete r.merge; + }); + }); + } + scrollx(k, e) { + const { scroll: x, freeze: _, cols: u } = this, [, m] = _, [ + g, + b, + w + ] = fn.rangeReduceIf(m, u.len, 0, 0, k, (y) => u.getWidth(y)); + let f = b; + k > 0 && (f += w), x.x !== f && (x.ci = k > 0 ? g : 0, x.x = f, e()); + } + scrolly(k, e) { + const { scroll: x, freeze: _, rows: u } = this, [m] = _, [ + g, + b, + w + ] = fn.rangeReduceIf(m, u.len, 0, 0, k, (y) => u.getHeight(y)); + let f = b; + k > 0 && (f += w), x.y !== f && (x.ri = k > 0 ? g : 0, x.y = f, e()); + } + cellRect(k, e) { + const { rows: x, cols: _ } = this, u = _.sumWidth(0, e), m = x.sumHeight(0, k), g = x.getCell(k, e); + let b = _.getWidth(e), w = x.getHeight(k); + if (g !== null && g.merge) { + const [f, y] = g.merge; + if (f > 0) + for (let h = 1; h <= f; h += 1) + w += x.getHeight(k + h); + if (y > 0) + for (let h = 1; h <= y; h += 1) + b += _.getWidth(e + h); + } + return { + left: u, + top: m, + width: b, + height: w, + cell: g + }; + } + getCell(k, e) { + return this.rows.getCell(k, e); + } + getCellTextOrDefault(k, e) { + const x = this.getCell(k, e); + return x && x.text ? x.text : ""; + } + getCellStyle(k, e) { + const x = this.getCell(k, e); + return x && x.style !== void 0 ? this.styles[x.style] : null; + } + getCellStyleOrDefault(k, e) { + const { styles: x, rows: _ } = this, u = _.getCell(k, e), m = u && u.style !== void 0 ? x[u.style] : {}; + return fn.merge(this.defaultStyle(), m); + } + getSelectedCellStyle() { + const { ri: k, ci: e } = this.selector; + return this.getCellStyleOrDefault(k, e); + } + // state: input | finished + setCellText(k, e, x, _) { + const { rows: u, history: m, validations: g } = this; + _ === "finished" ? (u.setCellText(k, e, ""), m.add(this.getData()), u.setCellText(k, e, x)) : (u.setCellText(k, e, x), this.change(this.getData())), g.validate(k, e, x); + } + freezeIsActive() { + const [k, e] = this.freeze; + return k > 0 || e > 0; + } + setFreeze(k, e) { + this.changeData(() => { + this.freeze = [k, e]; + }); + } + freezeTotalWidth() { + return this.cols.sumWidth(0, this.freeze[1]); + } + freezeTotalHeight() { + return this.rows.sumHeight(0, this.freeze[0]); + } + setRowHeight(k, e) { + this.changeData(() => { + this.rows.setHeight(k, e); + }); + } + setColWidth(k, e) { + this.changeData(() => { + this.cols.setWidth(k, e); + }); + } + viewHeight() { + const { view: k, showToolbar: e, showBottomBar: x } = this.settings; + let _ = k.height(); + return x && (_ -= Nm), e && (_ -= Dm), _; + } + viewWidth() { + return this.settings.view.width(); + } + freezeViewRange() { + const [k, e] = this.freeze; + return new kr(0, 0, k - 1, e - 1, this.freezeTotalWidth(), this.freezeTotalHeight()); + } + contentRange() { + const { rows: k, cols: e } = this, [x, _] = k.maxCell(), u = k.sumHeight(0, x + 1), m = e.sumWidth(0, _ + 1); + return new kr(0, 0, x, _, m, u); + } + exceptRowTotalHeight(k, e) { + const { exceptRowSet: x, rows: _ } = this, u = Array.from(x); + let m = 0; + return u.forEach((g) => { + if (g < k || g > e) { + const b = _.getHeight(g); + m += b; + } + }), m; + } + viewRange() { + const { + scroll: k, + rows: e, + cols: x, + freeze: _, + exceptRowSet: u + } = this; + let { ri: m, ci: g } = k; + m <= 0 && ([m] = _), g <= 0 && ([, g] = _); + let [b, w] = [0, 0], [f, y] = [e.len, x.len]; + for (let h = m; h < e.len && (u.has(h) || (w += e.getHeight(h), f = h), !(w > this.viewHeight())); h += 1) + ; + for (let h = g; h < x.len && (b += x.getWidth(h), y = h, !(b > this.viewWidth())); h += 1) + ; + return new kr(m, g, f, y, b, w); + } + eachMergesInView(k, e) { + this.merges.filterIntersects(k).forEach((x) => e(x)); + } + hideRowsOrCols() { + const { rows: k, cols: e, selector: x } = this, [_, u] = x.size(), { + sri: m, + sci: g, + eri: b, + eci: w + } = x.range; + if (_ === k.len) + for (let f = g; f <= w; f += 1) + e.setHide(f, !0); + else if (u === e.len) + for (let f = m; f <= b; f += 1) + k.setHide(f, !0); + } + // type: row | col + // index row-index | col-index + unhideRowsOrCols(k, e) { + this[`${k}s`].unhide(e); + } + rowEach(k, e, x) { + let _ = 0; + const { rows: u } = this, m = this.exceptRowSet, g = [...m]; + let b = 0; + for (let w = 0; w < g.length; w += 1) + g[w] < k && (b += 1); + for (let w = k + b; w <= e + b; w += 1) + if (m.has(w)) + b += 1; + else { + const f = u.getHeight(w); + if (f > 0 && (x(w, _, f), _ += f, _ > this.viewHeight())) + break; + } + } + colEach(k, e, x) { + let _ = 0; + const { cols: u } = this; + for (let m = k; m <= e; m += 1) { + const g = u.getWidth(m); + if (g > 0 && (x(m, _, g), _ += g, _ > this.viewWidth())) + break; + } + } + defaultStyle() { + return this.settings.style; + } + addStyle(k) { + const { styles: e } = this; + for (let x = 0; x < e.length; x += 1) { + const _ = e[x]; + if (fn.equals(_, k)) + return x; + } + return e.push(k), e.length - 1; + } + changeData(k) { + this.history.add(this.getData()), k(), this.change(this.getData()); + } + setData(k) { + return Object.keys(k).forEach((e) => { + if (e === "merges" || e === "rows" || e === "cols" || e === "validations") + this[e].setData(k[e]); + else if (e === "freeze") { + const [x, _] = Ti(k[e]); + this.freeze = [_, x]; + } else + e === "autofilter" ? this.autoFilter.setData(k[e]) : k[e] !== void 0 && (this[e] = k[e]); + }), this; + } + getData() { + const { + name: k, + freeze: e, + styles: x, + merges: _, + rows: u, + cols: m, + validations: g, + autoFilter: b + } = this; + return { + name: k, + freeze: hi(e[1], e[0]), + styles: x, + merges: _.getData(), + rows: u.getData(), + cols: m.getData(), + validations: g.getData(), + autofilter: b.getData() + }; + } +} +function ln(H, k, e) { + H.addEventListener(k, e); +} +function Go(H, k, e) { + H.removeEventListener(k, e); +} +function _a(H) { + H.xclickoutside && (Go(window.document.body, "click", H.xclickoutside), delete H.xclickoutside); +} +function Va(H, k) { + H.xclickoutside = (e) => { + e.detail === 2 || H.contains(e.target) || (k ? k(H) : (H.hide(), _a(H))); + }, ln(window.document.body, "click", H.xclickoutside); +} +function vc(H, k, e) { + ln(H, "mousemove", k); + const x = H; + x.xEvtUp = (_) => { + Go(H, "mousemove", k), Go(H, "mouseup", H.xEvtUp), e(_); + }, ln(H, "mouseup", H.xEvtUp); +} +function Bl(H, k, e, x) { + let _ = ""; + Math.abs(H) > Math.abs(k) ? (_ = H > 0 ? "right" : "left", x(_, H, e)) : (_ = k > 0 ? "down" : "up", x(_, k, e)); +} +function Hm(H, { move: k, end: e }) { + let x = 0, _ = 0; + ln(H, "touchstart", (u) => { + const { pageX: m, pageY: g } = u.touches[0]; + x = m, _ = g; + }), ln(H, "touchmove", (u) => { + if (!k) + return; + const { pageX: m, pageY: g } = u.changedTouches[0], b = m - x, w = g - _; + (Math.abs(b) > 10 || Math.abs(w) > 10) && (Bl(b, w, u, k), x = m, _ = g), u.preventDefault(); + }), ln(H, "touchend", (u) => { + if (!e) + return; + const { pageX: m, pageY: g } = u.changedTouches[0], b = m - x, w = g - _; + Bl(b, w, u, e); + }); +} +function Xm() { + const H = /* @__PURE__ */ new Map(); + function k(m, g) { + const b = () => { + const f = H.get(m); + return Array.isArray(f) && f.push(g) || !1; + }, w = () => H.set(m, [].concat(g)); + return H.has(m) && b() || w(); + } + function e(m, g) { + const b = () => { + const w = H.get(m); + for (const f of w) + f.call(null, ...g); + }; + return H.has(m) && b(); + } + function x(m, g) { + const b = () => { + const w = H.get(m), f = w.indexOf(g); + return f >= 0 && w.splice(f, 1) && H.get(m).length === 0 && H.delete(m); + }; + return H.has(m) && b(); + } + function _(m, g) { + const b = (...w) => { + g.call(null, ...w), x(m, b); + }; + return k(m, b); + } + function u() { + H.clear(); + } + return { + get current() { + return H; + }, + on: k, + once: _, + fire: e, + removeListener: x, + removeAllListeners: u + }; +} +const lt = "x-spreadsheet"; +class jl { + constructor(k = !1, e) { + this.moving = !1, this.vertical = k, this.el = $e("div", `${lt}-resizer ${k ? "vertical" : "horizontal"}`).children( + this.unhideHoverEl = $e("div", `${lt}-resizer-hover`).on("dblclick.stop", (x) => this.mousedblclickHandler(x)).css("position", "absolute").hide(), + this.hoverEl = $e("div", `${lt}-resizer-hover`).on("mousedown.stop", (x) => this.mousedownHandler(x)), + this.lineEl = $e("div", `${lt}-resizer-line`).hide() + ).hide(), this.cRect = null, this.finishedFn = null, this.minDistance = e, this.unhideFn = () => { + }; + } + showUnhide(k) { + this.unhideIndex = k, this.unhideHoverEl.show(); + } + hideUnhide() { + this.unhideHoverEl.hide(); + } + // rect : {top, left, width, height} + // line : {width, height} + show(k, e) { + const { + moving: x, + vertical: _, + hoverEl: u, + lineEl: m, + el: g, + unhideHoverEl: b + } = this; + if (x) + return; + this.cRect = k; + const { + left: w, + top: f, + width: y, + height: h + } = k; + g.offset({ + left: _ ? w + y - 5 : w, + top: _ ? f : f + h - 5 + }).show(), u.offset({ + width: _ ? 5 : y, + height: _ ? h : 5 + }), m.offset({ + width: _ ? 0 : e.width, + height: _ ? e.height : 0 + }), b.offset({ + left: _ ? 5 - y : w, + top: _ ? f : 5 - h, + width: _ ? 5 : y, + height: _ ? h : 5 + }); + } + hide() { + this.el.offset({ + left: 0, + top: 0 + }).hide(), this.hideUnhide(); + } + mousedblclickHandler() { + this.unhideIndex && this.unhideFn(this.unhideIndex); + } + mousedownHandler(k) { + let e = k; + const { + el: x, + lineEl: _, + cRect: u, + vertical: m, + minDistance: g + } = this; + let b = m ? u.width : u.height; + _.show(), vc(window, (w) => { + this.moving = !0, e !== null && w.buttons === 1 && (m ? (b += w.movementX, b > g && x.css("left", `${u.left + b}px`)) : (b += w.movementY, b > g && x.css("top", `${u.top + b}px`)), e = w); + }, () => { + e = null, _.hide(), this.moving = !1, this.hide(), this.finishedFn && (b < g && (b = g), this.finishedFn(u, b)); + }); + } +} +class Ll { + constructor(k) { + this.vertical = k, this.moveFn = null, this.el = $e("div", `${lt}-scrollbar ${k ? "vertical" : "horizontal"}`).child(this.contentEl = $e("div", "")).on("mousemove.stop", () => { + }).on("scroll.stop", (e) => { + const { scrollTop: x, scrollLeft: _ } = e.target; + this.moveFn && this.moveFn(this.vertical ? x : _, e); + }); + } + move(k) { + return this.el.scroll(k), this; + } + scroll() { + return this.el.scroll(); + } + set(k, e) { + const x = k - 1; + if (e > x) { + const _ = this.vertical ? "height" : "width"; + this.el.css(_, `${x - 15}px`).show(), this.contentEl.css(this.vertical ? "width" : "height", "1px").css(_, `${e}px`); + } else + this.el.hide(); + return this; + } +} +const Do = 2 * 2 - 1; +let df = 10; +class No { + constructor(k = !1) { + this.useHideInput = k, this.inputChange = () => { + }, this.cornerEl = $e("div", `${lt}-selector-corner`), this.areaEl = $e("div", `${lt}-selector-area`).child(this.cornerEl).hide(), this.clipboardEl = $e("div", `${lt}-selector-clipboard`).hide(), this.autofillEl = $e("div", `${lt}-selector-autofill`).hide(), this.el = $e("div", `${lt}-selector`).css("z-index", `${df}`).children(this.areaEl, this.clipboardEl, this.autofillEl).hide(), k && (this.hideInput = $e("input", "").on("compositionend", (e) => { + this.inputChange(e.target.value); + }), this.el.child(this.hideInputDiv = $e("div", "hide-input").child(this.hideInput)), this.el.child(this.hideInputDiv = $e("div", "hide-input").child(this.hideInput))), df += 1; + } + setOffset(k) { + return this.el.offset(k).show(), this; + } + hide() { + return this.el.hide(), this; + } + setAreaOffset(k) { + const { + left: e, + top: x, + width: _, + height: u + } = k, m = { + width: _ - Do + 0.8, + height: u - Do + 0.8, + left: e - 0.8, + top: x - 0.8 + }; + this.areaEl.offset(m).show(), this.useHideInput && (this.hideInputDiv.offset(m), this.hideInput.val("").focus()); + } + setClipboardOffset(k) { + const { + left: e, + top: x, + width: _, + height: u + } = k; + this.clipboardEl.offset({ + left: e, + top: x, + width: _ - 5, + height: u - 5 + }); + } + showAutofill(k) { + const { + left: e, + top: x, + width: _, + height: u + } = k; + this.autofillEl.offset({ + width: _ - Do, + height: u - Do, + left: e, + top: x + }).show(); + } + hideAutofill() { + this.autofillEl.hide(); + } + showClipboard() { + this.clipboardEl.show(); + } + hideClipboard() { + this.clipboardEl.hide(); + } +} +function Sf(H) { + const { data: k } = this, { + left: e, + top: x, + width: _, + height: u, + scroll: m, + l: g, + t: b + } = H, w = k.freezeTotalWidth(), f = k.freezeTotalHeight(); + let y = e - w; + w > g && (y -= m.x); + let h = x - f; + return f > b && (h -= m.y), { + left: y, + top: h, + width: _, + height: u + }; +} +function kf(H) { + const { data: k } = this, { + left: e, + width: x, + height: _, + l: u, + t: m, + scroll: g + } = H, b = k.freezeTotalWidth(); + let w = e - b; + return b > u && (w -= g.x), { + left: w, + top: m, + width: x, + height: _ + }; +} +function Of(H) { + const { data: k } = this, { + top: e, + width: x, + height: _, + l: u, + t: m, + scroll: g + } = H, b = k.freezeTotalHeight(); + let w = e - b; + return b > m && (w -= g.y), { + left: u, + top: w, + width: x, + height: _ + }; +} +function pf(H) { + const { br: k } = this; + k.setAreaOffset(Sf.call(this, H)); +} +function Um(H) { + const { tl: k } = this; + k.setAreaOffset(H); +} +function mc(H) { + const { t: k } = this; + k.setAreaOffset(kf.call(this, H)); +} +function bc(H) { + const { l: k } = this; + k.setAreaOffset(Of.call(this, H)); +} +function gc(H) { + const { l: k } = this; + k.setClipboardOffset(Of.call(this, H)); +} +function yf(H) { + const { br: k } = this; + k.setClipboardOffset(Sf.call(this, H)); +} +function $m(H) { + const { tl: k } = this; + k.setClipboardOffset(H); +} +function _c(H) { + const { t: k } = this; + k.setClipboardOffset(kf.call(this, H)); +} +function zl(H) { + pf.call(this, H), Um.call(this, H), mc.call(this, H), bc.call(this, H); +} +function Hl(H) { + yf.call(this, H), $m.call(this, H), _c.call(this, H), gc.call(this, H); +} +class Wm { + constructor(k) { + this.inputChange = () => { + }, this.data = k, this.br = new No(!0), this.t = new No(), this.l = new No(), this.tl = new No(), this.br.inputChange = (e) => { + this.inputChange(e); + }, this.br.el.show(), this.offset = null, this.areaOffset = null, this.indexes = null, this.range = null, this.arange = null, this.el = $e("div", `${lt}-selectors`).children( + this.tl.el, + this.t.el, + this.l.el, + this.br.el + ).hide(), this.lastri = -1, this.lastci = -1, df += 1; + } + resetData(k) { + this.data = k, this.range = k.selector.range, this.resetAreaOffset(); + } + hide() { + this.el.hide(); + } + resetOffset() { + const { + data: k, + tl: e, + t: x, + l: _, + br: u + } = this, m = k.freezeTotalHeight(), g = k.freezeTotalWidth(); + m > 0 || g > 0 ? (e.setOffset({ width: g, height: m }), x.setOffset({ left: g, height: m }), _.setOffset({ top: m, width: g }), u.setOffset({ left: g, top: m })) : (e.hide(), x.hide(), _.hide(), u.setOffset({ left: 0, top: 0 })); + } + resetAreaOffset() { + const k = this.data.getSelectedRect(), e = this.data.getClipboardRect(); + zl.call(this, k), Hl.call(this, e), this.resetOffset(); + } + resetBRTAreaOffset() { + const k = this.data.getSelectedRect(), e = this.data.getClipboardRect(); + pf.call(this, k), mc.call(this, k), yf.call(this, e), _c.call(this, e), this.resetOffset(); + } + resetBRLAreaOffset() { + const k = this.data.getSelectedRect(), e = this.data.getClipboardRect(); + pf.call(this, k), bc.call(this, k), yf.call(this, e), gc.call(this, e), this.resetOffset(); + } + set(k, e, x = !0) { + const { data: _ } = this, u = _.calSelectedRangeByStart(k, e), { sri: m, sci: g } = u; + if (x) { + let [b, w] = [k, e]; + k < 0 && (b = 0), e < 0 && (w = 0), _.selector.setIndexes(b, w), this.indexes = [b, w]; + } + this.moveIndexes = [m, g], this.range = u, this.resetAreaOffset(), this.el.show(); + } + setEnd(k, e, x = !0) { + const { data: _, lastri: u, lastci: m } = this; + if (x) { + if (k === u && e === m) + return; + this.lastri = k, this.lastci = e; + } + this.range = _.calSelectedRangeByEnd(k, e), zl.call(this, this.data.getSelectedRect()); + } + reset() { + const { eri: k, eci: e } = this.data.selector.range; + this.setEnd(k, e); + } + showAutofill(k, e) { + if (k === -1 && e === -1) + return; + const { + sri: x, + sci: _, + eri: u, + eci: m + } = this.range, [g, b] = [k, e], w = x - k, f = _ - e, y = u - k, h = m - e; + if (f > 0) + this.arange = new kr(x, b, u, _ - 1); + else if (w > 0) + this.arange = new kr(g, _, x - 1, m); + else if (h < 0) + this.arange = new kr(x, m + 1, u, b); + else if (y < 0) + this.arange = new kr(u + 1, _, g, m); + else { + this.arange = null; + return; + } + if (this.arange !== null) { + const l = this.data.getRect(this.arange); + l.width += 2, l.height += 2; + const { + br: d, + l: s, + t: v, + tl: c + } = this; + d.showAutofill(Sf.call(this, l)), s.showAutofill(Of.call(this, l)), v.showAutofill(kf.call(this, l)), c.showAutofill(l); + } + } + hideAutofill() { + ["br", "l", "t", "tl"].forEach((k) => { + this[k].hideAutofill(); + }); + } + showClipboard() { + const k = this.data.getClipboardRect(); + Hl.call(this, k), ["br", "l", "t", "tl"].forEach((e) => { + this[e].showClipboard(); + }); + } + hideClipboard() { + ["br", "l", "t", "tl"].forEach((k) => { + this[k].hideClipboard(); + }); + } +} +function Vm(H) { + H.preventDefault(), H.stopPropagation(); + const { filterItems: k } = this; + k.length <= 0 || (this.itemIndex >= 0 && k[this.itemIndex].toggle(), this.itemIndex -= 1, this.itemIndex < 0 && (this.itemIndex = k.length - 1), k[this.itemIndex].toggle()); +} +function Km(H) { + H.stopPropagation(); + const { filterItems: k } = this; + k.length <= 0 || (this.itemIndex >= 0 && k[this.itemIndex].toggle(), this.itemIndex += 1, this.itemIndex > k.length - 1 && (this.itemIndex = 0), k[this.itemIndex].toggle()); +} +function Xl(H) { + H.preventDefault(); + const { filterItems: k } = this; + k.length <= 0 || (H.stopPropagation(), this.itemIndex < 0 && (this.itemIndex = 0), k[this.itemIndex].el.click(), this.hide()); +} +function Gm(H) { + const { keyCode: k } = H; + switch (H.ctrlKey && H.stopPropagation(), k) { + case 37: + H.stopPropagation(); + break; + case 38: + Vm.call(this, H); + break; + case 39: + H.stopPropagation(); + break; + case 40: + Km.call(this, H); + break; + case 13: + Xl.call(this, H); + break; + case 9: + Xl.call(this, H); + break; + default: + H.stopPropagation(); + break; + } +} +class wc { + constructor(k, e, x = "200px") { + this.filterItems = [], this.items = k, this.el = $e("div", `${lt}-suggest`).css("width", x).hide(), this.itemClick = e, this.itemIndex = -1; + } + setOffset(k) { + this.el.cssRemoveKeys("top", "bottom").offset(k); + } + hide() { + const { el: k } = this; + this.filterItems = [], this.itemIndex = -1, k.hide(), _a(this.el.parent()); + } + setItems(k) { + this.items = k; + } + search(k) { + let { items: e } = this; + if (/^\s*$/.test(k) || (e = e.filter((_) => (_.key || _).startsWith(k.toUpperCase()))), e = e.map((_) => { + let { title: u } = _; + u ? typeof u == "function" && (u = u()) : u = _; + const m = $e("div", `${lt}-item`).child(u).on("click.stop", () => { + this.itemClick(_), this.hide(); + }); + return _.label && m.child($e("div", "label").html(_.label)), m; + }), this.filterItems = e, e.length <= 0) + return; + const { el: x } = this; + x.html("").children(...e).show(), Va(x.parent(), () => { + this.hide(); + }); + } + bindInputEvents(k) { + k.on("keydown", (e) => Gm.call(this, e)); + } +} +class Kr extends Hi { + constructor(k) { + super("div", `${lt}-icon`), this.iconNameEl = $e("div", `${lt}-icon-img ${k}`), this.child(this.iconNameEl); + } + setName(k) { + this.iconNameEl.className(`${lt}-icon-img ${k}`); + } +} +function Ul(H, k) { + H.setMonth(H.getMonth() + k); +} +function Ym(H, k) { + const e = new Date(H); + return e.setDate(k - H.getDay() + 1), e; +} +function Zm(H, k, e) { + const x = new Date(H, k, 1, 23, 59, 59), _ = [[], [], [], [], [], []]; + for (let u = 0; u < 6; u += 1) + for (let m = 0; m < 7; m += 1) { + const g = u * 7 + m, b = Ym(x, g), w = b.getMonth() !== k, f = b.getMonth() === e.getMonth() && b.getDate() === e.getDate(); + _[u][m] = { d: b, disabled: w, active: f }; + } + return _; +} +class Jm { + constructor(k) { + this.value = k, this.cvalue = new Date(k), this.headerLeftEl = $e("div", "calendar-header-left"), this.bodyEl = $e("tbody", ""), this.buildAll(), this.el = $e("div", "x-spreadsheet-calendar").children( + $e("div", "calendar-header").children( + this.headerLeftEl, + $e("div", "calendar-header-right").children( + $e("a", "calendar-prev").on("click.stop", () => this.prev()).child(new Kr("chevron-left")), + $e("a", "calendar-next").on("click.stop", () => this.next()).child(new Kr("chevron-right")) + ) + ), + $e("table", "calendar-body").children( + $e("thead", "").child( + $e("tr", "").children( + ...Cr("calendar.weeks").map((e) => $e("th", "cell").child(e)) + ) + ), + this.bodyEl + ) + ), this.selectChange = () => { + }; + } + setValue(k) { + this.value = k, this.cvalue = new Date(k), this.buildAll(); + } + prev() { + const { value: k } = this; + Ul(k, -1), this.buildAll(); + } + next() { + const { value: k } = this; + Ul(k, 1), this.buildAll(); + } + buildAll() { + this.buildHeaderLeft(), this.buildBody(); + } + buildHeaderLeft() { + const { value: k } = this; + this.headerLeftEl.html(`${Cr("calendar.months")[k.getMonth()]} ${k.getFullYear()}`); + } + buildBody() { + const { value: k, cvalue: e, bodyEl: x } = this, u = Zm(k.getFullYear(), k.getMonth(), e).map((m) => { + const g = m.map((b) => { + let w = "cell"; + return b.disabled && (w += " disabled"), b.active && (w += " active"), $e("td", "").child( + $e("div", w).on("click.stop", () => { + this.selectChange(b.d); + }).child(b.d.getDate().toString()) + ); + }); + return $e("tr", "").children(...g); + }); + x.html("").children(...u); + } +} +class Qm { + constructor() { + this.calendar = new Jm(/* @__PURE__ */ new Date()), this.el = $e("div", `${lt}-datepicker`).child( + this.calendar.el + ).hide(); + } + setValue(k) { + const { calendar: e } = this; + return typeof k == "string" ? /^\d{4}-\d{1,2}-\d{1,2}$/.test(k) && e.setValue(new Date(k.replace(new RegExp("-", "g"), "/"))) : k instanceof Date && e.setValue(k), this; + } + change(k) { + this.calendar.selectChange = (e) => { + k(e), this.hide(); + }; + } + show() { + this.el.show(); + } + hide() { + this.el.hide(); + } +} +function Yo() { + const { inputText: H } = this; + if (!/^\s*$/.test(H)) { + const { + textlineEl: k, + textEl: e, + areaOffset: x + } = this, _ = H.split(` +`), u = Math.max(..._.map((y) => y.length)), g = k.offset().width / H.length, b = (u + 1) * g + 5, w = this.viewFn().width - x.left - g; + let f = _.length; + if (b > x.width) { + let y = b; + b > w && (y = w, f += parseInt(b / w, 10), f += b % w > 0 ? 1 : 0), e.css("width", `${y}px`); + } + f *= this.rowHeight, f > x.height && e.css("height", `${f}px`); + } +} +function qm({ target: H }, k) { + const { value: e, selectionEnd: x } = H, _ = `${e.slice(0, x)}${k}${e.slice(x)}`; + H.value = _, H.setSelectionRange(x + 1, x + 1), this.inputText = _, this.textlineEl.html(_), Yo.call(this); +} +function eb(H) { + const { keyCode: k, altKey: e } = H; + k !== 13 && k !== 9 && H.stopPropagation(), k === 13 && e && (qm.call(this, H, ` +`), H.stopPropagation()), k === 13 && !e && H.preventDefault(); +} +function tb(H) { + const k = H.target.value, { suggest: e, textlineEl: x, validator: _ } = this, { cell: u } = this; + if (u !== null) + if ("editable" in u && u.editable === !0 || u.editable === void 0) { + if (this.inputText = k, _) + _.type === "list" ? e.search(k) : e.hide(); + else { + const m = k.lastIndexOf("="); + m !== -1 ? e.search(k.substring(m + 1)) : e.hide(); + } + x.html(k), Yo.call(this), this.change("input", k); + } else + H.target.value = u.text; + else { + if (this.inputText = k, _) + _.type === "list" ? e.search(k) : e.hide(); + else { + const m = k.lastIndexOf("="); + m !== -1 ? e.search(k.substring(m + 1)) : e.hide(); + } + x.html(k), Yo.call(this), this.change("input", k); + } +} +function rb(H) { + const { el: k } = this.textEl; + setTimeout(() => { + k.focus(), k.setSelectionRange(H, H); + }, 0); +} +function xc(H, k) { + const { textEl: e, textlineEl: x } = this; + e.el.blur(), e.val(H), x.html(H), rb.call(this, k); +} +function nb(H) { + const { inputText: k, validator: e } = this; + let x = 0; + if (e && e.type === "list") + this.inputText = H, x = this.inputText.length; + else { + const _ = k.lastIndexOf("="), u = k.substring(0, _ + 1); + let m = k.substring(_ + 1); + m.indexOf(")") !== -1 ? m = m.substring(m.indexOf(")")) : m = "", this.inputText = `${u + H.key}(`, x = this.inputText.length, this.inputText += `)${m}`; + } + xc.call(this, this.inputText, x); +} +function ib() { + this.suggest.setItems(this.formulas); +} +function ab(H) { + let k = H.getMonth() + 1, e = H.getDate(); + return k < 10 && (k = `0${k}`), e < 10 && (e = `0${e}`), `${H.getFullYear()}-${k}-${e}`; +} +class ob { + constructor(k, e, x) { + this.viewFn = e, this.rowHeight = x, this.formulas = k, this.suggest = new wc(k, (_) => { + nb.call(this, _); + }), this.datepicker = new Qm(), this.datepicker.change((_) => { + this.setText(ab(_)), this.clear(); + }), this.areaEl = $e("div", `${lt}-editor-area`).children( + this.textEl = $e("textarea", "").on("input", (_) => tb.call(this, _)).on("paste.stop", () => { + }).on("keydown", (_) => eb.call(this, _)), + this.textlineEl = $e("div", "textline"), + this.suggest.el, + this.datepicker.el + ).on("mousemove.stop", () => { + }).on("mousedown.stop", () => { + }), this.el = $e("div", `${lt}-editor`).child(this.areaEl).hide(), this.suggest.bindInputEvents(this.textEl), this.areaOffset = null, this.freeze = { w: 0, h: 0 }, this.cell = null, this.inputText = "", this.change = () => { + }; + } + setFreezeLengths(k, e) { + this.freeze.w = k, this.freeze.h = e; + } + clear() { + this.inputText !== "" && this.change("finished", this.inputText), this.cell = null, this.areaOffset = null, this.inputText = "", this.el.hide(), this.textEl.val(""), this.textlineEl.html(""), ib.call(this), this.datepicker.hide(); + } + setOffset(k, e = "top") { + const { + textEl: x, + areaEl: _, + suggest: u, + freeze: m, + el: g + } = this; + if (k) { + this.areaOffset = k; + const { + left: b, + top: w, + width: f, + height: y, + l: h, + t: l + } = k, d = { left: 0, top: 0 }; + m.w > h && m.h > l || (m.w < h && m.h < l ? (d.left = m.w, d.top = m.h) : m.w > h ? d.top = m.h : m.h > l && (d.left = m.w)), g.offset(d), _.offset({ left: b - d.left - 0.8, top: w - d.top - 0.8 }), x.offset({ width: f - 9 + 0.8, height: y - 3 + 0.8 }); + const s = { left: 0 }; + s[e] = y, u.setOffset(s), u.hide(); + } + } + setCell(k, e) { + const { el: x, datepicker: _, suggest: u } = this; + x.show(), this.cell = k; + const m = k && k.text || ""; + if (this.setText(m), this.validator = e, e) { + const { type: g } = e; + g === "date" && (_.show(), /^\s*$/.test(m) || _.setValue(m)), g === "list" && (u.setItems(e.values()), u.search("")); + } + } + setText(k) { + this.inputText = k, xc.call(this, k, k.length), Yo.call(this); + } +} +class Li extends Hi { + // type: primary + constructor(k, e = "") { + super("div", `${lt}-button ${e}`), this.child(Cr(`button.${k}`)); + } +} +function Zo() { + return window.devicePixelRatio || 1; +} +function Ef() { + return Zo() - 0.5; +} +function zt(H) { + return parseInt(H * Zo(), 10); +} +function ya(H) { + const k = zt(H); + return k > 0 ? k - 0.5 : 0.5; +} +class sb { + constructor(k, e, x, _, u = 0) { + this.x = k, this.y = e, this.width = x, this.height = _, this.padding = u, this.bgcolor = "#ffffff", this.borderTop = null, this.borderRight = null, this.borderBottom = null, this.borderLeft = null; + } + setBorders({ + top: k, + bottom: e, + left: x, + right: _ + }) { + k && (this.borderTop = k), _ && (this.borderRight = _), e && (this.borderBottom = e), x && (this.borderLeft = x); + } + innerWidth() { + return this.width - this.padding * 2 - 2; + } + innerHeight() { + return this.height - this.padding * 2 - 2; + } + textx(k) { + const { width: e, padding: x } = this; + let { x: _ } = this; + return k === "left" ? _ += x : k === "center" ? _ += e / 2 : k === "right" && (_ += e - x), _; + } + texty(k, e) { + const { height: x, padding: _ } = this; + let { y: u } = this; + return k === "top" ? u += _ : k === "middle" ? u += x / 2 - e / 2 : k === "bottom" && (u += x - _ - e), u; + } + topxys() { + const { x: k, y: e, width: x } = this; + return [[k, e], [k + x, e]]; + } + rightxys() { + const { + x: k, + y: e, + width: x, + height: _ + } = this; + return [[k + x, e], [k + x, e + _]]; + } + bottomxys() { + const { + x: k, + y: e, + width: x, + height: _ + } = this; + return [[k, e + _], [k + x, e + _]]; + } + leftxys() { + const { + x: k, + y: e, + height: x + } = this; + return [[k, e], [k, e + x]]; + } +} +function $l(H, k, e, x, _, u, m) { + const g = { x: 0, y: 0 }; + H === "underline" ? _ === "bottom" ? g.y = 0 : _ === "top" ? g.y = -(u + 2) : g.y = -u / 2 : H === "strike" && (_ === "bottom" ? g.y = u / 2 : _ === "top" && (g.y = -(u / 2 + 2))), x === "center" ? g.x = m / 2 : x === "right" && (g.x = m), this.line( + [k - g.x, e - g.y], + [k - g.x + m, e - g.y] + ); +} +class Sc { + constructor(k, e, x) { + this.el = k, this.ctx = k.getContext("2d"), this.resize(e, x), this.ctx.scale(Zo(), Zo()); + } + resize(k, e) { + this.el.style.width = `${k}px`, this.el.style.height = `${e}px`, this.el.width = zt(k), this.el.height = zt(e); + } + clear() { + const { width: k, height: e } = this.el; + return this.ctx.clearRect(0, 0, k, e), this; + } + attr(k) { + return Object.assign(this.ctx, k), this; + } + save() { + return this.ctx.save(), this.ctx.beginPath(), this; + } + restore() { + return this.ctx.restore(), this; + } + beginPath() { + return this.ctx.beginPath(), this; + } + translate(k, e) { + return this.ctx.translate(zt(k), zt(e)), this; + } + scale(k, e) { + return this.ctx.scale(k, e), this; + } + clearRect(k, e, x, _) { + return this.ctx.clearRect(k, e, x, _), this; + } + fillRect(k, e, x, _) { + return this.ctx.fillRect(zt(k) - 0.5, zt(e) - 0.5, zt(x), zt(_)), this; + } + fillText(k, e, x) { + return this.ctx.fillText(k, zt(e), zt(x)), this; + } + /* + txt: render text + box: DrawBox + attr: { + align: left | center | right + valign: top | middle | bottom + color: '#333333', + strike: false, + font: { + name: 'Arial', + size: 14, + bold: false, + italic: false, + } + } + textWrap: text wrapping + */ + text(k, e, x = {}, _ = !0) { + const { ctx: u } = this, { + align: m, + valign: g, + font: b, + color: w, + strike: f, + underline: y + } = x, h = e.textx(m); + u.save(), u.beginPath(), this.attr({ + textAlign: m, + textBaseline: g, + font: `${b.italic ? "italic" : ""} ${b.bold ? "bold" : ""} ${zt(b.size)}px ${b.name}`, + fillStyle: w, + strokeStyle: w + }); + const l = `${k}`.split(` +`), d = e.innerWidth(), s = []; + l.forEach((a) => { + const r = u.measureText(a).width; + if (_ && r > zt(d)) { + let t = { w: 0, len: 0, start: 0 }; + for (let i = 0; i < a.length; i += 1) + t.w >= zt(d) && (s.push(a.substr(t.start, t.len)), t = { w: 0, len: 0, start: i }), t.len += 1, t.w += u.measureText(a[i]).width + 1; + t.len > 0 && s.push(a.substr(t.start, t.len)); + } else + s.push(a); + }); + const v = (s.length - 1) * (b.size + 2); + let c = e.texty(g, v); + return s.forEach((a) => { + const r = u.measureText(a).width; + this.fillText(a, h, c), f && $l.call(this, "strike", h, c, m, g, b.size, r), y && $l.call(this, "underline", h, c, m, g, b.size, r), c += b.size + 2; + }), u.restore(), this; + } + border(k, e) { + const { ctx: x } = this; + return x.lineWidth = Ef, x.strokeStyle = e, k === "medium" ? x.lineWidth = zt(2) - 0.5 : k === "thick" ? x.lineWidth = zt(3) : k === "dashed" ? x.setLineDash([zt(3), zt(2)]) : k === "dotted" ? x.setLineDash([zt(1), zt(1)]) : k === "double" && x.setLineDash([zt(2), 0]), this; + } + line(...k) { + const { ctx: e } = this; + if (k.length > 1) { + e.beginPath(); + const [x, _] = k[0]; + e.moveTo(ya(x), ya(_)); + for (let u = 1; u < k.length; u += 1) { + const [m, g] = k[u]; + e.lineTo(ya(m), ya(g)); + } + e.stroke(); + } + return this; + } + strokeBorders(k) { + const { ctx: e } = this; + e.save(); + const { + borderTop: x, + borderRight: _, + borderBottom: u, + borderLeft: m + } = k; + x && (this.border(...x), this.line(...k.topxys())), _ && (this.border(..._), this.line(...k.rightxys())), u && (this.border(...u), this.line(...k.bottomxys())), m && (this.border(...m), this.line(...k.leftxys())), e.restore(); + } + dropdown(k) { + const { ctx: e } = this, { + x, + y: _, + width: u, + height: m + } = k, g = x + u - 15, b = _ + m - 15; + e.save(), e.beginPath(), e.moveTo(zt(g), zt(b)), e.lineTo(zt(g + 8), zt(b)), e.lineTo(zt(g + 4), zt(b + 6)), e.closePath(), e.fillStyle = "rgba(0, 0, 0, .45)", e.fill(), e.restore(); + } + error(k) { + const { ctx: e } = this, { x, y: _, width: u } = k, m = x + u - 1; + e.save(), e.beginPath(), e.moveTo(zt(m - 8), zt(_ - 1)), e.lineTo(zt(m), zt(_ - 1)), e.lineTo(zt(m), zt(_ + 8)), e.closePath(), e.fillStyle = "rgba(255, 0, 0, .65)", e.fill(), e.restore(); + } + frozen(k) { + const { ctx: e } = this, { x, y: _, width: u } = k, m = x + u - 1; + e.save(), e.beginPath(), e.moveTo(zt(m - 8), zt(_ - 1)), e.lineTo(zt(m), zt(_ - 1)), e.lineTo(zt(m), zt(_ + 8)), e.closePath(), e.fillStyle = "rgba(0, 255, 0, .85)", e.fill(), e.restore(); + } + rect(k, e) { + const { ctx: x } = this, { + x: _, + y: u, + width: m, + height: g, + bgcolor: b + } = k; + x.save(), x.beginPath(), x.fillStyle = b || "#fff", x.rect(ya(_ + 1), ya(u + 1), zt(m - 2), zt(g - 2)), x.clip(), x.fill(), e(), x.restore(); + } +} +const Wl = [ + { key: "Arial", title: "Arial" }, + { key: "Helvetica", title: "Helvetica" }, + { key: "Source Sans Pro", title: "Source Sans Pro" }, + { key: "Comic Sans MS", title: "Comic Sans MS" }, + { key: "Courier New", title: "Courier New" }, + { key: "Verdana", title: "Verdana" }, + { key: "Lato", title: "Lato" } +], vf = [ + { pt: 7.5, px: 10 }, + { pt: 8, px: 11 }, + { pt: 9, px: 12 }, + { pt: 10, px: 13 }, + { pt: 10.5, px: 14 }, + { pt: 11, px: 15 }, + { pt: 12, px: 16 }, + { pt: 14, px: 18.7 }, + { pt: 15, px: 20 }, + { pt: 16, px: 21.3 }, + { pt: 18, px: 24 }, + { pt: 22, px: 29.3 }, + { pt: 24, px: 32 }, + { pt: 26, px: 34.7 }, + { pt: 36, px: 48 }, + { pt: 42, px: 56 } + // { pt: 54, px: 71.7 }, + // { pt: 63, px: 83.7 }, + // { pt: 72, px: 95.6 }, +]; +function fb(H) { + for (let k = 0; k < vf.length; k += 1) { + const e = vf[k]; + if (e.pt === H) + return e.px; + } + return H; +} +const ub = (H) => { + const k = [], e = []; + let x = [], _ = 0, u = "", m = 1, g = ""; + for (let b = 0; b < H.length; b += 1) { + const w = H.charAt(b); + if (w !== " ") { + if (w >= "a" && w <= "z") + x.push(w.toUpperCase()); + else if (w >= "0" && w <= "9" || w >= "A" && w <= "Z" || w === ".") + x.push(w); + else if (w === '"') { + for (b += 1; H.charAt(b) !== '"'; ) + x.push(H.charAt(b)), b += 1; + e.push(`"${x.join("")}`), x = []; + } else if (w === "-" && /[+\-*/,(]/.test(g)) + x.push(w); + else { + if (w !== "(" && x.length > 0 && e.push(x.join("")), w === ")") { + let f = k.pop(); + if (_ === 2) + try { + const [y, h] = Ti(e.pop()), [l, d] = Ti(e.pop()); + let s = 0; + for (let v = l; v <= y; v += 1) + for (let c = d; c <= h; c += 1) + e.push(hi(v, c)), s += 1; + e.push([f, s]); + } catch (y) { + } + else if (_ === 1 || _ === 3) + _ === 3 && e.push(u), e.push([f, m]), m = 1; + else + for (; f !== "(" && (e.push(f), !(k.length <= 0)); ) + f = k.pop(); + _ = 0; + } else if (w === "=" || w === ">" || w === "<") { + const f = H.charAt(b + 1); + u = w, (f === "=" || f === "-") && (u += f, b += 1), _ = 3; + } else if (w === ":") + _ = 2; + else if (w === ",") + _ === 3 && e.push(u), _ = 1, m += 1; + else if (w === "(" && x.length > 0) + k.push(x.join("")); + else { + if (k.length > 0 && (w === "+" || w === "-")) { + let f = k[k.length - 1]; + if (f !== "(" && e.push(k.pop()), f === "*" || f === "/") + for (; k.length > 0 && (f = k[k.length - 1], f !== "("); ) + e.push(k.pop()); + } else if (k.length > 0) { + const f = k[k.length - 1]; + (f === "*" || f === "/") && e.push(k.pop()); + } + k.push(w); + } + x = []; + } + g = w; + } + } + for (x.length > 0 && e.push(x.join("")); k.length > 0; ) + e.push(k.pop()); + return e; +}, lb = (H, k) => { + const [e] = H; + let x = H; + if (e === '"') + return H.substring(1); + let _ = 1; + if (e === "-" && (x = H.substring(1), _ = -1), x[0] >= "0" && x[0] <= "9") + return _ * Number(x); + const [u, m] = Ti(x); + return _ * k(u, m); +}, cb = (H, k, e, x) => { + const _ = []; + for (let u = 0; u < H.length; u += 1) { + const m = H[u], g = m[0]; + if (m === "+") { + const b = _.pop(); + _.push(ji("+", _.pop(), b)); + } else if (m === "-") + if (_.length === 1) { + const b = _.pop(); + _.push(ji("*", b, -1)); + } else { + const b = _.pop(); + _.push(ji("-", _.pop(), b)); + } + else if (m === "*") + _.push(ji("*", _.pop(), _.pop())); + else if (m === "/") { + const b = _.pop(); + _.push(ji("/", _.pop(), b)); + } else if (g === "=" || g === ">" || g === "<") { + let b = _.pop(); + Number.isNaN(b) || (b = Number(b)); + let w = _.pop(); + Number.isNaN(w) || (w = Number(w)); + let f = !1; + g === "=" ? f = w === b : m === ">" ? f = w > b : m === ">=" ? f = w >= b : m === "<" ? f = w < b : m === "<=" && (f = w <= b), _.push(f); + } else if (Array.isArray(m)) { + const [b, w] = m, f = []; + for (let y = 0; y < w; y += 1) + f.push(_.pop()); + _.push(k[b].render(f.reverse())); + } else { + if (x.includes(m)) + return 0; + (g >= "a" && g <= "z" || g >= "A" && g <= "Z") && x.push(m), _.push(lb(m, e)), x.pop(); + } + } + return _[0]; +}, kc = (H, k, e, x = []) => { + if (H[0] === "=") { + const _ = ub(H.substring(1)); + return _.length <= 0 ? H : cb( + _, + k, + (u, m) => kc(e(u, m), k, e, x), + x + ); + } + return H; +}, hb = { + render: kc +}, Tf = [ + { + key: "SUM", + title: Jt("formula.sum"), + render: (H) => H.reduce((k, e) => ji("+", k, e), 0) + }, + { + key: "AVERAGE", + title: Jt("formula.average"), + render: (H) => H.reduce((k, e) => Number(k) + Number(e), 0) / H.length + }, + { + key: "MAX", + title: Jt("formula.max"), + render: (H) => Math.max(...H.map((k) => Number(k))) + }, + { + key: "MIN", + title: Jt("formula.min"), + render: (H) => Math.min(...H.map((k) => Number(k))) + }, + { + key: "IF", + title: Jt("formula._if"), + render: ([H, k, e]) => H ? k : e + }, + { + key: "AND", + title: Jt("formula.and"), + render: (H) => H.every((k) => k) + }, + { + key: "OR", + title: Jt("formula.or"), + render: (H) => H.some((k) => k) + }, + { + key: "CONCAT", + title: Jt("formula.concat"), + render: (H) => H.join("") + } + /* support: 1 + A1 + B2 * 3 + { + key: 'DIVIDE', + title: tf('formula.divide'), + render: ary => ary.reduce((a, b) => Number(a) / Number(b)), + }, + { + key: 'PRODUCT', + title: tf('formula.product'), + render: ary => ary.reduce((a, b) => Number(a) * Number(b),1), + }, + { + key: 'SUBTRACT', + title: tf('formula.subtract'), + render: ary => ary.reduce((a, b) => Number(a) - Number(b)), + }, + */ +], db = Tf, Oc = {}; +Tf.forEach((H) => { + Oc[H.key] = H; +}); +const va = (H) => H, Fo = (H) => { + if (/^(-?\d*.?\d*)$/.test(H)) { + const k = Number(H).toFixed(2).toString(), [e, ...x] = k.split("\\."); + return [e.replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"), ...x]; + } + return H; +}, Xa = [ + { + key: "normal", + title: Jt("format.normal"), + type: "string", + render: va + }, + { + key: "text", + title: Jt("format.text"), + type: "string", + render: va + }, + { + key: "number", + title: Jt("format.number"), + type: "number", + label: "1,000.12", + render: Fo + }, + { + key: "percent", + title: Jt("format.percent"), + type: "number", + label: "10.12%", + render: (H) => `${H}%` + }, + { + key: "rmb", + title: Jt("format.rmb"), + type: "number", + label: "¥10.00", + render: (H) => `¥${Fo(H)}` + }, + { + key: "usd", + title: Jt("format.usd"), + type: "number", + label: "$10.00", + render: (H) => `$${Fo(H)}` + }, + { + key: "eur", + title: Jt("format.eur"), + type: "number", + label: "€10.00", + render: (H) => `€${Fo(H)}` + }, + { + key: "date", + title: Jt("format.date"), + type: "date", + label: "26/09/2008", + render: va + }, + { + key: "time", + title: Jt("format.time"), + type: "date", + label: "15:59:00", + render: va + }, + { + key: "datetime", + title: Jt("format.datetime"), + type: "date", + label: "26/09/2008 15:59:00", + render: va + }, + { + key: "duration", + title: Jt("format.duration"), + type: "date", + label: "24:01:00", + render: va + } +], Ec = {}; +Xa.forEach((H) => { + Ec[H.key] = H; +}); +const pb = 5, yb = { fillStyle: "#f4f5f8" }, vb = { + fillStyle: "#fff", + lineWidth: Ef, + strokeStyle: "#e6e6e6" +}; +function mb() { + return { + textAlign: "center", + textBaseline: "middle", + font: `500 ${zt(12)}px Source Sans Pro`, + fillStyle: "#585757", + lineWidth: Ef(), + strokeStyle: "#e6e6e6" + }; +} +function Tc(H, k, e, x = 0) { + const { + left: _, + top: u, + width: m, + height: g + } = H.cellRect(k, e); + return new sb(_, u + x, m, g, pb); +} +function Jo(H, k, e, x, _ = 0) { + const { sortedRowMap: u, rows: m, cols: g } = k; + if (m.isHide(e) || g.isHide(x)) + return; + let b = e; + u.has(e) && (b = u.get(e)); + const w = k.getCell(b, x); + if (w === null) + return; + let f = !1; + "editable" in w && w.editable === !1 && (f = !0); + const y = k.getCellStyleOrDefault(b, x), h = Tc(k, e, x, _); + h.bgcolor = y.bgcolor, y.border !== void 0 && (h.setBorders(y.border), H.strokeBorders(h)), H.rect(h, () => { + let l = ""; + k.settings.evalPaused ? l = w.text || "" : l = hb.render(w.text || "", Oc, (v, c) => k.getCellTextOrDefault(c, v)), y.format && (l = Ec[y.format].render(l)); + const d = Object.assign({}, y.font); + d.size = fb(d.size), H.text(l, h, { + align: y.align, + valign: y.valign, + font: d, + color: y.color, + strike: y.strike, + underline: y.underline + }, y.textwrap), k.validations.getError(e, x) && H.error(h), f && H.frozen(h); + }); +} +function bb(H) { + const { data: k, draw: e } = this; + if (H) { + const { autoFilter: x } = k; + if (!x.active()) + return; + const _ = x.hrange(); + H.intersects(_) && _.each((u, m) => { + const g = Tc(k, u, m); + e.dropdown(g); + }); + } +} +function Bo(H, k, e, x, _) { + const { draw: u, data: m } = this; + u.save(), u.translate(k, e).translate(x, _); + const { exceptRowSet: g } = m, b = (y) => { + const h = g.has(y); + if (h) { + const l = m.rows.getHeight(y); + u.translate(0, -l); + } + return !h; + }, w = m.exceptRowTotalHeight(H.sri, H.eri); + u.save(), u.translate(0, -w), H.each((y, h) => { + Jo(u, m, y, h); + }, (y) => b(y)), u.restore(); + const f = /* @__PURE__ */ new Set(); + u.save(), u.translate(0, -w), m.eachMergesInView(H, ({ sri: y, sci: h, eri: l }) => { + if (!g.has(y)) + Jo(u, m, y, h); + else if (!f.has(y)) { + f.add(y); + const d = m.rows.sumHeight(y, l + 1); + u.translate(0, -d); + } + }), u.restore(), bb.call(this, H), u.restore(); +} +function Vl(H, k, e, x) { + const { draw: _ } = this; + _.save(), _.attr({ fillStyle: "rgba(75, 137, 255, 0.08)" }).fillRect(H, k, e, x), _.restore(); +} +function jo(H, k, e, x, _, u) { + const { draw: m, data: g } = this, b = k.h, w = k.w, f = u + x, y = _ + e; + m.save(), m.attr(yb), (H === "all" || H === "left") && m.fillRect(0, f, e, b), (H === "all" || H === "top") && m.fillRect(y, 0, w, x); + const { + sri: h, + sci: l, + eri: d, + eci: s + } = g.selector.range; + m.attr(mb()), (H === "all" || H === "left") && (g.rowEach(k.sri, k.eri, (v, c, a) => { + const r = f + c, t = v; + m.line([0, r], [e, r]), h <= t && t < d + 1 && Vl.call(this, 0, r, e, a), m.fillText(t + 1, e / 2, r + a / 2), v > 0 && g.rows.isHide(v - 1) && (m.save(), m.attr({ strokeStyle: "#c6c6c6" }), m.line([5, r + 5], [e - 5, r + 5]), m.restore()); + }), m.line([0, b + f], [e, b + f]), m.line([e, f], [e, b + f])), (H === "all" || H === "top") && (g.colEach(k.sci, k.eci, (v, c, a) => { + const r = y + c, t = v; + m.line([r, 0], [r, x]), l <= t && t < s + 1 && Vl.call(this, r, 0, a, x), m.fillText(cc(t), r + a / 2, x / 2), v > 0 && g.cols.isHide(v - 1) && (m.save(), m.attr({ strokeStyle: "#c6c6c6" }), m.line([r + 5, 5], [r + 5, x - 5]), m.restore()); + }), m.line([w + y, 0], [w + y, x]), m.line([0, x], [w + y, x])), m.restore(); +} +function gb(H, k) { + const { draw: e } = this; + e.save(), e.attr({ fillStyle: "#f4f5f8" }).fillRect(0, 0, H, k), e.restore(); +} +function Lo({ + sri: H, + sci: k, + eri: e, + eci: x, + w: _, + h: u +}, m, g, b, w) { + const { draw: f, data: y } = this, { settings: h } = y; + if (f.save(), f.attr(vb).translate(m + b, g + w), !h.showGrid) { + f.restore(); + return; + } + y.rowEach(H, e, (l, d, s) => { + l !== H && f.line([0, d], [_, d]), l === e && f.line([0, d + s], [_, d + s]); + }), y.colEach(k, x, (l, d, s) => { + l !== k && f.line([d, 0], [d, u]), l === x && f.line([d + s, 0], [d + s, u]); + }), f.restore(); +} +function _b(H, k, e, x) { + const { draw: _, data: u } = this, m = u.viewWidth() - H, g = u.viewHeight() - k; + _.save().translate(H, k).attr({ strokeStyle: "rgba(75, 137, 255, .6)" }), _.line([0, x], [m, x]), _.line([e, 0], [e, g]), _.restore(); +} +class wb { + constructor(k, e) { + this.el = k, this.draw = new Sc(k, e.viewWidth(), e.viewHeight()), this.data = e; + } + resetData(k) { + this.data = k, this.render(); + } + render() { + const { data: k } = this, { rows: e, cols: x } = k, _ = x.indexWidth, u = e.height; + this.draw.resize(k.viewWidth(), k.viewHeight()), this.clear(); + const m = k.viewRange(), g = k.freezeTotalWidth(), b = k.freezeTotalHeight(), { x: w, y: f } = k.scroll; + Lo.call(this, m, _, u, g, b), Bo.call(this, m, _, u, -w, -f), jo.call(this, "all", m, _, u, g, b), gb.call(this, _, u); + const [y, h] = k.freeze; + if (y > 0 || h > 0) { + if (y > 0) { + const d = m.clone(); + d.sri = 0, d.eri = y - 1, d.h = b, Lo.call(this, d, _, u, g, 0), Bo.call(this, d, _, u, -w, 0), jo.call(this, "top", d, _, u, g, 0); + } + if (h > 0) { + const d = m.clone(); + d.sci = 0, d.eci = h - 1, d.w = g, Lo.call(this, d, _, u, 0, b), jo.call(this, "left", d, _, u, 0, b), Bo.call(this, d, _, u, 0, -f); + } + const l = k.freezeViewRange(); + Lo.call(this, l, _, u, 0, 0), jo.call(this, "all", l, _, u, 0, 0), Bo.call(this, l, _, u, 0, 0), _b.call(this, _, u, g, b); + } + } + clear() { + this.draw.clear(); + } +} +const Xo = [ + ["A3", 11.69, 16.54], + ["A4", 8.27, 11.69], + ["A5", 5.83, 8.27], + ["B4", 9.84, 13.9], + ["B5", 6.93, 9.84] +], mf = ["landscape", "portrait"]; +function Qo(H) { + return parseInt(96 * H, 10); +} +function Kl(H) { + H === "cancel" ? this.el.hide() : this.toPrint(); +} +function xb(H) { + const { paper: k } = this, { value: e } = H.target, x = Xo[e]; + k.w = Qo(x[1]), k.h = Qo(x[2]), this.preview(); +} +function Sb(H) { + const { paper: k } = this, { value: e } = H.target, x = mf[e]; + k.orientation = x, this.preview(); +} +let kb = class { + constructor(k) { + this.paper = { + w: Qo(Xo[0][1]), + h: Qo(Xo[0][2]), + padding: 50, + orientation: mf[0], + get width() { + return this.orientation === "landscape" ? this.h : this.w; + }, + get height() { + return this.orientation === "landscape" ? this.w : this.h; + } + }, this.data = k, this.el = $e("div", `${lt}-print`).children( + $e("div", `${lt}-print-bar`).children( + $e("div", "-title").child("Print settings"), + $e("div", "-right").children( + $e("div", `${lt}-buttons`).children( + new Li("cancel").on("click", Kl.bind(this, "cancel")), + new Li("next", "primary").on("click", Kl.bind(this, "next")) + ) + ) + ), + $e("div", `${lt}-print-content`).children( + this.contentEl = $e("div", "-content"), + $e("div", "-sider").child( + $e("form", "").children( + $e("fieldset", "").children( + $e("label", "").child(`${Cr("print.size")}`), + $e("select", "").children( + ...Xo.map((e, x) => $e("option", "").attr("value", x).child(`${e[0]} ( ${e[1]}''x${e[2]}'' )`)) + ).on("change", xb.bind(this)) + ), + $e("fieldset", "").children( + $e("label", "").child(`${Cr("print.orientation")}`), + $e("select", "").children( + ...mf.map((e, x) => $e("option", "").attr("value", x).child(`${Cr("print.orientations")[x]}`)) + ).on("change", Sb.bind(this)) + ) + ) + ) + ) + ).hide(); + } + resetData(k) { + this.data = k; + } + preview() { + const { data: k, paper: e } = this, { width: x, height: _, padding: u } = e, m = x - u * 2, g = _ - u * 2, b = k.contentRange(), w = parseInt(b.h / g, 10) + 1, f = m / b.w; + let y = u; + const h = u; + f > 1 && (y += (m - b.w) / 2); + let l = 0, d = 0; + this.contentEl.html(""), this.canvases = []; + const s = { + sri: 0, + sci: 0, + eri: 0, + eci: 0 + }; + for (let v = 0; v < w; v += 1) { + let c = 0, a = 0; + const r = $e("div", `${lt}-canvas-card`), t = $e("canvas", `${lt}-canvas`); + this.canvases.push(t.el); + const i = new Sc(t.el, x, _); + for (i.save(), i.translate(y, h), f < 1 && i.scale(f, f); l <= b.eri; l += 1) { + const o = k.rows.getHeight(l); + if (c += o, c < g) + for (let p = 0; p <= b.eci; p += 1) + Jo(i, k, l, p, d), s.eci = p; + else { + a = -(c - o); + break; + } + } + s.eri = l, i.restore(), i.save(), i.translate(y, h), f < 1 && i.scale(f, f); + const n = d; + k.eachMergesInView(s, ({ sri: o, sci: p }) => { + Jo(i, k, o, p, n); + }), i.restore(), s.sri = s.eri, s.sci = s.eci, d += a, this.contentEl.child($e("div", `${lt}-canvas-card-wraper`).child(r.child(t))); + } + this.el.show(); + } + toPrint() { + this.el.hide(); + const { paper: k } = this, e = $e("iframe", "").hide(), { el: x } = e; + window.document.body.appendChild(x); + const { contentWindow: _ } = x, u = _.document, m = document.createElement("style"); + m.innerHTML = ` + @page { size: ${k.width}px ${k.height}px; }; + canvas { + page-break-before: auto; + page-break-after: always; + image-rendering: pixelated; + }; + `, u.head.appendChild(m), this.canvases.forEach((g) => { + const b = g.cloneNode(!1); + b.getContext("2d").drawImage(g, 0, 0), u.body.appendChild(b); + }), _.print(); + } +}; +const Ob = [ + { key: "copy", title: Jt("contextmenu.copy"), label: "Ctrl+C" }, + { key: "cut", title: Jt("contextmenu.cut"), label: "Ctrl+X" }, + { key: "paste", title: Jt("contextmenu.paste"), label: "Ctrl+V" }, + { key: "paste-value", title: Jt("contextmenu.pasteValue"), label: "Ctrl+Shift+V" }, + { key: "paste-format", title: Jt("contextmenu.pasteFormat"), label: "Ctrl+Alt+V" }, + { key: "divider" }, + { key: "insert-row", title: Jt("contextmenu.insertRow") }, + { key: "insert-column", title: Jt("contextmenu.insertColumn") }, + { key: "divider" }, + { key: "delete-row", title: Jt("contextmenu.deleteRow") }, + { key: "delete-column", title: Jt("contextmenu.deleteColumn") }, + { key: "delete-cell-text", title: Jt("contextmenu.deleteCellText") }, + { key: "hide", title: Jt("contextmenu.hide") }, + { key: "divider" }, + { key: "validation", title: Jt("contextmenu.validation") }, + { key: "divider" }, + { key: "cell-printable", title: Jt("contextmenu.cellprintable") }, + { key: "cell-non-printable", title: Jt("contextmenu.cellnonprintable") }, + { key: "divider" }, + { key: "cell-editable", title: Jt("contextmenu.celleditable") }, + { key: "cell-non-editable", title: Jt("contextmenu.cellnoneditable") } +]; +function Eb(H) { + return H.key === "divider" ? $e("div", `${lt}-item divider`) : $e("div", `${lt}-item`).on("click", () => { + this.itemClick(H.key), this.hide(); + }).children( + H.title(), + $e("div", "label").child(H.label || "") + ); +} +function Tb() { + return Ob.map((H) => Eb.call(this, H)); +} +let Rb = class { + constructor(k, e = !1) { + this.menuItems = Tb.call(this), this.el = $e("div", `${lt}-contextmenu`).children(...this.menuItems).hide(), this.viewFn = k, this.itemClick = () => { + }, this.isHide = e, this.setMode("range"); + } + // row-col: the whole rows or the whole cols + // range: select range + setMode(k) { + const e = this.menuItems[12]; + k === "row-col" ? e.show() : e.hide(); + } + hide() { + const { el: k } = this; + k.hide(), _a(k); + } + setPosition(k, e) { + if (this.isHide) + return; + const { el: x } = this, { width: _ } = x.show().offset(), u = this.viewFn(), m = u.height / 2; + let g = k; + u.width - k <= _ && (g -= _), x.css("left", `${g}px`), e > m ? x.css("bottom", `${u.height - e}px`).css("max-height", `${e}px`).css("top", "auto") : x.css("top", `${e}px`).css("max-height", `${u.height - e}px`).css("bottom", "auto"), Va(x); + } +}; +function Cb(H, k) { + if (k.classList.contains("active")) + return; + const { + left: e, + top: x, + width: _, + height: u + } = k.getBoundingClientRect(), m = $e("div", `${lt}-tooltip`).html(H).show(); + document.body.appendChild(m.el); + const g = m.box(); + m.css("left", `${e + _ / 2 - g.width / 2}px`).css("top", `${x + u + 2}px`), ln(k, "mouseleave", () => { + document.body.contains(m.el) && document.body.removeChild(m.el); + }), ln(k, "click", () => { + document.body.contains(m.el) && document.body.removeChild(m.el); + }); +} +class Rf { + // tooltip + // tag: the subclass type + // shortcut: shortcut key + constructor(k, e, x) { + this.tip = Cr(`toolbar.${k.replace(/-[a-z]/g, (_) => _[1].toUpperCase())}`), e && (this.tip += ` (${e})`), this.tag = k, this.shortcut = e, this.value = x, this.el = this.element(), this.change = () => { + }; + } + element() { + const { tip: k } = this; + return $e("div", `${lt}-toolbar-btn`).on("mouseenter", (e) => { + Cb(k, e.target); + }).attr("data-tooltip", k); + } + setState() { + } +} +class Qn extends Rf { + dropdown() { + } + getValue(k) { + return k; + } + element() { + const { tag: k } = this; + return this.dd = this.dropdown(), this.dd.change = (e) => this.change(k, this.getValue(e)), super.element().child( + this.dd + ); + } + setState(k) { + k && (this.value = k, this.dd.setTitle(k)); + } +} +class qn extends Hi { + constructor(k, e, x, _, ...u) { + super("div", `${lt}-dropdown ${_}`), this.title = k, this.change = () => { + }, this.headerClick = () => { + }, typeof k == "string" ? this.title = $e("div", `${lt}-dropdown-title`).child(k) : x && this.title.addClass("arrow-left"), this.contentEl = $e("div", `${lt}-dropdown-content`).css("width", e).hide(), this.setContentChildren(...u), this.headerEl = $e("div", `${lt}-dropdown-header`), this.headerEl.on("click", () => { + this.contentEl.css("display") !== "block" ? this.show() : this.hide(); + }).children( + this.title, + x ? $e("div", `${lt}-icon arrow-right`).child( + $e("div", `${lt}-icon-img arrow-down`) + ) : "" + ), this.children(this.headerEl, this.contentEl); + } + setContentChildren(...k) { + this.contentEl.html(""), k.length > 0 && this.contentEl.children(...k); + } + setTitle(k) { + this.title.html(k), this.hide(); + } + show() { + const { contentEl: k } = this; + k.show(), this.parent().active(), Va(this.parent(), () => { + this.hide(); + }); + } + hide() { + this.parent().active(!1), this.contentEl.hide(), _a(this.parent()); + } +} +function Pb(H) { + return $e("div", `${lt}-item`).child(new Kr(H)); +} +class Rc extends qn { + constructor(k, e) { + const x = new Kr(`align-${e}`), _ = k.map((u) => Pb(`align-${u}`).on("click", () => { + this.setTitle(u), this.change(u); + })); + super(x, "auto", !0, "bottom-left", ..._); + } + setTitle(k) { + this.title.setName(`align-${k}`), this.hide(); + } +} +class Ab extends Qn { + constructor(k) { + super("align", "", k); + } + dropdown() { + const { value: k } = this; + return new Rc(["left", "center", "right"], k); + } +} +class Mb extends Qn { + constructor(k) { + super("valign", "", k); + } + dropdown() { + const { value: k } = this; + return new Rc(["top", "middle", "bottom"], k); + } +} +class di extends Rf { + element() { + const { tag: k } = this; + return super.element().child(new Kr(k)).on("click", () => this.click()); + } + click() { + this.change(this.tag, this.toggle()); + } + setState(k) { + this.el.active(k); + } + toggle() { + return this.el.toggle(); + } + active() { + return this.el.hasClass("active"); + } +} +class Ib extends di { + constructor() { + super("autofilter"); + } + setState() { + } +} +class Db extends di { + constructor() { + super("font-bold", "Ctrl+B"); + } +} +class Nb extends di { + constructor() { + super("font-italic", "Ctrl+I"); + } +} +class Fb extends di { + constructor() { + super("strike", "Ctrl+U"); + } +} +class Bb extends di { + constructor() { + super("underline", "Ctrl+U"); + } +} +const jb = ["#ffffff", "#000100", "#e7e5e6", "#445569", "#5b9cd6", "#ed7d31", "#a5a5a5", "#ffc001", "#4371c6", "#71ae47"], Lb = [ + ["#f2f2f2", "#7f7f7f", "#d0cecf", "#d5dce4", "#deeaf6", "#fce5d5", "#ededed", "#fff2cd", "#d9e2f3", "#e3efd9"], + ["#d8d8d8", "#595959", "#afabac", "#adb8ca", "#bdd7ee", "#f7ccac", "#dbdbdb", "#ffe59a", "#b3c6e7", "#c5e0b3"], + ["#bfbfbf", "#3f3f3f", "#756f6f", "#8596b0", "#9cc2e6", "#f4b184", "#c9c9c9", "#fed964", "#8eaada", "#a7d08c"], + ["#a5a5a5", "#262626", "#3a3839", "#333f4f", "#2e75b5", "#c45a10", "#7b7b7b", "#bf8e01", "#2f5596", "#538136"], + ["#7f7f7f", "#0c0c0c", "#171516", "#222a35", "#1f4e7a", "#843c0a", "#525252", "#7e6000", "#203864", "#365624"] +], zb = ["#c00000", "#fe0000", "#fdc101", "#ffff01", "#93d051", "#00b04e", "#01b0f1", "#0170c1", "#012060", "#7030a0"]; +function ef(H) { + return $e("td", "").child( + $e("div", `${lt}-color-palette-cell`).on("click.stop", () => this.change(H)).css("background-color", H) + ); +} +class Hb { + constructor() { + this.el = $e("div", `${lt}-color-palette`), this.change = () => { + }; + const k = $e("table", "").children( + $e("tbody", "").children( + $e("tr", `${lt}-theme-color-placeholders`).children( + ...jb.map((e) => ef.call(this, e)) + ), + ...Lb.map((e) => $e("tr", `${lt}-theme-colors`).children( + ...e.map((x) => ef.call(this, x)) + )), + $e("tr", `${lt}-standard-colors`).children( + ...zb.map((e) => ef.call(this, e)) + ) + ) + ); + this.el.child(k); + } +} +class Cf extends qn { + constructor(k, e) { + const x = new Kr(k).css("height", "16px").css("border-bottom", `3px solid ${e}`), _ = new Hb(); + _.change = (u) => { + this.setTitle(u), this.change(u); + }, super(x, "auto", !1, "bottom-left", _.el); + } + setTitle(k) { + this.title.css("border-color", k), this.hide(); + } +} +const Xb = [ + ["thin", ''], + ["medium", ''], + ["thick", ''], + ["dashed", ''], + ["dotted", ''] + // ['double', ''], +]; +class Ub extends qn { + constructor(k) { + const e = new Kr("line-type"); + let x = 0; + const _ = Xb.map((u, m) => $e("div", `${lt}-item state ${k === u[0] ? "checked" : ""}`).on("click", () => { + _[x].toggle("checked"), _[m].toggle("checked"), x = m, this.hide(), this.change(u); + }).child( + $e("div", `${lt}-line-type`).html(u[1]) + )); + super(e, "auto", !1, "bottom-left", ..._); + } +} +function Gl(...H) { + return $e("table", "").child( + $e("tbody", "").children(...H) + ); +} +function Yl(H) { + return $e("td", "").child( + $e("div", `${lt}-border-palette-cell`).child( + new Kr(`border-${H}`) + ).on("click", () => { + this.mode = H; + const { mode: k, style: e, color: x } = this; + this.change({ mode: k, style: e, color: x }); + }) + ); +} +class $b { + constructor() { + this.color = "#000", this.style = "thin", this.mode = "all", this.change = () => { + }, this.ddColor = new Cf("line-color", this.color), this.ddColor.change = (e) => { + this.color = e; + }, this.ddType = new Ub(this.style), this.ddType.change = ([e]) => { + this.style = e; + }, this.el = $e("div", `${lt}-border-palette`); + const k = Gl( + $e("tr", "").children( + $e("td", `${lt}-border-palette-left`).child( + Gl( + $e("tr", "").children( + ...["all", "inside", "horizontal", "vertical", "outside"].map((e) => Yl.call(this, e)) + ), + $e("tr", "").children( + ...["left", "top", "right", "bottom", "none"].map((e) => Yl.call(this, e)) + ) + ) + ), + $e("td", `${lt}-border-palette-right`).children( + $e("div", `${lt}-toolbar-btn`).child(this.ddColor.el), + $e("div", `${lt}-toolbar-btn`).child(this.ddType.el) + ) + ) + ); + this.el.child(k); + } +} +class Wb extends qn { + constructor() { + const k = new Kr("border-all"), e = new $b(); + e.change = (x) => { + this.change(x), this.hide(); + }, super(k, "auto", !1, "bottom-left", e.el); + } +} +class Vb extends Qn { + constructor() { + super("border"); + } + dropdown() { + return new Wb(); + } +} +class es extends Rf { + element() { + return super.element().child(new Kr(this.tag)).on("click", () => this.change(this.tag)); + } + setState(k) { + this.el.disabled(k); + } +} +class Kb extends es { + constructor() { + super("clearformat"); + } +} +class Gb extends di { + constructor() { + super("paintformat"); + } + setState() { + } +} +class Yb extends Qn { + constructor(k) { + super("color", void 0, k); + } + dropdown() { + const { tag: k, value: e } = this; + return new Cf(k, e); + } +} +class Zb extends Qn { + constructor(k) { + super("bgcolor", void 0, k); + } + dropdown() { + const { tag: k, value: e } = this; + return new Cf(k, e); + } +} +class Jb extends qn { + constructor() { + const k = vf.map((e) => $e("div", `${lt}-item`).on("click", () => { + this.setTitle(`${e.pt}`), this.change(e); + }).child(`${e.pt}`)); + super("10", "60px", !0, "bottom-left", ...k); + } +} +let Qb = class extends Qn { + constructor() { + super("font-size"); + } + getValue(k) { + return k.pt; + } + dropdown() { + return new Jb(); + } +}; +class qb extends qn { + constructor() { + const k = Wl.map((e) => $e("div", `${lt}-item`).on("click", () => { + this.setTitle(e.title), this.change(e); + }).child(e.title)); + super(Wl[0].title, "160px", !0, "bottom-left", ...k); + } +} +class eg extends Qn { + constructor() { + super("font-name"); + } + getValue(k) { + return k.key; + } + dropdown() { + return new qb(); + } +} +class tg extends qn { + constructor() { + let k = Xa.slice(0); + k.splice(2, 0, { key: "divider" }), k.splice(8, 0, { key: "divider" }), k = k.map((e) => { + const x = $e("div", `${lt}-item`); + return e.key === "divider" ? x.addClass("divider") : (x.child(e.title()).on("click", () => { + this.setTitle(e.title()), this.change(e); + }), e.label && x.child($e("div", "label").html(e.label))), x; + }), super("Normal", "220px", !0, "bottom-left", ...k); + } + setTitle(k) { + for (let e = 0; e < Xa.length; e += 1) + Xa[e].key === k && this.title.html(Xa[e].title()); + this.hide(); + } +} +let rg = class extends Qn { + constructor() { + super("format"); + } + getValue(k) { + return k.key; + } + dropdown() { + return new tg(); + } +}; +class ng extends qn { + constructor() { + const k = Tf.map((e) => $e("div", `${lt}-item`).on("click", () => { + this.hide(), this.change(e); + }).child(e.key)); + super(new Kr("formula"), "180px", !0, "bottom-left", ...k); + } +} +class ig extends Qn { + constructor() { + super("formula"); + } + getValue(k) { + return k.key; + } + dropdown() { + return new ng(); + } +} +class ag extends di { + constructor() { + super("freeze"); + } +} +class og extends di { + constructor() { + super("merge"); + } + setState(k, e) { + this.el.active(k).disabled(e); + } +} +class sg extends es { + constructor() { + super("redo", "Ctrl+Y"); + } +} +class fg extends es { + constructor() { + super("undo", "Ctrl+Z"); + } +} +class ug extends es { + constructor() { + super("print", "Ctrl+P"); + } +} +class lg extends di { + constructor() { + super("textwrap"); + } +} +let cg = class extends qn { + constructor() { + const k = new Kr("ellipsis"), e = $e("div", `${lt}-toolbar-more`); + super(k, "auto", !1, "bottom-right", e), this.moreBtns = e, this.contentEl.css("max-width", "420px"); + } +}; +class hg extends Qn { + constructor() { + super("more"), this.el.hide(); + } + dropdown() { + return new cg(); + } + show() { + this.el.show(); + } + hide() { + this.el.hide(); + } +} +function ma() { + return $e("div", `${lt}-toolbar-divider`); +} +function dg() { + this.btns2 = [], this.items.forEach((H) => { + if (Array.isArray(H)) + H.forEach(({ el: k }) => { + const e = k.box(), { marginLeft: x, marginRight: _ } = k.computedStyle(); + this.btns2.push([k, e.width + parseInt(x, 10) + parseInt(_, 10)]); + }); + else { + const k = H.box(), { marginLeft: e, marginRight: x } = H.computedStyle(); + this.btns2.push([H, k.width + parseInt(e, 10) + parseInt(x, 10)]); + } + }); +} +function Zl() { + const { + el: H, + btns: k, + moreEl: e, + btns2: x + } = this, { moreBtns: _, contentEl: u } = e.dd; + H.css("width", `${this.widthFn() - 60}px`); + const m = H.box(); + let g = 160, b = 12; + const w = [], f = []; + x.forEach(([y, h], l) => { + g += h, l === x.length - 1 || g < m.width ? w.push(y) : (b += h, f.push(y)); + }), k.html("").children(...w), _.html("").children(...f), u.css("width", `${b}px`), f.length > 0 ? e.show() : e.hide(); +} +class pg { + constructor(k, e, x = !1) { + this.data = k, this.change = () => { + }, this.widthFn = e, this.isHide = x; + const _ = k.defaultStyle(); + this.items = [ + [ + this.undoEl = new fg(), + this.redoEl = new sg(), + new ug(), + this.paintformatEl = new Gb(), + this.clearformatEl = new Kb() + ], + ma(), + [ + this.formatEl = new rg() + ], + ma(), + [ + this.fontEl = new eg(), + this.fontSizeEl = new Qb() + ], + ma(), + [ + this.boldEl = new Db(), + this.italicEl = new Nb(), + this.underlineEl = new Bb(), + this.strikeEl = new Fb(), + this.textColorEl = new Yb(_.color) + ], + ma(), + [ + this.fillColorEl = new Zb(_.bgcolor), + this.borderEl = new Vb(), + this.mergeEl = new og() + ], + ma(), + [ + this.alignEl = new Ab(_.align), + this.valignEl = new Mb(_.valign), + this.textwrapEl = new lg() + ], + ma(), + [ + this.freezeEl = new ag(), + this.autofilterEl = new Ib(), + this.formulaEl = new ig(), + this.moreEl = new hg() + ] + ], this.el = $e("div", `${lt}-toolbar`), this.btns = $e("div", `${lt}-toolbar-btns`), this.items.forEach((u) => { + Array.isArray(u) ? u.forEach((m) => { + this.btns.child(m.el), m.change = (...g) => { + this.change(...g); + }; + }) : this.btns.child(u.el); + }), this.el.child(this.btns), x ? this.el.hide() : (this.reset(), setTimeout(() => { + dg.call(this), Zl.call(this); + }, 0), ln(window, "resize", () => { + Zl.call(this); + })); + } + paintformatActive() { + return this.paintformatEl.active(); + } + paintformatToggle() { + this.paintformatEl.toggle(); + } + trigger(k) { + this[`${k}El`].click(); + } + resetData(k) { + this.data = k, this.reset(); + } + reset() { + if (this.isHide) + return; + const { data: k } = this, e = k.getSelectedCellStyle(); + this.undoEl.setState(!k.canUndo()), this.redoEl.setState(!k.canRedo()), this.mergeEl.setState(k.canUnmerge(), !k.selector.multiple()), this.autofilterEl.setState(!k.canAutofilter()); + const { font: x, format: _ } = e; + this.formatEl.setState(_), this.fontEl.setState(x.name), this.fontSizeEl.setState(x.size), this.boldEl.setState(x.bold), this.italicEl.setState(x.italic), this.underlineEl.setState(e.underline), this.strikeEl.setState(e.strike), this.textColorEl.setState(e.color), this.fillColorEl.setState(e.bgcolor), this.alignEl.setState(e.align), this.valignEl.setState(e.valign), this.textwrapEl.setState(e.textwrap), this.freezeEl.setState(k.freezeIsActive()); + } +} +class yg { + constructor(k, e, x = "600px") { + this.title = k, this.el = $e("div", `${lt}-modal`).css("width", x).children( + $e("div", `${lt}-modal-header`).children( + new Kr("close").on("click.stop", () => this.hide()), + this.title + ), + $e("div", `${lt}-modal-content`).children(...e) + ).hide(); + } + show() { + this.dimmer = $e("div", `${lt}-dimmer active`), document.body.appendChild(this.dimmer.el); + const { width: k, height: e } = this.el.show().box(), { clientHeight: x, clientWidth: _ } = document.documentElement; + this.el.offset({ + left: (_ - k) / 2, + top: (x - e) / 3 + }), window.xkeydownEsc = (u) => { + u.keyCode === 27 && this.hide(); + }, ln(window, "keydown", window.xkeydownEsc); + } + hide() { + this.el.hide(), document.body.removeChild(this.dimmer.el), Go(window, "keydown", window.xkeydownEsc), delete window.xkeydownEsc; + } +} +class ba { + constructor(k, e) { + this.vchange = () => { + }, this.el = $e("div", `${lt}-form-input`), this.input = $e("input", "").css("width", k).on("input", (x) => this.vchange(x)).attr("placeholder", e), this.el.child(this.input); + } + focus() { + setTimeout(() => { + this.input.el.focus(); + }, 10); + } + hint(k) { + this.input.attr("placeholder", k); + } + val(k) { + return this.input.val(k); + } +} +class tf { + constructor(k, e, x, _ = (m) => m, u = () => { + }) { + this.key = k, this.getTitle = _, this.vchange = () => { + }, this.el = $e("div", `${lt}-form-select`), this.suggest = new wc(e.map((m) => ({ key: m, title: this.getTitle(m) })), (m) => { + this.itemClick(m.key), u(m.key), this.vchange(m.key); + }, x, this.el), this.el.children( + this.itemEl = $e("div", "input-text").html(this.getTitle(k)), + this.suggest.el + ).on("click", () => this.show()); + } + show() { + this.suggest.search(""); + } + itemClick(k) { + this.key = k, this.itemEl.html(this.getTitle(k)); + } + val(k) { + return k !== void 0 ? (this.key = k, this.itemEl.html(this.getTitle(k)), this) : this.key; + } +} +const vg = { + number: /(^\d+$)|(^\d+(\.\d{0,4})?$)/, + date: /^\d{4}-\d{1,2}-\d{1,2}$/ +}; +class Oi { + constructor(k, e, x, _) { + this.label = "", this.rule = e, x && (this.label = $e("label", "label").css("width", `${_}px`).html(x)), this.tip = $e("div", "tip").child("tip").hide(), this.input = k, this.input.vchange = () => this.validate(), this.el = $e("div", `${lt}-form-field`).children(this.label, k.el, this.tip); + } + isShow() { + return this.el.css("display") !== "none"; + } + show() { + this.el.show(); + } + hide() { + return this.el.hide(), this; + } + val(k) { + return this.input.val(k); + } + hint(k) { + this.input.hint(k); + } + validate() { + const { + input: k, + rule: e, + tip: x, + el: _ + } = this, u = k.val(); + return e.required && /^\s*$/.test(u) ? (x.html(Cr("validation.required")), _.addClass("error"), !1) : (e.type || e.pattern) && !(e.pattern || vg[e.type]).test(u) ? (x.html(Cr("validation.notMatch")), _.addClass("error"), !1) : (_.removeClass("error"), !0); + } +} +const Jl = 100; +class mg extends yg { + constructor() { + const k = new Oi( + new tf( + "cell", + ["cell"], + // cell|row|column + "100%", + (w) => Cr(`dataValidation.modeType.${w}`) + ), + { required: !0 }, + `${Cr("dataValidation.range")}:`, + Jl + ), e = new Oi( + new ba("120px", "E3 or E3:F12"), + { required: !0, pattern: /^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/ } + ), x = new Oi( + new tf( + "list", + ["list", "number", "date", "phone", "email"], + "100%", + (w) => Cr(`dataValidation.type.${w}`), + (w) => this.criteriaSelected(w) + ), + { required: !0 }, + `${Cr("dataValidation.criteria")}:`, + Jl + ), _ = new Oi( + new tf( + "be", + ["be", "nbe", "eq", "neq", "lt", "lte", "gt", "gte"], + "160px", + (w) => Cr(`dataValidation.operator.${w}`), + (w) => this.criteriaOperatorSelected(w) + ), + { required: !0 } + ).hide(), u = new Oi( + new ba("70px", "10"), + { required: !0 } + ).hide(), m = new Oi( + new ba("70px", "100"), + { required: !0, type: "number" } + ).hide(), g = new Oi( + new ba("120px", "a,b,c"), + { required: !0 } + ), b = new Oi( + new ba("70px", "10"), + { required: !0, type: "number" } + ).hide(); + super(Cr("contextmenu.validation"), [ + $e("div", `${lt}-form-fields`).children( + k.el, + e.el + ), + $e("div", `${lt}-form-fields`).children( + x.el, + _.el, + u.el, + m.el, + b.el, + g.el + ), + $e("div", `${lt}-buttons`).children( + new Li("cancel").on("click", () => this.btnClick("cancel")), + new Li("remove").on("click", () => this.btnClick("remove")), + new Li("save", "primary").on("click", () => this.btnClick("save")) + ) + ]), this.mf = k, this.rf = e, this.cf = x, this.of = _, this.minvf = u, this.maxvf = m, this.vf = b, this.svf = g, this.change = () => { + }; + } + showVf(k) { + const e = k === "date" ? "2018-11-12" : "10", { vf: x } = this; + x.input.hint(e), x.show(); + } + criteriaSelected(k) { + const { + of: e, + minvf: x, + maxvf: _, + vf: u, + svf: m + } = this; + k === "date" || k === "number" ? (e.show(), x.rule.type = k, _.rule.type = k, k === "date" ? (x.hint("2018-11-12"), _.hint("2019-11-12")) : (x.hint("10"), _.hint("100")), x.show(), _.show(), u.hide(), m.hide()) : (k === "list" ? m.show() : m.hide(), u.hide(), e.hide(), x.hide(), _.hide()); + } + criteriaOperatorSelected(k) { + if (!k) + return; + const { + minvf: e, + maxvf: x, + vf: _ + } = this; + if (k === "be" || k === "nbe") + e.show(), x.show(), _.hide(); + else { + const u = this.cf.val(); + _.rule.type = u, u === "date" ? _.hint("2018-11-12") : _.hint("10"), _.show(), e.hide(), x.hide(); + } + } + btnClick(k) { + if (k === "cancel") + this.hide(); + else if (k === "remove") + this.change("remove"), this.hide(); + else if (k === "save") { + const e = ["mf", "rf", "cf", "of", "svf", "vf", "minvf", "maxvf"]; + for (let b = 0; b < e.length; b += 1) { + const w = this[e[b]]; + if (w.isShow() && !w.validate()) + return; + } + const x = this.mf.val(), _ = this.rf.val(), u = this.cf.val(), m = this.of.val(); + let g = this.svf.val(); + (u === "number" || u === "date") && (m === "be" || m === "nbe" ? g = [this.minvf.val(), this.maxvf.val()] : g = this.vf.val()), this.change( + "save", + x, + _, + { + type: u, + operator: m, + required: !1, + value: g + } + ), this.hide(); + } + } + // validation: { mode, ref, validator } + setValue(k) { + if (k) { + const { + mf: e, + rf: x, + cf: _, + of: u, + svf: m, + vf: g, + minvf: b, + maxvf: w + } = this, { + mode: f, + ref: y, + validator: h + } = k, { + type: l, + operator: d, + value: s + } = h || { type: "list" }; + e.val(f || "cell"), x.val(y), _.val(l), u.val(d), Array.isArray(s) ? (b.val(s[0]), w.val(s[1])) : (m.val(s || ""), g.val(s || "")), this.criteriaSelected(l), this.criteriaOperatorSelected(d); + } + this.show(); + } +} +function Cc(H) { + return $e("div", `${lt}-item ${H}`); +} +function Ql(H) { + return Cc("state").child(Cr(`sort.${H}`)).on("click.stop", () => this.itemClick(H)); +} +function bg(H) { + const { filterbEl: k, filterValues: e } = this; + k.html(""), Object.keys(H).forEach((_, u) => { + const m = H[_], g = e.includes(_) ? "checked" : ""; + k.child($e("div", `${lt}-item state ${g}`).on("click.stop", () => this.filterClick(u, _)).children(_ === "" ? Cr("filter.empty") : _, $e("div", "label").html(`(${m})`))); + }); +} +function ql() { + const { filterhEl: H, filterValues: k, values: e } = this; + H.html(`${k.length} / ${e.length}`), H.checked(k.length === e.length); +} +class gg { + constructor() { + this.filterbEl = $e("div", `${lt}-body`), this.filterhEl = $e("div", `${lt}-header state`).on("click.stop", () => this.filterClick(0, "all")), this.el = $e("div", `${lt}-sort-filter`).children( + this.sortAscEl = Ql.call(this, "asc"), + this.sortDescEl = Ql.call(this, "desc"), + Cc("divider"), + $e("div", `${lt}-filter`).children( + this.filterhEl, + this.filterbEl + ), + $e("div", `${lt}-buttons`).children( + new Li("cancel").on("click", () => this.btnClick("cancel")), + new Li("ok", "primary").on("click", () => this.btnClick("ok")) + ) + ).hide(), this.ci = null, this.sortDesc = null, this.values = null, this.filterValues = []; + } + btnClick(k) { + if (k === "ok") { + const { ci: e, sort: x, filterValues: _ } = this; + this.ok && this.ok(e, x, "in", _); + } + this.hide(); + } + itemClick(k) { + this.sort = k; + const { sortAscEl: e, sortDescEl: x } = this; + e.checked(k === "asc"), x.checked(k === "desc"); + } + filterClick(k, e) { + const { filterbEl: x, filterValues: _, values: u } = this, m = x.children(); + e === "all" ? m.length === _.length ? (this.filterValues = [], m.forEach((g) => $e(g).checked(!1))) : (this.filterValues = Array.from(u), m.forEach((g) => $e(g).checked(!0))) : $e(m[k]).toggle("checked") ? _.push(e) : _.splice(_.findIndex((b) => b === e), 1), ql.call(this); + } + // v: autoFilter + // items: {value: cnt} + // sort { ci, order } + set(k, e, x, _) { + this.ci = k; + const { sortAscEl: u, sortDescEl: m } = this; + _ !== null ? (this.sort = _.order, u.checked(_.asc()), m.checked(_.desc())) : (this.sortDesc = null, u.checked(!1), m.checked(!1)), this.values = Object.keys(e), this.filterValues = x ? Array.from(x.value) : Object.keys(e), bg.call(this, e, x), ql.call(this); + } + setOffset(k) { + this.el.offset(k).show(); + let e = 1; + Va(this.el, () => { + e <= 0 && this.hide(), e -= 1; + }); + } + show() { + this.el.show(); + } + hide() { + this.el.hide(), _a(this.el); + } +} +function Pc(H, k) { + const e = $e("div", `${lt}-toast`), x = $e("div", `${lt}-dimmer active`), _ = () => { + document.body.removeChild(e.el), document.body.removeChild(x.el); + }; + e.children( + $e("div", `${lt}-toast-header`).children( + new Kr("close").on("click.stop", () => _()), + H + ), + $e("div", `${lt}-toast-content`).html(k) + ), document.body.appendChild(e.el), document.body.appendChild(x.el); + const { width: u, height: m } = e.box(), { clientHeight: g, clientWidth: b } = document.documentElement; + e.offset({ + left: (b - u) / 2, + top: (g - m) / 3 + }); +} +function rf(H, k) { + let e; + return (...x) => { + const _ = this, u = x; + e || (e = setTimeout(() => { + e = null, H.apply(_, u); + }, k)); + }; +} +function _g() { + const { + data: H, + verticalScrollbar: k, + horizontalScrollbar: e + } = this, { + l: x, + t: _, + left: u, + top: m, + width: g, + height: b + } = H.getSelectedRect(), w = this.getTableOffset(); + if (Math.abs(u) + g > w.width) + e.move({ left: x + g - w.width }); + else { + const f = H.freezeTotalWidth(); + u < f && e.move({ left: x - 1 - f }); + } + if (Math.abs(m) + b > w.height) + k.move({ top: _ + b - w.height - 1 }); + else { + const f = H.freezeTotalHeight(); + m < f && k.move({ top: _ - 1 - f }); + } +} +function zi(H, k, e, x = !0, _ = !1) { + if (k === -1 && e === -1) + return; + const { + table: u, + selector: m, + toolbar: g, + data: b, + contextMenu: w + } = this; + w.setMode(k === -1 || e === -1 ? "row-col" : "range"); + const f = b.getCell(k, e); + H ? (m.setEnd(k, e, _), this.trigger("cells-selected", f, m.range)) : (m.set(k, e, x), this.trigger("cell-selected", f, k, e)), g.reset(), u.render(); +} +function Zn(H, k) { + const { + selector: e, + data: x + } = this, { rows: _, cols: u } = x; + let [m, g] = e.indexes; + const { eri: b, eci: w } = e.range; + H && ([m, g] = e.moveIndexes), k === "left" ? g > 0 && (g -= 1) : k === "right" ? (w !== g && (g = w), g < u.len - 1 && (g += 1)) : k === "up" ? m > 0 && (m -= 1) : k === "down" ? (b !== m && (m = b), m < _.len - 1 && (m += 1)) : k === "row-first" ? g = 0 : k === "row-last" ? g = u.len - 1 : k === "col-first" ? m = 0 : k === "col-last" && (m = _.len - 1), H && (e.moveIndexes = [m, g]), zi.call(this, H, m, g), _g.call(this); +} +function wg(H) { + if (H.buttons !== 0 || H.target.className === `${lt}-resizer-hover`) + return; + const { offsetX: k, offsetY: e } = H, { + rowResizer: x, + colResizer: _, + tableEl: u, + data: m + } = this, { rows: g, cols: b } = m; + if (k > b.indexWidth && e > g.height) { + x.hide(), _.hide(); + return; + } + const w = u.box(), f = m.getCellRectByXY(H.offsetX, H.offsetY); + f.ri >= 0 && f.ci === -1 ? (f.width = b.indexWidth, x.show(f, { + width: w.width + }), g.isHide(f.ri - 1) ? x.showUnhide(f.ri) : x.hideUnhide()) : x.hide(), f.ri === -1 && f.ci >= 0 ? (f.height = g.height, _.show(f, { + height: w.height + }), b.isHide(f.ci - 1) ? _.showUnhide(f.ci) : _.hideUnhide()) : _.hide(); +} +function xg(H) { + const { verticalScrollbar: k, horizontalScrollbar: e, data: x } = this, { top: _ } = k.scroll(), { left: u } = e.scroll(), { rows: m, cols: g } = x, { deltaY: b, deltaX: w } = H, f = (v, c) => { + let a = v, r = 0; + do + r = c(a), a += 1; + while (r <= 0); + return r; + }, y = (v) => { + if (v > 0) { + const c = x.scroll.ri + 1; + if (c < m.len) { + const a = f(c, (r) => m.getHeight(r)); + k.move({ top: _ + a - 1 }); + } + } else { + const c = x.scroll.ri - 1; + if (c >= 0) { + const a = f(c, (r) => m.getHeight(r)); + k.move({ top: c === 0 ? 0 : _ - a }); + } + } + }, h = (v) => { + if (v > 0) { + const c = x.scroll.ci + 1; + if (c < g.len) { + const a = f(c, (r) => g.getWidth(r)); + e.move({ left: u + a - 1 }); + } + } else { + const c = x.scroll.ci - 1; + if (c >= 0) { + const a = f(c, (r) => g.getWidth(r)); + e.move({ left: c === 0 ? 0 : u - a }); + } + } + }, l = Math.abs(b), d = Math.abs(w), s = Math.max(l, d); + /Firefox/i.test(window.navigator.userAgent) && rf(y(H.detail), 50), s === d && rf(h(w), 50), s === l && rf(y(b), 50); +} +function Sg(H, k) { + const { verticalScrollbar: e, horizontalScrollbar: x } = this, { top: _ } = e.scroll(), { left: u } = x.scroll(); + H === "left" || H === "right" ? x.move({ left: u - k }) : (H === "up" || H === "down") && e.move({ top: _ - k }); +} +function Pf() { + const { data: H, verticalScrollbar: k } = this, { height: e } = this.getTableOffset(), x = H.exceptRowTotalHeight(0, -1); + k.set(e, H.rows.totalHeight() - x); +} +function Af() { + const { data: H, horizontalScrollbar: k } = this, { width: e } = this.getTableOffset(); + H && k.set(e, H.cols.totalWidth()); +} +function kg() { + const { + selector: H, + data: k, + editor: e + } = this, [x, _] = k.freeze; + if (x > 0 || _ > 0) { + const u = k.freezeTotalWidth(), m = k.freezeTotalHeight(); + e.setFreezeLengths(u, m); + } + H.resetAreaOffset(); +} +function un() { + const { + tableEl: H, + overlayerEl: k, + overlayerCEl: e, + table: x, + toolbar: _, + selector: u, + el: m + } = this, g = this.getTableOffset(), b = this.getRect(); + H.attr(b), k.offset(b), e.offset(g), m.css("width", `${b.width}px`), Pf.call(this), Af.call(this), kg.call(this), x.render(), _.reset(), u.reset(); +} +function Ka() { + const { data: H, selector: k } = this; + H.clearClipboard(), k.hideClipboard(); +} +function bf() { + const { data: H, selector: k } = this; + H.copy(), H.copyToSystemClipboard(), k.showClipboard(); +} +function ec() { + const { data: H, selector: k } = this; + H.cut(), k.showClipboard(); +} +function Ua(H, k) { + const { data: e } = this; + if (e.settings.mode !== "read") { + if (e.paste(H, (x) => Pc("Tip", x))) + un.call(this); + else if (k) { + const x = k.clipboardData.getData("text/plain"); + this.data.pasteFromText(x), un.call(this); + } + } +} +function Og() { + this.data.hideRowsOrCols(), un.call(this); +} +function tc(H, k) { + this.data.unhideRowsOrCols(H, k), un.call(this); +} +function Eg() { + const { data: H } = this; + H.autofilter(), un.call(this); +} +function Tg() { + const { toolbar: H } = this; + H.paintformatActive() && (Ua.call(this, "format"), Ka.call(this), H.paintformatToggle()); +} +function rc(H) { + const { + selector: k, + data: e, + table: x, + sortFilter: _ + } = this, { offsetX: u, offsetY: m } = H, g = H.target.className === `${lt}-selector-corner`, b = e.getCellRectByXY(u, m), { + left: w, + top: f, + width: y, + height: h + } = b; + let { ri: l, ci: d } = b; + const { autoFilter: s } = e; + if (s.includes(l, d) && w + y - 20 < u && f + h - 20 < m) { + const v = s.items(d, (c, a) => e.rows.getCell(c, a)); + _.hide(), _.set(d, v, s.getFilter(d), s.getSort(d)), _.setOffset({ left: w, top: f + h + 2 }); + return; + } + H.shiftKey || (g ? k.showAutofill(l, d) : zi.call(this, !1, l, d), vc(window, (v) => { + ({ ri: l, ci: d } = e.getCellRectByXY(v.offsetX, v.offsetY)), g ? k.showAutofill(l, d) : v.buttons === 1 && !v.shiftKey && zi.call(this, !0, l, d, !0, !0); + }, () => { + g && k.arange && e.settings.mode !== "read" && e.autofill(k.arange, "all", (v) => Pc("Tip", v)) && x.render(), k.hideAutofill(), Tg.call(this); + })), !g && H.buttons === 1 && H.shiftKey && zi.call(this, !0, l, d); +} +function Ga() { + const { editor: H, data: k } = this, e = k.getSelectedRect(), x = this.getTableOffset(); + let _ = "top"; + e.top > x.height / 2 && (_ = "bottom"), H.setOffset(e, _); +} +function $a() { + const { editor: H, data: k } = this; + k.settings.mode !== "read" && (Ga.call(this), H.setCell(k.getSelectedCell(), k.getSelectedValidator()), Ka.call(this)); +} +function Rg(H) { + const { data: k, table: e, selector: x } = this; + k.scrolly(H, () => { + x.resetBRLAreaOffset(), Ga.call(this), e.render(); + }); +} +function Cg(H) { + const { data: k, table: e, selector: x } = this; + k.scrollx(H, () => { + x.resetBRTAreaOffset(), Ga.call(this), e.render(); + }); +} +function Pg(H, k) { + const { ri: e } = H, { table: x, selector: _, data: u } = this; + u.rows.setHeight(e, k), x.render(), _.resetAreaOffset(), Pf.call(this), Ga.call(this); +} +function Ag(H, k) { + const { ci: e } = H, { table: x, selector: _, data: u } = this; + u.cols.setWidth(e, k), x.render(), _.resetAreaOffset(), Af.call(this), Ga.call(this); +} +function nf(H, k = "finished") { + const { data: e, table: x } = this; + if (e.settings.mode === "read") + return; + e.setSelectedCellText(H, k); + const { ri: _, ci: u } = e.selector; + k === "finished" ? x.render() : this.trigger("cell-edited", H, _, u); +} +function Uo(H) { + const { data: k } = this; + k.settings.mode !== "read" && (H === "insert-row" ? k.insert("row") : H === "delete-row" ? k.delete("row") : H === "insert-column" ? k.insert("column") : H === "delete-column" ? k.delete("column") : H === "delete-cell" ? k.deleteCell() : H === "delete-cell-format" ? k.deleteCell("format") : H === "delete-cell-text" ? k.deleteCell("text") : H === "cell-printable" ? k.setSelectedCellAttr("printable", !0) : H === "cell-non-printable" ? k.setSelectedCellAttr("printable", !1) : H === "cell-editable" ? k.setSelectedCellAttr("editable", !0) : H === "cell-non-editable" && k.setSelectedCellAttr("editable", !1), Ka.call(this), un.call(this)); +} +function Mg(H, k) { + const { data: e } = this; + if (H === "undo") + this.undo(); + else if (H === "redo") + this.redo(); + else if (H === "print") + this.print.preview(); + else if (H === "paintformat") + k === !0 ? bf.call(this) : Ka.call(this); + else if (H === "clearformat") + Uo.call(this, "delete-cell-format"); + else if (H !== "link") { + if (H !== "chart") + if (H === "autofilter") + Eg.call(this); + else if (H === "freeze") + if (k) { + const { ri: x, ci: _ } = e.selector; + this.freeze(x, _); + } else + this.freeze(0, 0); + else + e.setSelectedCellAttr(H, k), H === "formula" && !e.selector.multiple() && $a.call(this), un.call(this); + } +} +function Ig(H, k, e, x) { + this.data.setAutoFilter(H, k, e, x), un.call(this); +} +function Dg() { + const { + selector: H, + overlayerEl: k, + rowResizer: e, + colResizer: x, + verticalScrollbar: _, + horizontalScrollbar: u, + editor: m, + contextMenu: g, + toolbar: b, + modalValidation: w, + sortFilter: f + } = this; + k.on("mousemove", (y) => { + wg.call(this, y); + }).on("mousedown", (y) => { + m.clear(), g.hide(), y.buttons === 2 ? (this.data.xyInSelectedRect(y.offsetX, y.offsetY) || rc.call(this, y), g.setPosition(y.offsetX, y.offsetY), y.stopPropagation()) : y.detail === 2 ? $a.call(this) : rc.call(this, y); + }).on("mousewheel.stop", (y) => { + xg.call(this, y); + }).on("mouseout", (y) => { + const { offsetX: h, offsetY: l } = y; + l <= 0 && x.hide(), h <= 0 && e.hide(); + }), H.inputChange = (y) => { + nf.call(this, y, "input"), $a.call(this); + }, Hm(k.el, { + move: (y, h) => { + Sg.call(this, y, h); + } + }), b.change = (y, h) => Mg.call(this, y, h), f.ok = (y, h, l, d) => Ig.call(this, y, h, l, d), e.finishedFn = (y, h) => { + Pg.call(this, y, h); + }, x.finishedFn = (y, h) => { + Ag.call(this, y, h); + }, e.unhideFn = (y) => { + tc.call(this, "row", y); + }, x.unhideFn = (y) => { + tc.call(this, "col", y); + }, _.moveFn = (y, h) => { + Rg.call(this, y, h); + }, u.moveFn = (y, h) => { + Cg.call(this, y, h); + }, m.change = (y, h) => { + nf.call(this, h, y); + }, w.change = (y, ...h) => { + y === "save" ? this.data.addValidation(...h) : this.data.removeValidation(); + }, g.itemClick = (y) => { + y === "validation" ? w.setValue(this.data.getSelectedValidation()) : y === "copy" ? bf.call(this) : y === "cut" ? ec.call(this) : y === "paste" ? Ua.call(this, "all") : y === "paste-value" ? Ua.call(this, "text") : y === "paste-format" ? Ua.call(this, "format") : y === "hide" ? Og.call(this) : Uo.call(this, y); + }, ln(window, "resize", () => { + this.reload(); + }), ln(window, "click", (y) => { + this.focusing = k.contains(y.target); + }), ln(window, "paste", (y) => { + this.focusing && (Ua.call(this, "all", y), y.preventDefault()); + }), ln(window, "keydown", (y) => { + if (!this.focusing) + return; + const h = y.keyCode || y.which, { + key: l, + ctrlKey: d, + shiftKey: s, + metaKey: v + } = y; + if (d || v) + switch (h) { + case 90: + this.undo(), y.preventDefault(); + break; + case 89: + this.redo(), y.preventDefault(); + break; + case 67: + bf.call(this), y.preventDefault(); + break; + case 88: + ec.call(this), y.preventDefault(); + break; + case 85: + b.trigger("underline"), y.preventDefault(); + break; + case 86: + break; + case 37: + Zn.call(this, s, "row-first"), y.preventDefault(); + break; + case 38: + Zn.call(this, s, "col-first"), y.preventDefault(); + break; + case 39: + Zn.call(this, s, "row-last"), y.preventDefault(); + break; + case 40: + Zn.call(this, s, "col-last"), y.preventDefault(); + break; + case 32: + zi.call(this, !1, -1, this.data.selector.ci, !1), y.preventDefault(); + break; + case 66: + b.trigger("bold"); + break; + case 73: + b.trigger("italic"); + break; + } + else { + switch (h) { + case 32: + s && zi.call(this, !1, this.data.selector.ri, -1, !1); + break; + case 27: + g.hide(), Ka.call(this); + break; + case 37: + Zn.call(this, s, "left"), y.preventDefault(); + break; + case 38: + Zn.call(this, s, "up"), y.preventDefault(); + break; + case 39: + Zn.call(this, s, "right"), y.preventDefault(); + break; + case 40: + Zn.call(this, s, "down"), y.preventDefault(); + break; + case 9: + m.clear(), Zn.call(this, !1, s ? "left" : "right"), y.preventDefault(); + break; + case 13: + m.clear(), Zn.call(this, !1, s ? "up" : "down"), y.preventDefault(); + break; + case 8: + Uo.call(this, "delete-cell-text"), y.preventDefault(); + break; + } + l === "Delete" ? (Uo.call(this, "delete-cell-text"), y.preventDefault()) : h >= 65 && h <= 90 || h >= 48 && h <= 57 || h >= 96 && h <= 105 || y.key === "=" ? (nf.call(this, y.key, "input"), $a.call(this)) : h === 113 && $a.call(this); + } + }); +} +class Ng { + constructor(k, e) { + this.eventMap = Xm(); + const { view: x, showToolbar: _, showContextmenu: u } = e.settings; + this.el = $e("div", `${lt}-sheet`), this.toolbar = new pg(e, x.width, !_), this.print = new kb(e), k.children(this.toolbar.el, this.el, this.print.el), this.data = e, this.tableEl = $e("canvas", `${lt}-table`), this.rowResizer = new jl(!1, e.rows.height), this.colResizer = new jl(!0, e.cols.minWidth), this.verticalScrollbar = new Ll(!0), this.horizontalScrollbar = new Ll(!1), this.editor = new ob( + db, + () => this.getTableOffset(), + e.rows.height + ), this.modalValidation = new mg(), this.contextMenu = new Rb(() => this.getRect(), !u), this.selector = new Wm(e), this.overlayerCEl = $e("div", `${lt}-overlayer-content`).children( + this.editor.el, + this.selector.el + ), this.overlayerEl = $e("div", `${lt}-overlayer`).child(this.overlayerCEl), this.sortFilter = new gg(), this.el.children( + this.tableEl, + this.overlayerEl.el, + this.rowResizer.el, + this.colResizer.el, + this.verticalScrollbar.el, + this.horizontalScrollbar.el, + this.contextMenu.el, + this.modalValidation.el, + this.sortFilter.el + ), this.table = new wb(this.tableEl.el, e), Dg.call(this), un.call(this), zi.call(this, !1, 0, 0); + } + on(k, e) { + return this.eventMap.on(k, e), this; + } + trigger(k, ...e) { + const { eventMap: x } = this; + x.fire(k, e); + } + resetData(k) { + this.editor.clear(), this.data = k, Pf.call(this), Af.call(this), this.toolbar.resetData(k), this.print.resetData(k), this.selector.resetData(k), this.table.resetData(k); + } + loadData(k) { + return this.data.setData(k), un.call(this), this; + } + // freeze rows or cols + freeze(k, e) { + const { data: x } = this; + return x.setFreeze(k, e), un.call(this), this; + } + undo() { + this.data.undo(), un.call(this); + } + redo() { + this.data.redo(), un.call(this); + } + reload() { + return un.call(this), this; + } + getRect() { + const { data: k } = this; + return { width: k.viewWidth(), height: k.viewHeight() }; + } + getTableOffset() { + const { rows: k, cols: e } = this.data, { width: x, height: _ } = this.getRect(); + return { + width: x - e.indexWidth, + height: _ - k.height, + left: e.indexWidth, + top: k.height + }; + } +} +class Fg extends qn { + constructor(k) { + const e = new Kr("ellipsis"); + super(e, "auto", !1, "top-left"), this.contentClick = k; + } + reset(k) { + const e = k.map((x, _) => $e("div", `${lt}-item`).css("width", "150px").css("font-weight", "normal").on("click", () => { + this.contentClick(_), this.hide(); + }).child(x)); + this.setContentChildren(...e); + } + setTitle() { + } +} +const Bg = [ + { key: "delete", title: Jt("contextmenu.deleteSheet") } +]; +function jg(H) { + return $e("div", `${lt}-item`).child(H.title()).on("click", () => { + this.itemClick(H.key), this.hide(); + }); +} +function Lg() { + return Bg.map((H) => jg.call(this, H)); +} +class zg { + constructor() { + this.el = $e("div", `${lt}-contextmenu`).css("width", "160px").children(...Lg.call(this)).hide(), this.itemClick = () => { + }; + } + hide() { + const { el: k } = this; + k.hide(), _a(k); + } + setOffset(k) { + const { el: e } = this; + e.offset(k), e.show(), Va(e); + } +} +class Hg { + constructor(k = () => { + }, e = () => { + }, x = () => { + }, _ = () => { + }) { + this.swapFunc = e, this.updateFunc = _, this.dataNames = [], this.activeEl = null, this.deleteEl = null, this.items = [], this.moreEl = new Fg((u) => { + this.clickSwap2(this.items[u]); + }), this.contextMenu = new zg(), this.contextMenu.itemClick = x, this.el = $e("div", `${lt}-bottombar`).children( + this.contextMenu.el, + this.menuEl = $e("ul", `${lt}-menu`).child( + $e("li", "").children( + new Kr("add").on("click", () => { + k(); + }), + $e("span", "").child(this.moreEl) + ) + ) + ); + } + addItem(k, e) { + this.dataNames.push(k); + const x = $e("li", e ? "active" : "").child(k); + x.on("click", () => { + this.clickSwap2(x); + }).on("contextmenu", (_) => { + const { offsetLeft: u, offsetHeight: m } = _.target; + this.contextMenu.setOffset({ left: u, bottom: m + 1 }), this.deleteEl = x; + }).on("dblclick", () => { + const _ = x.html(), u = new ba("auto", ""); + u.val(_), u.input.on("blur", ({ target: m }) => { + const { value: g } = m, b = this.dataNames.findIndex((w) => w === _); + this.renameItem(b, g); + }), x.html("").child(u.el), u.focus(); + }), e && this.clickSwap(x), this.items.push(x), this.menuEl.child(x), this.moreEl.reset(this.dataNames); + } + renameItem(k, e) { + this.dataNames.splice(k, 1, e), this.moreEl.reset(this.dataNames), this.items[k].html("").child(e), this.updateFunc(k, e); + } + clear() { + this.items.forEach((k) => { + this.menuEl.removeChild(k.el); + }), this.items = [], this.dataNames = [], this.moreEl.reset(this.dataNames); + } + deleteItem() { + const { activeEl: k, deleteEl: e } = this; + if (this.items.length > 1) { + const x = this.items.findIndex((_) => _ === e); + if (this.items.splice(x, 1), this.dataNames.splice(x, 1), this.menuEl.removeChild(e.el), this.moreEl.reset(this.dataNames), k === e) { + const [_] = this.items; + return this.activeEl = _, this.activeEl.toggle(), [x, 0]; + } + return [x, -1]; + } + return [-1]; + } + clickSwap2(k) { + const e = this.items.findIndex((x) => x === k); + this.clickSwap(k), this.activeEl.toggle(), this.swapFunc(e); + } + clickSwap(k) { + this.activeEl !== null && this.activeEl.toggle(), this.activeEl = k; + } +} +class Ac { + constructor(k, e = {}) { + let x = k; + this.options = Qs({ showBottomBar: !0 }, e), this.sheetIndex = 1, this.datas = [], typeof k == "string" && (x = document.querySelector(k)), this.bottombar = this.options.showBottomBar ? new Hg(() => { + const u = this.addSheet(); + this.sheet.resetData(u); + }, (u) => { + const m = this.datas[u]; + this.sheet.resetData(m); + }, () => { + this.deleteSheet(); + }, (u, m) => { + this.datas[u].name = m; + }) : null, this.data = this.addSheet(); + const _ = $e("div", `${lt}`).on("contextmenu", (u) => u.preventDefault()); + x.appendChild(_.el), this.sheet = new Ng(_, this.data), this.bottombar !== null && _.child(this.bottombar.el); + } + addSheet(k, e = !0) { + const x = k || `sheet${this.sheetIndex}`, _ = new zm(x, this.options); + return _.change = (...u) => { + this.sheet.trigger("change", ...u); + }, this.datas.push(_), this.bottombar !== null && this.bottombar.addItem(x, e), this.sheetIndex += 1, _; + } + deleteSheet() { + if (this.bottombar === null) + return; + const [k, e] = this.bottombar.deleteItem(); + k >= 0 && (this.datas.splice(k, 1), e >= 0 && this.sheet.resetData(this.datas[e])); + } + loadData(k) { + const e = Array.isArray(k) ? k : [k]; + if (this.bottombar !== null && this.bottombar.clear(), this.datas = [], e.length > 0) + for (let x = 0; x < e.length; x += 1) { + const _ = e[x], u = this.addSheet(_.name, x === 0); + u.setData(_), x === 0 && this.sheet.resetData(u); + } + return this; + } + getData() { + return this.datas.map((k) => k.getData()); + } + cellText(k, e, x, _ = 0) { + return this.datas[_].setCellText(k, e, x, "finished"), this; + } + cell(k, e, x = 0) { + return this.datas[x].getCell(k, e); + } + cellStyle(k, e, x = 0) { + return this.datas[x].getCellStyle(k, e); + } + reRender() { + return this.sheet.table.render(), this; + } + on(k, e) { + return this.sheet.on(k, e), this; + } + validate() { + const { validations: k } = this.data; + return k.errors.size <= 0; + } + change(k) { + return this.sheet.on("change", k), this; + } + static locale(k, e) { + pc(k, e); + } +} +const Xg = (H, k = {}) => new Ac(H, k); +window && (window.x_spreadsheet = Xg, window.x_spreadsheet.locale = (H, k) => pc(H, k)); +var Wt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}; +function zo(H) { + throw new Error('Could not dynamically require "' + H + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); +} +var gf = {}, Ug = { + get exports() { + return gf; + }, + set exports(H) { + gf = H; + } +}; +(function(H, k) { + (function(e) { + H.exports = e(); + })(function() { + return function() { + function e(x, _, u) { + function m(w, f) { + if (!_[w]) { + if (!x[w]) { + var y = typeof zo == "function" && zo; + if (!f && y) + return y(w, !0); + if (g) + return g(w, !0); + var h = new Error("Cannot find module '" + w + "'"); + throw h.code = "MODULE_NOT_FOUND", h; + } + var l = _[w] = { exports: {} }; + x[w][0].call(l.exports, function(d) { + var s = x[w][1][d]; + return m(s || d); + }, l, l.exports, e, x, _, u); + } + return _[w].exports; + } + for (var g = typeof zo == "function" && zo, b = 0; b < u.length; b++) + m(u[b]); + return m; + } + return e; + }()({ 1: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n, o, p, O, P, F) { + try { + var z = i[P](F), N = z.value; + } catch (M) { + o(M); + return; + } + z.done ? n(N) : Promise.resolve(N).then(p, O); + } + function g(i) { + return function() { + var n = this, o = arguments; + return new Promise(function(p, O) { + var P = i.apply(n, o); + function F(N) { + m(P, p, O, F, z, "next", N); + } + function z(N) { + m(P, p, O, F, z, "throw", N); + } + F(void 0); + }); + }; + } + function b(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function w(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function f(i, n, o) { + return n && w(i.prototype, n), o && w(i, o), i; + } + var y = e("fs"), h = e("fast-csv"), l = e("dayjs/plugin/customParseFormat"), d = e("dayjs/plugin/utc"), s = e("dayjs").extend(l).extend(d), v = e("../utils/stream-buf"), c = e("../utils/utils"), a = c.fs.exists, r = { + true: !0, + false: !1, + "#N/A": { + error: "#N/A" + }, + "#REF!": { + error: "#REF!" + }, + "#NAME?": { + error: "#NAME?" + }, + "#DIV/0!": { + error: "#DIV/0!" + }, + "#NULL!": { + error: "#NULL!" + }, + "#VALUE!": { + error: "#VALUE!" + }, + "#NUM!": { + error: "#NUM!" + } + }, t = /* @__PURE__ */ function() { + function i(n) { + b(this, i), this.workbook = n, this.worksheet = null; + } + return f(i, [{ + key: "readFile", + value: function() { + var n = g(/* @__PURE__ */ regeneratorRuntime.mark(function p(O, P) { + var F, z; + return regeneratorRuntime.wrap(function(M) { + for (; ; ) + switch (M.prev = M.next) { + case 0: + return P = P || {}, M.next = 3, a(O); + case 3: + if (M.sent) { + M.next = 5; + break; + } + throw new Error("File not found: ".concat(O)); + case 5: + return F = y.createReadStream(O), M.next = 8, this.read(F, P); + case 8: + return z = M.sent, F.close(), M.abrupt("return", z); + case 11: + case "end": + return M.stop(); + } + }, p, this); + })); + function o(p, O) { + return n.apply(this, arguments); + } + return o; + }() + }, { + key: "read", + value: function(o, p) { + var O = this; + return p = p || {}, new Promise(function(P, F) { + var z = O.workbook.addWorksheet(p.sheetName), N = p.dateFormats || ["YYYY-MM-DD[T]HH:mm:ssZ", "YYYY-MM-DD[T]HH:mm:ss", "MM-DD-YYYY", "YYYY-MM-DD"], M = p.map || function(R) { + if (R === "") + return null; + var C = Number(R); + if (!Number.isNaN(C) && C !== 1 / 0) + return C; + var E = N.reduce(function(L, $) { + if (L) + return L; + var W = s(R, $, !0); + return W.isValid() ? W : null; + }, null); + if (E) + return new Date(E.valueOf()); + var A = r[R]; + return A !== void 0 ? A : R; + }, I = h.parse(p.parserOptions).on("data", function(R) { + z.addRow(R.map(M)); + }).on("end", function() { + I.emit("worksheet", z); + }); + I.on("worksheet", P).on("error", F), o.pipe(I); + }); + } + /** + * @deprecated since version 4.0. You should use `CSV#read` instead. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md + */ + }, { + key: "createInputStream", + value: function() { + throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md"); + } + }, { + key: "write", + value: function(o, p) { + var O = this; + return new Promise(function(P, F) { + p = p || {}; + var z = O.workbook.getWorksheet(p.sheetName || p.sheetId), N = h.format(p.formatterOptions); + o.on("finish", function() { + P(); + }), N.on("error", F), N.pipe(o); + var M = p, I = M.dateFormat, R = M.dateUTC, C = p.map || function(L) { + if (L) { + if (L.text || L.hyperlink) + return L.hyperlink || L.text || ""; + if (L.formula || L.result) + return L.result || ""; + if (L instanceof Date) + return I ? R ? s.utc(L).format(I) : s(L).format(I) : R ? s.utc(L).format() : s(L).format(); + if (L.error) + return L.error; + if (u(L) === "object") + return JSON.stringify(L); + } + return L; + }, E = p.includeEmptyRows === void 0 || p.includeEmptyRows, A = 1; + z && z.eachRow(function(L, $) { + if (E) + for (; A++ < $ - 1; ) + N.write([]); + var W = L.values; + W.shift(), N.write(W.map(C)), A = $; + }), N.end(); + }); + } + }, { + key: "writeFile", + value: function(o, p) { + p = p || {}; + var O = { + encoding: p.encoding || "utf8" + }, P = y.createWriteStream(o, O); + return this.write(P, p); + } + }, { + key: "writeBuffer", + value: function() { + var n = g(/* @__PURE__ */ regeneratorRuntime.mark(function p(O) { + var P; + return regeneratorRuntime.wrap(function(z) { + for (; ; ) + switch (z.prev = z.next) { + case 0: + return P = new v(), z.next = 3, this.write(P, O); + case 3: + return z.abrupt("return", P.read()); + case 4: + case "end": + return z.stop(); + } + }, p, this); + })); + function o(p) { + return n.apply(this, arguments); + } + return o; + }() + }]), i; + }(); + x.exports = t; + }, { "../utils/stream-buf": 23, "../utils/utils": 26, dayjs: 336, "dayjs/plugin/customParseFormat": 337, "dayjs/plugin/utc": 338, "fast-csv": 369, fs: 215 }], 2: [function(e, x, _) { + function u(f, y) { + if (!(f instanceof y)) + throw new TypeError("Cannot call a class as a function"); + } + function m(f, y) { + for (var h = 0; h < y.length; h++) { + var l = y[h]; + l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l); + } + } + function g(f, y, h) { + return y && m(f.prototype, y), h && m(f, h), f; + } + var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() { + function f(y, h) { + var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; + if (u(this, f), !h) + this.nativeCol = 0, this.nativeColOff = 0, this.nativeRow = 0, this.nativeRowOff = 0; + else if (typeof h == "string") { + var d = b.decodeAddress(h); + this.nativeCol = d.col + l, this.nativeColOff = 0, this.nativeRow = d.row + l, this.nativeRowOff = 0; + } else + h.nativeCol !== void 0 ? (this.nativeCol = h.nativeCol || 0, this.nativeColOff = h.nativeColOff || 0, this.nativeRow = h.nativeRow || 0, this.nativeRowOff = h.nativeRowOff || 0) : h.col !== void 0 ? (this.col = h.col + l, this.row = h.row + l) : (this.nativeCol = 0, this.nativeColOff = 0, this.nativeRow = 0, this.nativeRowOff = 0); + this.worksheet = y; + } + return g(f, [{ + key: "col", + get: function() { + return this.nativeCol + Math.min(this.colWidth - 1, this.nativeColOff) / this.colWidth; + }, + set: function(h) { + this.nativeCol = Math.floor(h), this.nativeColOff = Math.floor((h - this.nativeCol) * this.colWidth); + } + }, { + key: "row", + get: function() { + return this.nativeRow + Math.min(this.rowHeight - 1, this.nativeRowOff) / this.rowHeight; + }, + set: function(h) { + this.nativeRow = Math.floor(h), this.nativeRowOff = Math.floor((h - this.nativeRow) * this.rowHeight); + } + }, { + key: "colWidth", + get: function() { + return this.worksheet && this.worksheet.getColumn(this.nativeCol + 1) && this.worksheet.getColumn(this.nativeCol + 1).isCustomWidth ? Math.floor(this.worksheet.getColumn(this.nativeCol + 1).width * 1e4) : 64e4; + } + }, { + key: "rowHeight", + get: function() { + return this.worksheet && this.worksheet.getRow(this.nativeRow + 1) && this.worksheet.getRow(this.nativeRow + 1).height ? Math.floor(this.worksheet.getRow(this.nativeRow + 1).height * 1e4) : 18e4; + } + }, { + key: "model", + get: function() { + return { + nativeCol: this.nativeCol, + nativeColOff: this.nativeColOff, + nativeRow: this.nativeRow, + nativeRowOff: this.nativeRowOff + }; + }, + set: function(h) { + this.nativeCol = h.nativeCol, this.nativeColOff = h.nativeColOff, this.nativeRow = h.nativeRow, this.nativeRowOff = h.nativeRowOff; + } + }], [{ + key: "asInstance", + value: function(h) { + return h instanceof f || h == null ? h : new f(h); + } + }]), f; + }(); + x.exports = w; + }, { "../utils/col-cache": 19 }], 3: [function(e, x, _) { + function u(z, N) { + if (!(z instanceof N)) + throw new TypeError("Cannot call a class as a function"); + } + function m(z, N) { + for (var M = 0; M < N.length; M++) { + var I = N[M]; + I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I); + } + } + function g(z, N, M) { + return N && m(z.prototype, N), M && m(z, M), z; + } + var b = e("../utils/col-cache"), w = e("../utils/under-dash"), f = e("./enums"), y = e("../utils/shared-formula"), h = y.slideFormula, l = e("./note"), d = /* @__PURE__ */ function() { + function z(N, M, I) { + if (u(this, z), !N || !M) + throw new Error("A Cell needs a Row"); + this._row = N, this._column = M, b.validateAddress(I), this._address = I, this._value = F.create(z.Types.Null, this), this.style = this._mergeStyle(N.style, M.style, {}), this._mergeCount = 0; + } + return g(z, [{ + key: "destroy", + // help GC by removing cyclic (and other) references + value: function() { + delete this.style, delete this._value, delete this._row, delete this._column, delete this._address; + } + // ========================================================================= + // Styles stuff + }, { + key: "_mergeStyle", + value: function(M, I, R) { + var C = M && M.numFmt || I && I.numFmt; + C && (R.numFmt = C); + var E = M && M.font || I && I.font; + E && (R.font = E); + var A = M && M.alignment || I && I.alignment; + A && (R.alignment = A); + var L = M && M.border || I && I.border; + L && (R.border = L); + var $ = M && M.fill || I && I.fill; + $ && (R.fill = $); + var W = M && M.protection || I && I.protection; + return W && (R.protection = W), R; + } + // ========================================================================= + // return the address for this cell + }, { + key: "toCsvString", + value: function() { + return this._value.toCsvString(); + } + // ========================================================================= + // Merge stuff + }, { + key: "addMergeRef", + value: function() { + this._mergeCount++; + } + }, { + key: "releaseMergeRef", + value: function() { + this._mergeCount--; + } + }, { + key: "merge", + value: function(M, I) { + this._value.release(), this._value = F.create(z.Types.Merge, this, M), I || (this.style = M.style); + } + }, { + key: "unmerge", + value: function() { + this.type === z.Types.Merge && (this._value.release(), this._value = F.create(z.Types.Null, this), this.style = this._mergeStyle(this._row.style, this._column.style, {})); + } + }, { + key: "isMergedTo", + value: function(M) { + return this._value.type !== z.Types.Merge ? !1 : this._value.isMergedTo(M); + } + }, { + key: "toString", + value: function() { + return this.text; + } + }, { + key: "_upgradeToHyperlink", + value: function(M) { + this.type === z.Types.String && (this._value = F.create(z.Types.Hyperlink, this, { + text: this._value.value, + hyperlink: M + })); + } + // ========================================================================= + // Formula stuff + }, { + key: "addName", + value: function(M) { + this.workbook.definedNames.addEx(this.fullAddress, M); + } + }, { + key: "removeName", + value: function(M) { + this.workbook.definedNames.removeEx(this.fullAddress, M); + } + }, { + key: "removeAllNames", + value: function() { + this.workbook.definedNames.removeAllNames(this.fullAddress); + } + // ========================================================================= + // Data Validation stuff + }, { + key: "worksheet", + get: function() { + return this._row.worksheet; + } + }, { + key: "workbook", + get: function() { + return this._row.worksheet.workbook; + } + }, { + key: "numFmt", + get: function() { + return this.style.numFmt; + }, + set: function(M) { + this.style.numFmt = M; + } + }, { + key: "font", + get: function() { + return this.style.font; + }, + set: function(M) { + this.style.font = M; + } + }, { + key: "alignment", + get: function() { + return this.style.alignment; + }, + set: function(M) { + this.style.alignment = M; + } + }, { + key: "border", + get: function() { + return this.style.border; + }, + set: function(M) { + this.style.border = M; + } + }, { + key: "fill", + get: function() { + return this.style.fill; + }, + set: function(M) { + this.style.fill = M; + } + }, { + key: "protection", + get: function() { + return this.style.protection; + }, + set: function(M) { + this.style.protection = M; + } + }, { + key: "address", + get: function() { + return this._address; + } + }, { + key: "row", + get: function() { + return this._row.number; + } + }, { + key: "col", + get: function() { + return this._column.number; + } + }, { + key: "$col$row", + get: function() { + return "$".concat(this._column.letter, "$").concat(this.row); + } + // ========================================================================= + // Value stuff + }, { + key: "type", + get: function() { + return this._value.type; + } + }, { + key: "effectiveType", + get: function() { + return this._value.effectiveType; + } + }, { + key: "isMerged", + get: function() { + return this._mergeCount > 0 || this.type === z.Types.Merge; + } + }, { + key: "master", + get: function() { + return this.type === z.Types.Merge ? this._value.master : this; + } + }, { + key: "isHyperlink", + get: function() { + return this._value.type === z.Types.Hyperlink; + } + }, { + key: "hyperlink", + get: function() { + return this._value.hyperlink; + } + // return the value + }, { + key: "value", + get: function() { + return this._value.value; + }, + set: function(M) { + if (this.type === z.Types.Merge) { + this._value.master.value = M; + return; + } + this._value.release(), this._value = F.create(F.getType(M), this, M); + } + }, { + key: "note", + get: function() { + return this._comment && this._comment.note; + }, + set: function(M) { + this._comment = new l(M); + } + }, { + key: "text", + get: function() { + return this._value.toString(); + } + }, { + key: "html", + get: function() { + return w.escapeHtml(this.text); + } + }, { + key: "formula", + get: function() { + return this._value.formula; + } + }, { + key: "result", + get: function() { + return this._value.result; + } + }, { + key: "formulaType", + get: function() { + return this._value.formulaType; + } + // ========================================================================= + // Name stuff + }, { + key: "fullAddress", + get: function() { + var M = this._row.worksheet; + return { + sheetName: M.name, + address: this.address, + row: this.row, + col: this.col + }; + } + }, { + key: "name", + get: function() { + return this.names[0]; + }, + set: function(M) { + this.names = [M]; + } + }, { + key: "names", + get: function() { + return this.workbook.definedNames.getNamesEx(this.fullAddress); + }, + set: function(M) { + var I = this, R = this.workbook.definedNames; + R.removeAllNames(this.fullAddress), M.forEach(function(C) { + R.addEx(I.fullAddress, C); + }); + } + }, { + key: "_dataValidations", + get: function() { + return this.worksheet.dataValidations; + } + }, { + key: "dataValidation", + get: function() { + return this._dataValidations.find(this.address); + }, + set: function(M) { + this._dataValidations.add(this.address, M); + } + // ========================================================================= + // Model stuff + }, { + key: "model", + get: function() { + var M = this._value.model; + return M.style = this.style, this._comment && (M.comment = this._comment.model), M; + }, + set: function(M) { + if (this._value.release(), this._value = F.create(M.type, this), this._value.model = M, M.comment) + switch (M.comment.type) { + case "note": + this._comment = l.fromModel(M.comment); + break; + } + M.style ? this.style = M.style : this.style = {}; + } + }]), z; + }(); + d.Types = f.ValueType; + var s = /* @__PURE__ */ function() { + function z(N) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Null + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return ""; + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return ""; + } + }, { + key: "value", + get: function() { + return null; + }, + set: function(M) { + } + }, { + key: "type", + get: function() { + return d.Types.Null; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Null; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), v = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Number, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.Number; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Number; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), c = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.String, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return '"'.concat(this.model.value.replace(/"/g, '""'), '"'); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value; + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.String; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.String; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), a = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.String, + value: M + }; + } + return g(z, [{ + key: "toString", + value: function() { + return this.model.value.richText.map(function(M) { + return M.text; + }).join(""); + } + }, { + key: "toCsvString", + value: function() { + return '"'.concat(this.text.replace(/"/g, '""'), '"'); + } + }, { + key: "release", + value: function() { + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.RichText; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.RichText; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), r = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Date, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.value.toISOString(); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.Date; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Date; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), t = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Hyperlink, + text: M ? M.text : void 0, + hyperlink: M ? M.hyperlink : void 0 + }, M && M.tooltip && (this.model.tooltip = M.tooltip); + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.hyperlink; + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.text; + } + }, { + key: "value", + get: function() { + var M = { + text: this.model.text, + hyperlink: this.model.hyperlink + }; + return this.model.tooltip && (M.tooltip = this.model.tooltip), M; + }, + set: function(M) { + this.model = { + text: M.text, + hyperlink: M.hyperlink + }, M.tooltip && (this.model.tooltip = M.tooltip); + } + }, { + key: "text", + get: function() { + return this.model.text; + }, + set: function(M) { + this.model.text = M; + } + /* + get tooltip() { + return this.model.tooltip; + } + set tooltip(value) { + this.model.tooltip = value; + } */ + }, { + key: "hyperlink", + get: function() { + return this.model.hyperlink; + }, + set: function(M) { + this.model.hyperlink = M; + } + }, { + key: "type", + get: function() { + return d.Types.Hyperlink; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Hyperlink; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), i = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Merge, + master: M ? M.address : void 0 + }, this._master = M, M && M.addMergeRef(); + } + return g(z, [{ + key: "isMergedTo", + value: function(M) { + return M === this._master; + } + }, { + key: "toCsvString", + value: function() { + return ""; + } + }, { + key: "release", + value: function() { + this._master.releaseMergeRef(); + } + }, { + key: "toString", + value: function() { + return this.value.toString(); + } + }, { + key: "value", + get: function() { + return this._master.value; + }, + set: function(M) { + M instanceof d ? (this._master && this._master.releaseMergeRef(), M.addMergeRef(), this._master = M) : this._master.value = M; + } + }, { + key: "master", + get: function() { + return this._master; + } + }, { + key: "type", + get: function() { + return d.Types.Merge; + } + }, { + key: "effectiveType", + get: function() { + return this._master.effectiveType; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), n = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.cell = N, this.model = { + address: N.address, + type: d.Types.Formula, + shareType: M ? M.shareType : void 0, + ref: M ? M.ref : void 0, + formula: M ? M.formula : void 0, + sharedFormula: M ? M.sharedFormula : void 0, + result: M ? M.result : void 0 + }; + } + return g(z, [{ + key: "_copyModel", + value: function(M) { + var I = {}, R = function(E) { + var A = M[E]; + A && (I[E] = A); + }; + return R("formula"), R("result"), R("ref"), R("shareType"), R("sharedFormula"), I; + } + }, { + key: "validate", + value: function(M) { + switch (F.getType(M)) { + case d.Types.Null: + case d.Types.String: + case d.Types.Number: + case d.Types.Date: + break; + case d.Types.Hyperlink: + case d.Types.Formula: + default: + throw new Error("Cannot process that type of result value"); + } + } + }, { + key: "_getTranslatedFormula", + value: function() { + if (!this._translatedFormula && this.model.sharedFormula) { + var M = this.cell.worksheet, I = M.findCell(this.model.sharedFormula); + this._translatedFormula = I && h(I.formula, I.address, this.model.address); + } + return this._translatedFormula; + } + }, { + key: "toCsvString", + value: function() { + return "".concat(this.model.result || ""); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.result ? this.model.result.toString() : ""; + } + }, { + key: "value", + get: function() { + return this._copyModel(this.model); + }, + set: function(M) { + this.model = this._copyModel(M); + } + }, { + key: "dependencies", + get: function() { + var M = this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g), I = this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g, "").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g); + return { + ranges: M, + cells: I + }; + } + }, { + key: "formula", + get: function() { + return this.model.formula || this._getTranslatedFormula(); + }, + set: function(M) { + this.model.formula = M; + } + }, { + key: "formulaType", + get: function() { + return this.model.formula ? f.FormulaType.Master : this.model.sharedFormula ? f.FormulaType.Shared : f.FormulaType.None; + } + }, { + key: "result", + get: function() { + return this.model.result; + }, + set: function(M) { + this.model.result = M; + } + }, { + key: "type", + get: function() { + return d.Types.Formula; + } + }, { + key: "effectiveType", + get: function() { + var M = this.model.result; + return M == null ? f.ValueType.Null : M instanceof String || typeof M == "string" ? f.ValueType.String : typeof M == "number" ? f.ValueType.Number : M instanceof Date ? f.ValueType.Date : M.text && M.hyperlink ? f.ValueType.Hyperlink : M.formula ? f.ValueType.Formula : f.ValueType.Null; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), o = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.SharedString, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.SharedString; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.SharedString; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), p = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Boolean, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.value ? 1 : 0; + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value.toString(); + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.Boolean; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Boolean; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), O = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.Error, + value: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.toString(); + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value.error.toString(); + } + }, { + key: "value", + get: function() { + return this.model.value; + }, + set: function(M) { + this.model.value = M; + } + }, { + key: "type", + get: function() { + return d.Types.Error; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.Error; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), P = /* @__PURE__ */ function() { + function z(N, M) { + u(this, z), this.model = { + address: N.address, + type: d.Types.String, + value: JSON.stringify(M), + rawValue: M + }; + } + return g(z, [{ + key: "toCsvString", + value: function() { + return this.model.value; + } + }, { + key: "release", + value: function() { + } + }, { + key: "toString", + value: function() { + return this.model.value; + } + }, { + key: "value", + get: function() { + return this.model.rawValue; + }, + set: function(M) { + this.model.rawValue = M, this.model.value = JSON.stringify(M); + } + }, { + key: "type", + get: function() { + return d.Types.String; + } + }, { + key: "effectiveType", + get: function() { + return d.Types.String; + } + }, { + key: "address", + get: function() { + return this.model.address; + }, + set: function(M) { + this.model.address = M; + } + }]), z; + }(), F = { + getType: function(N) { + return N == null ? d.Types.Null : N instanceof String || typeof N == "string" ? d.Types.String : typeof N == "number" ? d.Types.Number : typeof N == "boolean" ? d.Types.Boolean : N instanceof Date ? d.Types.Date : N.text && N.hyperlink ? d.Types.Hyperlink : N.formula || N.sharedFormula ? d.Types.Formula : N.richText ? d.Types.RichText : N.sharedString ? d.Types.SharedString : N.error ? d.Types.Error : d.Types.JSON; + }, + // map valueType to constructor + types: [{ + t: d.Types.Null, + f: s + }, { + t: d.Types.Number, + f: v + }, { + t: d.Types.String, + f: c + }, { + t: d.Types.Date, + f: r + }, { + t: d.Types.Hyperlink, + f: t + }, { + t: d.Types.Formula, + f: n + }, { + t: d.Types.Merge, + f: i + }, { + t: d.Types.JSON, + f: P + }, { + t: d.Types.SharedString, + f: o + }, { + t: d.Types.RichText, + f: a + }, { + t: d.Types.Boolean, + f: p + }, { + t: d.Types.Error, + f: O + }].reduce(function(z, N) { + return z[N.t] = N.f, z; + }, []), + create: function(N, M, I) { + var R = this.types[N]; + if (!R) + throw new Error("Could not create Value of type ".concat(N)); + return new R(M, I); + } + }; + x.exports = d; + }, { "../utils/col-cache": 19, "../utils/shared-formula": 22, "../utils/under-dash": 25, "./enums": 7, "./note": 9 }], 4: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + var b = e("../utils/under-dash"), w = e("./enums"), f = e("../utils/col-cache"), y = 9, h = /* @__PURE__ */ function() { + function l(d, s, v) { + u(this, l), this._worksheet = d, this._number = s, v !== !1 && (this.defn = v); + } + return g(l, [{ + key: "toString", + value: function() { + return JSON.stringify({ + key: this.key, + width: this.width, + headers: this.headers.length ? this.headers : void 0 + }); + } + }, { + key: "equivalentTo", + value: function(s) { + return this.width === s.width && this.hidden === s.hidden && this.outlineLevel === s.outlineLevel && b.isEqual(this.style, s.style); + } + }, { + key: "eachCell", + value: function(s, v) { + var c = this.number; + v || (v = s, s = null), this._worksheet.eachRow(s, function(a, r) { + v(a.getCell(c), r); + }); + } + }, { + key: "_applyStyle", + // ========================================================================= + // styles + value: function(s, v) { + return this.style[s] = v, this.eachCell(function(c) { + c[s] = v; + }), v; + } + }, { + key: "number", + get: function() { + return this._number; + } + }, { + key: "worksheet", + get: function() { + return this._worksheet; + } + }, { + key: "letter", + get: function() { + return f.n2l(this._number); + } + }, { + key: "isCustomWidth", + get: function() { + return this.width !== void 0 && this.width !== y; + } + }, { + key: "defn", + get: function() { + return { + header: this._header, + key: this.key, + width: this.width, + style: this.style, + hidden: this.hidden, + outlineLevel: this.outlineLevel + }; + }, + set: function(s) { + s ? (this.key = s.key, this.width = s.width !== void 0 ? s.width : y, this.outlineLevel = s.outlineLevel, s.style ? this.style = s.style : this.style = {}, this.header = s.header, this._hidden = !!s.hidden) : (delete this._header, delete this._key, delete this.width, this.style = {}, this.outlineLevel = 0); + } + }, { + key: "headers", + get: function() { + return this._header && this._header instanceof Array ? this._header : [this._header]; + } + }, { + key: "header", + get: function() { + return this._header; + }, + set: function(s) { + var v = this; + s !== void 0 ? (this._header = s, this.headers.forEach(function(c, a) { + v._worksheet.getCell(a + 1, v.number).value = c; + })) : this._header = void 0; + } + }, { + key: "key", + get: function() { + return this._key; + }, + set: function(s) { + var v = this._key && this._worksheet.getColumnKey(this._key); + v === this && this._worksheet.deleteColumnKey(this._key), this._key = s, s && this._worksheet.setColumnKey(this._key, this); + } + }, { + key: "hidden", + get: function() { + return !!this._hidden; + }, + set: function(s) { + this._hidden = s; + } + }, { + key: "outlineLevel", + get: function() { + return this._outlineLevel || 0; + }, + set: function(s) { + this._outlineLevel = s; + } + }, { + key: "collapsed", + get: function() { + return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelCol); + } + }, { + key: "isDefault", + get: function() { + if (this.isCustomWidth || this.hidden || this.outlineLevel) + return !1; + var s = this.style; + return !(s && (s.font || s.numFmt || s.alignment || s.border || s.fill || s.protection)); + } + }, { + key: "headerCount", + get: function() { + return this.headers.length; + } + }, { + key: "values", + get: function() { + var s = []; + return this.eachCell(function(v, c) { + v && v.type !== w.ValueType.Null && (s[c] = v.value); + }), s; + }, + set: function(s) { + var v = this; + if (s) { + var c = this.number, a = 0; + s.hasOwnProperty("0") && (a = 1), s.forEach(function(r, t) { + v._worksheet.getCell(t + a, c).value = r; + }); + } + } + }, { + key: "numFmt", + get: function() { + return this.style.numFmt; + }, + set: function(s) { + this._applyStyle("numFmt", s); + } + }, { + key: "font", + get: function() { + return this.style.font; + }, + set: function(s) { + this._applyStyle("font", s); + } + }, { + key: "alignment", + get: function() { + return this.style.alignment; + }, + set: function(s) { + this._applyStyle("alignment", s); + } + }, { + key: "protection", + get: function() { + return this.style.protection; + }, + set: function(s) { + this._applyStyle("protection", s); + } + }, { + key: "border", + get: function() { + return this.style.border; + }, + set: function(s) { + this._applyStyle("border", s); + } + }, { + key: "fill", + get: function() { + return this.style.fill; + }, + set: function(s) { + this._applyStyle("fill", s); + } + // ============================================================================= + // static functions + }], [{ + key: "toModel", + value: function(s) { + var v = [], c = null; + return s && s.forEach(function(a, r) { + a.isDefault ? c && (c = null) : !c || !a.equivalentTo(c) ? (c = { + min: r + 1, + max: r + 1, + width: a.width !== void 0 ? a.width : y, + style: a.style, + isCustomWidth: a.isCustomWidth, + hidden: a.hidden, + outlineLevel: a.outlineLevel, + collapsed: a.collapsed + }, v.push(c)) : c.max = r + 1; + }), v.length ? v : void 0; + } + }, { + key: "fromModel", + value: function(s, v) { + v = v || []; + for (var c = [], a = 1, r = 0; r < v.length; ) { + for (var t = v[r++]; a < t.min; ) + c.push(new l(s, a++)); + for (; a <= t.max; ) + c.push(new l(s, a++, t)); + } + return c.length ? c : null; + } + }]), l; + }(); + x.exports = h; + }, { "../utils/col-cache": 19, "../utils/under-dash": 25, "./enums": 7 }], 5: [function(e, x, _) { + function u(w, f) { + if (!(w instanceof f)) + throw new TypeError("Cannot call a class as a function"); + } + function m(w, f) { + for (var y = 0; y < f.length; y++) { + var h = f[y]; + h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(w, h.key, h); + } + } + function g(w, f, y) { + return f && m(w.prototype, f), y && m(w, y), w; + } + var b = /* @__PURE__ */ function() { + function w(f) { + u(this, w), this.model = f || {}; + } + return g(w, [{ + key: "add", + value: function(y, h) { + return this.model[y] = h; + } + }, { + key: "find", + value: function(y) { + return this.model[y]; + } + }, { + key: "remove", + value: function(y) { + this.model[y] = void 0; + } + }]), w; + }(); + x.exports = b; + }, {}], 6: [function(e, x, _) { + function u(d, s) { + if (!(d instanceof s)) + throw new TypeError("Cannot call a class as a function"); + } + function m(d, s) { + for (var v = 0; v < s.length; v++) { + var c = s[v]; + c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c); + } + } + function g(d, s, v) { + return s && m(d.prototype, s), v && m(d, v), d; + } + var b = e("../utils/under-dash"), w = e("../utils/col-cache"), f = e("../utils/cell-matrix"), y = e("./range"), h = /[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/, l = /* @__PURE__ */ function() { + function d() { + u(this, d), this.matrixMap = {}; + } + return g(d, [{ + key: "getMatrix", + value: function(v) { + var c = this.matrixMap[v] || (this.matrixMap[v] = new f()); + return c; + } + // add a name to a cell. locStr in the form SheetName!$col$row or SheetName!$c1$r1:$c2:$r2 + }, { + key: "add", + value: function(v, c) { + var a = w.decodeEx(v); + this.addEx(a, c); + } + }, { + key: "addEx", + value: function(v, c) { + var a = this.getMatrix(c); + if (v.top) + for (var r = v.left; r <= v.right; r++) + for (var t = v.top; t <= v.bottom; t++) { + var i = { + sheetName: v.sheetName, + address: w.n2l(r) + t, + row: t, + col: r + }; + a.addCellEx(i); + } + else + a.addCellEx(v); + } + }, { + key: "remove", + value: function(v, c) { + var a = w.decodeEx(v); + this.removeEx(a, c); + } + }, { + key: "removeEx", + value: function(v, c) { + var a = this.getMatrix(c); + a.removeCellEx(v); + } + }, { + key: "removeAllNames", + value: function(v) { + b.each(this.matrixMap, function(c) { + c.removeCellEx(v); + }); + } + }, { + key: "forEach", + value: function(v) { + b.each(this.matrixMap, function(c, a) { + c.forEach(function(r) { + v(a, r); + }); + }); + } + // get all the names of a cell + }, { + key: "getNames", + value: function(v) { + return this.getNamesEx(w.decodeEx(v)); + } + }, { + key: "getNamesEx", + value: function(v) { + return b.map(this.matrixMap, function(c, a) { + return c.findCellEx(v) && a; + }).filter(Boolean); + } + }, { + key: "_explore", + value: function(v, c) { + c.mark = !1; + var a = c.sheetName, r = new y(c.row, c.col, c.row, c.col, a), t, i; + function n(p, O) { + var P = v.findCellAt(a, p, c.col); + return !P || !P.mark ? !1 : (r[O] = p, P.mark = !1, !0); + } + for (i = c.row - 1; n(i, "top"); i--) + ; + for (i = c.row + 1; n(i, "bottom"); i++) + ; + function o(p, O) { + var P = []; + for (i = r.top; i <= r.bottom; i++) { + var F = v.findCellAt(a, i, p); + if (F && F.mark) + P.push(F); + else + return !1; + } + r[O] = p; + for (var z = 0; z < P.length; z++) + P[z].mark = !1; + return !0; + } + for (t = c.col - 1; o(t, "left"); t--) + ; + for (t = c.col + 1; o(t, "right"); t++) + ; + return r; + } + }, { + key: "getRanges", + value: function(v, c) { + var a = this; + if (c = c || this.matrixMap[v], !c) + return { + name: v, + ranges: [] + }; + c.forEach(function(t) { + t.mark = !0; + }); + var r = c.map(function(t) { + return t.mark && a._explore(c, t); + }).filter(Boolean).map(function(t) { + return t.$shortRange; + }); + return { + name: v, + ranges: r + }; + } + }, { + key: "normaliseMatrix", + value: function(v, c) { + v.forEachInSheet(c, function(a, r, t) { + a && (a.row !== r || a.col !== t) && (a.row = r, a.col = t, a.address = w.n2l(t) + r); + }); + } + }, { + key: "spliceRows", + value: function(v, c, a, r) { + var t = this; + b.each(this.matrixMap, function(i) { + i.spliceRows(v, c, a, r), t.normaliseMatrix(i, v); + }); + } + }, { + key: "spliceColumns", + value: function(v, c, a, r) { + var t = this; + b.each(this.matrixMap, function(i) { + i.spliceColumns(v, c, a, r), t.normaliseMatrix(i, v); + }); + } + }, { + key: "model", + get: function() { + var v = this; + return b.map(this.matrixMap, function(c, a) { + return v.getRanges(a, c); + }).filter(function(c) { + return c.ranges.length; + }); + }, + set: function(v) { + var c = this.matrixMap = {}; + v.forEach(function(a) { + var r = c[a.name] = new f(); + a.ranges.forEach(function(t) { + h.test(t.split("!").pop() || "") && r.addCell(t); + }); + }); + } + }]), d; + }(); + x.exports = l; + }, { "../utils/cell-matrix": 18, "../utils/col-cache": 19, "../utils/under-dash": 25, "./range": 10 }], 7: [function(e, x, _) { + x.exports = { + ValueType: { + Null: 0, + Merge: 1, + Number: 2, + String: 3, + Date: 4, + Hyperlink: 5, + Formula: 6, + SharedString: 7, + RichText: 8, + Boolean: 9, + Error: 10 + }, + FormulaType: { + None: 0, + Master: 1, + Shared: 2 + }, + RelationshipType: { + None: 0, + OfficeDocument: 1, + Worksheet: 2, + CalcChain: 3, + SharedStrings: 4, + Styles: 5, + Theme: 6, + Hyperlink: 7 + }, + DocumentType: { + Xlsx: 1 + }, + ReadingOrder: { + LeftToRight: 1, + RightToLeft: 2 + }, + ErrorValue: { + NotApplicable: "#N/A", + Ref: "#REF!", + Name: "#NAME?", + DivZero: "#DIV/0!", + Null: "#NULL!", + Value: "#VALUE!", + Num: "#NUM!" + } + }; + }, {}], 8: [function(e, x, _) { + function u(y, h) { + if (!(y instanceof h)) + throw new TypeError("Cannot call a class as a function"); + } + function m(y, h) { + for (var l = 0; l < h.length; l++) { + var d = h[l]; + d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d); + } + } + function g(y, h, l) { + return h && m(y.prototype, h), l && m(y, l), y; + } + var b = e("../utils/col-cache"), w = e("./anchor"), f = /* @__PURE__ */ function() { + function y(h, l) { + u(this, y), this.worksheet = h, this.model = l; + } + return g(y, [{ + key: "model", + get: function() { + switch (this.type) { + case "background": + return { + type: this.type, + imageId: this.imageId + }; + case "image": + return { + type: this.type, + imageId: this.imageId, + hyperlinks: this.range.hyperlinks, + range: { + tl: this.range.tl.model, + br: this.range.br && this.range.br.model, + ext: this.range.ext, + editAs: this.range.editAs + } + }; + default: + throw new Error("Invalid Image Type"); + } + }, + set: function(l) { + var d = l.type, s = l.imageId, v = l.range, c = l.hyperlinks; + if (this.type = d, this.imageId = s, d === "image") + if (typeof v == "string") { + var a = b.decode(v); + this.range = { + tl: new w(this.worksheet, { + col: a.left, + row: a.top + }, -1), + br: new w(this.worksheet, { + col: a.right, + row: a.bottom + }, 0), + editAs: "oneCell" + }; + } else + this.range = { + tl: new w(this.worksheet, v.tl, 0), + br: v.br && new w(this.worksheet, v.br, 0), + ext: v.ext, + editAs: v.editAs, + hyperlinks: c || v.hyperlinks + }; + } + }]), y; + }(); + x.exports = f; + }, { "../utils/col-cache": 19, "./anchor": 2 }], 9: [function(e, x, _) { + function u(y) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) { + return typeof l; + } : u = function(l) { + return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l; + }, u(y); + } + function m(y, h) { + if (!(y instanceof h)) + throw new TypeError("Cannot call a class as a function"); + } + function g(y, h) { + for (var l = 0; l < h.length; l++) { + var d = h[l]; + d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d); + } + } + function b(y, h, l) { + return h && g(y.prototype, h), l && g(y, l), y; + } + var w = e("../utils/under-dash"), f = /* @__PURE__ */ function() { + function y(h) { + m(this, y), this.note = h; + } + return b(y, [{ + key: "model", + get: function() { + var l = null; + switch (u(this.note)) { + case "string": + l = { + type: "note", + note: { + texts: [{ + text: this.note + }] + } + }; + break; + default: + l = { + type: "note", + note: this.note + }; + break; + } + return w.deepMerge({}, y.DEFAULT_CONFIGS, l); + }, + set: function(l) { + var d = l.note, s = d.texts; + s.length === 1 && Object.keys(s[0]).length === 1 ? this.note = s[0].text : this.note = d; + } + }], [{ + key: "fromModel", + value: function(l) { + var d = new y(); + return d.model = l, d; + } + }]), y; + }(); + f.DEFAULT_CONFIGS = { + note: { + margins: { + insetmode: "auto", + inset: [0.13, 0.13, 0.25, 0.25] + }, + protection: { + locked: "True", + lockText: "True" + }, + editAs: "absolute" + } + }, x.exports = f; + }, { "../utils/under-dash": 25 }], 10: [function(e, x, _) { + function u(f, y) { + if (!(f instanceof y)) + throw new TypeError("Cannot call a class as a function"); + } + function m(f, y) { + for (var h = 0; h < y.length; h++) { + var l = y[h]; + l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l); + } + } + function g(f, y, h) { + return y && m(f.prototype, y), h && m(f, h), f; + } + var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() { + function f() { + u(this, f), this.decode(arguments); + } + return g(f, [{ + key: "setTLBR", + value: function(h, l, d, s, v) { + if (arguments.length < 4) { + var c = b.decodeAddress(h), a = b.decodeAddress(l); + this.model = { + top: Math.min(c.row, a.row), + left: Math.min(c.col, a.col), + bottom: Math.max(c.row, a.row), + right: Math.max(c.col, a.col), + sheetName: d + }, this.setTLBR(c.row, c.col, a.row, a.col, v); + } else + this.model = { + top: Math.min(h, d), + left: Math.min(l, s), + bottom: Math.max(h, d), + right: Math.max(l, s), + sheetName: v + }; + } + }, { + key: "decode", + value: function(h) { + switch (h.length) { + case 5: + this.setTLBR(h[0], h[1], h[2], h[3], h[4]); + break; + case 4: + this.setTLBR(h[0], h[1], h[2], h[3]); + break; + case 3: + this.setTLBR(h[0], h[1], h[2]); + break; + case 2: + this.setTLBR(h[0], h[1]); + break; + case 1: { + var l = h[0]; + if (l instanceof f) + this.model = { + top: l.model.top, + left: l.model.left, + bottom: l.model.bottom, + right: l.model.right, + sheetName: l.sheetName + }; + else if (l instanceof Array) + this.decode(l); + else if (l.top && l.left && l.bottom && l.right) + this.model = { + top: l.top, + left: l.left, + bottom: l.bottom, + right: l.right, + sheetName: l.sheetName + }; + else { + var d = b.decodeEx(l); + d.top ? this.model = { + top: d.top, + left: d.left, + bottom: d.bottom, + right: d.right, + sheetName: d.sheetName + } : this.model = { + top: d.row, + left: d.col, + bottom: d.row, + right: d.col, + sheetName: d.sheetName + }; + } + break; + } + case 0: + this.model = { + top: 0, + left: 0, + bottom: 0, + right: 0 + }; + break; + default: + throw new Error("Invalid number of arguments to _getDimensions() - ".concat(h.length)); + } + } + }, { + key: "expand", + value: function(h, l, d, s) { + (!this.model.top || h < this.top) && (this.top = h), (!this.model.left || l < this.left) && (this.left = l), (!this.model.bottom || d > this.bottom) && (this.bottom = d), (!this.model.right || s > this.right) && (this.right = s); + } + }, { + key: "expandRow", + value: function(h) { + if (h) { + var l = h.dimensions, d = h.number; + l && this.expand(d, l.min, d, l.max); + } + } + }, { + key: "expandToAddress", + value: function(h) { + var l = b.decodeEx(h); + this.expand(l.row, l.col, l.row, l.col); + } + }, { + key: "toString", + value: function() { + return this.range; + } + }, { + key: "intersects", + value: function(h) { + return !(h.sheetName && this.sheetName && h.sheetName !== this.sheetName || h.bottom < this.top || h.top > this.bottom || h.right < this.left || h.left > this.right); + } + }, { + key: "contains", + value: function(h) { + var l = b.decodeEx(h); + return this.containsEx(l); + } + }, { + key: "containsEx", + value: function(h) { + return h.sheetName && this.sheetName && h.sheetName !== this.sheetName ? !1 : h.row >= this.top && h.row <= this.bottom && h.col >= this.left && h.col <= this.right; + } + }, { + key: "forEachAddress", + value: function(h) { + for (var l = this.left; l <= this.right; l++) + for (var d = this.top; d <= this.bottom; d++) + h(b.encodeAddress(d, l), d, l); + } + }, { + key: "top", + get: function() { + return this.model.top || 1; + }, + set: function(h) { + this.model.top = h; + } + }, { + key: "left", + get: function() { + return this.model.left || 1; + }, + set: function(h) { + this.model.left = h; + } + }, { + key: "bottom", + get: function() { + return this.model.bottom || 1; + }, + set: function(h) { + this.model.bottom = h; + } + }, { + key: "right", + get: function() { + return this.model.right || 1; + }, + set: function(h) { + this.model.right = h; + } + }, { + key: "sheetName", + get: function() { + return this.model.sheetName; + }, + set: function(h) { + this.model.sheetName = h; + } + }, { + key: "_serialisedSheetName", + get: function() { + var h = this.model.sheetName; + return h ? /^[a-zA-Z0-9]*$/.test(h) ? "".concat(h, "!") : "'".concat(h, "'!") : ""; + } + }, { + key: "tl", + get: function() { + return b.n2l(this.left) + this.top; + } + }, { + key: "$t$l", + get: function() { + return "$".concat(b.n2l(this.left), "$").concat(this.top); + } + }, { + key: "br", + get: function() { + return b.n2l(this.right) + this.bottom; + } + }, { + key: "$b$r", + get: function() { + return "$".concat(b.n2l(this.right), "$").concat(this.bottom); + } + }, { + key: "range", + get: function() { + return "".concat(this._serialisedSheetName + this.tl, ":").concat(this.br); + } + }, { + key: "$range", + get: function() { + return "".concat(this._serialisedSheetName + this.$t$l, ":").concat(this.$b$r); + } + }, { + key: "shortRange", + get: function() { + return this.count > 1 ? this.range : this._serialisedSheetName + this.tl; + } + }, { + key: "$shortRange", + get: function() { + return this.count > 1 ? this.$range : this._serialisedSheetName + this.$t$l; + } + }, { + key: "count", + get: function() { + return (1 + this.bottom - this.top) * (1 + this.right - this.left); + } + }]), f; + }(); + x.exports = w; + }, { "../utils/col-cache": 19 }], 11: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + var b = e("../utils/under-dash"), w = e("./enums"), f = e("../utils/col-cache"), y = e("./cell"), h = /* @__PURE__ */ function() { + function l(d, s) { + u(this, l), this._worksheet = d, this._number = s, this._cells = [], this.style = {}, this.outlineLevel = 0; + } + return g(l, [{ + key: "commit", + // Inform Streaming Writer that this row (and all rows before it) are complete + // and ready to write. Has no effect on Worksheet document + value: function() { + this._worksheet._commitRow(this); + } + // helps GC by breaking cyclic references + }, { + key: "destroy", + value: function() { + delete this._worksheet, delete this._cells, delete this.style; + } + }, { + key: "findCell", + value: function(s) { + return this._cells[s - 1]; + } + // given {address, row, col}, find or create new cell + }, { + key: "getCellEx", + value: function(s) { + var v = this._cells[s.col - 1]; + if (!v) { + var c = this._worksheet.getColumn(s.col); + v = new y(this, c, s.address), this._cells[s.col - 1] = v; + } + return v; + } + // get cell by key, letter or column number + }, { + key: "getCell", + value: function(s) { + if (typeof s == "string") { + var v = this._worksheet.getColumnKey(s); + v ? s = v.number : s = f.l2n(s); + } + return this._cells[s - 1] || this.getCellEx({ + address: f.encodeAddress(this._number, s), + row: this._number, + col: s + }); + } + // remove cell(s) and shift all higher cells down by count + }, { + key: "splice", + value: function(s, v) { + for (var c = s + v, a = arguments.length, r = new Array(a > 2 ? a - 2 : 0), t = 2; t < a; t++) + r[t - 2] = arguments[t]; + var i = r.length - v, n = this._cells.length, o, p, O; + if (i < 0) + for (o = s + r.length; o <= n; o++) + O = this._cells[o - 1], p = this._cells[o - i - 1], p ? (O = this.getCell(o), O.value = p.value, O.style = p.style, O._comment = p._comment) : O && (O.value = null, O.style = {}, O._comment = void 0); + else if (i > 0) + for (o = n; o >= c; o--) + p = this._cells[o - 1], p ? (O = this.getCell(o + i), O.value = p.value, O.style = p.style, O._comment = p._comment) : this._cells[o + i - 1] = void 0; + for (o = 0; o < r.length; o++) + O = this.getCell(s + o), O.value = r[o], O.style = {}, O._comment = void 0; + } + // Iterate over all non-null cells in this row + }, { + key: "eachCell", + value: function(s, v) { + if (v || (v = s, s = null), s && s.includeEmpty) + for (var c = this._cells.length, a = 1; a <= c; a++) + v(this.getCell(a), a); + else + this._cells.forEach(function(r, t) { + r && r.type !== w.ValueType.Null && v(r, t + 1); + }); + } + // =========================================================================== + // Page Breaks + }, { + key: "addPageBreak", + value: function(s, v) { + var c = this._worksheet, a = Math.max(0, s - 1) || 0, r = Math.max(0, v - 1) || 16838, t = { + id: this._number, + max: r, + man: 1 + }; + a && (t.min = a), c.rowBreaks.push(t); + } + // return a sparse array of cell values + }, { + key: "_applyStyle", + // ========================================================================= + // styles + value: function(s, v) { + return this.style[s] = v, this._cells.forEach(function(c) { + c && (c[s] = v); + }), v; + } + }, { + key: "number", + get: function() { + return this._number; + } + }, { + key: "worksheet", + get: function() { + return this._worksheet; + } + }, { + key: "values", + get: function() { + var s = []; + return this._cells.forEach(function(v) { + v && v.type !== w.ValueType.Null && (s[v.col] = v.value); + }), s; + }, + set: function(s) { + var v = this; + if (this._cells = [], s) + if (s instanceof Array) { + var c = 0; + s.hasOwnProperty("0") && (c = 1), s.forEach(function(a, r) { + a !== void 0 && (v.getCellEx({ + address: f.encodeAddress(v._number, r + c), + row: v._number, + col: r + c + }).value = a); + }); + } else + this._worksheet.eachColumnKey(function(a, r) { + s[r] !== void 0 && (v.getCellEx({ + address: f.encodeAddress(v._number, a.number), + row: v._number, + col: a.number + }).value = s[r]); + }); + } + // returns true if the row includes at least one cell with a value + }, { + key: "hasValues", + get: function() { + return b.some(this._cells, function(s) { + return s && s.type !== w.ValueType.Null; + }); + } + }, { + key: "cellCount", + get: function() { + return this._cells.length; + } + }, { + key: "actualCellCount", + get: function() { + var s = 0; + return this.eachCell(function() { + s++; + }), s; + } + // get the min and max column number for the non-null cells in this row or null + }, { + key: "dimensions", + get: function() { + var s = 0, v = 0; + return this._cells.forEach(function(c) { + c && c.type !== w.ValueType.Null && ((!s || s > c.col) && (s = c.col), v < c.col && (v = c.col)); + }), s > 0 ? { + min: s, + max: v + } : null; + } + }, { + key: "numFmt", + get: function() { + return this.style.numFmt; + }, + set: function(s) { + this._applyStyle("numFmt", s); + } + }, { + key: "font", + get: function() { + return this.style.font; + }, + set: function(s) { + this._applyStyle("font", s); + } + }, { + key: "alignment", + get: function() { + return this.style.alignment; + }, + set: function(s) { + this._applyStyle("alignment", s); + } + }, { + key: "protection", + get: function() { + return this.style.protection; + }, + set: function(s) { + this._applyStyle("protection", s); + } + }, { + key: "border", + get: function() { + return this.style.border; + }, + set: function(s) { + this._applyStyle("border", s); + } + }, { + key: "fill", + get: function() { + return this.style.fill; + }, + set: function(s) { + this._applyStyle("fill", s); + } + }, { + key: "hidden", + get: function() { + return !!this._hidden; + }, + set: function(s) { + this._hidden = s; + } + }, { + key: "outlineLevel", + get: function() { + return this._outlineLevel || 0; + }, + set: function(s) { + this._outlineLevel = s; + } + }, { + key: "collapsed", + get: function() { + return !!(this._outlineLevel && this._outlineLevel >= this._worksheet.properties.outlineLevelRow); + } + // ========================================================================= + }, { + key: "model", + get: function() { + var s = [], v = 0, c = 0; + return this._cells.forEach(function(a) { + if (a) { + var r = a.model; + r && ((!v || v > a.col) && (v = a.col), c < a.col && (c = a.col), s.push(r)); + } + }), this.height || s.length ? { + cells: s, + number: this.number, + min: v, + max: c, + height: this.height, + style: this.style, + hidden: this.hidden, + outlineLevel: this.outlineLevel, + collapsed: this.collapsed + } : null; + }, + set: function(s) { + var v = this; + if (s.number !== this._number) + throw new Error("Invalid row number in model"); + this._cells = []; + var c; + s.cells.forEach(function(a) { + switch (a.type) { + case y.Types.Merge: + break; + default: { + var r; + if (a.address) + r = f.decodeAddress(a.address); + else if (c) { + var t = c, i = t.row, n = c.col + 1; + r = { + row: i, + col: n, + address: f.encodeAddress(i, n), + $col$row: "$".concat(f.n2l(n), "$").concat(i) + }; + } + c = r; + var o = v.getCellEx(r); + o.model = a; + break; + } + } + }), s.height ? this.height = s.height : delete this.height, this.hidden = s.hidden, this.outlineLevel = s.outlineLevel || 0, this.style = s.style && JSON.parse(JSON.stringify(s.style)) || {}; + } + }]), l; + }(); + x.exports = h; + }, { "../utils/col-cache": 19, "../utils/under-dash": 25, "./cell": 3, "./enums": 7 }], 12: [function(e, x, _) { + function u(y, h) { + if (!(y instanceof h)) + throw new TypeError("Cannot call a class as a function"); + } + function m(y, h) { + for (var l = 0; l < h.length; l++) { + var d = h[l]; + d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d); + } + } + function g(y, h, l) { + return h && m(y.prototype, h), l && m(y, l), y; + } + var b = e("../utils/col-cache"), w = /* @__PURE__ */ function() { + function y(h, l, d) { + u(this, y), this.table = h, this.column = l, this.index = d; + } + return g(y, [{ + key: "_set", + value: function(l, d) { + this.table.cacheState(), this.column[l] = d; + } + /* eslint-disable lines-between-class-members */ + }, { + key: "name", + get: function() { + return this.column.name; + }, + set: function(l) { + this._set("name", l); + } + }, { + key: "filterButton", + get: function() { + return this.column.filterButton; + }, + set: function(l) { + this.column.filterButton = l; + } + }, { + key: "style", + get: function() { + return this.column.style; + }, + set: function(l) { + this.column.style = l; + } + }, { + key: "totalsRowLabel", + get: function() { + return this.column.totalsRowLabel; + }, + set: function(l) { + this._set("totalsRowLabel", l); + } + }, { + key: "totalsRowFunction", + get: function() { + return this.column.totalsRowFunction; + }, + set: function(l) { + this._set("totalsRowFunction", l); + } + }, { + key: "totalsRowResult", + get: function() { + return this.column.totalsRowResult; + }, + set: function(l) { + this._set("totalsRowResult", l); + } + }, { + key: "totalsRowFormula", + get: function() { + return this.column.totalsRowFormula; + }, + set: function(l) { + this._set("totalsRowFormula", l); + } + /* eslint-enable lines-between-class-members */ + }]), y; + }(), f = /* @__PURE__ */ function() { + function y(h, l) { + u(this, y), this.worksheet = h, l && (this.table = l, this.validate(), this.store()); + } + return g(y, [{ + key: "getFormula", + value: function(l) { + switch (l.totalsRowFunction) { + case "none": + return null; + case "average": + return "SUBTOTAL(101,".concat(this.table.name, "[").concat(l.name, "])"); + case "countNums": + return "SUBTOTAL(102,".concat(this.table.name, "[").concat(l.name, "])"); + case "count": + return "SUBTOTAL(103,".concat(this.table.name, "[").concat(l.name, "])"); + case "max": + return "SUBTOTAL(104,".concat(this.table.name, "[").concat(l.name, "])"); + case "min": + return "SUBTOTAL(105,".concat(this.table.name, "[").concat(l.name, "])"); + case "stdDev": + return "SUBTOTAL(106,".concat(this.table.name, "[").concat(l.name, "])"); + case "var": + return "SUBTOTAL(107,".concat(this.table.name, "[").concat(l.name, "])"); + case "sum": + return "SUBTOTAL(109,".concat(this.table.name, "[").concat(l.name, "])"); + case "custom": + return l.totalsRowFormula; + default: + throw new Error("Invalid Totals Row Function: ".concat(l.totalsRowFunction)); + } + } + }, { + key: "validate", + value: function() { + var l = this, d = this.table, s = function(p, O, P) { + p[O] === void 0 && (p[O] = P); + }; + s(d, "headerRow", !0), s(d, "totalsRow", !1), s(d, "style", {}), s(d.style, "theme", "TableStyleMedium2"), s(d.style, "showFirstColumn", !1), s(d.style, "showLastColumn", !1), s(d.style, "showRowStripes", !1), s(d.style, "showColumnStripes", !1); + var v = function(p, O) { + if (!p) + throw new Error(O); + }; + v(d.ref, "Table must have ref"), v(d.columns, "Table must have column definitions"), v(d.rows, "Table must have row definitions"), d.tl = b.decodeAddress(d.ref); + var c = d.tl, a = c.row, r = c.col; + v(a > 0, "Table must be on valid row"), v(r > 0, "Table must be on valid col"); + var t = this.width, i = this.filterHeight, n = this.tableHeight; + d.autoFilterRef = b.encode(a, r, a + i - 1, r + t - 1), d.tableRef = b.encode(a, r, a + n - 1, r + t - 1), d.columns.forEach(function(o, p) { + v(o.name, "Column ".concat(p, " must have a name")), p === 0 ? s(o, "totalsRowLabel", "Total") : (s(o, "totalsRowFunction", "none"), o.totalsRowFormula = l.getFormula(o)); + }); + } + }, { + key: "store", + value: function() { + var l = this, d = function(p, O) { + O && Object.keys(O).forEach(function(P) { + p[P] = O[P]; + }); + }, s = this.worksheet, v = this.table, c = v.tl, a = c.row, r = c.col, t = 0; + if (v.headerRow) { + var i = s.getRow(a + t++); + v.columns.forEach(function(o, p) { + var O = o.style, P = o.name, F = i.getCell(r + p); + F.value = P, d(F, O); + }); + } + if (v.rows.forEach(function(o) { + var p = s.getRow(a + t++); + o.forEach(function(O, P) { + var F = p.getCell(r + P); + F.value = O, d(F, v.columns[P].style); + }); + }), v.totalsRow) { + var n = s.getRow(a + t++); + v.columns.forEach(function(o, p) { + var O = n.getCell(r + p); + if (p === 0) + O.value = o.totalsRowLabel; + else { + var P = l.getFormula(o); + P ? O.value = { + formula: o.totalsRowFormula, + result: o.totalsRowResult + } : O.value = null; + } + d(O, o.style); + }); + } + } + }, { + key: "load", + value: function(l) { + var d = this, s = this.table, v = s.tl, c = v.row, a = v.col, r = 0; + if (s.headerRow) { + var t = l.getRow(c + r++); + s.columns.forEach(function(n, o) { + var p = t.getCell(a + o); + p.value = n.name; + }); + } + if (s.rows.forEach(function(n) { + var o = l.getRow(c + r++); + n.forEach(function(p, O) { + var P = o.getCell(a + O); + P.value = p; + }); + }), s.totalsRow) { + var i = l.getRow(c + r++); + s.columns.forEach(function(n, o) { + var p = i.getCell(a + o); + if (o === 0) + p.value = n.totalsRowLabel; + else { + var O = d.getFormula(n); + O && (p.value = { + formula: n.totalsRowFormula, + result: n.totalsRowResult + }); + } + }); + } + } + }, { + key: "cacheState", + // ================================================================ + // TODO: Mutating methods + value: function() { + this._cache || (this._cache = { + ref: this.ref, + width: this.width, + tableHeight: this.tableHeight + }); + } + }, { + key: "commit", + value: function() { + if (this._cache) { + this.validate(); + var l = b.decodeAddress(this._cache.ref); + if (this.ref !== this._cache.ref) + for (var d = 0; d < this._cache.tableHeight; d++) + for (var s = this.worksheet.getRow(l.row + d), v = 0; v < this._cache.width; v++) { + var c = s.getCell(l.col + v); + c.value = null; + } + else { + for (var a = this.tableHeight; a < this._cache.tableHeight; a++) + for (var r = this.worksheet.getRow(l.row + a), t = 0; t < this._cache.width; t++) { + var i = r.getCell(l.col + t); + i.value = null; + } + for (var n = 0; n < this.tableHeight; n++) + for (var o = this.worksheet.getRow(l.row + n), p = this.width; p < this._cache.width; p++) { + var O = o.getCell(l.col + p); + O.value = null; + } + } + this.store(); + } + } + }, { + key: "addRow", + value: function(l, d) { + this.cacheState(), d === void 0 ? this.table.rows.push(l) : this.table.rows.splice(d, 0, l); + } + }, { + key: "removeRows", + value: function(l) { + var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + this.cacheState(), this.table.rows.splice(l, d); + } + }, { + key: "getColumn", + value: function(l) { + var d = this.table.columns[l]; + return new w(this, d, l); + } + }, { + key: "addColumn", + value: function(l, d, s) { + this.cacheState(), s === void 0 ? (this.table.columns.push(l), this.table.rows.forEach(function(v, c) { + v.push(d[c]); + })) : (this.table.columns.splice(s, 0, l), this.table.rows.forEach(function(v, c) { + v.splice(s, 0, d[c]); + })); + } + }, { + key: "removeColumns", + value: function(l) { + var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + this.cacheState(), this.table.columns.splice(l, d), this.table.rows.forEach(function(s) { + s.splice(l, d); + }); + } + }, { + key: "_assign", + value: function(l, d, s) { + this.cacheState(), l[d] = s; + } + /* eslint-disable lines-between-class-members */ + }, { + key: "width", + get: function() { + return this.table.columns.length; + } + }, { + key: "height", + get: function() { + return this.table.rows.length; + } + }, { + key: "filterHeight", + get: function() { + return this.height + (this.table.headerRow ? 1 : 0); + } + }, { + key: "tableHeight", + get: function() { + return this.filterHeight + (this.table.totalsRow ? 1 : 0); + } + }, { + key: "model", + get: function() { + return this.table; + }, + set: function(l) { + this.table = l; + } + }, { + key: "ref", + get: function() { + return this.table.ref; + }, + set: function(l) { + this._assign(this.table, "ref", l); + } + }, { + key: "name", + get: function() { + return this.table.name; + }, + set: function(l) { + this.table.name = l; + } + }, { + key: "displayName", + get: function() { + return this.table.displyName || this.table.name; + } + }, { + key: "displayNamename", + set: function(l) { + this.table.displayName = l; + } + }, { + key: "headerRow", + get: function() { + return this.table.headerRow; + }, + set: function(l) { + this._assign(this.table, "headerRow", l); + } + }, { + key: "totalsRow", + get: function() { + return this.table.totalsRow; + }, + set: function(l) { + this._assign(this.table, "totalsRow", l); + } + }, { + key: "theme", + get: function() { + return this.table.style.name; + }, + set: function(l) { + this.table.style.name = l; + } + }, { + key: "showFirstColumn", + get: function() { + return this.table.style.showFirstColumn; + }, + set: function(l) { + this.table.style.showFirstColumn = l; + } + }, { + key: "showLastColumn", + get: function() { + return this.table.style.showLastColumn; + }, + set: function(l) { + this.table.style.showLastColumn = l; + } + }, { + key: "showRowStripes", + get: function() { + return this.table.style.showRowStripes; + }, + set: function(l) { + this.table.style.showRowStripes = l; + } + }, { + key: "showColumnStripes", + get: function() { + return this.table.style.showColumnStripes; + }, + set: function(l) { + this.table.style.showColumnStripes = l; + } + /* eslint-enable lines-between-class-members */ + }]), y; + }(); + x.exports = f; + }, { "../utils/col-cache": 19 }], 13: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + var b = e("./worksheet"), w = e("./defined-names"), f = e("../xlsx/xlsx"), y = e("../csv/csv"), h = /* @__PURE__ */ function() { + function l() { + u(this, l), this.category = "", this.company = "", this.created = /* @__PURE__ */ new Date(), this.description = "", this.keywords = "", this.manager = "", this.modified = this.created, this.properties = {}, this.calcProperties = {}, this._worksheets = [], this.subject = "", this.title = "", this.views = [], this.media = [], this._definedNames = new w(); + } + return g(l, [{ + key: "addWorksheet", + value: function(s, v) { + var c = this.nextId; + if (s && s.length > 31 && console.warn("Worksheet name ".concat(s, " exceeds 31 chars. This will be truncated")), /[*?:/\\[\]]/.test(s)) + throw new Error("Worksheet name ".concat(s, " cannot include any of the following characters: * ? : \\ / [ ]")); + if (/(^')|('$)/.test(s)) + throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(s)); + if (s = (s || "sheet".concat(c)).substring(0, 31), this._worksheets.find(function(i) { + return i && i.name.toLowerCase() === s.toLowerCase(); + })) + throw new Error("Worksheet name already exists: ".concat(s)); + v && (typeof v == "string" ? (console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'), v = { + properties: { + tabColor: { + argb: v + } + } + }) : (v.argb || v.theme || v.indexed) && (console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"), v = { + properties: { + tabColor: v + } + })); + var a = this._worksheets.reduce(function(i, n) { + return (n && n.orderNo) > i ? n.orderNo : i; + }, 0), r = Object.assign({}, v, { + id: c, + name: s, + orderNo: a + 1, + workbook: this + }), t = new b(r); + return this._worksheets[c] = t, t; + } + }, { + key: "removeWorksheetEx", + value: function(s) { + delete this._worksheets[s.id]; + } + }, { + key: "removeWorksheet", + value: function(s) { + var v = this.getWorksheet(s); + v && v.destroy(); + } + }, { + key: "getWorksheet", + value: function(s) { + if (s === void 0) + return this._worksheets.find(Boolean); + if (typeof s == "number") + return this._worksheets[s]; + if (typeof s == "string") + return this._worksheets.find(function(v) { + return v && v.name === s; + }); + } + }, { + key: "eachSheet", + value: function(s) { + this.worksheets.forEach(function(v) { + s(v, v.id); + }); + } + }, { + key: "clearThemes", + value: function() { + this._themes = void 0; + } + }, { + key: "addImage", + value: function(s) { + var v = this.media.length; + return this.media.push(Object.assign({}, s, { + type: "image" + })), v; + } + }, { + key: "getImage", + value: function(s) { + return this.media[s]; + } + }, { + key: "xlsx", + get: function() { + return this._xlsx || (this._xlsx = new f(this)), this._xlsx; + } + }, { + key: "csv", + get: function() { + return this._csv || (this._csv = new y(this)), this._csv; + } + }, { + key: "nextId", + get: function() { + for (var s = 1; s < this._worksheets.length; s++) + if (!this._worksheets[s]) + return s; + return this._worksheets.length || 1; + } + }, { + key: "worksheets", + get: function() { + return this._worksheets.slice(1).sort(function(s, v) { + return s.orderNo - v.orderNo; + }).filter(Boolean); + } + }, { + key: "definedNames", + get: function() { + return this._definedNames; + } + }, { + key: "model", + get: function() { + return { + creator: this.creator || "Unknown", + lastModifiedBy: this.lastModifiedBy || "Unknown", + lastPrinted: this.lastPrinted, + created: this.created, + modified: this.modified, + properties: this.properties, + worksheets: this.worksheets.map(function(s) { + return s.model; + }), + sheets: this.worksheets.map(function(s) { + return s.model; + }).filter(Boolean), + definedNames: this._definedNames.model, + views: this.views, + company: this.company, + manager: this.manager, + title: this.title, + subject: this.subject, + keywords: this.keywords, + category: this.category, + description: this.description, + language: this.language, + revision: this.revision, + contentStatus: this.contentStatus, + themes: this._themes, + media: this.media, + calcProperties: this.calcProperties + }; + }, + set: function(s) { + var v = this; + this.creator = s.creator, this.lastModifiedBy = s.lastModifiedBy, this.lastPrinted = s.lastPrinted, this.created = s.created, this.modified = s.modified, this.company = s.company, this.manager = s.manager, this.title = s.title, this.subject = s.subject, this.keywords = s.keywords, this.category = s.category, this.description = s.description, this.language = s.language, this.revision = s.revision, this.contentStatus = s.contentStatus, this.properties = s.properties, this.calcProperties = s.calcProperties, this._worksheets = [], s.worksheets.forEach(function(c) { + var a = c.id, r = c.name, t = c.state, i = s.sheets && s.sheets.findIndex(function(o) { + return o.id === a; + }), n = v._worksheets[a] = new b({ + id: a, + name: r, + orderNo: i, + state: t, + workbook: v + }); + n.model = c; + }), this._definedNames.model = s.definedNames, this.views = s.views, this._themes = s.themes, this.media = s.media || []; + } + }]), l; + }(); + x.exports = h; + }, { "../csv/csv": 1, "../xlsx/xlsx": 141, "./defined-names": 6, "./worksheet": 14 }], 14: [function(e, x, _) { + function u(z, N) { + var M = Object.keys(z); + if (Object.getOwnPropertySymbols) { + var I = Object.getOwnPropertySymbols(z); + N && (I = I.filter(function(R) { + return Object.getOwnPropertyDescriptor(z, R).enumerable; + })), M.push.apply(M, I); + } + return M; + } + function m(z) { + for (var N = 1; N < arguments.length; N++) { + var M = arguments[N] != null ? arguments[N] : {}; + N % 2 ? u(Object(M), !0).forEach(function(I) { + g(z, I, M[I]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(z, Object.getOwnPropertyDescriptors(M)) : u(Object(M)).forEach(function(I) { + Object.defineProperty(z, I, Object.getOwnPropertyDescriptor(M, I)); + }); + } + return z; + } + function g(z, N, M) { + return N in z ? Object.defineProperty(z, N, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : z[N] = M, z; + } + function b(z) { + return h(z) || y(z) || f(z) || w(); + } + function w() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function f(z, N) { + if (z) { + if (typeof z == "string") + return l(z, N); + var M = Object.prototype.toString.call(z).slice(8, -1); + if (M === "Object" && z.constructor && (M = z.constructor.name), M === "Map" || M === "Set") + return Array.from(z); + if (M === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M)) + return l(z, N); + } + } + function y(z) { + if (typeof Symbol != "undefined" && Symbol.iterator in Object(z)) + return Array.from(z); + } + function h(z) { + if (Array.isArray(z)) + return l(z); + } + function l(z, N) { + (N == null || N > z.length) && (N = z.length); + for (var M = 0, I = new Array(N); M < N; M++) + I[M] = z[M]; + return I; + } + function d(z, N) { + if (!(z instanceof N)) + throw new TypeError("Cannot call a class as a function"); + } + function s(z, N) { + for (var M = 0; M < N.length; M++) { + var I = N[M]; + I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I); + } + } + function v(z, N, M) { + return N && s(z.prototype, N), M && s(z, M), z; + } + var c = e("../utils/under-dash"), a = e("../utils/col-cache"), r = e("./range"), t = e("./row"), i = e("./column"), n = e("./enums"), o = e("./image"), p = e("./table"), O = e("./data-validations"), P = e("../utils/encryptor"), F = /* @__PURE__ */ function() { + function z(N) { + d(this, z), N = N || {}, this.id = N.id, this.orderNo = N.orderNo, this.name = N.name || "Sheet".concat(this.id), this.state = N.state || "visible", this._rows = [], this._columns = null, this._keys = {}, this._merges = {}, this.rowBreaks = [], this._workbook = N.workbook, this.properties = Object.assign({}, { + defaultRowHeight: 15, + dyDescent: 55, + outlineLevelCol: 0, + outlineLevelRow: 0 + }, N.properties), this.pageSetup = Object.assign({}, { + margins: { + left: 0.7, + right: 0.7, + top: 0.75, + bottom: 0.75, + header: 0.3, + footer: 0.3 + }, + orientation: "portrait", + horizontalDpi: 4294967295, + verticalDpi: 4294967295, + fitToPage: !!(N.pageSetup && (N.pageSetup.fitToWidth || N.pageSetup.fitToHeight) && !N.pageSetup.scale), + pageOrder: "downThenOver", + blackAndWhite: !1, + draft: !1, + cellComments: "None", + errors: "displayed", + scale: 100, + fitToWidth: 1, + fitToHeight: 1, + paperSize: void 0, + showRowColHeaders: !1, + showGridLines: !1, + firstPageNumber: void 0, + horizontalCentered: !1, + verticalCentered: !1, + rowBreaks: null, + colBreaks: null + }, N.pageSetup), this.headerFooter = Object.assign({}, { + differentFirst: !1, + differentOddEven: !1, + oddHeader: null, + oddFooter: null, + evenHeader: null, + evenFooter: null, + firstHeader: null, + firstFooter: null + }, N.headerFooter), this.dataValidations = new O(), this.views = N.views || [], this.autoFilter = N.autoFilter || null, this._media = [], this.sheetProtection = null, this.tables = {}, this.conditionalFormattings = []; + } + return v(z, [{ + key: "destroy", + // when you're done with this worksheet, call this to remove from workbook + value: function() { + this._workbook.removeWorksheetEx(this); + } + // Get the bounding range of the cells in this worksheet + }, { + key: "getColumnKey", + value: function(M) { + return this._keys[M]; + } + }, { + key: "setColumnKey", + value: function(M, I) { + this._keys[M] = I; + } + }, { + key: "deleteColumnKey", + value: function(M) { + delete this._keys[M]; + } + }, { + key: "eachColumnKey", + value: function(M) { + c.each(this._keys, M); + } + // get a single column by col number. If it doesn't exist, create it and any gaps before it + }, { + key: "getColumn", + value: function(M) { + if (typeof M == "string") { + var I = this._keys[M]; + if (I) + return I; + M = a.l2n(M); + } + if (this._columns || (this._columns = []), M > this._columns.length) + for (var R = this._columns.length + 1; R <= M; ) + this._columns.push(new i(this, R++)); + return this._columns[M - 1]; + } + }, { + key: "spliceColumns", + value: function(M, I) { + for (var R = this, C = this._rows, E = C.length, A = arguments.length, L = new Array(A > 2 ? A - 2 : 0), $ = 2; $ < A; $++) + L[$ - 2] = arguments[$]; + if (L.length > 0) + for (var W = function(ve) { + var ge = [M, I]; + L.forEach(function(J) { + ge.push(J[ve] || null); + }); + var oe = R.getRow(ve + 1); + oe.splice.apply(oe, ge); + }, U = 0; U < E; U++) + W(U); + else + this._rows.forEach(function(ce) { + ce && ce.splice(M, I); + }); + var D = L.length - I, B = M + I, j = this._columns.length; + if (D < 0) + for (var V = M + L.length; V <= j; V++) + this.getColumn(V).defn = this.getColumn(V - D).defn; + else if (D > 0) + for (var re = j; re >= B; re--) + this.getColumn(re + D).defn = this.getColumn(re).defn; + for (var ee = M; ee < M + L.length; ee++) + this.getColumn(ee).defn = null; + this.workbook.definedNames.spliceColumns(this.name, M, I, L.length); + } + }, { + key: "_commitRow", + // ========================================================================= + // Rows + value: function() { + } + }, { + key: "findRow", + // find a row (if exists) by row number + value: function(M) { + return this._rows[M - 1]; + } + // find multiple rows (if exists) by row number + }, { + key: "findRows", + value: function(M, I) { + return this._rows.slice(M - 1, M - 1 + I); + } + }, { + key: "getRow", + // get a row by row number. + value: function(M) { + var I = this._rows[M - 1]; + return I || (I = this._rows[M - 1] = new t(this, M)), I; + } + // get multiple rows by row number. + }, { + key: "getRows", + value: function(M, I) { + if (!(I < 1)) { + for (var R = [], C = M; C < M + I; C++) + R.push(this.getRow(C)); + return R; + } + } + }, { + key: "addRow", + value: function(M) { + var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n", R = this._nextRow, C = this.getRow(R); + return C.values = M, this._setStyleOption(R, I[0] === "i" ? I : "n"), C; + } + }, { + key: "addRows", + value: function(M) { + var I = this, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n", C = []; + return M.forEach(function(E) { + C.push(I.addRow(E, R)); + }), C; + } + }, { + key: "insertRow", + value: function(M, I) { + var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "n"; + return this.spliceRows(M, 0, I), this._setStyleOption(M, R), this.getRow(M); + } + }, { + key: "insertRows", + value: function(M, I) { + var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "n"; + if (this.spliceRows.apply(this, [M, 0].concat(b(I))), R !== "n") + for (var C = 0; C < I.length; C++) + R[0] === "o" && this.findRow(I.length + M + C) !== void 0 ? this._copyStyle(I.length + M + C, M + C, R[1] === "+") : R[0] === "i" && this.findRow(M - 1) !== void 0 && this._copyStyle(M - 1, M + C, R[1] === "+"); + return this.getRows(M, I.length); + } + // set row at position to same style as of either pervious row (option 'i') or next row (option 'o') + }, { + key: "_setStyleOption", + value: function(M) { + var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "n"; + I[0] === "o" && this.findRow(M + 1) !== void 0 ? this._copyStyle(M + 1, M, I[1] === "+") : I[0] === "i" && this.findRow(M - 1) !== void 0 && this._copyStyle(M - 1, M, I[1] === "+"); + } + }, { + key: "_copyStyle", + value: function(M, I) { + var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, C = this.getRow(M), E = this.getRow(I); + E.style = Object.freeze(m({}, C.style)), C.eachCell({ + includeEmpty: R + }, function(A, L) { + E.getCell(L).style = Object.freeze(m({}, A.style)); + }), E.height = C.height; + } + }, { + key: "duplicateRow", + value: function(M, I) { + var R = this, C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, E = this._rows[M - 1], A = new Array(I).fill(E.values); + this.spliceRows.apply(this, [M + 1, C ? 0 : I].concat(b(A))); + for (var L = function(U) { + var D = R._rows[M + U]; + D.style = E.style, D.height = E.height, E.eachCell({ + includeEmpty: !0 + }, function(B, j) { + D.getCell(j).style = B.style; + }); + }, $ = 0; $ < I; $++) + L($); + } + }, { + key: "spliceRows", + value: function(M, I) { + for (var R = this, C = M + I, E = arguments.length, A = new Array(E > 2 ? E - 2 : 0), L = 2; L < E; L++) + A[L - 2] = arguments[L]; + var $ = A.length, W = $ - I, U = this._rows.length, D, B; + if (W < 0) + for (D = C; D <= U; D++) + B = this._rows[D - 1], B ? function() { + var V = R.getRow(D + W); + V.values = B.values, V.style = B.style, V.height = B.height, B.eachCell({ + includeEmpty: !0 + }, function(re, ee) { + V.getCell(ee).style = re.style; + }), R._rows[D - 1] = void 0; + }() : this._rows[D + W - 1] = void 0; + else if (W > 0) + for (D = U; D >= C; D--) + B = this._rows[D - 1], B ? function() { + var V = R.getRow(D + W); + V.values = B.values, V.style = B.style, V.height = B.height, B.eachCell({ + includeEmpty: !0 + }, function(re, ee) { + if (V.getCell(ee).style = re.style, re._value.constructor.name === "MergeValue") { + var ce = R.getRow(re._row._number + $).getCell(ee), ve = re._value._master, ge = R.getRow(ve._row._number + $).getCell(ve._column._number); + ce.merge(ge); + } + }); + }() : this._rows[D + W - 1] = void 0; + for (D = 0; D < $; D++) { + var j = this.getRow(M + D); + j.style = {}, j.values = A[D]; + } + this.workbook.definedNames.spliceRows(this.name, M, I, $); + } + // iterate over every row in the worksheet, including maybe empty rows + }, { + key: "eachRow", + value: function(M, I) { + if (I || (I = M, M = void 0), M && M.includeEmpty) + for (var R = this._rows.length, C = 1; C <= R; C++) + I(this.getRow(C), C); + else + this._rows.forEach(function(E) { + E && E.hasValues && I(E, E.number); + }); + } + // return all rows as sparse array + }, { + key: "getSheetValues", + value: function() { + var M = []; + return this._rows.forEach(function(I) { + I && (M[I.number] = I.values); + }), M; + } + // ========================================================================= + // Cells + // returns the cell at [r,c] or address given by r. If not found, return undefined + }, { + key: "findCell", + value: function(M, I) { + var R = a.getAddress(M, I), C = this._rows[R.row - 1]; + return C ? C.findCell(R.col) : void 0; + } + // return the cell at [r,c] or address given by r. If not found, create a new one. + }, { + key: "getCell", + value: function(M, I) { + var R = a.getAddress(M, I), C = this.getRow(R.row); + return C.getCellEx(R); + } + // ========================================================================= + // Merge + // convert the range defined by ['tl:br'], [tl,br] or [t,l,b,r] into a single 'merged' cell + }, { + key: "mergeCells", + value: function() { + for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++) + I[R] = arguments[R]; + var C = new r(I); + this._mergeCellsInternal(C); + } + }, { + key: "mergeCellsWithoutStyle", + value: function() { + for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++) + I[R] = arguments[R]; + var C = new r(I); + this._mergeCellsInternal(C, !0); + } + }, { + key: "_mergeCellsInternal", + value: function(M, I) { + c.each(this._merges, function(A) { + if (A.intersects(M)) + throw new Error("Cannot merge already merged cells"); + }); + for (var R = this.getCell(M.top, M.left), C = M.top; C <= M.bottom; C++) + for (var E = M.left; E <= M.right; E++) + (C > M.top || E > M.left) && this.getCell(C, E).merge(R, I); + this._merges[R.address] = M; + } + }, { + key: "_unMergeMaster", + value: function(M) { + var I = this._merges[M.address]; + if (I) { + for (var R = I.top; R <= I.bottom; R++) + for (var C = I.left; C <= I.right; C++) + this.getCell(R, C).unmerge(); + delete this._merges[M.address]; + } + } + }, { + key: "unMergeCells", + // scan the range defined by ['tl:br'], [tl,br] or [t,l,b,r] and if any cell is part of a merge, + // un-merge the group. Note this function can affect multiple merges and merge-blocks are + // atomic - either they're all merged or all un-merged. + value: function() { + for (var M = arguments.length, I = new Array(M), R = 0; R < M; R++) + I[R] = arguments[R]; + for (var C = new r(I), E = C.top; E <= C.bottom; E++) + for (var A = C.left; A <= C.right; A++) { + var L = this.findCell(E, A); + L && (L.type === n.ValueType.Merge ? this._unMergeMaster(L.master) : this._merges[L.address] && this._unMergeMaster(L)); + } + } + // =========================================================================== + // Shared/Array Formula + }, { + key: "fillFormula", + value: function(M, I, R) { + var C = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "shared", E = a.decode(M), A = E.top, L = E.left, $ = E.bottom, W = E.right, U = W - L + 1, D = a.encodeAddress(A, L), B = C === "shared", j; + typeof R == "function" ? j = R : Array.isArray(R) ? Array.isArray(R[0]) ? j = function(ve, ge) { + return R[ve - A][ge - L]; + } : j = function(ve, ge) { + return R[(ve - A) * U + (ge - L)]; + } : j = function() { + }; + for (var V = !0, re = A; re <= $; re++) + for (var ee = L; ee <= W; ee++) + V ? (this.getCell(re, ee).value = { + shareType: C, + formula: I, + ref: M, + result: j(re, ee) + }, V = !1) : this.getCell(re, ee).value = B ? { + sharedFormula: D, + result: j(re, ee) + } : j(re, ee); + } + // ========================================================================= + // Images + }, { + key: "addImage", + value: function(M, I) { + var R = { + type: "image", + imageId: M, + range: I + }; + this._media.push(new o(this, R)); + } + }, { + key: "getImages", + value: function() { + return this._media.filter(function(M) { + return M.type === "image"; + }); + } + }, { + key: "addBackgroundImage", + value: function(M) { + var I = { + type: "background", + imageId: M + }; + this._media.push(new o(this, I)); + } + }, { + key: "getBackgroundImageId", + value: function() { + var M = this._media.find(function(I) { + return I.type === "background"; + }); + return M && M.imageId; + } + // ========================================================================= + // Worksheet Protection + }, { + key: "protect", + value: function(M, I) { + var R = this; + return new Promise(function(C) { + R.sheetProtection = { + sheet: !0 + }, I && "spinCount" in I && (I.spinCount = Number.isFinite(I.spinCount) ? Math.round(Math.max(0, I.spinCount)) : 1e5), M && (R.sheetProtection.algorithmName = "SHA-512", R.sheetProtection.saltValue = P.randomBytes(16).toString("base64"), R.sheetProtection.spinCount = I && "spinCount" in I ? I.spinCount : 1e5, R.sheetProtection.hashValue = P.convertPasswordToHash(M, "SHA512", R.sheetProtection.saltValue, R.sheetProtection.spinCount)), I && (R.sheetProtection = Object.assign(R.sheetProtection, I), !M && "spinCount" in I && delete R.sheetProtection.spinCount), C(); + }); + } + }, { + key: "unprotect", + value: function() { + this.sheetProtection = null; + } + // ========================================================================= + // Tables + }, { + key: "addTable", + value: function(M) { + var I = new p(this, M); + return this.tables[M.name] = I, I; + } + }, { + key: "getTable", + value: function(M) { + return this.tables[M]; + } + }, { + key: "removeTable", + value: function(M) { + delete this.tables[M]; + } + }, { + key: "getTables", + value: function() { + return Object.values(this.tables); + } + // =========================================================================== + // Conditional Formatting + }, { + key: "addConditionalFormatting", + value: function(M) { + this.conditionalFormattings.push(M); + } + }, { + key: "removeConditionalFormatting", + value: function(M) { + typeof M == "number" ? this.conditionalFormattings.splice(M, 1) : M instanceof Function ? this.conditionalFormattings = this.conditionalFormattings.filter(M) : this.conditionalFormattings = []; + } + // =========================================================================== + // Deprecated + }, { + key: "_parseRows", + value: function(M) { + var I = this; + this._rows = [], M.rows.forEach(function(R) { + var C = new t(I, R.number); + I._rows[C.number - 1] = C, C.model = R; + }); + } + }, { + key: "_parseMergeCells", + value: function(M) { + var I = this; + c.each(M.mergeCells, function(R) { + I.mergeCellsWithoutStyle(R); + }); + } + }, { + key: "workbook", + get: function() { + return this._workbook; + } + }, { + key: "dimensions", + get: function() { + var M = new r(); + return this._rows.forEach(function(I) { + if (I) { + var R = I.dimensions; + R && M.expand(I.number, R.min, I.number, R.max); + } + }), M; + } + // ========================================================================= + // Columns + // get the current columns array. + }, { + key: "columns", + get: function() { + return this._columns; + }, + set: function(M) { + var I = this; + this._headerRowCount = M.reduce(function(E, A) { + var L = A.header && 1 || A.headers && A.headers.length || 0; + return Math.max(E, L); + }, 0); + var R = 1, C = this._columns = []; + M.forEach(function(E) { + var A = new i(I, R++, !1); + C.push(A), A.defn = E; + }); + } + }, { + key: "lastColumn", + get: function() { + return this.getColumn(this.columnCount); + } + }, { + key: "columnCount", + get: function() { + var M = 0; + return this.eachRow(function(I) { + M = Math.max(M, I.cellCount); + }), M; + } + }, { + key: "actualColumnCount", + get: function() { + var M = [], I = 0; + return this.eachRow(function(R) { + R.eachCell(function(C) { + var E = C.col; + M[E] || (M[E] = !0, I++); + }); + }), I; + } + }, { + key: "_lastRowNumber", + get: function() { + for (var M = this._rows, I = M.length; I > 0 && M[I - 1] === void 0; ) + I--; + return I; + } + }, { + key: "_nextRow", + get: function() { + return this._lastRowNumber + 1; + } + }, { + key: "lastRow", + get: function() { + if (this._rows.length) + return this._rows[this._rows.length - 1]; + } + }, { + key: "rowCount", + get: function() { + return this._lastRowNumber; + } + }, { + key: "actualRowCount", + get: function() { + var M = 0; + return this.eachRow(function() { + M++; + }), M; + } + }, { + key: "hasMerges", + get: function() { + return c.some(this._merges, Boolean); + } + }, { + key: "tabColor", + get: function() { + return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"), this.properties.tabColor; + }, + set: function(M) { + console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"), this.properties.tabColor = M; + } + // =========================================================================== + // Model + }, { + key: "model", + get: function() { + var M = { + id: this.id, + name: this.name, + dataValidations: this.dataValidations.model, + properties: this.properties, + state: this.state, + pageSetup: this.pageSetup, + headerFooter: this.headerFooter, + rowBreaks: this.rowBreaks, + views: this.views, + autoFilter: this.autoFilter, + media: this._media.map(function(C) { + return C.model; + }), + sheetProtection: this.sheetProtection, + tables: Object.values(this.tables).map(function(C) { + return C.model; + }), + conditionalFormattings: this.conditionalFormattings + }; + M.cols = i.toModel(this.columns); + var I = M.rows = [], R = M.dimensions = new r(); + return this._rows.forEach(function(C) { + var E = C && C.model; + E && (R.expand(E.number, E.min, E.number, E.max), I.push(E)); + }), M.merges = [], c.each(this._merges, function(C) { + M.merges.push(C.range); + }), M; + }, + set: function(M) { + var I = this; + this.name = M.name, this._columns = i.fromModel(this, M.cols), this._parseRows(M), this._parseMergeCells(M), this.dataValidations = new O(M.dataValidations), this.properties = M.properties, this.pageSetup = M.pageSetup, this.headerFooter = M.headerFooter, this.views = M.views, this.autoFilter = M.autoFilter, this._media = M.media.map(function(R) { + return new o(I, R); + }), this.sheetProtection = M.sheetProtection, this.tables = M.tables.reduce(function(R, C) { + var E = new p(); + return E.model = C, R[C.name] = E, R; + }, {}), this.conditionalFormattings = M.conditionalFormattings; + } + }]), z; + }(); + x.exports = F; + }, { "../utils/col-cache": 19, "../utils/encryptor": 20, "../utils/under-dash": 25, "./column": 4, "./data-validations": 5, "./enums": 7, "./image": 8, "./range": 10, "./row": 11, "./table": 12 }], 15: [function(e, x, _) { + e("core-js/modules/es.promise"), e("core-js/modules/es.object.assign"), e("core-js/modules/es.object.keys"), e("core-js/modules/es.object.values"), e("core-js/modules/es.symbol"), e("core-js/modules/es.symbol.async-iterator"), e("core-js/modules/es.array.iterator"), e("core-js/modules/es.array.includes"), e("core-js/modules/es.array.find-index"), e("core-js/modules/es.array.find"), e("core-js/modules/es.string.from-code-point"), e("core-js/modules/es.string.includes"), e("core-js/modules/es.number.is-nan"), e("regenerator-runtime/runtime"); + var u = { + Workbook: e("./doc/workbook") + }, m = e("./doc/enums"); + Object.keys(m).forEach(function(g) { + u[g] = m[g]; + }), x.exports = u; + }, { "./doc/enums": 7, "./doc/workbook": 13, "core-js/modules/es.array.find": 316, "core-js/modules/es.array.find-index": 315, "core-js/modules/es.array.includes": 317, "core-js/modules/es.array.iterator": 318, "core-js/modules/es.number.is-nan": 319, "core-js/modules/es.object.assign": 320, "core-js/modules/es.object.keys": 321, "core-js/modules/es.object.values": 322, "core-js/modules/es.promise": 323, "core-js/modules/es.string.from-code-point": 324, "core-js/modules/es.string.includes": 325, "core-js/modules/es.symbol": 327, "core-js/modules/es.symbol.async-iterator": 326, "regenerator-runtime/runtime": 492 }], 16: [function(e, x, _) { + var u = typeof TextDecoder == "undefined" ? null : new TextDecoder("utf-8"); + function m(g) { + return typeof g == "string" ? g : u ? u.decode(g) : g.toString(); + } + _.bufferToString = m; + }, {}], 17: [function(e, x, _) { + var u = typeof TextEncoder == "undefined" ? null : new TextEncoder("utf-8"), m = e("buffer"), g = m.Buffer; + function b(w) { + return typeof w != "string" ? w : u ? g.from(u.encode(w).buffer) : g.from(w); + } + _.stringToBuffer = b; + }, { buffer: 216 }], 18: [function(e, x, _) { + function u(y, h) { + if (!(y instanceof h)) + throw new TypeError("Cannot call a class as a function"); + } + function m(y, h) { + for (var l = 0; l < h.length; l++) { + var d = h[l]; + d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d); + } + } + function g(y, h, l) { + return h && m(y.prototype, h), l && m(y, l), y; + } + var b = e("./under-dash"), w = e("./col-cache"), f = /* @__PURE__ */ function() { + function y(h) { + u(this, y), this.template = h, this.sheets = {}; + } + return g(y, [{ + key: "addCell", + value: function(l) { + this.addCellEx(w.decodeEx(l)); + } + }, { + key: "getCell", + value: function(l) { + return this.findCellEx(w.decodeEx(l), !0); + } + }, { + key: "findCell", + value: function(l) { + return this.findCellEx(w.decodeEx(l), !1); + } + }, { + key: "findCellAt", + value: function(l, d, s) { + var v = this.sheets[l], c = v && v[d]; + return c && c[s]; + } + }, { + key: "addCellEx", + value: function(l) { + if (l.top) + for (var d = l.top; d <= l.bottom; d++) + for (var s = l.left; s <= l.right; s++) + this.getCellAt(l.sheetName, d, s); + else + this.findCellEx(l, !0); + } + }, { + key: "getCellEx", + value: function(l) { + return this.findCellEx(l, !0); + } + }, { + key: "findCellEx", + value: function(l, d) { + var s = this.findSheet(l, d), v = this.findSheetRow(s, l, d); + return this.findRowCell(v, l, d); + } + }, { + key: "getCellAt", + value: function(l, d, s) { + var v = this.sheets[l] || (this.sheets[l] = []), c = v[d] || (v[d] = []), a = c[s] || (c[s] = { + sheetName: l, + address: w.n2l(s) + d, + row: d, + col: s + }); + return a; + } + }, { + key: "removeCellEx", + value: function(l) { + var d = this.findSheet(l); + if (d) { + var s = this.findSheetRow(d, l); + s && delete s[l.col]; + } + } + }, { + key: "forEachInSheet", + value: function(l, d) { + var s = this.sheets[l]; + s && s.forEach(function(v, c) { + v && v.forEach(function(a, r) { + a && d(a, c, r); + }); + }); + } + }, { + key: "forEach", + value: function(l) { + var d = this; + b.each(this.sheets, function(s, v) { + d.forEachInSheet(v, l); + }); + } + }, { + key: "map", + value: function(l) { + var d = []; + return this.forEach(function(s) { + d.push(l(s)); + }), d; + } + }, { + key: "findSheet", + value: function(l, d) { + var s = l.sheetName; + if (this.sheets[s]) + return this.sheets[s]; + if (d) + return this.sheets[s] = []; + } + }, { + key: "findSheetRow", + value: function(l, d, s) { + var v = d.row; + if (l && l[v]) + return l[v]; + if (s) + return l[v] = []; + } + }, { + key: "findRowCell", + value: function(l, d, s) { + var v = d.col; + if (l && l[v]) + return l[v]; + if (s) + return l[v] = this.template ? Object.assign(d, JSON.parse(JSON.stringify(this.template))) : d; + } + }, { + key: "spliceRows", + value: function(l, d, s, v) { + var c = this.sheets[l]; + if (c) { + for (var a = [], r = 0; r < v; r++) + a.push([]); + c.splice.apply(c, [d, s].concat(a)); + } + } + }, { + key: "spliceColumns", + value: function(l, d, s, v) { + var c = this.sheets[l]; + if (c) { + for (var a = [], r = 0; r < v; r++) + a.push(null); + b.each(c, function(t) { + t.splice.apply(t, [d, s].concat(a)); + }); + } + } + }]), y; + }(); + x.exports = f; + }, { "./col-cache": 19, "./under-dash": 25 }], 19: [function(e, x, _) { + function u(v, c) { + return f(v) || w(v, c) || g(v, c) || m(); + } + function m() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function g(v, c) { + if (v) { + if (typeof v == "string") + return b(v, c); + var a = Object.prototype.toString.call(v).slice(8, -1); + if (a === "Object" && v.constructor && (a = v.constructor.name), a === "Map" || a === "Set") + return Array.from(v); + if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) + return b(v, c); + } + } + function b(v, c) { + (c == null || c > v.length) && (c = v.length); + for (var a = 0, r = new Array(c); a < c; a++) + r[a] = v[a]; + return r; + } + function w(v, c) { + if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(v)))) { + var a = [], r = !0, t = !1, i = void 0; + try { + for (var n = v[Symbol.iterator](), o; !(r = (o = n.next()).done) && (a.push(o.value), !(c && a.length === c)); r = !0) + ; + } catch (p) { + t = !0, i = p; + } finally { + try { + !r && n.return != null && n.return(); + } finally { + if (t) + throw i; + } + } + return a; + } + } + function f(v) { + if (Array.isArray(v)) + return v; + } + function y(v, c) { + var a = Object.keys(v); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(v); + c && (r = r.filter(function(t) { + return Object.getOwnPropertyDescriptor(v, t).enumerable; + })), a.push.apply(a, r); + } + return a; + } + function h(v) { + for (var c = 1; c < arguments.length; c++) { + var a = arguments[c] != null ? arguments[c] : {}; + c % 2 ? y(Object(a), !0).forEach(function(r) { + l(v, r, a[r]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(a)) : y(Object(a)).forEach(function(r) { + Object.defineProperty(v, r, Object.getOwnPropertyDescriptor(a, r)); + }); + } + return v; + } + function l(v, c, a) { + return c in v ? Object.defineProperty(v, c, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : v[c] = a, v; + } + var d = /^[A-Z]+\d+$/, s = { + _dictionary: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"], + _l2nFill: 0, + _l2n: {}, + _n2l: [], + _level: function(c) { + return c <= 26 ? 1 : c <= 26 * 26 ? 2 : 3; + }, + _fill: function(c) { + var a, r, t, i, n, o = 1; + if (c >= 4) + throw new Error("Out of bounds. Excel supports columns from 1 to 16384"); + if (this._l2nFill < 1 && c >= 1) { + for (; o <= 26; ) + a = this._dictionary[o - 1], this._n2l[o] = a, this._l2n[a] = o, o++; + this._l2nFill = 1; + } + if (this._l2nFill < 2 && c >= 2) { + for (o = 27; o <= 26 + 26 * 26; ) + r = o - (26 + 1), t = r % 26, i = Math.floor(r / 26), a = this._dictionary[i] + this._dictionary[t], this._n2l[o] = a, this._l2n[a] = o, o++; + this._l2nFill = 2; + } + if (this._l2nFill < 3 && c >= 3) { + for (o = 26 + 26 * 26 + 1; o <= 16384; ) + r = o - (26 * 26 + 26 + 1), t = r % 26, i = Math.floor(r / 26) % 26, n = Math.floor(r / (26 * 26)), a = this._dictionary[n] + this._dictionary[i] + this._dictionary[t], this._n2l[o] = a, this._l2n[a] = o, o++; + this._l2nFill = 3; + } + }, + l2n: function(c) { + if (this._l2n[c] || this._fill(c.length), !this._l2n[c]) + throw new Error("Out of bounds. Invalid column letter: ".concat(c)); + return this._l2n[c]; + }, + n2l: function(c) { + if (c < 1 || c > 16384) + throw new Error("".concat(c, " is out of bounds. Excel supports columns from 1 to 16384")); + return this._n2l[c] || this._fill(this._level(c)), this._n2l[c]; + }, + // ========================================================================= + // Address processing + _hash: {}, + // check if value looks like an address + validateAddress: function(c) { + if (!d.test(c)) + throw new Error("Invalid Address: ".concat(c)); + return !0; + }, + // convert address string into structure + decodeAddress: function(c) { + var a = c.length < 5 && this._hash[c]; + if (a) + return a; + for (var r = !1, t = "", i = 0, n = !1, o = "", p = 0, O = 0, P; O < c.length; O++) + if (P = c.charCodeAt(O), !n && P >= 65 && P <= 90) + r = !0, t += c[O], i = i * 26 + P - 64; + else if (P >= 48 && P <= 57) + n = !0, o += c[O], p = p * 10 + P - 48; + else if (n && r && P !== 36) + break; + if (!r) + i = void 0; + else if (i > 16384) + throw new Error("Out of bounds. Invalid column letter: ".concat(t)); + n || (p = void 0), c = t + o; + var F = { + address: c, + col: i, + row: p, + $col$row: "$".concat(t, "$").concat(o) + }; + return i <= 100 && p <= 100 && (this._hash[c] = F, this._hash[F.$col$row] = F), F; + }, + // convert r,c into structure (if only 1 arg, assume r is address string) + getAddress: function(c, a) { + if (a) { + var r = this.n2l(a) + c; + return this.decodeAddress(r); + } + return this.decodeAddress(c); + }, + // convert [address], [tl:br] into address structures + decode: function(c) { + var a = c.split(":"); + if (a.length === 2) { + var r = this.decodeAddress(a[0]), t = this.decodeAddress(a[1]), i = { + top: Math.min(r.row, t.row), + left: Math.min(r.col, t.col), + bottom: Math.max(r.row, t.row), + right: Math.max(r.col, t.col) + }; + return i.tl = this.n2l(i.left) + i.top, i.br = this.n2l(i.right) + i.bottom, i.dimensions = "".concat(i.tl, ":").concat(i.br), i; + } + return this.decodeAddress(c); + }, + // convert [sheetName!][$]col[$]row[[$]col[$]row] into address or range structures + decodeEx: function(c) { + var a = c.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/), r = a[1] || a[2], t = a[3], i = t.split(":"); + if (i.length > 1) { + var n = this.decodeAddress(i[0]), o = this.decodeAddress(i[1]), p = Math.min(n.row, o.row), O = Math.min(n.col, o.col), P = Math.max(n.row, o.row), F = Math.max(n.col, o.col); + return n = this.n2l(O) + p, o = this.n2l(F) + P, { + top: p, + left: O, + bottom: P, + right: F, + sheetName: r, + tl: { + address: n, + col: O, + row: p, + $col$row: "$".concat(this.n2l(O), "$").concat(p), + sheetName: r + }, + br: { + address: o, + col: F, + row: P, + $col$row: "$".concat(this.n2l(F), "$").concat(P), + sheetName: r + }, + dimensions: "".concat(n, ":").concat(o) + }; + } + if (t.startsWith("#")) + return r ? { + sheetName: r, + error: t + } : { + error: t + }; + var z = this.decodeAddress(t); + return r ? h({ + sheetName: r + }, z) : z; + }, + // convert row,col into address string + encodeAddress: function(c, a) { + return s.n2l(a) + c; + }, + // convert row,col into string address or t,l,b,r into range + encode: function() { + switch (arguments.length) { + case 2: + return s.encodeAddress(arguments[0], arguments[1]); + case 4: + return "".concat(s.encodeAddress(arguments[0], arguments[1]), ":").concat(s.encodeAddress(arguments[2], arguments[3])); + default: + throw new Error("Can only encode with 2 or 4 arguments"); + } + }, + // return true if address is contained within range + inRange: function(c, a) { + var r = u(c, 5), t = r[0], i = r[1], n = r[3], o = r[4], p = u(a, 2), O = p[0], P = p[1]; + return O >= t && O <= n && P >= i && P <= o; + } + }; + x.exports = s; + }, {}], 20: [function(e, x, _) { + (function(u) { + var m = e("crypto"), g = { + /** + * Calculate a hash of the concatenated buffers with the given algorithm. + * @param {string} algorithm - The hash algorithm. + * @returns {Buffer} The hash + */ + hash: function(w) { + for (var f = m.createHash(w), y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), l = 1; l < y; l++) + h[l - 1] = arguments[l]; + return f.update(u.concat(h)), f.digest(); + }, + /** + * Convert a password into an encryption key + * @param {string} password - The password + * @param {string} hashAlgorithm - The hash algoritm + * @param {string} saltValue - The salt value + * @param {number} spinCount - The spin count + * @param {number} keyBits - The length of the key in bits + * @param {Buffer} blockKey - The block key + * @returns {Buffer} The encryption key + */ + convertPasswordToHash: function(w, f, y, h) { + f = f.toLowerCase(); + var l = m.getHashes(); + if (l.indexOf(f) < 0) + throw new Error("Hash algorithm '".concat(f, "' not supported!")); + for (var d = u.from(w, "utf16le"), s = this.hash(f, u.from(y, "base64"), d), v = 0; v < h; v++) { + var c = u.alloc(4); + c.writeUInt32LE(v, 0), s = this.hash(f, s, c); + } + return s.toString("base64"); + }, + /** + * Generates cryptographically strong pseudo-random data. + * @param size The size argument is a number indicating the number of bytes to generate. + */ + randomBytes: function(w) { + return m.randomBytes(w); + } + }; + x.exports = g; + }).call(this, e("buffer").Buffer); + }, { buffer: 216, crypto: 335 }], 21: [function(e, x, _) { + function u(v) { + return new b(v); + } + function m(v) { + return function() { + return new g(v.apply(this, arguments)); + }; + } + function g(v) { + var c, a; + function r(n, o) { + return new Promise(function(p, O) { + var P = { key: n, arg: o, resolve: p, reject: O, next: null }; + a ? a = a.next = P : (c = a = P, t(n, o)); + }); + } + function t(n, o) { + try { + var p = v[n](o), O = p.value, P = O instanceof b; + Promise.resolve(P ? O.wrapped : O).then(function(F) { + if (P) { + t(n === "return" ? "return" : "next", F); + return; + } + i(p.done ? "return" : "normal", F); + }, function(F) { + t("throw", F); + }); + } catch (F) { + i("throw", F); + } + } + function i(n, o) { + switch (n) { + case "return": + c.resolve({ value: o, done: !0 }); + break; + case "throw": + c.reject(o); + break; + default: + c.resolve({ value: o, done: !1 }); + break; + } + c = c.next, c ? t(c.key, c.arg) : a = null; + } + this._invoke = r, typeof v.return != "function" && (this.return = void 0); + } + typeof Symbol == "function" && Symbol.asyncIterator && (g.prototype[Symbol.asyncIterator] = function() { + return this; + }), g.prototype.next = function(v) { + return this._invoke("next", v); + }, g.prototype.throw = function(v) { + return this._invoke("throw", v); + }, g.prototype.return = function(v) { + return this._invoke("return", v); + }; + function b(v) { + this.wrapped = v; + } + function w(v) { + var c; + if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (c = v[Symbol.asyncIterator], c != null) || Symbol.iterator && (c = v[Symbol.iterator], c != null))) + return c.call(v); + throw new TypeError("Object is not async iterable"); + } + var f = e("saxes"), y = f.SaxesParser, h = e("readable-stream"), l = h.PassThrough, d = e("./browser-buffer-decode"), s = d.bufferToString; + x.exports = /* @__PURE__ */ function() { + var v = m(/* @__PURE__ */ regeneratorRuntime.mark(function c(a) { + var r, t, i, n, o, p, O, P, F, z; + return regeneratorRuntime.wrap(function(M) { + for (; ; ) + switch (M.prev = M.next) { + case 0: + a.pipe && !a[Symbol.asyncIterator] && (a = a.pipe(new l())), r = new y(), r.on("error", function(I) { + t = I; + }), i = [], r.on("opentag", function(I) { + return i.push({ + eventType: "opentag", + value: I + }); + }), r.on("text", function(I) { + return i.push({ + eventType: "text", + value: I + }); + }), r.on("closetag", function(I) { + return i.push({ + eventType: "closetag", + value: I + }); + }), n = !0, o = !1, M.prev = 9, O = w(a); + case 11: + return M.next = 13, u(O.next()); + case 13: + return P = M.sent, n = P.done, M.next = 17, u(P.value); + case 17: + if (F = M.sent, n) { + M.next = 29; + break; + } + if (z = F, r.write(s(z)), !t) { + M.next = 23; + break; + } + throw t; + case 23: + return M.next = 25, i; + case 25: + i = []; + case 26: + n = !0, M.next = 11; + break; + case 29: + M.next = 35; + break; + case 31: + M.prev = 31, M.t0 = M.catch(9), o = !0, p = M.t0; + case 35: + if (M.prev = 35, M.prev = 36, !(!n && O.return != null)) { + M.next = 40; + break; + } + return M.next = 40, u(O.return()); + case 40: + if (M.prev = 40, !o) { + M.next = 43; + break; + } + throw p; + case 43: + return M.finish(40); + case 44: + return M.finish(35); + case 45: + case "end": + return M.stop(); + } + }, c, null, [[9, 31, 35, 45], [36, , 40, 44]]); + })); + return function(c) { + return v.apply(this, arguments); + }; + }(); + }, { "./browser-buffer-decode": 16, "readable-stream": 491, saxes: 496 }], 22: [function(e, x, _) { + var u = e("./col-cache"), m = /(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi, g = /^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i; + function b(w, f, y) { + var h = u.decode(f), l = u.decode(y); + return w.replace(m, function(d, s, v, c, a) { + if (a) + return d; + var r = g.exec(c); + if (r) { + var t = r[1], i = r[2].toUpperCase(), n = r[3], o = r[4]; + if (i.length > 3 || i.length === 3 && i > "XFD") + return d; + var p = u.l2n(i), O = parseInt(o, 10); + t || (p += l.col - h.col), n || (O += l.row - h.row); + var P = (s || "") + (t || "") + u.n2l(p) + (n || "") + O; + return P; + } + return d; + }); + } + x.exports = { + slideFormula: b + }; + }, { "./col-cache": 19 }], 23: [function(e, x, _) { + (function(u, m) { + function g(t, i, n, o, p, O, P) { + try { + var F = t[O](P), z = F.value; + } catch (N) { + n(N); + return; + } + F.done ? i(z) : Promise.resolve(z).then(o, p); + } + function b(t) { + return function() { + var i = this, n = arguments; + return new Promise(function(o, p) { + var O = t.apply(i, n); + function P(z) { + g(O, o, p, P, F, "next", z); + } + function F(z) { + g(O, o, p, P, F, "throw", z); + } + P(void 0); + }); + }; + } + function w(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function f(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function y(t, i, n) { + return i && f(t.prototype, i), n && f(t, n), t; + } + var h = e("readable-stream"), l = e("./utils"), d = e("./string-buf"), s = /* @__PURE__ */ function() { + function t(i, n) { + w(this, t), this._data = i, this._encoding = n; + } + return y(t, [{ + key: "copy", + // copy to target buffer + value: function(n, o, p, O) { + return this.toBuffer().copy(n, o, p, O); + } + }, { + key: "toBuffer", + value: function() { + return this._buffer || (this._buffer = m.from(this._data, this._encoding)), this._buffer; + } + }, { + key: "length", + get: function() { + return this.toBuffer().length; + } + }]), t; + }(), v = /* @__PURE__ */ function() { + function t(i) { + w(this, t), this._data = i; + } + return y(t, [{ + key: "copy", + // copy to target buffer + value: function(n, o, p, O) { + return this._data._buf.copy(n, o, p, O); + } + }, { + key: "toBuffer", + value: function() { + return this._data.toBuffer(); + } + }, { + key: "length", + get: function() { + return this._data.length; + } + }]), t; + }(), c = /* @__PURE__ */ function() { + function t(i) { + w(this, t), this._data = i; + } + return y(t, [{ + key: "copy", + // copy to target buffer + value: function(n, o, p, O) { + this._data.copy(n, o, p, O); + } + }, { + key: "toBuffer", + value: function() { + return this._data; + } + }, { + key: "length", + get: function() { + return this._data.length; + } + }]), t; + }(), a = /* @__PURE__ */ function() { + function t(i) { + w(this, t), this.size = i, this.buffer = m.alloc(i), this.iRead = 0, this.iWrite = 0; + } + return y(t, [{ + key: "toBuffer", + value: function() { + if (this.iRead === 0 && this.iWrite === this.size) + return this.buffer; + var n = m.alloc(this.iWrite - this.iRead); + return this.buffer.copy(n, 0, this.iRead, this.iWrite), n; + } + }, { + key: "read", + value: function(n) { + var o; + return n === 0 ? null : n === void 0 || n >= this.length ? (o = this.toBuffer(), this.iRead = this.iWrite, o) : (o = m.alloc(n), this.buffer.copy(o, 0, this.iRead, n), this.iRead += n, o); + } + }, { + key: "write", + value: function(n, o, p) { + var O = Math.min(p, this.size - this.iWrite); + return n.copy(this.buffer, this.iWrite, o, o + O), this.iWrite += O, O; + } + }, { + key: "length", + get: function() { + return this.iWrite - this.iRead; + } + }, { + key: "eod", + get: function() { + return this.iRead === this.iWrite; + } + }, { + key: "full", + get: function() { + return this.iWrite === this.size; + } + }]), t; + }(), r = function(i) { + i = i || {}, this.bufSize = i.bufSize || 1024 * 1024, this.buffers = [], this.batch = i.batch || !1, this.corked = !1, this.inPos = 0, this.outPos = 0, this.pipes = [], this.paused = !1, this.encoding = null; + }; + l.inherits(r, h.Duplex, { + toBuffer: function() { + switch (this.buffers.length) { + case 0: + return null; + case 1: + return this.buffers[0].toBuffer(); + default: + return m.concat(this.buffers.map(function(i) { + return i.toBuffer(); + })); + } + }, + // writable + // event drain - if write returns false (which it won't), indicates when safe to write again. + // finish - end() has been called + // pipe(src) - pipe() has been called on readable + // unpipe(src) - unpipe() has been called on readable + // error - duh + _getWritableBuffer: function() { + if (this.buffers.length) { + var i = this.buffers[this.buffers.length - 1]; + if (!i.full) + return i; + } + var n = new a(this.bufSize); + return this.buffers.push(n), n; + }, + _pipe: function(i) { + var n = this; + return b(/* @__PURE__ */ regeneratorRuntime.mark(function o() { + var p; + return regeneratorRuntime.wrap(function(P) { + for (; ; ) + switch (P.prev = P.next) { + case 0: + return p = function(z) { + return new Promise(function(N) { + z.write(i.toBuffer(), function() { + N(); + }); + }); + }, P.next = 3, Promise.all(n.pipes.map(p)); + case 3: + case "end": + return P.stop(); + } + }, o); + }))(); + }, + _writeToBuffers: function(i) { + for (var n = 0, o = i.length; n < o; ) { + var p = this._getWritableBuffer(); + n += p.write(i, n, o - n); + } + }, + write: function(i, n, o) { + var p = this; + return b(/* @__PURE__ */ regeneratorRuntime.mark(function O() { + var P; + return regeneratorRuntime.wrap(function(z) { + for (; ; ) + switch (z.prev = z.next) { + case 0: + if (n instanceof Function && (o = n, n = "utf8"), o = o || l.nop, !(i instanceof d)) { + z.next = 6; + break; + } + P = new v(i), z.next = 15; + break; + case 6: + if (!(i instanceof m)) { + z.next = 10; + break; + } + P = new c(i), z.next = 15; + break; + case 10: + if (!(typeof i == "string" || i instanceof String || i instanceof ArrayBuffer)) { + z.next = 14; + break; + } + P = new s(i, n), z.next = 15; + break; + case 14: + throw new Error("Chunk must be one of type String, Buffer or StringBuf."); + case 15: + if (!p.pipes.length) { + z.next = 31; + break; + } + if (!p.batch) { + z.next = 21; + break; + } + for (p._writeToBuffers(P); !p.corked && p.buffers.length > 1; ) + p._pipe(p.buffers.shift()); + z.next = 29; + break; + case 21: + if (p.corked) { + z.next = 27; + break; + } + return z.next = 24, p._pipe(P); + case 24: + o(), z.next = 29; + break; + case 27: + p._writeToBuffers(P), u.nextTick(o); + case 29: + z.next = 34; + break; + case 31: + p.paused || p.emit("data", P.toBuffer()), p._writeToBuffers(P), p.emit("readable"); + case 34: + return z.abrupt("return", !0); + case 35: + case "end": + return z.stop(); + } + }, O); + }))(); + }, + cork: function() { + this.corked = !0; + }, + _flush: function() { + if (this.pipes.length) + for (; this.buffers.length; ) + this._pipe(this.buffers.shift()); + }, + uncork: function() { + this.corked = !1, this._flush(); + }, + end: function(i, n, o) { + var p = this, O = function(F) { + F ? o(F) : (p._flush(), p.pipes.forEach(function(z) { + z.end(); + }), p.emit("finish")); + }; + i ? this.write(i, n, O) : O(); + }, + // readable + // event readable - some data is now available + // event data - switch to flowing mode - feeds chunks to handler + // event end - no more data + // event close - optional, indicates upstream close + // event error - duh + read: function(i) { + var n; + if (i) { + for (n = []; i && this.buffers.length && !this.buffers[0].eod; ) { + var o = this.buffers[0], p = o.read(i); + i -= p.length, n.push(p), o.eod && o.full && this.buffers.shift(); + } + return m.concat(n); + } + return n = this.buffers.map(function(O) { + return O.toBuffer(); + }).filter(Boolean), this.buffers = [], m.concat(n); + }, + setEncoding: function(i) { + this.encoding = i; + }, + pause: function() { + this.paused = !0; + }, + resume: function() { + this.paused = !1; + }, + isPaused: function() { + return !!this.paused; + }, + pipe: function(i) { + this.pipes.push(i), !this.paused && this.buffers.length && this.end(); + }, + unpipe: function(i) { + this.pipes = this.pipes.filter(function(n) { + return n !== i; + }); + }, + unshift: function() { + throw new Error("Not Implemented"); + }, + wrap: function() { + throw new Error("Not Implemented"); + } + }), x.exports = r; + }).call(this, e("_process"), e("buffer").Buffer); + }, { "./string-buf": 24, "./utils": 26, _process: 467, buffer: 216, "readable-stream": 491 }], 24: [function(e, x, _) { + (function(u) { + function m(f, y) { + if (!(f instanceof y)) + throw new TypeError("Cannot call a class as a function"); + } + function g(f, y) { + for (var h = 0; h < y.length; h++) { + var l = y[h]; + l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(f, l.key, l); + } + } + function b(f, y, h) { + return y && g(f.prototype, y), h && g(f, h), f; + } + var w = /* @__PURE__ */ function() { + function f(y) { + m(this, f), this._buf = u.alloc(y && y.size || 16384), this._encoding = y && y.encoding || "utf8", this._inPos = 0, this._buffer = void 0; + } + return b(f, [{ + key: "toBuffer", + value: function() { + return this._buffer || (this._buffer = u.alloc(this.length), this._buf.copy(this._buffer, 0, 0, this.length)), this._buffer; + } + }, { + key: "reset", + value: function(h) { + h = h || 0, this._buffer = void 0, this._inPos = h; + } + }, { + key: "_grow", + value: function(h) { + for (var l = this._buf.length * 2; l < h; ) + l *= 2; + var d = u.alloc(l); + this._buf.copy(d, 0), this._buf = d; + } + }, { + key: "addText", + value: function(h) { + this._buffer = void 0; + for (var l = this._inPos + this._buf.write(h, this._inPos, this._encoding); l >= this._buf.length - 4; ) + this._grow(this._inPos + h.length), l = this._inPos + this._buf.write(h, this._inPos, this._encoding); + this._inPos = l; + } + }, { + key: "addStringBuf", + value: function(h) { + h.length && (this._buffer = void 0, this.length + h.length > this.capacity && this._grow(this.length + h.length), h._buf.copy(this._buf, this._inPos, 0, h.length), this._inPos += h.length); + } + }, { + key: "length", + get: function() { + return this._inPos; + } + }, { + key: "capacity", + get: function() { + return this._buf.length; + } + }, { + key: "buffer", + get: function() { + return this._buf; + } + }]), f; + }(); + x.exports = w; + }).call(this, e("buffer").Buffer); + }, { buffer: 216 }], 25: [function(e, x, _) { + function u(w) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(y) { + return typeof y; + } : u = function(y) { + return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y; + }, u(w); + } + var m = Object.prototype.toString, g = /["&<>]/, b = { + each: function(f, y) { + f && (Array.isArray(f) ? f.forEach(y) : Object.keys(f).forEach(function(h) { + y(f[h], h); + })); + }, + some: function(f, y) { + return f ? Array.isArray(f) ? f.some(y) : Object.keys(f).some(function(h) { + return y(f[h], h); + }) : !1; + }, + every: function(f, y) { + return f ? Array.isArray(f) ? f.every(y) : Object.keys(f).every(function(h) { + return y(f[h], h); + }) : !0; + }, + map: function(f, y) { + return f ? Array.isArray(f) ? f.map(y) : Object.keys(f).map(function(h) { + return y(f[h], h); + }) : []; + }, + keyBy: function(f, y) { + return f.reduce(function(h, l) { + return h[l[y]] = l, h; + }, {}); + }, + isEqual: function(f, y) { + var h = u(f), l = u(y), d = Array.isArray(f), s = Array.isArray(y); + if (h !== l) + return !1; + switch (u(f)) { + case "object": + return d || s ? d && s ? f.length === y.length && f.every(function(v, c) { + var a = y[c]; + return b.isEqual(v, a); + }) : !1 : b.every(f, function(v, c) { + var a = y[c]; + return b.isEqual(v, a); + }); + default: + return f === y; + } + }, + escapeHtml: function(f) { + var y = g.exec(f); + if (!y) + return f; + for (var h = "", l = "", d = 0, s = y.index; s < f.length; s++) { + switch (f.charAt(s)) { + case '"': + l = """; + break; + case "&": + l = "&"; + break; + case "'": + l = "'"; + break; + case "<": + l = "<"; + break; + case ">": + l = ">"; + break; + default: + continue; + } + d !== s && (h += f.substring(d, s)), d = s + 1, h += l; + } + return d !== s ? h + f.substring(d, s) : h; + }, + strcmp: function(f, y) { + return f < y ? -1 : f > y ? 1 : 0; + }, + isUndefined: function(f) { + return m.call(f) === "[object Undefined]"; + }, + isObject: function(f) { + return m.call(f) === "[object Object]"; + }, + deepMerge: function() { + var f = arguments[0] || {}, y = arguments.length, h, l, d; + function s(c, a) { + h = f[a], d = Array.isArray(c), b.isObject(c) || d ? (d ? (d = !1, l = h && Array.isArray(h) ? h : []) : l = h && b.isObject(h) ? h : {}, f[a] = b.deepMerge(l, c)) : b.isUndefined(c) || (f[a] = c); + } + for (var v = 0; v < y; v++) + b.each(arguments[v], s); + return f; + } + }; + x.exports = b; + }, {}], 26: [function(e, x, _) { + (function(u, m) { + var g = e("fs"), b = function(h, l, d, s) { + h.super_ = l, s || (s = d, d = null), d && Object.keys(d).forEach(function(c) { + Object.defineProperty(h, c, Object.getOwnPropertyDescriptor(d, c)); + }); + var v = { + constructor: { + value: h, + enumerable: !1, + writable: !1, + configurable: !0 + } + }; + s && Object.keys(s).forEach(function(c) { + v[c] = Object.getOwnPropertyDescriptor(s, c); + }), h.prototype = Object.create(l.prototype, v); + }, w = /[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/, f = { + nop: function() { + }, + promiseImmediate: function(h) { + return new Promise(function(l) { + u.setImmediate ? m(function() { + l(h); + }) : setTimeout(function() { + l(h); + }, 1); + }); + }, + inherits: b, + dateToExcel: function(h, l) { + return 25569 + h.getTime() / (24 * 3600 * 1e3) - (l ? 1462 : 0); + }, + excelToDate: function(h, l) { + var d = Math.round((h - 25569 + (l ? 1462 : 0)) * 24 * 3600 * 1e3); + return new Date(d); + }, + parsePath: function(h) { + var l = h.lastIndexOf("/"); + return { + path: h.substring(0, l), + name: h.substring(l + 1) + }; + }, + getRelsPath: function(h) { + var l = f.parsePath(h); + return "".concat(l.path, "/_rels/").concat(l.name, ".rels"); + }, + xmlEncode: function(h) { + var l = w.exec(h); + if (!l) + return h; + for (var d = "", s = "", v = 0, c = l.index; c < h.length; c++) { + var a = h.charCodeAt(c); + switch (a) { + case 34: + s = """; + break; + case 38: + s = "&"; + break; + case 39: + s = "'"; + break; + case 60: + s = "<"; + break; + case 62: + s = ">"; + break; + case 127: + s = ""; + break; + default: { + if (a <= 31 && (a <= 8 || a >= 11 && a !== 13)) { + s = ""; + break; + } + continue; + } + } + v !== c && (d += h.substring(v, c)), v = c + 1, s && (d += s); + } + return v !== c ? d + h.substring(v, c) : d; + }, + xmlDecode: function(h) { + return h.replace(/&([a-z]*);/g, function(l) { + switch (l) { + case "<": + return "<"; + case ">": + return ">"; + case "&": + return "&"; + case "'": + return "'"; + case """: + return '"'; + default: + return l; + } + }); + }, + validInt: function(h) { + var l = parseInt(h, 10); + return Number.isNaN(l) ? 0 : l; + }, + isDateFmt: function(h) { + if (!h) + return !1; + h = h.replace(/\[[^\]]*]/g, ""), h = h.replace(/"[^"]*"/g, ""); + var l = h.match(/[ymdhMsb]+/) !== null; + return l; + }, + fs: { + exists: function(h) { + return new Promise(function(l) { + g.access(h, g.constants.F_OK, function(d) { + l(!d); + }); + }); + } + }, + toIsoDateString: function(h) { + return h.toIsoString().subsstr(0, 10); + } + }; + x.exports = f; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}, e("timers").setImmediate); + }, { fs: 215, timers: 521 }], 27: [function(e, x, _) { + function u(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function m(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function g(t, i, n) { + return i && m(t.prototype, i), n && m(t, n), t; + } + var b = e("./under-dash"), w = e("./utils"), f = "<", y = ">", h = "", d = '="', s = '"', v = " "; + function c(t, i, n) { + t.push(v), t.push(i), t.push(d), t.push(w.xmlEncode(n.toString())), t.push(s); + } + function a(t, i) { + i && b.each(i, function(n, o) { + n !== void 0 && c(t, o, n); + }); + } + var r = /* @__PURE__ */ function() { + function t() { + u(this, t), this._xml = [], this._stack = [], this._rollbacks = []; + } + return g(t, [{ + key: "openXml", + value: function(n) { + var o = this._xml; + o.push(" +`); + } + }, { + key: "openNode", + value: function(n, o) { + var p = this.tos, O = this._xml; + p && this.open && O.push(y), this._stack.push(n), O.push(f), O.push(n), a(O, o), this.leaf = !0, this.open = !0; + } + }, { + key: "addAttribute", + value: function(n, o) { + if (!this.open) + throw new Error("Cannot write attributes to node if it is not open"); + o !== void 0 && c(this._xml, n, o); + } + }, { + key: "addAttributes", + value: function(n) { + if (!this.open) + throw new Error("Cannot write attributes to node if it is not open"); + a(this._xml, n); + } + }, { + key: "writeText", + value: function(n) { + var o = this._xml; + this.open && (o.push(y), this.open = !1), this.leaf = !1, o.push(w.xmlEncode(n.toString())); + } + }, { + key: "writeXml", + value: function(n) { + this.open && (this._xml.push(y), this.open = !1), this.leaf = !1, this._xml.push(n); + } + }, { + key: "closeNode", + value: function() { + var n = this._stack.pop(), o = this._xml; + this.leaf ? o.push(l) : (o.push(h), o.push(n), o.push(y)), this.open = !1, this.leaf = !1; + } + }, { + key: "leafNode", + value: function(n, o, p) { + this.openNode(n, o), p !== void 0 && this.writeText(p), this.closeNode(); + } + }, { + key: "closeAll", + value: function() { + for (; this._stack.length; ) + this.closeNode(); + } + }, { + key: "addRollback", + value: function() { + return this._rollbacks.push({ + xml: this._xml.length, + stack: this._stack.length, + leaf: this.leaf, + open: this.open + }), this.cursor; + } + }, { + key: "commit", + value: function() { + this._rollbacks.pop(); + } + }, { + key: "rollback", + value: function() { + var n = this._rollbacks.pop(); + this._xml.length > n.xml && this._xml.splice(n.xml, this._xml.length - n.xml), this._stack.length > n.stack && this._stack.splice(n.stack, this._stack.length - n.stack), this.leaf = n.leaf, this.open = n.open; + } + }, { + key: "tos", + get: function() { + return this._stack.length ? this._stack[this._stack.length - 1] : void 0; + } + }, { + key: "cursor", + get: function() { + return this._xml.length; + } + }, { + key: "xml", + get: function() { + return this.closeAll(), this._xml.join(""); + } + }]), t; + }(); + r.StdDocAttributes = { + version: "1.0", + encoding: "UTF-8", + standalone: "yes" + }, x.exports = r; + }, { "./under-dash": 25, "./utils": 26 }], 28: [function(e, x, _) { + (function(u) { + function m(O) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(F) { + return typeof F; + } : m = function(F) { + return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F; + }, m(O); + } + function g(O, P, F, z, N, M, I) { + try { + var R = O[M](I), C = R.value; + } catch (E) { + F(E); + return; + } + R.done ? P(C) : Promise.resolve(C).then(z, N); + } + function b(O) { + return function() { + var P = this, F = arguments; + return new Promise(function(z, N) { + var M = O.apply(P, F); + function I(C) { + g(M, z, N, I, R, "next", C); + } + function R(C) { + g(M, z, N, I, R, "throw", C); + } + I(void 0); + }); + }; + } + function w(O, P) { + if (!(O instanceof P)) + throw new TypeError("Cannot call a class as a function"); + } + function f(O, P) { + for (var F = 0; F < P.length; F++) { + var z = P[F]; + z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(O, z.key, z); + } + } + function y(O, P, F) { + return P && f(O.prototype, P), F && f(O, F), O; + } + function h(O, P) { + if (typeof P != "function" && P !== null) + throw new TypeError("Super expression must either be null or a function"); + O.prototype = Object.create(P && P.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), P && l(O, P); + } + function l(O, P) { + return l = Object.setPrototypeOf || function(z, N) { + return z.__proto__ = N, z; + }, l(O, P); + } + function d(O) { + var P = c(); + return function() { + var z = a(O), N; + if (P) { + var M = a(this).constructor; + N = Reflect.construct(z, arguments, M); + } else + N = z.apply(this, arguments); + return s(this, N); + }; + } + function s(O, P) { + return P && (m(P) === "object" || typeof P == "function") ? P : v(O); + } + function v(O) { + if (O === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return O; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (O) { + return !1; + } + } + function a(O) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(F) { + return F.__proto__ || Object.getPrototypeOf(F); + }, a(O); + } + var r = e("events"), t = e("jszip"), i = e("./stream-buf"), n = e("./browser-buffer-encode"), o = n.stringToBuffer, p = /* @__PURE__ */ function(O) { + h(F, O); + var P = d(F); + function F(z) { + var N; + return w(this, F), N = P.call(this), N.options = Object.assign({ + type: "nodebuffer", + compression: "DEFLATE" + }, z), N.zip = new t(), N.stream = new i(), N; + } + return y(F, [{ + key: "append", + value: function(N, M) { + M.hasOwnProperty("base64") && M.base64 ? this.zip.file(M.name, N, { + base64: !0 + }) : (u.browser && typeof N == "string" && (N = o(N)), this.zip.file(M.name, N)); + } + }, { + key: "finalize", + value: function() { + var z = b(/* @__PURE__ */ regeneratorRuntime.mark(function M() { + var I; + return regeneratorRuntime.wrap(function(C) { + for (; ; ) + switch (C.prev = C.next) { + case 0: + return C.next = 2, this.zip.generateAsync(this.options); + case 2: + I = C.sent, this.stream.end(I), this.emit("finish"); + case 5: + case "end": + return C.stop(); + } + }, M, this); + })); + function N() { + return z.apply(this, arguments); + } + return N; + }() + // ========================================================================== + // Stream.Readable interface + }, { + key: "read", + value: function(N) { + return this.stream.read(N); + } + }, { + key: "setEncoding", + value: function(N) { + return this.stream.setEncoding(N); + } + }, { + key: "pause", + value: function() { + return this.stream.pause(); + } + }, { + key: "resume", + value: function() { + return this.stream.resume(); + } + }, { + key: "isPaused", + value: function() { + return this.stream.isPaused(); + } + }, { + key: "pipe", + value: function(N, M) { + return this.stream.pipe(N, M); + } + }, { + key: "unpipe", + value: function(N) { + return this.stream.unpipe(N); + } + }, { + key: "unshift", + value: function(N) { + return this.stream.unshift(N); + } + }, { + key: "wrap", + value: function(N) { + return this.stream.wrap(N); + } + }]), F; + }(r.EventEmitter); + x.exports = { + ZipWriter: p + }; + }).call(this, e("_process")); + }, { "./browser-buffer-encode": 17, "./stream-buf": 23, _process: 467, events: 367, jszip: 399 }], 29: [function(e, x, _) { + x.exports = { + 0: { + f: "General" + }, + 1: { + f: "0" + }, + 2: { + f: "0.00" + }, + 3: { + f: "#,##0" + }, + 4: { + f: "#,##0.00" + }, + 9: { + f: "0%" + }, + 10: { + f: "0.00%" + }, + 11: { + f: "0.00E+00" + }, + 12: { + f: "# ?/?" + }, + 13: { + f: "# ??/??" + }, + 14: { + f: "mm-dd-yy" + }, + 15: { + f: "d-mmm-yy" + }, + 16: { + f: "d-mmm" + }, + 17: { + f: "mmm-yy" + }, + 18: { + f: "h:mm AM/PM" + }, + 19: { + f: "h:mm:ss AM/PM" + }, + 20: { + f: "h:mm" + }, + 21: { + f: "h:mm:ss" + }, + 22: { + f: 'm/d/yy "h":mm' + }, + 27: { + "zh-tw": "[$-404]e/m/d", + "zh-cn": 'yyyy"年"m"月"', + "ja-jp": "[$-411]ge.m.d", + "ko-kr": 'yyyy"年" mm"月" dd"日"' + }, + 28: { + "zh-tw": '[$-404]e"年"m"月"d"日"', + "zh-cn": 'm"月"d"日"', + "ja-jp": '[$-411]ggge"年"m"月"d"日"', + "ko-kr": "mm-dd" + }, + 29: { + "zh-tw": '[$-404]e"年"m"月"d"日"', + "zh-cn": 'm"月"d"日"', + "ja-jp": '[$-411]ggge"年"m"月"d"日"', + "ko-kr": "mm-dd" + }, + 30: { + "zh-tw": "m/d/yy ", + "zh-cn": "m-d-yy", + "ja-jp": "m/d/yy", + "ko-kr": "mm-dd-yy" + }, + 31: { + "zh-tw": 'yyyy"年"m"月"d"日"', + "zh-cn": 'yyyy"年"m"月"d"日"', + "ja-jp": 'yyyy"年"m"月"d"日"', + "ko-kr": 'yyyy"년" mm"월" dd"일"' + }, + 32: { + "zh-tw": 'hh"時"mm"分"', + "zh-cn": 'h"时"mm"分"', + "ja-jp": 'h"時"mm"分"', + "ko-kr": 'h"시" mm"분"' + }, + 33: { + "zh-tw": 'hh"時"mm"分"ss"秒"', + "zh-cn": 'h"时"mm"分"ss"秒"', + "ja-jp": 'h"時"mm"分"ss"秒"', + "ko-kr": 'h"시" mm"분" ss"초"' + }, + 34: { + "zh-tw": '上午/下午 hh"時"mm"分"', + "zh-cn": '上午/下午 h"时"mm"分"', + "ja-jp": 'yyyy"年"m"月"', + "ko-kr": "yyyy-mm-dd" + }, + 35: { + "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"', + "zh-cn": '上午/下午 h"时"mm"分"ss"秒"', + "ja-jp": 'm"月"d"日"', + "ko-kr": "yyyy-mm-dd" + }, + 36: { + "zh-tw": "[$-404]e/m/d", + "zh-cn": 'yyyy"年"m"月"', + "ja-jp": "[$-411]ge.m.d", + "ko-kr": 'yyyy"年" mm"月" dd"日"' + }, + 37: { + f: "#,##0 ;(#,##0)" + }, + 38: { + f: "#,##0 ;[Red](#,##0)" + }, + 39: { + f: "#,##0.00 ;(#,##0.00)" + }, + 40: { + f: "#,##0.00 ;[Red](#,##0.00)" + }, + 45: { + f: "mm:ss" + }, + 46: { + f: "[h]:mm:ss" + }, + 47: { + f: "mmss.0" + }, + 48: { + f: "##0.0E+0" + }, + 49: { + f: "@" + }, + 50: { + "zh-tw": "[$-404]e/m/d", + "zh-cn": 'yyyy"年"m"月"', + "ja-jp": "[$-411]ge.m.d", + "ko-kr": 'yyyy"年" mm"月" dd"日"' + }, + 51: { + "zh-tw": '[$-404]e"年"m"月"d"日"', + "zh-cn": 'm"月"d"日"', + "ja-jp": '[$-411]ggge"年"m"月"d"日"', + "ko-kr": "mm-dd" + }, + 52: { + "zh-tw": '上午/下午 hh"時"mm"分"', + "zh-cn": 'yyyy"年"m"月"', + "ja-jp": 'yyyy"年"m"月"', + "ko-kr": "yyyy-mm-dd" + }, + 53: { + "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"', + "zh-cn": 'm"月"d"日"', + "ja-jp": 'm"月"d"日"', + "ko-kr": "yyyy-mm-dd" + }, + 54: { + "zh-tw": '[$-404]e"年"m"月"d"日"', + "zh-cn": 'm"月"d"日"', + "ja-jp": '[$-411]ggge"年"m"月"d"日"', + "ko-kr": "mm-dd" + }, + 55: { + "zh-tw": '上午/下午 hh"時"mm"分"', + "zh-cn": '上午/下午 h"时"mm"分"', + "ja-jp": 'yyyy"年"m"月"', + "ko-kr": "yyyy-mm-dd" + }, + 56: { + "zh-tw": '上午/下午 hh"時"mm"分"ss"秒"', + "zh-cn": '上午/下午 h"时"mm"分"ss"秒"', + "ja-jp": 'm"月"d"日"', + "ko-kr": "yyyy-mm-dd" + }, + 57: { + "zh-tw": "[$-404]e/m/d", + "zh-cn": 'yyyy"年"m"月"', + "ja-jp": "[$-411]ge.m.d", + "ko-kr": 'yyyy"年" mm"月" dd"日"' + }, + 58: { + "zh-tw": '[$-404]e"年"m"月"d"日"', + "zh-cn": 'm"月"d"日"', + "ja-jp": '[$-411]ggge"年"m"月"d"日"', + "ko-kr": "mm-dd" + }, + 59: { + "th-th": "t0" + }, + 60: { + "th-th": "t0.00" + }, + 61: { + "th-th": "t#,##0" + }, + 62: { + "th-th": "t#,##0.00" + }, + 67: { + "th-th": "t0%" + }, + 68: { + "th-th": "t0.00%" + }, + 69: { + "th-th": "t# ?/?" + }, + 70: { + "th-th": "t# ??/??" + }, + 81: { + "th-th": "d/m/bb" + } + }; + }, {}], 30: [function(e, x, _) { + x.exports = { + OfficeDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument", + Worksheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet", + CalcChain: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain", + SharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings", + Styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles", + Theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", + Hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", + Image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", + CoreProperties: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties", + ExtenderProperties: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties", + Comments: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments", + VmlDrawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing", + Table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" + }; + }, {}], 31: [function(e, x, _) { + function u(c, a) { + var r; + if (typeof Symbol == "undefined" || c[Symbol.iterator] == null) { + if (Array.isArray(c) || (r = m(c)) || a && c && typeof c.length == "number") { + r && (c = r); + var t = 0, i = function() { + }; + return { s: i, n: function() { + return t >= c.length ? { done: !0 } : { done: !1, value: c[t++] }; + }, e: function(P) { + throw P; + }, f: i }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var n = !0, o = !1, p; + return { s: function() { + r = c[Symbol.iterator](); + }, n: function() { + var P = r.next(); + return n = P.done, P; + }, e: function(P) { + o = !0, p = P; + }, f: function() { + try { + !n && r.return != null && r.return(); + } finally { + if (o) + throw p; + } + } }; + } + function m(c, a) { + if (c) { + if (typeof c == "string") + return g(c, a); + var r = Object.prototype.toString.call(c).slice(8, -1); + if (r === "Object" && c.constructor && (r = c.constructor.name), r === "Map" || r === "Set") + return Array.from(c); + if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) + return g(c, a); + } + } + function g(c, a) { + (a == null || a > c.length) && (a = c.length); + for (var r = 0, t = new Array(a); r < a; r++) + t[r] = c[r]; + return t; + } + function b(c, a, r, t, i, n, o) { + try { + var p = c[n](o), O = p.value; + } catch (P) { + r(P); + return; + } + p.done ? a(O) : Promise.resolve(O).then(t, i); + } + function w(c) { + return function() { + var a = this, r = arguments; + return new Promise(function(t, i) { + var n = c.apply(a, r); + function o(O) { + b(n, t, i, o, p, "next", O); + } + function p(O) { + b(n, t, i, o, p, "throw", O); + } + o(void 0); + }); + }; + } + function f(c, a) { + if (!(c instanceof a)) + throw new TypeError("Cannot call a class as a function"); + } + function y(c, a) { + for (var r = 0; r < a.length; r++) { + var t = a[r]; + t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(c, t.key, t); + } + } + function h(c, a, r) { + return a && y(c.prototype, a), r && y(c, r), c; + } + function l(c) { + var a; + if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (a = c[Symbol.asyncIterator], a != null) || Symbol.iterator && (a = c[Symbol.iterator], a != null))) + return a.call(c); + throw new TypeError("Object is not async iterable"); + } + var d = e("../../utils/parse-sax"), s = e("../../utils/xml-stream"), v = /* @__PURE__ */ function() { + function c() { + f(this, c); + } + return h(c, [{ + key: "prepare", + // constructor(/* model, name */) {} + // ============================================================ + // Virtual Interface + value: function() { + } + }, { + key: "render", + value: function() { + } + }, { + key: "parseOpen", + value: function(r) { + } + }, { + key: "parseText", + value: function(r) { + } + }, { + key: "parseClose", + value: function(r) { + } + }, { + key: "reconcile", + value: function(r, t) { + } + // ============================================================ + }, { + key: "reset", + value: function() { + this.model = null, this.map && Object.values(this.map).forEach(function(r) { + r instanceof c ? r.reset() : r.xform && r.xform.reset(); + }); + } + }, { + key: "mergeModel", + value: function(r) { + this.model = Object.assign(this.model || {}, r); + } + }, { + key: "parse", + value: function() { + var a = w(/* @__PURE__ */ regeneratorRuntime.mark(function t(i) { + var n, o, p, O, P, F, z, N, M, I, R, C; + return regeneratorRuntime.wrap(function(A) { + for (; ; ) + switch (A.prev = A.next) { + case 0: + n = !0, o = !1, A.prev = 2, O = l(i); + case 4: + return A.next = 6, O.next(); + case 6: + return P = A.sent, n = P.done, A.next = 10, P.value; + case 10: + if (F = A.sent, n) { + A.next = 42; + break; + } + z = F, N = u(z), A.prev = 14, N.s(); + case 16: + if ((M = N.n()).done) { + A.next = 31; + break; + } + if (I = M.value, R = I.eventType, C = I.value, R !== "opentag") { + A.next = 22; + break; + } + this.parseOpen(C), A.next = 29; + break; + case 22: + if (R !== "text") { + A.next = 26; + break; + } + this.parseText(C), A.next = 29; + break; + case 26: + if (R !== "closetag") { + A.next = 29; + break; + } + if (this.parseClose(C.name)) { + A.next = 29; + break; + } + return A.abrupt("return", this.model); + case 29: + A.next = 16; + break; + case 31: + A.next = 36; + break; + case 33: + A.prev = 33, A.t0 = A.catch(14), N.e(A.t0); + case 36: + return A.prev = 36, N.f(), A.finish(36); + case 39: + n = !0, A.next = 4; + break; + case 42: + A.next = 48; + break; + case 44: + A.prev = 44, A.t1 = A.catch(2), o = !0, p = A.t1; + case 48: + if (A.prev = 48, A.prev = 49, !(!n && O.return != null)) { + A.next = 53; + break; + } + return A.next = 53, O.return(); + case 53: + if (A.prev = 53, !o) { + A.next = 56; + break; + } + throw p; + case 56: + return A.finish(53); + case 57: + return A.finish(48); + case 58: + return A.abrupt("return", this.model); + case 59: + case "end": + return A.stop(); + } + }, t, this, [[2, 44, 48, 58], [14, 33, 36, 39], [49, , 53, 57]]); + })); + function r(t) { + return a.apply(this, arguments); + } + return r; + }() + }, { + key: "parseStream", + value: function() { + var a = w(/* @__PURE__ */ regeneratorRuntime.mark(function t(i) { + return regeneratorRuntime.wrap(function(o) { + for (; ; ) + switch (o.prev = o.next) { + case 0: + return o.abrupt("return", this.parse(d(i))); + case 1: + case "end": + return o.stop(); + } + }, t, this); + })); + function r(t) { + return a.apply(this, arguments); + } + return r; + }() + }, { + key: "toXml", + value: function(r) { + var t = new s(); + return this.render(t, r), t.xml; + } + // ============================================================ + // Useful Utilities + }, { + key: "xml", + get: function() { + return this.toXml(this.model); + } + }], [{ + key: "toAttribute", + value: function(r, t) { + var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + if (r === void 0) { + if (i) + return t; + } else if (i || r !== t) + return r.toString(); + } + }, { + key: "toStringAttribute", + value: function(r, t) { + var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + return c.toAttribute(r, t, i); + } + }, { + key: "toStringValue", + value: function(r, t) { + return r === void 0 ? t : r; + } + }, { + key: "toBoolAttribute", + value: function(r, t) { + var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + if (r === void 0) { + if (i) + return t; + } else if (i || r !== t) + return r ? "1" : "0"; + } + }, { + key: "toBoolValue", + value: function(r, t) { + return r === void 0 ? t : r === "1"; + } + }, { + key: "toIntAttribute", + value: function(r, t) { + var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + return c.toAttribute(r, t, i); + } + }, { + key: "toIntValue", + value: function(r, t) { + return r === void 0 ? t : parseInt(r, 10); + } + }, { + key: "toFloatAttribute", + value: function(r, t) { + var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; + return c.toAttribute(r, t, i); + } + }, { + key: "toFloatValue", + value: function(r, t) { + return r === void 0 ? t : parseFloat(r); + } + }]), c; + }(); + x.exports = v; + }, { "../../utils/parse-sax": 21, "../../utils/xml-stream": 27 }], 32: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("../base-xform"), c = e("../../../utils/col-cache"), a = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + return m(this, o), n.apply(this, arguments); + } + return b(o, [{ + key: "render", + value: function(O, P) { + O.openNode("definedName", { + name: P.name, + localSheetId: P.localSheetId + }), O.writeText(P.ranges.join(",")), O.closeNode(); + } + }, { + key: "parseOpen", + value: function(O) { + switch (O.name) { + case "definedName": + return this._parsedName = O.attributes.name, this._parsedLocalSheetId = O.attributes.localSheetId, this._parsedText = [], !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(O) { + this._parsedText.push(O); + } + }, { + key: "parseClose", + value: function() { + return this.model = { + name: this._parsedName, + ranges: t(this._parsedText.join("")) + }, this._parsedLocalSheetId !== void 0 && (this.model.localSheetId = parseInt(this._parsedLocalSheetId, 10)), !1; + } + }]), o; + }(v); + function r(i) { + try { + return c.decodeEx(i), !0; + } catch (n) { + return !1; + } + } + function t(i) { + var n = [], o = !1, p = ""; + return i.split(",").forEach(function(O) { + if (O) { + var P = (O.match(/'/g) || []).length; + if (!P) { + o ? p += "".concat(O, ",") : r(O) && n.push(O); + return; + } + var F = P % 2 === 0; + !o && F && r(O) ? n.push(O) : o && !F ? (o = !1, r(p + O) && n.push(p + O), p = "") : (o = !0, p += "".concat(O, ",")); + } + }), n; + } + x.exports = a; + }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 33: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../../utils/utils"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.leafNode("sheet", { + sheetId: p.id, + name: p.name, + state: p.state, + "r:id": p.rId + }); + } + }, { + key: "parseOpen", + value: function(o) { + return o.name === "sheet" ? (this.model = { + name: v.xmlDecode(o.attributes.name), + id: parseInt(o.attributes.sheetId, 10), + state: o.attributes.state, + rId: o.attributes["r:id"] + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), i; + }(c); + x.exports = a; + }, { "../../../utils/utils": 26, "../base-xform": 31 }], 34: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("calcPr", { + calcId: 171027, + fullCalcOnLoad: o.fullCalcOnLoad ? 1 : void 0 + }); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "calcPr" ? (this.model = {}, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 35: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("workbookPr", { + date1904: o.date1904 ? 1 : void 0, + defaultThemeVersion: 164011, + filterPrivacy: 1 + }); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "workbookPr" ? (this.model = { + date1904: n.attributes.date1904 === "1" + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 36: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + var p = { + xWindow: o.x || 0, + yWindow: o.y || 0, + windowWidth: o.width || 12e3, + windowHeight: o.height || 24e3, + firstSheet: o.firstSheet, + activeTab: o.activeTab + }; + o.visibility && o.visibility !== "visible" && (p.visibility = o.visibility), n.leafNode("workbookView", p); + } + }, { + key: "parseOpen", + value: function(n) { + if (n.name === "workbookView") { + var o = this.model = {}, p = function(F, z, N) { + var M = z !== void 0 ? o[F] = z : N; + M !== void 0 && (o[F] = M); + }, O = function(F, z, N) { + var M = z !== void 0 ? o[F] = parseInt(z, 10) : N; + M !== void 0 && (o[F] = M); + }; + return O("x", n.attributes.xWindow, 0), O("y", n.attributes.yWindow, 0), O("width", n.attributes.windowWidth, 25e3), O("height", n.attributes.windowHeight, 1e4), p("visibility", n.attributes.visibility, "visible"), O("activeTab", n.attributes.activeTab, void 0), O("firstSheet", n.attributes.firstSheet, void 0), !0; + } + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 37: [function(e, x, _) { + function u(z) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(M) { + return typeof M; + } : u = function(M) { + return M && typeof Symbol == "function" && M.constructor === Symbol && M !== Symbol.prototype ? "symbol" : typeof M; + }, u(z); + } + function m(z, N) { + if (!(z instanceof N)) + throw new TypeError("Cannot call a class as a function"); + } + function g(z, N) { + for (var M = 0; M < N.length; M++) { + var I = N[M]; + I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(z, I.key, I); + } + } + function b(z, N, M) { + return N && g(z.prototype, N), M && g(z, M), z; + } + function w(z, N) { + if (typeof N != "function" && N !== null) + throw new TypeError("Super expression must either be null or a function"); + z.prototype = Object.create(N && N.prototype, { constructor: { value: z, writable: !0, configurable: !0 } }), N && f(z, N); + } + function f(z, N) { + return f = Object.setPrototypeOf || function(I, R) { + return I.__proto__ = R, I; + }, f(z, N); + } + function y(z) { + var N = d(); + return function() { + var I = s(z), R; + if (N) { + var C = s(this).constructor; + R = Reflect.construct(I, arguments, C); + } else + R = I.apply(this, arguments); + return h(this, R); + }; + } + function h(z, N) { + return N && (u(N) === "object" || typeof N == "function") ? N : l(z); + } + function l(z) { + if (z === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return z; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (z) { + return !1; + } + } + function s(z) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(M) { + return M.__proto__ || Object.getPrototypeOf(M); + }, s(z); + } + var v = e("../../../utils/under-dash"), c = e("../../../utils/col-cache"), a = e("../../../utils/xml-stream"), r = e("../base-xform"), t = e("../static-xform"), i = e("../list-xform"), n = e("./defined-name-xform"), o = e("./sheet-xform"), p = e("./workbook-view-xform"), O = e("./workbook-properties-xform"), P = e("./workbook-calc-properties-xform"), F = /* @__PURE__ */ function(z) { + w(M, z); + var N = y(M); + function M() { + var I; + return m(this, M), I = N.call(this), I.map = { + fileVersion: M.STATIC_XFORMS.fileVersion, + workbookPr: new O(), + bookViews: new i({ + tag: "bookViews", + count: !1, + childXform: new p() + }), + sheets: new i({ + tag: "sheets", + count: !1, + childXform: new o() + }), + definedNames: new i({ + tag: "definedNames", + count: !1, + childXform: new n() + }), + calcPr: new P() + }, I; + } + return b(M, [{ + key: "prepare", + value: function(R) { + R.sheets = R.worksheets; + var C = [], E = 0; + R.sheets.forEach(function(A) { + if (A.pageSetup && A.pageSetup.printArea && A.pageSetup.printArea.split("&&").forEach(function(D) { + var B = D.split(":"), j = { + name: "_xlnm.Print_Area", + ranges: ["'".concat(A.name, "'!$").concat(B[0], ":$").concat(B[1])], + localSheetId: E + }; + C.push(j); + }), A.pageSetup && (A.pageSetup.printTitlesRow || A.pageSetup.printTitlesColumn)) { + var L = []; + if (A.pageSetup.printTitlesColumn) { + var $ = A.pageSetup.printTitlesColumn.split(":"); + L.push("'".concat(A.name, "'!$").concat($[0], ":$").concat($[1])); + } + if (A.pageSetup.printTitlesRow) { + var W = A.pageSetup.printTitlesRow.split(":"); + L.push("'".concat(A.name, "'!$").concat(W[0], ":$").concat(W[1])); + } + var U = { + name: "_xlnm.Print_Titles", + ranges: L, + localSheetId: E + }; + C.push(U); + } + E++; + }), C.length && (R.definedNames = R.definedNames.concat(C)), (R.media || []).forEach(function(A, L) { + A.name = A.type + (L + 1); + }); + } + }, { + key: "render", + value: function(R, C) { + R.openXml(a.StdDocAttributes), R.openNode("workbook", M.WORKBOOK_ATTRIBUTES), this.map.fileVersion.render(R), this.map.workbookPr.render(R, C.properties), this.map.bookViews.render(R, C.views), this.map.sheets.render(R, C.sheets), this.map.definedNames.render(R, C.definedNames), this.map.calcPr.render(R, C.calcProperties), R.closeNode(); + } + }, { + key: "parseOpen", + value: function(R) { + if (this.parser) + return this.parser.parseOpen(R), !0; + switch (R.name) { + case "workbook": + return !0; + default: + return this.parser = this.map[R.name], this.parser && this.parser.parseOpen(R), !0; + } + } + }, { + key: "parseText", + value: function(R) { + this.parser && this.parser.parseText(R); + } + }, { + key: "parseClose", + value: function(R) { + if (this.parser) + return this.parser.parseClose(R) || (this.parser = void 0), !0; + switch (R) { + case "workbook": + return this.model = { + sheets: this.map.sheets.model, + properties: this.map.workbookPr.model || {}, + views: this.map.bookViews.model, + calcProperties: {} + }, this.map.definedNames.model && (this.model.definedNames = this.map.definedNames.model), !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(R) { + var C = (R.workbookRels || []).reduce(function(W, U) { + return W[U.Id] = U, W; + }, {}), E = [], A, L = 0; + (R.sheets || []).forEach(function(W) { + var U = C[W.rId]; + U && (A = R.worksheetHash["xl/".concat(U.Target.replace(/^(\s|\/xl\/)+/, ""))], A && (A.name = W.name, A.id = W.id, A.state = W.state, E[L++] = A)); + }); + var $ = []; + v.each(R.definedNames, function(W) { + if (W.name === "_xlnm.Print_Area") { + if (A = E[W.localSheetId], A) { + A.pageSetup || (A.pageSetup = {}); + var U = c.decodeEx(W.ranges[0]); + A.pageSetup.printArea = A.pageSetup.printArea ? "".concat(A.pageSetup.printArea, "&&").concat(U.dimensions) : U.dimensions; + } + } else if (W.name === "_xlnm.Print_Titles") { + if (A = E[W.localSheetId], A) { + A.pageSetup || (A.pageSetup = {}); + var D = W.ranges.join(","), B = /\$/g, j = /\$\d+:\$\d+/, V = D.match(j); + if (V && V.length) { + var re = V[0]; + A.pageSetup.printTitlesRow = re.replace(B, ""); + } + var ee = /\$[A-Z]+:\$[A-Z]+/, ce = D.match(ee); + if (ce && ce.length) { + var ve = ce[0]; + A.pageSetup.printTitlesColumn = ve.replace(B, ""); + } + } + } else + $.push(W); + }), R.definedNames = $, R.media.forEach(function(W, U) { + W.index = U; + }); + } + }]), M; + }(r); + F.WORKBOOK_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", + "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", + "mc:Ignorable": "x15", + "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" + }, F.STATIC_XFORMS = { + fileVersion: new t({ + tag: "fileVersion", + $: { + appName: "xl", + lastEdited: 5, + lowestEdited: 5, + rupBuild: 9303 + } + }) + }, x.exports = F; + }, { "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "../static-xform": 119, "./defined-name-xform": 32, "./sheet-xform": 33, "./workbook-calc-properties-xform": 34, "./workbook-properties-xform": 35, "./workbook-view-xform": 36 }], 38: [function(e, x, _) { + function u(h, l) { + var d = Object.keys(h); + if (Object.getOwnPropertySymbols) { + var s = Object.getOwnPropertySymbols(h); + l && (s = s.filter(function(v) { + return Object.getOwnPropertyDescriptor(h, v).enumerable; + })), d.push.apply(d, s); + } + return d; + } + function m(h) { + for (var l = 1; l < arguments.length; l++) { + var d = arguments[l] != null ? arguments[l] : {}; + l % 2 ? u(Object(d), !0).forEach(function(s) { + g(h, s, d[s]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(d)) : u(Object(d)).forEach(function(s) { + Object.defineProperty(h, s, Object.getOwnPropertyDescriptor(d, s)); + }); + } + return h; + } + function g(h, l, d) { + return l in h ? Object.defineProperty(h, l, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : h[l] = d, h; + } + var b = e("../strings/rich-text-xform"), w = e("../../../utils/utils"), f = e("../base-xform"), y = x.exports = function(h) { + this.model = h; + }; + w.inherits(y, f, { + get tag() { + return "r"; + }, + get richTextXform() { + return this._richTextXform || (this._richTextXform = new b()), this._richTextXform; + }, + render: function(l, d) { + var s = this; + d = d || this.model, l.openNode("comment", { + ref: d.ref, + authorId: 0 + }), l.openNode("text"), d && d.note && d.note.texts && d.note.texts.forEach(function(v) { + s.richTextXform.render(l, v); + }), l.closeNode(), l.closeNode(); + }, + parseOpen: function(l) { + if (this.parser) + return this.parser.parseOpen(l), !0; + switch (l.name) { + case "comment": + return this.model = m({ + type: "note", + note: { + texts: [] + } + }, l.attributes), !0; + case "r": + return this.parser = this.richTextXform, this.parser.parseOpen(l), !0; + default: + return !1; + } + }, + parseText: function(l) { + this.parser && this.parser.parseText(l); + }, + parseClose: function(l) { + switch (l) { + case "comment": + return !1; + case "r": + return this.model.note.texts.push(this.parser.model), this.parser = void 0, !0; + default: + return this.parser && this.parser.parseClose(l), !0; + } + } + }); + }, { "../../../utils/utils": 26, "../base-xform": 31, "../strings/rich-text-xform": 121 }], 39: [function(e, x, _) { + var u = e("../../../utils/xml-stream"), m = e("../../../utils/utils"), g = e("../base-xform"), b = e("./comment-xform"), w = x.exports = function() { + this.map = { + comment: new b() + }; + }; + m.inherits(w, g, { + COMMENTS_ATTRIBUTES: { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" + } + }, { + render: function(y, h) { + var l = this; + h = h || this.model, y.openXml(u.StdDocAttributes), y.openNode("comments", w.COMMENTS_ATTRIBUTES), y.openNode("authors"), y.leafNode("author", null, "Author"), y.closeNode(), y.openNode("commentList"), h.comments.forEach(function(d) { + l.map.comment.render(y, d); + }), y.closeNode(), y.closeNode(); + }, + parseOpen: function(y) { + if (this.parser) + return this.parser.parseOpen(y), !0; + switch (y.name) { + case "commentList": + return this.model = { + comments: [] + }, !0; + case "comment": + return this.parser = this.map.comment, this.parser.parseOpen(y), !0; + default: + return !1; + } + }, + parseText: function(y) { + this.parser && this.parser.parseText(y); + }, + parseClose: function(y) { + switch (y) { + case "commentList": + return !1; + case "comment": + return this.model.comments.push(this.parser.model), this.parser = void 0, !0; + default: + return this.parser && this.parser.parseClose(y), !0; + } + } + }); + }, { "../../../utils/utils": 26, "../../../utils/xml-stream": 27, "../base-xform": 31, "./comment-xform": 38 }], 40: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n._model = i, n; + } + return b(t, [{ + key: "render", + value: function(n, o, p) { + o === p[2] ? n.leafNode(this.tag) : this.tag === "x:SizeWithCells" && o === p[1] && n.leafNode(this.tag); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = {}, this.model[this.tag] = !0, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return this._model && this._model.tag; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 41: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n._model = i, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, null, o); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.text = "", !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(n) { + this.text = n; + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return this._model && this._model.tag; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 42: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "getAnchorRect", + value: function(n) { + var o = Math.floor(n.left), p = Math.floor((n.left - o) * 68), O = Math.floor(n.top), P = Math.floor((n.top - O) * 18), F = Math.floor(n.right), z = Math.floor((n.right - F) * 68), N = Math.floor(n.bottom), M = Math.floor((n.bottom - N) * 18); + return [o, p, O, P, F, z, N, M]; + } + }, { + key: "getDefaultRect", + value: function(n) { + var o = n.col, p = 6, O = Math.max(n.row - 2, 0), P = 14, F = o + 2, z = 2, N = O + 4, M = 16; + return [o, p, O, P, F, z, N, M]; + } + }, { + key: "render", + value: function(n, o) { + var p = o.anchor ? this.getAnchorRect(o.anchor) : this.getDefaultRect(o.refAddress); + n.leafNode("x:Anchor", null, p.join(", ")); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.text = "", !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(n) { + this.text = n; + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "x:Anchor"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 43: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../base-xform"), c = e("./vml-anchor-xform"), a = e("./style/vml-protection-xform"), r = e("./style/vml-position-xform"), t = ["twoCells", "oneCells", "absolute"], i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + "x:Anchor": new c(), + "x:Locked": new a({ + tag: "x:Locked" + }), + "x:LockText": new a({ + tag: "x:LockText" + }), + "x:SizeWithCells": new r({ + tag: "x:SizeWithCells" + }), + "x:MoveWithCells": new r({ + tag: "x:MoveWithCells" + }) + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + var z = F.note, N = z.protection, M = z.editAs; + P.openNode(this.tag, { + ObjectType: "Note" + }), this.map["x:MoveWithCells"].render(P, M, t), this.map["x:SizeWithCells"].render(P, M, t), this.map["x:Anchor"].render(P, F), this.map["x:Locked"].render(P, N.locked), P.leafNode("x:AutoFill", null, "False"), this.map["x:LockText"].render(P, N.lockText), P.leafNode("x:Row", null, F.refAddress.row - 1), P.leafNode("x:Column", null, F.refAddress.col - 1), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + switch (P.name) { + case this.tag: + this.reset(), this.model = { + anchor: [], + protection: {}, + editAs: "" + }; + break; + default: + this.parser = this.map[P.name], this.parser && this.parser.parseOpen(P); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + if (this.parser) + return this.parser.parseClose(P) || (this.parser = void 0), !0; + switch (P) { + case this.tag: + return this.normalizeModel(), !1; + default: + return !0; + } + } + }, { + key: "normalizeModel", + value: function() { + var P = Object.assign({}, this.map["x:MoveWithCells"].model, this.map["x:SizeWithCells"].model), F = Object.keys(P).length; + this.model.editAs = t[F], this.model.anchor = this.map["x:Anchor"].text, this.model.protection.locked = this.map["x:Locked"].text, this.model.protection.lockText = this.map["x:LockText"].text; + } + }, { + key: "tag", + get: function() { + return "x:ClientData"; + } + }]), p; + }(v); + x.exports = i; + }, { "../base-xform": 31, "./style/vml-position-xform": 40, "./style/vml-protection-xform": 41, "./vml-anchor-xform": 42 }], 44: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./vml-shape-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "v:shape": new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + var P = this; + p.openXml(v.StdDocAttributes), p.openNode(this.tag, n.DRAWING_ATTRIBUTES), p.openNode("o:shapelayout", { + "v:ext": "edit" + }), p.leafNode("o:idmap", { + "v:ext": "edit", + data: 1 + }), p.closeNode(), p.openNode("v:shapetype", { + id: "_x0000_t202", + coordsize: "21600,21600", + "o:spt": 202, + path: "m,l,21600r21600,l21600,xe" + }), p.leafNode("v:stroke", { + joinstyle: "miter" + }), p.leafNode("v:path", { + gradientshapeok: "t", + "o:connecttype": "rect" + }), p.closeNode(), O.comments.forEach(function(F, z) { + P.map["v:shape"].render(p, F, z); + }), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case this.tag: + this.reset(), this.model = { + comments: [] + }; + break; + default: + this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.model.comments.push(this.parser.model), this.parser = void 0), !0; + switch (p) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(p, O) { + var P = this; + p.anchors.forEach(function(F) { + F.br ? P.map["xdr:twoCellAnchor"].reconcile(F, O) : P.map["xdr:oneCellAnchor"].reconcile(F, O); + }); + } + }, { + key: "tag", + get: function() { + return "xml"; + } + }]), n; + }(c); + r.DRAWING_ATTRIBUTES = { + "xmlns:v": "urn:schemas-microsoft-com:vml", + "xmlns:o": "urn:schemas-microsoft-com:office:office", + "xmlns:x": "urn:schemas-microsoft-com:office:excel" + }, x.exports = r; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./vml-shape-xform": 45 }], 45: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../base-xform"), c = e("./vml-textbox-xform"), a = e("./vml-client-data-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "v:textbox": new c(), + "x:ClientData": new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O, P) { + p.openNode("v:shape", n.V_SHAPE_ATTRIBUTES(O, P)), p.leafNode("v:fill", { + color2: "infoBackground [80]" + }), p.leafNode("v:shadow", { + color: "none [81]", + obscured: "t" + }), p.leafNode("v:path", { + "o:connecttype": "none" + }), this.map["v:textbox"].render(p, O), this.map["x:ClientData"].render(p, O), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case this.tag: + this.reset(), this.model = { + margins: { + insetmode: p.attributes["o:insetmode"] + }, + anchor: "", + editAs: "", + protection: {} + }; + break; + default: + this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.parser = void 0), !0; + switch (p) { + case this.tag: + return this.model.margins.inset = this.map["v:textbox"].model && this.map["v:textbox"].model.inset, this.model.protection = this.map["x:ClientData"].model && this.map["x:ClientData"].model.protection, this.model.anchor = this.map["x:ClientData"].model && this.map["x:ClientData"].model.anchor, this.model.editAs = this.map["x:ClientData"].model && this.map["x:ClientData"].model.editAs, !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "v:shape"; + } + }]), n; + }(v); + r.V_SHAPE_ATTRIBUTES = function(t, i) { + return { + id: "_x0000_s".concat(1025 + i), + type: "#_x0000_t202", + style: "position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden", + fillcolor: "infoBackground [80]", + strokecolor: "none [81]", + "o:insetmode": t.note.margins && t.note.margins.insetmode + }; + }, x.exports = r; + }, { "../base-xform": 31, "./vml-client-data-xform": 43, "./vml-textbox-xform": 46 }], 46: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "conversionUnit", + value: function(n, o, p) { + return "".concat(parseFloat(n) * o.toFixed(2)).concat(p); + } + }, { + key: "reverseConversionUnit", + value: function(n) { + var o = this; + return (n || "").split(",").map(function(p) { + return Number(parseFloat(o.conversionUnit(parseFloat(p), 0.1, "")).toFixed(2)); + }); + } + }, { + key: "render", + value: function(n, o) { + var p = this, O = { + style: "mso-direction-alt:auto" + }; + if (o && o.note) { + var P = o.note && o.note.margins, F = P.inset; + Array.isArray(F) && (F = F.map(function(z) { + return p.conversionUnit(z, 10, "mm"); + }).join(",")), F && (O.inset = F); + } + n.openNode("v:textbox", O), n.leafNode("div", { + style: "text-align:left" + }), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + inset: this.reverseConversionUnit(n.attributes.inset) + }, !0; + default: + return !0; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + switch (n) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "v:textbox"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 47: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("./base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "createNewModel", + value: function(n) { + return {}; + } + }, { + key: "parseOpen", + value: function(n) { + return this.parser = this.parser || this.map[n.name], this.parser ? (this.parser.parseOpen(n), !0) : n.name === this.tag ? (this.model = this.createNewModel(n), !0) : !1; + } + }, { + key: "parseText", + value: function(n) { + this.parser && this.parser.parseText(n); + } + }, { + key: "onParserClose", + value: function(n, o) { + this.model[n] = o.model; + } + }, { + key: "parseClose", + value: function(n) { + return this.parser ? (this.parser.parseClose(n) || (this.onParserClose(n, this.parser), this.parser = void 0), !0) : n !== this.tag; + } + }]), t; + }(v); + x.exports = c; + }, { "./base-xform": 31 }], 48: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.openNode("HeadingPairs"), n.openNode("vt:vector", { + size: 2, + baseType: "variant" + }), n.openNode("vt:variant"), n.leafNode("vt:lpstr", void 0, "Worksheets"), n.closeNode(), n.openNode("vt:variant"), n.leafNode("vt:i4", void 0, o.length), n.closeNode(), n.closeNode(), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "HeadingPairs"; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + return n !== "HeadingPairs"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 49: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.openNode("TitlesOfParts"), n.openNode("vt:vector", { + size: o.length, + baseType: "lpstr" + }), o.forEach(function(p) { + n.leafNode("vt:lpstr", void 0, p.name); + }), n.closeNode(), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "TitlesOfParts"; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + return n !== "TitlesOfParts"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 50: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("../simple/string-xform"), r = e("./app-heading-pairs-xform"), t = e("./app-titles-of-parts-xform"), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + Company: new a({ + tag: "Company" + }), + Manager: new a({ + tag: "Manager" + }), + HeadingPairs: new r(), + TitleOfParts: new t() + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.openXml(v.StdDocAttributes), P.openNode("Properties", p.PROPERTY_ATTRIBUTES), P.leafNode("Application", void 0, "Microsoft Excel"), P.leafNode("DocSecurity", void 0, "0"), P.leafNode("ScaleCrop", void 0, "false"), this.map.HeadingPairs.render(P, F.worksheets), this.map.TitleOfParts.render(P, F.worksheets), this.map.Company.render(P, F.company || ""), this.map.Manager.render(P, F.manager), P.leafNode("LinksUpToDate", void 0, "false"), P.leafNode("SharedDoc", void 0, "false"), P.leafNode("HyperlinksChanged", void 0, "false"), P.leafNode("AppVersion", void 0, "16.0300"), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "Properties": + return !0; + default: + return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1; + } + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + if (this.parser) + return this.parser.parseClose(P) || (this.parser = void 0), !0; + switch (P) { + case "Properties": + return this.model = { + worksheets: this.map.TitleOfParts.model, + company: this.map.Company.model, + manager: this.map.Manager.model + }, !1; + default: + return !0; + } + } + }]), p; + }(c); + i.DateFormat = function(n) { + return n.toISOString().replace(/[.]\d{3,6}/, ""); + }, i.DateAttrs = { + "xsi:type": "dcterms:W3CDTF" + }, i.PROPERTY_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", + "xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" + }, x.exports = i; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../simple/string-xform": 118, "./app-heading-pairs-xform": 48, "./app-titles-of-parts-xform": 49 }], 51: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.openXml(v.StdDocAttributes), o.openNode("Types", i.PROPERTY_ATTRIBUTES); + var O = {}; + (p.media || []).forEach(function(F) { + if (F.type === "image") { + var z = F.extension; + O[z] || (O[z] = !0, o.leafNode("Default", { + Extension: z, + ContentType: "image/".concat(z) + })); + } + }), o.leafNode("Default", { + Extension: "rels", + ContentType: "application/vnd.openxmlformats-package.relationships+xml" + }), o.leafNode("Default", { + Extension: "xml", + ContentType: "application/xml" + }), o.leafNode("Override", { + PartName: "/xl/workbook.xml", + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" + }), p.worksheets.forEach(function(F) { + var z = "/xl/worksheets/sheet".concat(F.id, ".xml"); + o.leafNode("Override", { + PartName: z, + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" + }); + }), o.leafNode("Override", { + PartName: "/xl/theme/theme1.xml", + ContentType: "application/vnd.openxmlformats-officedocument.theme+xml" + }), o.leafNode("Override", { + PartName: "/xl/styles.xml", + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" + }); + var P = p.sharedStrings && p.sharedStrings.count; + P && o.leafNode("Override", { + PartName: "/xl/sharedStrings.xml", + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" + }), p.tables && p.tables.forEach(function(F) { + o.leafNode("Override", { + PartName: "/xl/tables/".concat(F.target), + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml" + }); + }), p.drawings && p.drawings.forEach(function(F) { + o.leafNode("Override", { + PartName: "/xl/drawings/".concat(F.name, ".xml"), + ContentType: "application/vnd.openxmlformats-officedocument.drawing+xml" + }); + }), p.commentRefs && (o.leafNode("Default", { + Extension: "vml", + ContentType: "application/vnd.openxmlformats-officedocument.vmlDrawing" + }), p.commentRefs.forEach(function(F) { + var z = F.commentName; + o.leafNode("Override", { + PartName: "/xl/".concat(z, ".xml"), + ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml" + }); + })), o.leafNode("Override", { + PartName: "/docProps/core.xml", + ContentType: "application/vnd.openxmlformats-package.core-properties+xml" + }), o.leafNode("Override", { + PartName: "/docProps/app.xml", + ContentType: "application/vnd.openxmlformats-officedocument.extended-properties+xml" + }), o.closeNode(); + } + }, { + key: "parseOpen", + value: function() { + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), i; + }(c); + a.PROPERTY_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/package/2006/content-types" + }, x.exports = a; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31 }], 52: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("../simple/date-xform"), r = e("../simple/string-xform"), t = e("../simple/integer-xform"), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + "dc:creator": new r({ + tag: "dc:creator" + }), + "dc:title": new r({ + tag: "dc:title" + }), + "dc:subject": new r({ + tag: "dc:subject" + }), + "dc:description": new r({ + tag: "dc:description" + }), + "dc:identifier": new r({ + tag: "dc:identifier" + }), + "dc:language": new r({ + tag: "dc:language" + }), + "cp:keywords": new r({ + tag: "cp:keywords" + }), + "cp:category": new r({ + tag: "cp:category" + }), + "cp:lastModifiedBy": new r({ + tag: "cp:lastModifiedBy" + }), + "cp:lastPrinted": new a({ + tag: "cp:lastPrinted", + format: p.DateFormat + }), + "cp:revision": new t({ + tag: "cp:revision" + }), + "cp:version": new r({ + tag: "cp:version" + }), + "cp:contentStatus": new r({ + tag: "cp:contentStatus" + }), + "cp:contentType": new r({ + tag: "cp:contentType" + }), + "dcterms:created": new a({ + tag: "dcterms:created", + attrs: p.DateAttrs, + format: p.DateFormat + }), + "dcterms:modified": new a({ + tag: "dcterms:modified", + attrs: p.DateAttrs, + format: p.DateFormat + }) + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.openXml(v.StdDocAttributes), P.openNode("cp:coreProperties", p.CORE_PROPERTY_ATTRIBUTES), this.map["dc:creator"].render(P, F.creator), this.map["dc:title"].render(P, F.title), this.map["dc:subject"].render(P, F.subject), this.map["dc:description"].render(P, F.description), this.map["dc:identifier"].render(P, F.identifier), this.map["dc:language"].render(P, F.language), this.map["cp:keywords"].render(P, F.keywords), this.map["cp:category"].render(P, F.category), this.map["cp:lastModifiedBy"].render(P, F.lastModifiedBy), this.map["cp:lastPrinted"].render(P, F.lastPrinted), this.map["cp:revision"].render(P, F.revision), this.map["cp:version"].render(P, F.version), this.map["cp:contentStatus"].render(P, F.contentStatus), this.map["cp:contentType"].render(P, F.contentType), this.map["dcterms:created"].render(P, F.created), this.map["dcterms:modified"].render(P, F.modified), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "cp:coreProperties": + case "coreProperties": + return !0; + default: + if (this.parser = this.map[P.name], this.parser) + return this.parser.parseOpen(P), !0; + throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(P))); + } + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + if (this.parser) + return this.parser.parseClose(P) || (this.parser = void 0), !0; + switch (P) { + case "cp:coreProperties": + case "coreProperties": + return this.model = { + creator: this.map["dc:creator"].model, + title: this.map["dc:title"].model, + subject: this.map["dc:subject"].model, + description: this.map["dc:description"].model, + identifier: this.map["dc:identifier"].model, + language: this.map["dc:language"].model, + keywords: this.map["cp:keywords"].model, + category: this.map["cp:category"].model, + lastModifiedBy: this.map["cp:lastModifiedBy"].model, + lastPrinted: this.map["cp:lastPrinted"].model, + revision: this.map["cp:revision"].model, + contentStatus: this.map["cp:contentStatus"].model, + contentType: this.map["cp:contentType"].model, + created: this.map["dcterms:created"].model, + modified: this.map["dcterms:modified"].model + }, !1; + default: + throw new Error("Unexpected xml node in parseClose: ".concat(P)); + } + } + }]), p; + }(c); + i.DateFormat = function(n) { + return n.toISOString().replace(/[.]\d{3}/, ""); + }, i.DateAttrs = { + "xsi:type": "dcterms:W3CDTF" + }, i.CORE_PROPERTY_ATTRIBUTES = { + "xmlns:cp": "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", + "xmlns:dc": "http://purl.org/dc/elements/1.1/", + "xmlns:dcterms": "http://purl.org/dc/terms/", + "xmlns:dcmitype": "http://purl.org/dc/dcmitype/", + "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance" + }, x.exports = i; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../simple/date-xform": 116, "../simple/integer-xform": 117, "../simple/string-xform": 118 }], 53: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("Relationship", o); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case "Relationship": + return this.model = n.attributes, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 54: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./relationship-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + Relationship: new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + var P = this; + O = O || this._values, p.openXml(v.StdDocAttributes), p.openNode("Relationships", n.RELATIONSHIPS_ATTRIBUTES), O.forEach(function(F) { + P.map.Relationship.render(p, F); + }), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case "Relationships": + return this.model = [], !0; + default: + if (this.parser = this.map[p.name], this.parser) + return this.parser.parseOpen(p), !0; + throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(p))); + } + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.model.push(this.parser.model), this.parser = void 0), !0; + switch (p) { + case "Relationships": + return !1; + default: + throw new Error("Unexpected xml node in parseClose: ".concat(p)); + } + } + }]), n; + }(c); + r.RELATIONSHIPS_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" + }, x.exports = r; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./relationship-xform": 53 }], 55: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "parseOpen", + value: function(n) { + if (this.parser) + return this.parser.parseOpen(n), !0; + switch (n.name) { + case this.tag: + this.reset(), this.model = { + range: { + editAs: n.attributes.editAs || "oneCell" + } + }; + break; + default: + this.parser = this.map[n.name], this.parser && this.parser.parseOpen(n); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(n) { + this.parser && this.parser.parseText(n); + } + }, { + key: "reconcilePicture", + value: function(n, o) { + if (n && n.rId) { + var p = o.rels[n.rId], O = p.Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/); + if (O) { + var P = O[1], F = o.mediaIndex[P]; + return o.media[F]; + } + } + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 56: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = e("./blip-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + var n; + return m(this, i), n = t.call(this), n.map = { + "a:blip": new c() + }, n; + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.openNode(this.tag), this.map["a:blip"].render(o, p), o.openNode("a:stretch"), o.leafNode("a:fillRect"), o.closeNode(), o.closeNode(); + } + }, { + key: "parseOpen", + value: function(o) { + if (this.parser) + return this.parser.parseOpen(o), !0; + switch (o.name) { + case this.tag: + this.reset(); + break; + default: + this.parser = this.map[o.name], this.parser && this.parser.parseOpen(o); + break; + } + return !0; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(o) { + if (this.parser) + return this.parser.parseClose(o) || (this.parser = void 0), !0; + switch (o) { + case this.tag: + return this.model = this.map["a:blip"].model, !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "xdr:blipFill"; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31, "./blip-xform": 57 }], 57: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, { + "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + "r:embed": o.rId, + cstate: "print" + }); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + rId: n.attributes["r:embed"] + }, !0; + default: + return !0; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + switch (n) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "a:blip"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 58: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n) { + n.openNode(this.tag), n.leafNode("a:picLocks", { + noChangeAspect: "1" + }), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return !0; + default: + return !0; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + switch (n) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "xdr:cNvPicPr"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 59: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../base-xform"), c = e("./hlink-click-xform"), a = e("./ext-lst-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "a:hlinkClick": new c(), + "a:extLst": new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + p.openNode(this.tag, { + id: O.index, + name: "Picture ".concat(O.index) + }), this.map["a:hlinkClick"].render(p, O), this.map["a:extLst"].render(p, O), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case this.tag: + this.reset(); + break; + default: + this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p); + break; + } + return !0; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.parser = void 0), !0; + switch (p) { + case this.tag: + return this.model = this.map["a:hlinkClick"].model, !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "xdr:cNvPr"; + } + }]), n; + }(v); + x.exports = r; + }, { "../base-xform": 31, "./ext-lst-xform": 62, "./hlink-click-xform": 64 }], 60: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = e("../simple/integer-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i(n) { + var o; + return m(this, i), o = t.call(this), o.tag = n.tag, o.map = { + "xdr:col": new c({ + tag: "xdr:col", + zero: !0 + }), + "xdr:colOff": new c({ + tag: "xdr:colOff", + zero: !0 + }), + "xdr:row": new c({ + tag: "xdr:row", + zero: !0 + }), + "xdr:rowOff": new c({ + tag: "xdr:rowOff", + zero: !0 + }) + }, o; + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.openNode(this.tag), this.map["xdr:col"].render(o, p.nativeCol), this.map["xdr:colOff"].render(o, p.nativeColOff), this.map["xdr:row"].render(o, p.nativeRow), this.map["xdr:rowOff"].render(o, p.nativeRowOff), o.closeNode(); + } + }, { + key: "parseOpen", + value: function(o) { + if (this.parser) + return this.parser.parseOpen(o), !0; + switch (o.name) { + case this.tag: + this.reset(); + break; + default: + this.parser = this.map[o.name], this.parser && this.parser.parseOpen(o); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(o) { + this.parser && this.parser.parseText(o); + } + }, { + key: "parseClose", + value: function(o) { + if (this.parser) + return this.parser.parseClose(o) || (this.parser = void 0), !0; + switch (o) { + case this.tag: + return this.model = { + nativeCol: this.map["xdr:col"].model, + nativeColOff: this.map["xdr:colOff"].model, + nativeRow: this.map["xdr:row"].model, + nativeRowOff: this.map["xdr:rowOff"].model + }, !1; + default: + return !0; + } + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31, "../simple/integer-xform": 117 }], 61: [function(e, x, _) { + function u(o) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(O) { + return typeof O; + } : u = function(O) { + return O && typeof Symbol == "function" && O.constructor === Symbol && O !== Symbol.prototype ? "symbol" : typeof O; + }, u(o); + } + function m(o, p) { + if (!(o instanceof p)) + throw new TypeError("Cannot call a class as a function"); + } + function g(o, p) { + for (var O = 0; O < p.length; O++) { + var P = p[O]; + P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(o, P.key, P); + } + } + function b(o, p, O) { + return p && g(o.prototype, p), O && g(o, O), o; + } + function w(o, p) { + if (typeof p != "function" && p !== null) + throw new TypeError("Super expression must either be null or a function"); + o.prototype = Object.create(p && p.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), p && f(o, p); + } + function f(o, p) { + return f = Object.setPrototypeOf || function(P, F) { + return P.__proto__ = F, P; + }, f(o, p); + } + function y(o) { + var p = d(); + return function() { + var P = s(o), F; + if (p) { + var z = s(this).constructor; + F = Reflect.construct(P, arguments, z); + } else + F = P.apply(this, arguments); + return h(this, F); + }; + } + function h(o, p) { + return p && (u(p) === "object" || typeof p == "function") ? p : l(o); + } + function l(o) { + if (o === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return o; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (o) { + return !1; + } + } + function s(o) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(O) { + return O.__proto__ || Object.getPrototypeOf(O); + }, s(o); + } + var v = e("../../../utils/col-cache"), c = e("../../../utils/xml-stream"), a = e("../base-xform"), r = e("./two-cell-anchor-xform"), t = e("./one-cell-anchor-xform"); + function i(o) { + var p = typeof o.range == "string" ? v.decode(o.range) : o.range; + return p.br ? "xdr:twoCellAnchor" : "xdr:oneCellAnchor"; + } + var n = /* @__PURE__ */ function(o) { + w(O, o); + var p = y(O); + function O() { + var P; + return m(this, O), P = p.call(this), P.map = { + "xdr:twoCellAnchor": new r(), + "xdr:oneCellAnchor": new t() + }, P; + } + return b(O, [{ + key: "prepare", + value: function(F) { + var z = this; + F.anchors.forEach(function(N, M) { + N.anchorType = i(N); + var I = z.map[N.anchorType]; + I.prepare(N, { + index: M + }); + }); + } + }, { + key: "render", + value: function(F, z) { + var N = this; + F.openXml(c.StdDocAttributes), F.openNode(this.tag, O.DRAWING_ATTRIBUTES), z.anchors.forEach(function(M) { + var I = N.map[M.anchorType]; + I.render(F, M); + }), F.closeNode(); + } + }, { + key: "parseOpen", + value: function(F) { + if (this.parser) + return this.parser.parseOpen(F), !0; + switch (F.name) { + case this.tag: + this.reset(), this.model = { + anchors: [] + }; + break; + default: + this.parser = this.map[F.name], this.parser && this.parser.parseOpen(F); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(F) { + this.parser && this.parser.parseText(F); + } + }, { + key: "parseClose", + value: function(F) { + if (this.parser) + return this.parser.parseClose(F) || (this.model.anchors.push(this.parser.model), this.parser = void 0), !0; + switch (F) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(F, z) { + var N = this; + F.anchors.forEach(function(M) { + M.br ? N.map["xdr:twoCellAnchor"].reconcile(M, z) : N.map["xdr:oneCellAnchor"].reconcile(M, z); + }); + } + }, { + key: "tag", + get: function() { + return "xdr:wsDr"; + } + }]), O; + }(a); + n.DRAWING_ATTRIBUTES = { + "xmlns:xdr": "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", + "xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main" + }, x.exports = n; + }, { "../../../utils/col-cache": 19, "../../../utils/xml-stream": 27, "../base-xform": 31, "./one-cell-anchor-xform": 66, "./two-cell-anchor-xform": 69 }], 62: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n) { + n.openNode(this.tag), n.openNode("a:ext", { + uri: "{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}" + }), n.leafNode("a16:creationId", { + "xmlns:a16": "http://schemas.microsoft.com/office/drawing/2014/main", + id: "{00000000-0008-0000-0000-000002000000}" + }), n.closeNode(), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return !0; + default: + return !0; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(n) { + switch (n) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "a:extLst"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 63: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = 9525, a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i(n) { + var o; + return m(this, i), o = t.call(this), o.tag = n.tag, o.map = {}, o; + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.openNode(this.tag); + var O = Math.floor(p.width * c), P = Math.floor(p.height * c); + o.addAttribute("cx", O), o.addAttribute("cy", P), o.closeNode(); + } + }, { + key: "parseOpen", + value: function(o) { + return o.name === this.tag ? (this.model = { + width: parseInt(o.attributes.cx || "0", 10) / c, + height: parseInt(o.attributes.cy || "0", 10) / c + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31 }], 64: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + o.hyperlinks && o.hyperlinks.rId && n.leafNode(this.tag, { + "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + "r:id": o.hyperlinks.rId, + tooltip: o.hyperlinks.tooltip + }); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + hyperlinks: { + rId: n.attributes["r:id"], + tooltip: n.attributes.tooltip + } + }, !0; + default: + return !0; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "a:hlinkClick"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 65: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../base-xform"), c = e("./c-nv-pr-xform"), a = e("./c-nv-pic-pr-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "xdr:cNvPr": new c(), + "xdr:cNvPicPr": new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + p.openNode(this.tag), this.map["xdr:cNvPr"].render(p, O), this.map["xdr:cNvPicPr"].render(p, O), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case this.tag: + this.reset(); + break; + default: + this.parser = this.map[p.name], this.parser && this.parser.parseOpen(p); + break; + } + return !0; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.parser = void 0), !0; + switch (p) { + case this.tag: + return this.model = this.map["xdr:cNvPr"].model, !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "xdr:nvPicPr"; + } + }]), n; + }(v); + x.exports = r; + }, { "../base-xform": 31, "./c-nv-pic-pr-xform": 58, "./c-nv-pr-xform": 59 }], 66: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("./base-cell-anchor-xform"), c = e("../static-xform"), a = e("./cell-position-xform"), r = e("./ext-xform"), t = e("./pic-xform"), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + "xdr:from": new a({ + tag: "xdr:from" + }), + "xdr:ext": new r({ + tag: "xdr:ext" + }), + "xdr:pic": new t(), + "xdr:clientData": new c({ + tag: "xdr:clientData" + }) + }, O; + } + return b(p, [{ + key: "prepare", + value: function(P, F) { + this.map["xdr:pic"].prepare(P.picture, F); + } + }, { + key: "render", + value: function(P, F) { + P.openNode(this.tag, { + editAs: F.range.editAs || "oneCell" + }), this.map["xdr:from"].render(P, F.range.tl), this.map["xdr:ext"].render(P, F.range.ext), this.map["xdr:pic"].render(P, F.picture), this.map["xdr:clientData"].render(P, {}), P.closeNode(); + } + }, { + key: "parseClose", + value: function(P) { + if (this.parser) + return this.parser.parseClose(P) || (this.parser = void 0), !0; + switch (P) { + case this.tag: + return this.model.range.tl = this.map["xdr:from"].model, this.model.range.ext = this.map["xdr:ext"].model, this.model.picture = this.map["xdr:pic"].model, !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(P, F) { + P.medium = this.reconcilePicture(P.picture, F); + } + }, { + key: "tag", + get: function() { + return "xdr:oneCellAnchor"; + } + }]), p; + }(v); + x.exports = i; + }, { "../static-xform": 119, "./base-cell-anchor-xform": 55, "./cell-position-xform": 60, "./ext-xform": 63, "./pic-xform": 67 }], 67: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../base-xform"), c = e("../static-xform"), a = e("./blip-fill-xform"), r = e("./nv-pic-pr-xform"), t = e("./sp-pr"), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + "xdr:nvPicPr": new r(), + "xdr:blipFill": new a(), + "xdr:spPr": new c(t) + }, O; + } + return b(p, [{ + key: "prepare", + value: function(P, F) { + P.index = F.index + 1; + } + }, { + key: "render", + value: function(P, F) { + P.openNode(this.tag), this.map["xdr:nvPicPr"].render(P, F), this.map["xdr:blipFill"].render(P, F), this.map["xdr:spPr"].render(P, F), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case this.tag: + this.reset(); + break; + default: + this.parser = this.map[P.name], this.parser && this.parser.parseOpen(P); + break; + } + return !0; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(P) { + if (this.parser) + return this.parser.parseClose(P) || (this.mergeModel(this.parser.model), this.parser = void 0), !0; + switch (P) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "xdr:pic"; + } + }]), p; + }(v); + x.exports = i; + }, { "../base-xform": 31, "../static-xform": 119, "./blip-fill-xform": 56, "./nv-pic-pr-xform": 65, "./sp-pr": 68 }], 68: [function(e, x, _) { + x.exports = { + tag: "xdr:spPr", + c: [{ + tag: "a:xfrm", + c: [{ + tag: "a:off", + $: { + x: "0", + y: "0" + } + }, { + tag: "a:ext", + $: { + cx: "0", + cy: "0" + } + }] + }, { + tag: "a:prstGeom", + $: { + prst: "rect" + }, + c: [{ + tag: "a:avLst" + }] + }] + }; + }, {}], 69: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("./base-cell-anchor-xform"), c = e("../static-xform"), a = e("./cell-position-xform"), r = e("./pic-xform"), t = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + var p; + return m(this, o), p = n.call(this), p.map = { + "xdr:from": new a({ + tag: "xdr:from" + }), + "xdr:to": new a({ + tag: "xdr:to" + }), + "xdr:pic": new r(), + "xdr:clientData": new c({ + tag: "xdr:clientData" + }) + }, p; + } + return b(o, [{ + key: "prepare", + value: function(O, P) { + this.map["xdr:pic"].prepare(O.picture, P); + } + }, { + key: "render", + value: function(O, P) { + O.openNode(this.tag, { + editAs: P.range.editAs || "oneCell" + }), this.map["xdr:from"].render(O, P.range.tl), this.map["xdr:to"].render(O, P.range.br), this.map["xdr:pic"].render(O, P.picture), this.map["xdr:clientData"].render(O, {}), O.closeNode(); + } + }, { + key: "parseClose", + value: function(O) { + if (this.parser) + return this.parser.parseClose(O) || (this.parser = void 0), !0; + switch (O) { + case this.tag: + return this.model.range.tl = this.map["xdr:from"].model, this.model.range.br = this.map["xdr:to"].model, this.model.picture = this.map["xdr:pic"].model, !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(O, P) { + O.medium = this.reconcilePicture(O.picture, P); + } + }, { + key: "tag", + get: function() { + return "xdr:twoCellAnchor"; + } + }]), o; + }(v); + x.exports = t; + }, { "../static-xform": 119, "./base-cell-anchor-xform": 55, "./cell-position-xform": 60, "./pic-xform": 67 }], 70: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("./base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.tag = i.tag, n.always = !!i.always, n.count = i.count, n.empty = i.empty, n.$count = i.$count || "count", n.$ = i.$, n.childXform = i.childXform, n.maxItems = i.maxItems, n; + } + return b(t, [{ + key: "prepare", + value: function(n, o) { + var p = this.childXform; + n && n.forEach(function(O, P) { + o.index = P, p.prepare(O, o); + }); + } + }, { + key: "render", + value: function(n, o) { + if (this.always || o && o.length) { + n.openNode(this.tag, this.$), this.count && n.addAttribute(this.$count, o && o.length || 0); + var p = this.childXform; + (o || []).forEach(function(O, P) { + p.render(n, O, P); + }), n.closeNode(); + } else + this.empty && n.leafNode(this.tag); + } + }, { + key: "parseOpen", + value: function(n) { + if (this.parser) + return this.parser.parseOpen(n), !0; + switch (n.name) { + case this.tag: + return this.model = [], !0; + default: + return this.childXform.parseOpen(n) ? (this.parser = this.childXform, !0) : !1; + } + } + }, { + key: "parseText", + value: function(n) { + this.parser && this.parser.parseText(n); + } + }, { + key: "parseClose", + value: function(n) { + if (this.parser) { + if (!this.parser.parseClose(n) && (this.model.push(this.parser.model), this.parser = void 0, this.maxItems && this.model.length > this.maxItems)) + throw new Error("Max ".concat(this.childXform.tag, " count (").concat(this.maxItems, ") exceeded")); + return !0; + } + return !1; + } + }, { + key: "reconcile", + value: function(n, o) { + if (n) { + var p = this.childXform; + n.forEach(function(O) { + p.reconcile(O, o); + }); + } + } + }]), t; + }(v); + x.exports = c; + }, { "./base-xform": 31 }], 71: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../../utils/col-cache"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + if (p) + if (typeof p == "string") + o.leafNode("autoFilter", { + ref: p + }); + else { + var O = function(N) { + return typeof N == "string" ? N : v.getAddress(N.row, N.column).address; + }, P = O(p.from), F = O(p.to); + P && F && o.leafNode("autoFilter", { + ref: "".concat(P, ":").concat(F) + }); + } + } + }, { + key: "parseOpen", + value: function(o) { + o.name === "autoFilter" && (this.model = o.attributes.ref); + } + }, { + key: "tag", + get: function() { + return "autoFilter"; + } + }]), i; + }(c); + x.exports = a; + }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 72: [function(e, x, _) { + function u(F) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) { + return typeof N; + } : u = function(N) { + return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N; + }, u(F); + } + function m(F, z) { + var N = Object.keys(F); + if (Object.getOwnPropertySymbols) { + var M = Object.getOwnPropertySymbols(F); + z && (M = M.filter(function(I) { + return Object.getOwnPropertyDescriptor(F, I).enumerable; + })), N.push.apply(N, M); + } + return N; + } + function g(F) { + for (var z = 1; z < arguments.length; z++) { + var N = arguments[z] != null ? arguments[z] : {}; + z % 2 ? m(Object(N), !0).forEach(function(M) { + b(F, M, N[M]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(F, Object.getOwnPropertyDescriptors(N)) : m(Object(N)).forEach(function(M) { + Object.defineProperty(F, M, Object.getOwnPropertyDescriptor(N, M)); + }); + } + return F; + } + function b(F, z, N) { + return z in F ? Object.defineProperty(F, z, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : F[z] = N, F; + } + function w(F, z) { + if (!(F instanceof z)) + throw new TypeError("Cannot call a class as a function"); + } + function f(F, z) { + for (var N = 0; N < z.length; N++) { + var M = z[N]; + M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M); + } + } + function y(F, z, N) { + return z && f(F.prototype, z), N && f(F, N), F; + } + function h(F, z) { + if (typeof z != "function" && z !== null) + throw new TypeError("Super expression must either be null or a function"); + F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && l(F, z); + } + function l(F, z) { + return l = Object.setPrototypeOf || function(M, I) { + return M.__proto__ = I, M; + }, l(F, z); + } + function d(F) { + var z = c(); + return function() { + var M = a(F), I; + if (z) { + var R = a(this).constructor; + I = Reflect.construct(M, arguments, R); + } else + I = M.apply(this, arguments); + return s(this, I); + }; + } + function s(F, z) { + return z && (u(z) === "object" || typeof z == "function") ? z : v(F); + } + function v(F) { + if (F === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return F; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (F) { + return !1; + } + } + function a(F) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) { + return N.__proto__ || Object.getPrototypeOf(N); + }, a(F); + } + var r = e("../../../utils/utils"), t = e("../base-xform"), i = e("../../../doc/range"), n = e("../../../doc/enums"), o = e("../strings/rich-text-xform"); + function p(F) { + if (F == null) + return n.ValueType.Null; + if (F instanceof String || typeof F == "string") + return n.ValueType.String; + if (typeof F == "number") + return n.ValueType.Number; + if (typeof F == "boolean") + return n.ValueType.Boolean; + if (F instanceof Date) + return n.ValueType.Date; + if (F.text && F.hyperlink) + return n.ValueType.Hyperlink; + if (F.formula) + return n.ValueType.Formula; + if (F.error) + return n.ValueType.Error; + throw new Error("I could not understand type of value"); + } + function O(F) { + switch (F.type) { + case n.ValueType.Formula: + return p(F.result); + default: + return F.type; + } + } + var P = /* @__PURE__ */ function(F) { + h(N, F); + var z = d(N); + function N() { + var M; + return w(this, N), M = z.call(this), M.richTextXForm = new o(), M; + } + return y(N, [{ + key: "prepare", + value: function(I, R) { + var C = R.styles.addStyleModel(I.style || {}, O(I)); + switch (C && (I.styleId = C), I.comment && R.comments.push(g(g({}, I.comment), {}, { + ref: I.address + })), I.type) { + case n.ValueType.String: + case n.ValueType.RichText: + R.sharedStrings && (I.ssId = R.sharedStrings.add(I.value)); + break; + case n.ValueType.Date: + R.date1904 && (I.date1904 = !0); + break; + case n.ValueType.Hyperlink: + R.sharedStrings && I.text !== void 0 && I.text !== null && (I.ssId = R.sharedStrings.add(I.text)), R.hyperlinks.push({ + address: I.address, + target: I.hyperlink, + tooltip: I.tooltip + }); + break; + case n.ValueType.Merge: + R.merges.add(I); + break; + case n.ValueType.Formula: + if (R.date1904 && (I.date1904 = !0), I.shareType === "shared" && (I.si = R.siFormulae++), I.formula) + R.formulae[I.address] = I; + else if (I.sharedFormula) { + var E = R.formulae[I.sharedFormula]; + if (!E) + throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(I.address)); + E.si === void 0 ? (E.shareType = "shared", E.si = R.siFormulae++, E.range = new i(E.address, I.address)) : E.range && E.range.expandToAddress(I.address), I.si = E.si; + } + break; + } + } + }, { + key: "renderFormula", + value: function(I, R) { + var C = null; + switch (R.shareType) { + case "shared": + C = { + t: "shared", + ref: R.ref || R.range.range, + si: R.si + }; + break; + case "array": + C = { + t: "array", + ref: R.ref + }; + break; + default: + R.si !== void 0 && (C = { + t: "shared", + si: R.si + }); + break; + } + switch (p(R.result)) { + case n.ValueType.Null: + I.leafNode("f", C, R.formula); + break; + case n.ValueType.String: + I.addAttribute("t", "str"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result); + break; + case n.ValueType.Number: + I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result); + break; + case n.ValueType.Boolean: + I.addAttribute("t", "b"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result ? 1 : 0); + break; + case n.ValueType.Error: + I.addAttribute("t", "e"), I.leafNode("f", C, R.formula), I.leafNode("v", null, R.result.error); + break; + case n.ValueType.Date: + I.leafNode("f", C, R.formula), I.leafNode("v", null, r.dateToExcel(R.result, R.date1904)); + break; + default: + throw new Error("I could not understand type of value"); + } + } + }, { + key: "render", + value: function(I, R) { + var C = this; + if (!(R.type === n.ValueType.Null && !R.styleId)) { + switch (I.openNode("c"), I.addAttribute("r", R.address), R.styleId && I.addAttribute("s", R.styleId), R.type) { + case n.ValueType.Null: + break; + case n.ValueType.Number: + I.leafNode("v", null, R.value); + break; + case n.ValueType.Boolean: + I.addAttribute("t", "b"), I.leafNode("v", null, R.value ? "1" : "0"); + break; + case n.ValueType.Error: + I.addAttribute("t", "e"), I.leafNode("v", null, R.value.error); + break; + case n.ValueType.String: + case n.ValueType.RichText: + R.ssId !== void 0 ? (I.addAttribute("t", "s"), I.leafNode("v", null, R.ssId)) : R.value && R.value.richText ? (I.addAttribute("t", "inlineStr"), I.openNode("is"), R.value.richText.forEach(function(E) { + C.richTextXForm.render(I, E); + }), I.closeNode("is")) : (I.addAttribute("t", "str"), I.leafNode("v", null, R.value)); + break; + case n.ValueType.Date: + I.leafNode("v", null, r.dateToExcel(R.value, R.date1904)); + break; + case n.ValueType.Hyperlink: + R.ssId !== void 0 ? (I.addAttribute("t", "s"), I.leafNode("v", null, R.ssId)) : (I.addAttribute("t", "str"), I.leafNode("v", null, R.text)); + break; + case n.ValueType.Formula: + this.renderFormula(I, R); + break; + case n.ValueType.Merge: + break; + } + I.closeNode(); + } + } + }, { + key: "parseOpen", + value: function(I) { + if (this.parser) + return this.parser.parseOpen(I), !0; + switch (I.name) { + case "c": + return this.model = { + address: I.attributes.r + }, this.t = I.attributes.t, I.attributes.s && (this.model.styleId = parseInt(I.attributes.s, 10)), !0; + case "f": + return this.currentNode = "f", this.model.si = I.attributes.si, this.model.shareType = I.attributes.t, this.model.ref = I.attributes.ref, !0; + case "v": + return this.currentNode = "v", !0; + case "t": + return this.currentNode = "t", !0; + case "r": + return this.parser = this.richTextXForm, this.parser.parseOpen(I), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(I) { + if (this.parser) { + this.parser.parseText(I); + return; + } + switch (this.currentNode) { + case "f": + this.model.formula = this.model.formula ? this.model.formula + I : I; + break; + case "v": + case "t": + this.model.value && this.model.value.richText ? this.model.value.richText.text = this.model.value.richText.text ? this.model.value.richText.text + I : I : this.model.value = this.model.value ? this.model.value + I : I; + break; + } + } + }, { + key: "parseClose", + value: function(I) { + switch (I) { + case "c": { + var R = this.model; + if (R.formula || R.shareType) + R.type = n.ValueType.Formula, R.value && (this.t === "str" ? R.result = r.xmlDecode(R.value) : this.t === "b" ? R.result = parseInt(R.value, 10) !== 0 : this.t === "e" ? R.result = { + error: R.value + } : R.result = parseFloat(R.value), R.value = void 0); + else if (R.value !== void 0) + switch (this.t) { + case "s": + R.type = n.ValueType.String, R.value = parseInt(R.value, 10); + break; + case "str": + R.type = n.ValueType.String, R.value = r.xmlDecode(R.value); + break; + case "inlineStr": + R.type = n.ValueType.String; + break; + case "b": + R.type = n.ValueType.Boolean, R.value = parseInt(R.value, 10) !== 0; + break; + case "e": + R.type = n.ValueType.Error, R.value = { + error: R.value + }; + break; + default: + R.type = n.ValueType.Number, R.value = parseFloat(R.value); + break; + } + else + R.styleId ? R.type = n.ValueType.Null : R.type = n.ValueType.Merge; + return !1; + } + case "f": + case "v": + case "is": + return this.currentNode = void 0, !0; + case "t": + return this.parser ? (this.parser.parseClose(I), !0) : (this.currentNode = void 0, !0); + case "r": + return this.model.value = this.model.value || {}, this.model.value.richText = this.model.value.richText || [], this.model.value.richText.push(this.parser.model), this.parser = void 0, this.currentNode = void 0, !0; + default: + return this.parser ? (this.parser.parseClose(I), !0) : !1; + } + } + }, { + key: "reconcile", + value: function(I, R) { + var C = I.styleId && R.styles && R.styles.getStyleModel(I.styleId); + switch (C && (I.style = C), I.styleId !== void 0 && (I.styleId = void 0), I.type) { + case n.ValueType.String: + typeof I.value == "number" && R.sharedStrings && (I.value = R.sharedStrings.getString(I.value)), I.value.richText && (I.type = n.ValueType.RichText); + break; + case n.ValueType.Number: + C && r.isDateFmt(C.numFmt) && (I.type = n.ValueType.Date, I.value = r.excelToDate(I.value, R.date1904)); + break; + case n.ValueType.Formula: + I.result !== void 0 && C && r.isDateFmt(C.numFmt) && (I.result = r.excelToDate(I.result, R.date1904)), I.shareType === "shared" && (I.ref ? R.formulae[I.si] = I.address : (I.sharedFormula = R.formulae[I.si], delete I.shareType), delete I.si); + break; + } + var E = R.hyperlinkMap[I.address]; + E && (I.type === n.ValueType.Formula ? (I.text = I.result, I.result = void 0) : (I.text = I.value, I.value = void 0), I.type = n.ValueType.Hyperlink, I.hyperlink = E); + var A = R.commentsMap && R.commentsMap[I.address]; + A && (I.comment = A); + } + }, { + key: "tag", + get: function() { + return "c"; + } + }]), N; + }(t); + x.exports = P; + }, { "../../../doc/enums": 7, "../../../doc/range": 10, "../../../utils/utils": 26, "../base-xform": 31, "../strings/rich-text-xform": 121 }], 73: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, { + iconSet: o.iconSet, + iconId: o.iconId + }); + } + }, { + key: "parseOpen", + value: function(n) { + var o = n.attributes; + this.model = { + iconSet: o.iconSet, + iconId: v.toIntValue(o.iconId) + }; + } + }, { + key: "parseClose", + value: function(n) { + return n !== this.tag; + } + }, { + key: "tag", + get: function() { + return "x14:cfIcon"; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 74: [function(e, x, _) { + function u(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) { + return typeof P; + } : u = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, u(p); + } + function m(p, O) { + if (!(p instanceof O)) + throw new TypeError("Cannot call a class as a function"); + } + function g(p, O) { + for (var P = 0; P < O.length; P++) { + var F = O[P]; + F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F); + } + } + function b(p, O, P) { + return O && g(p.prototype, O), P && g(p, P), p; + } + function w(p, O) { + if (typeof O != "function" && O !== null) + throw new TypeError("Super expression must either be null or a function"); + p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O); + } + function f(p, O) { + return f = Object.setPrototypeOf || function(F, z) { + return F.__proto__ = z, F; + }, f(p, O); + } + function y(p) { + var O = d(); + return function() { + var F = s(p), z; + if (O) { + var N = s(this).constructor; + z = Reflect.construct(F, arguments, N); + } else + z = F.apply(this, arguments); + return h(this, z); + }; + } + function h(p, O) { + return O && (u(O) === "object" || typeof O == "function") ? O : l(p); + } + function l(p) { + if (p === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return p; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (p) { + return !1; + } + } + function s(p) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) { + return P.__proto__ || Object.getPrototypeOf(P); + }, s(p); + } + var v = e("uuid"), c = v.v4, a = e("../../base-xform"), r = e("../../composite-xform"), t = e("./databar-ext-xform"), i = e("./icon-set-ext-xform"), n = { + "3Triangles": !0, + "3Stars": !0, + "5Boxes": !0 + }, o = /* @__PURE__ */ function(p) { + w(P, p); + var O = y(P); + function P() { + var F; + return m(this, P), F = O.call(this), F.map = { + "x14:dataBar": F.databarXform = new t(), + "x14:iconSet": F.iconSetXform = new i() + }, F; + } + return b(P, [{ + key: "prepare", + value: function(z) { + P.isExt(z) && (z.x14Id = "{".concat(c(), "}").toUpperCase()); + } + }, { + key: "render", + value: function(z, N) { + if (P.isExt(N)) + switch (N.type) { + case "dataBar": + this.renderDataBar(z, N); + break; + case "iconSet": + this.renderIconSet(z, N); + break; + } + } + }, { + key: "renderDataBar", + value: function(z, N) { + z.openNode(this.tag, { + type: "dataBar", + id: N.x14Id + }), this.databarXform.render(z, N), z.closeNode(); + } + }, { + key: "renderIconSet", + value: function(z, N) { + z.openNode(this.tag, { + type: "iconSet", + priority: N.priority, + id: N.x14Id || "{".concat(c(), "}") + }), this.iconSetXform.render(z, N), z.closeNode(); + } + }, { + key: "createNewModel", + value: function(z) { + var N = z.attributes; + return { + type: N.type, + x14Id: N.id, + priority: a.toIntValue(N.priority) + }; + } + }, { + key: "onParserClose", + value: function(z, N) { + Object.assign(this.model, N.model); + } + }, { + key: "tag", + get: function() { + return "x14:cfRule"; + } + }], [{ + key: "isExt", + value: function(z) { + return z.type === "dataBar" ? t.isExt(z) : !!(z.type === "iconSet" && (z.custom || n[z.iconSet])); + } + }]), P; + }(r); + x.exports = o; + }, { "../../base-xform": 31, "../../composite-xform": 47, "./databar-ext-xform": 78, "./icon-set-ext-xform": 80, uuid: 526 }], 75: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../composite-xform"), c = e("./f-ext-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + var n; + return m(this, i), n = t.call(this), n.map = { + "xm:f": n.fExtXform = new c() + }, n; + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.openNode(this.tag, { + type: p.type + }), p.value !== void 0 && this.fExtXform.render(o, p.value), o.closeNode(); + } + }, { + key: "createNewModel", + value: function(o) { + return { + type: o.attributes.type + }; + } + }, { + key: "onParserClose", + value: function(o, p) { + switch (o) { + case "xm:f": + this.model.value = p.model ? parseFloat(p.model) : 0; + break; + } + } + }, { + key: "tag", + get: function() { + return "x14:cfvo"; + } + }]), i; + }(v); + x.exports = a; + }, { "../../composite-xform": 47, "./f-ext-xform": 79 }], 76: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../composite-xform"), c = e("./sqref-ext-xform"), a = e("./cf-rule-ext-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "xm:sqref": o.sqRef = new c(), + "x14:cfRule": o.cfRule = new a() + }, o; + } + return b(n, [{ + key: "prepare", + value: function(p, O) { + var P = this; + p.rules.forEach(function(F) { + P.cfRule.prepare(F, O); + }); + } + }, { + key: "render", + value: function(p, O) { + var P = this; + O.rules.some(a.isExt) && (p.openNode(this.tag, { + "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" + }), O.rules.filter(a.isExt).forEach(function(F) { + return P.cfRule.render(p, F); + }), this.sqRef.render(p, O.ref), p.closeNode()); + } + }, { + key: "createNewModel", + value: function() { + return { + rules: [] + }; + } + }, { + key: "onParserClose", + value: function(p, O) { + switch (p) { + case "xm:sqref": + this.model.ref = O.model; + break; + case "x14:cfRule": + this.model.rules.push(O.model); + break; + } + } + }, { + key: "tag", + get: function() { + return "x14:conditionalFormatting"; + } + }]), n; + }(v); + x.exports = r; + }, { "../../composite-xform": 47, "./cf-rule-ext-xform": 74, "./sqref-ext-xform": 81 }], 77: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../composite-xform"), c = e("./cf-rule-ext-xform"), a = e("./conditional-formatting-ext-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "x14:conditionalFormatting": o.cfXform = new a() + }, o; + } + return b(n, [{ + key: "hasContent", + value: function(p) { + return p.hasExtContent === void 0 && (p.hasExtContent = p.some(function(O) { + return O.rules.some(c.isExt); + })), p.hasExtContent; + } + }, { + key: "prepare", + value: function(p, O) { + var P = this; + p.forEach(function(F) { + P.cfXform.prepare(F, O); + }); + } + }, { + key: "render", + value: function(p, O) { + var P = this; + this.hasContent(O) && (p.openNode(this.tag), O.forEach(function(F) { + return P.cfXform.render(p, F); + }), p.closeNode()); + } + }, { + key: "createNewModel", + value: function() { + return []; + } + }, { + key: "onParserClose", + value: function(p, O) { + this.model.push(O.model); + } + }, { + key: "tag", + get: function() { + return "x14:conditionalFormattings"; + } + }]), n; + }(v); + x.exports = r; + }, { "../../composite-xform": 47, "./cf-rule-ext-xform": 74, "./conditional-formatting-ext-xform": 76 }], 78: [function(e, x, _) { + function u(F) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) { + return typeof N; + } : u = function(N) { + return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N; + }, u(F); + } + function m(F, z) { + return y(F) || f(F, z) || b(F, z) || g(); + } + function g() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function b(F, z) { + if (F) { + if (typeof F == "string") + return w(F, z); + var N = Object.prototype.toString.call(F).slice(8, -1); + if (N === "Object" && F.constructor && (N = F.constructor.name), N === "Map" || N === "Set") + return Array.from(F); + if (N === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)) + return w(F, z); + } + } + function w(F, z) { + (z == null || z > F.length) && (z = F.length); + for (var N = 0, M = new Array(z); N < z; N++) + M[N] = F[N]; + return M; + } + function f(F, z) { + if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(F)))) { + var N = [], M = !0, I = !1, R = void 0; + try { + for (var C = F[Symbol.iterator](), E; !(M = (E = C.next()).done) && (N.push(E.value), !(z && N.length === z)); M = !0) + ; + } catch (A) { + I = !0, R = A; + } finally { + try { + !M && C.return != null && C.return(); + } finally { + if (I) + throw R; + } + } + return N; + } + } + function y(F) { + if (Array.isArray(F)) + return F; + } + function h(F, z) { + if (!(F instanceof z)) + throw new TypeError("Cannot call a class as a function"); + } + function l(F, z) { + for (var N = 0; N < z.length; N++) { + var M = z[N]; + M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M); + } + } + function d(F, z, N) { + return z && l(F.prototype, z), N && l(F, N), F; + } + function s(F, z) { + if (typeof z != "function" && z !== null) + throw new TypeError("Super expression must either be null or a function"); + F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && v(F, z); + } + function v(F, z) { + return v = Object.setPrototypeOf || function(M, I) { + return M.__proto__ = I, M; + }, v(F, z); + } + function c(F) { + var z = t(); + return function() { + var M = i(F), I; + if (z) { + var R = i(this).constructor; + I = Reflect.construct(M, arguments, R); + } else + I = M.apply(this, arguments); + return a(this, I); + }; + } + function a(F, z) { + return z && (u(z) === "object" || typeof z == "function") ? z : r(F); + } + function r(F) { + if (F === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return F; + } + function t() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (F) { + return !1; + } + } + function i(F) { + return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) { + return N.__proto__ || Object.getPrototypeOf(N); + }, i(F); + } + var n = e("../../base-xform"), o = e("../../composite-xform"), p = e("../../style/color-xform"), O = e("./cfvo-ext-xform"), P = /* @__PURE__ */ function(F) { + s(N, F); + var z = c(N); + function N() { + var M; + return h(this, N), M = z.call(this), M.map = { + "x14:cfvo": M.cfvoXform = new O(), + "x14:borderColor": M.borderColorXform = new p("x14:borderColor"), + "x14:negativeBorderColor": M.negativeBorderColorXform = new p("x14:negativeBorderColor"), + "x14:negativeFillColor": M.negativeFillColorXform = new p("x14:negativeFillColor"), + "x14:axisColor": M.axisColorXform = new p("x14:axisColor") + }, M; + } + return d(N, [{ + key: "render", + value: function(I, R) { + var C = this; + I.openNode(this.tag, { + minLength: n.toIntAttribute(R.minLength, 0, !0), + maxLength: n.toIntAttribute(R.maxLength, 100, !0), + border: n.toBoolAttribute(R.border, !1), + gradient: n.toBoolAttribute(R.gradient, !0), + negativeBarColorSameAsPositive: n.toBoolAttribute(R.negativeBarColorSameAsPositive, !0), + negativeBarBorderColorSameAsPositive: n.toBoolAttribute(R.negativeBarBorderColorSameAsPositive, !0), + axisPosition: n.toAttribute(R.axisPosition, "auto"), + direction: n.toAttribute(R.direction, "leftToRight") + }), R.cfvo.forEach(function(E) { + C.cfvoXform.render(I, E); + }), this.borderColorXform.render(I, R.borderColor), this.negativeBorderColorXform.render(I, R.negativeBorderColor), this.negativeFillColorXform.render(I, R.negativeFillColor), this.axisColorXform.render(I, R.axisColor), I.closeNode(); + } + }, { + key: "createNewModel", + value: function(I) { + var R = I.attributes; + return { + cfvo: [], + minLength: n.toIntValue(R.minLength, 0), + maxLength: n.toIntValue(R.maxLength, 100), + border: n.toBoolValue(R.border, !1), + gradient: n.toBoolValue(R.gradient, !0), + negativeBarColorSameAsPositive: n.toBoolValue(R.negativeBarColorSameAsPositive, !0), + negativeBarBorderColorSameAsPositive: n.toBoolValue(R.negativeBarBorderColorSameAsPositive, !0), + axisPosition: n.toStringValue(R.axisPosition, "auto"), + direction: n.toStringValue(R.direction, "leftToRight") + }; + } + }, { + key: "onParserClose", + value: function(I, R) { + var C = I.split(":"), E = m(C, 2), A = E[1]; + switch (A) { + case "cfvo": + this.model.cfvo.push(R.model); + break; + default: + this.model[A] = R.model; + break; + } + } + }, { + key: "tag", + get: function() { + return "x14:dataBar"; + } + }], [{ + key: "isExt", + value: function(I) { + return !I.gradient; + } + }]), N; + }(o); + x.exports = P; + }, { "../../base-xform": 31, "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-ext-xform": 75 }], 79: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, null, o); + } + }, { + key: "parseOpen", + value: function() { + this.model = ""; + } + }, { + key: "parseText", + value: function(n) { + this.model += n; + } + }, { + key: "parseClose", + value: function(n) { + return n !== this.tag; + } + }, { + key: "tag", + get: function() { + return "xm:f"; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 80: [function(e, x, _) { + function u(F) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(N) { + return typeof N; + } : u = function(N) { + return N && typeof Symbol == "function" && N.constructor === Symbol && N !== Symbol.prototype ? "symbol" : typeof N; + }, u(F); + } + function m(F, z) { + return y(F) || f(F, z) || b(F, z) || g(); + } + function g() { + throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function b(F, z) { + if (F) { + if (typeof F == "string") + return w(F, z); + var N = Object.prototype.toString.call(F).slice(8, -1); + if (N === "Object" && F.constructor && (N = F.constructor.name), N === "Map" || N === "Set") + return Array.from(F); + if (N === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)) + return w(F, z); + } + } + function w(F, z) { + (z == null || z > F.length) && (z = F.length); + for (var N = 0, M = new Array(z); N < z; N++) + M[N] = F[N]; + return M; + } + function f(F, z) { + if (!(typeof Symbol == "undefined" || !(Symbol.iterator in Object(F)))) { + var N = [], M = !0, I = !1, R = void 0; + try { + for (var C = F[Symbol.iterator](), E; !(M = (E = C.next()).done) && (N.push(E.value), !(z && N.length === z)); M = !0) + ; + } catch (A) { + I = !0, R = A; + } finally { + try { + !M && C.return != null && C.return(); + } finally { + if (I) + throw R; + } + } + return N; + } + } + function y(F) { + if (Array.isArray(F)) + return F; + } + function h(F, z) { + if (!(F instanceof z)) + throw new TypeError("Cannot call a class as a function"); + } + function l(F, z) { + for (var N = 0; N < z.length; N++) { + var M = z[N]; + M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(F, M.key, M); + } + } + function d(F, z, N) { + return z && l(F.prototype, z), N && l(F, N), F; + } + function s(F, z) { + if (typeof z != "function" && z !== null) + throw new TypeError("Super expression must either be null or a function"); + F.prototype = Object.create(z && z.prototype, { constructor: { value: F, writable: !0, configurable: !0 } }), z && v(F, z); + } + function v(F, z) { + return v = Object.setPrototypeOf || function(M, I) { + return M.__proto__ = I, M; + }, v(F, z); + } + function c(F) { + var z = t(); + return function() { + var M = i(F), I; + if (z) { + var R = i(this).constructor; + I = Reflect.construct(M, arguments, R); + } else + I = M.apply(this, arguments); + return a(this, I); + }; + } + function a(F, z) { + return z && (u(z) === "object" || typeof z == "function") ? z : r(F); + } + function r(F) { + if (F === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return F; + } + function t() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (F) { + return !1; + } + } + function i(F) { + return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(N) { + return N.__proto__ || Object.getPrototypeOf(N); + }, i(F); + } + var n = e("../../base-xform"), o = e("../../composite-xform"), p = e("./cfvo-ext-xform"), O = e("./cf-icon-ext-xform"), P = /* @__PURE__ */ function(F) { + s(N, F); + var z = c(N); + function N() { + var M; + return h(this, N), M = z.call(this), M.map = { + "x14:cfvo": M.cfvoXform = new p(), + "x14:cfIcon": M.cfIconXform = new O() + }, M; + } + return d(N, [{ + key: "render", + value: function(I, R) { + var C = this; + I.openNode(this.tag, { + iconSet: n.toStringAttribute(R.iconSet), + reverse: n.toBoolAttribute(R.reverse, !1), + showValue: n.toBoolAttribute(R.showValue, !0), + custom: n.toBoolAttribute(R.icons, !1) + }), R.cfvo.forEach(function(E) { + C.cfvoXform.render(I, E); + }), R.icons && R.icons.forEach(function(E, A) { + E.iconId = A, C.cfIconXform.render(I, E); + }), I.closeNode(); + } + }, { + key: "createNewModel", + value: function(I) { + var R = I.attributes; + return { + cfvo: [], + iconSet: n.toStringValue(R.iconSet, "3TrafficLights"), + reverse: n.toBoolValue(R.reverse, !1), + showValue: n.toBoolValue(R.showValue, !0) + }; + } + }, { + key: "onParserClose", + value: function(I, R) { + var C = I.split(":"), E = m(C, 2), A = E[1]; + switch (A) { + case "cfvo": + this.model.cfvo.push(R.model); + break; + case "cfIcon": + this.model.icons || (this.model.icons = []), this.model.icons.push(R.model); + break; + default: + this.model[A] = R.model; + break; + } + } + }, { + key: "tag", + get: function() { + return "x14:iconSet"; + } + }]), N; + }(o); + x.exports = P; + }, { "../../base-xform": 31, "../../composite-xform": 47, "./cf-icon-ext-xform": 73, "./cfvo-ext-xform": 75 }], 81: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, null, o); + } + }, { + key: "parseOpen", + value: function() { + this.model = ""; + } + }, { + key: "parseText", + value: function(n) { + this.model += n; + } + }, { + key: "parseClose", + value: function(n) { + return n !== this.tag; + } + }, { + key: "tag", + get: function() { + return "xm:sqref"; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 82: [function(e, x, _) { + function u(R) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(E) { + return typeof E; + } : u = function(E) { + return E && typeof Symbol == "function" && E.constructor === Symbol && E !== Symbol.prototype ? "symbol" : typeof E; + }, u(R); + } + function m(R, C) { + var E = Object.keys(R); + if (Object.getOwnPropertySymbols) { + var A = Object.getOwnPropertySymbols(R); + C && (A = A.filter(function(L) { + return Object.getOwnPropertyDescriptor(R, L).enumerable; + })), E.push.apply(E, A); + } + return E; + } + function g(R) { + for (var C = 1; C < arguments.length; C++) { + var E = arguments[C] != null ? arguments[C] : {}; + C % 2 ? m(Object(E), !0).forEach(function(A) { + b(R, A, E[A]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(E)) : m(Object(E)).forEach(function(A) { + Object.defineProperty(R, A, Object.getOwnPropertyDescriptor(E, A)); + }); + } + return R; + } + function b(R, C, E) { + return C in R ? Object.defineProperty(R, C, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : R[C] = E, R; + } + function w(R, C) { + if (!(R instanceof C)) + throw new TypeError("Cannot call a class as a function"); + } + function f(R, C) { + for (var E = 0; E < C.length; E++) { + var A = C[E]; + A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(R, A.key, A); + } + } + function y(R, C, E) { + return C && f(R.prototype, C), E && f(R, E), R; + } + function h(R, C) { + if (typeof C != "function" && C !== null) + throw new TypeError("Super expression must either be null or a function"); + R.prototype = Object.create(C && C.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), C && l(R, C); + } + function l(R, C) { + return l = Object.setPrototypeOf || function(A, L) { + return A.__proto__ = L, A; + }, l(R, C); + } + function d(R) { + var C = c(); + return function() { + var A = a(R), L; + if (C) { + var $ = a(this).constructor; + L = Reflect.construct(A, arguments, $); + } else + L = A.apply(this, arguments); + return s(this, L); + }; + } + function s(R, C) { + return C && (u(C) === "object" || typeof C == "function") ? C : v(R); + } + function v(R) { + if (R === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return R; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (R) { + return !1; + } + } + function a(R) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(E) { + return E.__proto__ || Object.getPrototypeOf(E); + }, a(R); + } + var r = e("../../base-xform"), t = e("../../composite-xform"), i = e("../../../../doc/range"), n = e("./databar-xform"), o = e("./ext-lst-ref-xform"), p = e("./formula-xform"), O = e("./color-scale-xform"), P = e("./icon-set-xform"), F = { + "3Triangles": !0, + "3Stars": !0, + "5Boxes": !0 + }, z = function(C) { + if (C.formulae && C.formulae[0]) + return C.formulae[0]; + var E = new i(C.ref), A = E.tl; + switch (C.operator) { + case "containsText": + return 'NOT(ISERROR(SEARCH("'.concat(C.text, '",').concat(A, ")))"); + case "containsBlanks": + return "LEN(TRIM(".concat(A, "))=0"); + case "notContainsBlanks": + return "LEN(TRIM(".concat(A, "))>0"); + case "containsErrors": + return "ISERROR(".concat(A, ")"); + case "notContainsErrors": + return "NOT(ISERROR(".concat(A, "))"); + default: + return; + } + }, N = function(C) { + if (C.formulae && C.formulae[0]) + return C.formulae[0]; + var E = new i(C.ref), A = E.tl; + switch (C.timePeriod) { + case "thisWeek": + return "AND(TODAY()-ROUNDDOWN(".concat(A, ",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(A, ",0)-TODAY()<=7-WEEKDAY(TODAY()))"); + case "lastWeek": + return "AND(TODAY()-ROUNDDOWN(".concat(A, ",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(A, ",0)<(WEEKDAY(TODAY())+7))"); + case "nextWeek": + return "AND(ROUNDDOWN(".concat(A, ",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(A, ",0)-TODAY()<(15-WEEKDAY(TODAY())))"); + case "yesterday": + return "FLOOR(".concat(A, ",1)=TODAY()-1"); + case "today": + return "FLOOR(".concat(A, ",1)=TODAY()"); + case "tomorrow": + return "FLOOR(".concat(A, ",1)=TODAY()+1"); + case "last7Days": + return "AND(TODAY()-FLOOR(".concat(A, ",1)<=6,FLOOR(").concat(A, ",1)<=TODAY())"); + case "lastMonth": + return "AND(MONTH(".concat(A, ")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(A, ")=YEAR(EDATE(TODAY(),0-1)))"); + case "thisMonth": + return "AND(MONTH(".concat(A, ")=MONTH(TODAY()),YEAR(").concat(A, ")=YEAR(TODAY()))"); + case "nextMonth": + return "AND(MONTH(".concat(A, ")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(A, ")=YEAR(EDATE(TODAY(),0+1)))"); + default: + return; + } + }, M = function(C) { + var E = C.type, A = C.operator; + switch (E) { + case "containsText": + case "containsBlanks": + case "notContainsBlanks": + case "containsErrors": + case "notContainsErrors": + return { + type: "containsText", + operator: E + }; + default: + return { + type: E, + operator: A + }; + } + }, I = /* @__PURE__ */ function(R) { + h(E, R); + var C = d(E); + function E() { + var A; + return w(this, E), A = C.call(this), A.map = { + dataBar: A.databarXform = new n(), + extLst: A.extLstRefXform = new o(), + formula: A.formulaXform = new p(), + colorScale: A.colorScaleXform = new O(), + iconSet: A.iconSetXform = new P() + }, A; + } + return y(E, [{ + key: "render", + value: function(L, $) { + switch ($.type) { + case "expression": + this.renderExpression(L, $); + break; + case "cellIs": + this.renderCellIs(L, $); + break; + case "top10": + this.renderTop10(L, $); + break; + case "aboveAverage": + this.renderAboveAverage(L, $); + break; + case "dataBar": + this.renderDataBar(L, $); + break; + case "colorScale": + this.renderColorScale(L, $); + break; + case "iconSet": + this.renderIconSet(L, $); + break; + case "containsText": + this.renderText(L, $); + break; + case "timePeriod": + this.renderTimePeriod(L, $); + break; + } + } + }, { + key: "renderExpression", + value: function(L, $) { + L.openNode(this.tag, { + type: "expression", + dxfId: $.dxfId, + priority: $.priority + }), this.formulaXform.render(L, $.formulae[0]), L.closeNode(); + } + }, { + key: "renderCellIs", + value: function(L, $) { + var W = this; + L.openNode(this.tag, { + type: "cellIs", + dxfId: $.dxfId, + priority: $.priority, + operator: $.operator + }), $.formulae.forEach(function(U) { + W.formulaXform.render(L, U); + }), L.closeNode(); + } + }, { + key: "renderTop10", + value: function(L, $) { + L.leafNode(this.tag, { + type: "top10", + dxfId: $.dxfId, + priority: $.priority, + percent: r.toBoolAttribute($.percent, !1), + bottom: r.toBoolAttribute($.bottom, !1), + rank: r.toIntValue($.rank, 10, !0) + }); + } + }, { + key: "renderAboveAverage", + value: function(L, $) { + L.leafNode(this.tag, { + type: "aboveAverage", + dxfId: $.dxfId, + priority: $.priority, + aboveAverage: r.toBoolAttribute($.aboveAverage, !0) + }); + } + }, { + key: "renderDataBar", + value: function(L, $) { + L.openNode(this.tag, { + type: "dataBar", + priority: $.priority + }), this.databarXform.render(L, $), this.extLstRefXform.render(L, $), L.closeNode(); + } + }, { + key: "renderColorScale", + value: function(L, $) { + L.openNode(this.tag, { + type: "colorScale", + priority: $.priority + }), this.colorScaleXform.render(L, $), L.closeNode(); + } + }, { + key: "renderIconSet", + value: function(L, $) { + E.isPrimitive($) && (L.openNode(this.tag, { + type: "iconSet", + priority: $.priority + }), this.iconSetXform.render(L, $), L.closeNode()); + } + }, { + key: "renderText", + value: function(L, $) { + L.openNode(this.tag, { + type: $.operator, + dxfId: $.dxfId, + priority: $.priority, + operator: r.toStringAttribute($.operator, "containsText") + }); + var W = z($); + W && this.formulaXform.render(L, W), L.closeNode(); + } + }, { + key: "renderTimePeriod", + value: function(L, $) { + L.openNode(this.tag, { + type: "timePeriod", + dxfId: $.dxfId, + priority: $.priority, + timePeriod: $.timePeriod + }); + var W = N($); + W && this.formulaXform.render(L, W), L.closeNode(); + } + }, { + key: "createNewModel", + value: function(L) { + var $ = L.attributes; + return g(g({}, M($)), {}, { + dxfId: r.toIntValue($.dxfId), + priority: r.toIntValue($.priority), + timePeriod: $.timePeriod, + percent: r.toBoolValue($.percent), + bottom: r.toBoolValue($.bottom), + rank: r.toIntValue($.rank), + aboveAverage: r.toBoolValue($.aboveAverage) + }); + } + }, { + key: "onParserClose", + value: function(L, $) { + switch (L) { + case "dataBar": + case "extLst": + case "colorScale": + case "iconSet": + Object.assign(this.model, $.model); + break; + case "formula": + this.model.formulae = this.model.formulae || [], this.model.formulae.push($.model); + break; + } + } + }, { + key: "tag", + get: function() { + return "cfRule"; + } + }], [{ + key: "isPrimitive", + value: function(L) { + return !(L.type === "iconSet" && (L.custom || F[L.iconSet])); + } + }]), E; + }(t); + x.exports = I; + }, { "../../../../doc/range": 10, "../../base-xform": 31, "../../composite-xform": 47, "./color-scale-xform": 84, "./databar-xform": 87, "./ext-lst-ref-xform": 88, "./formula-xform": 89, "./icon-set-xform": 90 }], 83: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, { + type: o.type, + val: o.value + }); + } + }, { + key: "parseOpen", + value: function(n) { + this.model = { + type: n.attributes.type, + value: v.toFloatValue(n.attributes.val) + }; + } + }, { + key: "parseClose", + value: function(n) { + return n !== this.tag; + } + }, { + key: "tag", + get: function() { + return "cfvo"; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 84: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../composite-xform"), c = e("../../style/color-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + cfvo: o.cfvoXform = new a(), + color: o.colorXform = new c() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + var P = this; + p.openNode(this.tag), O.cfvo.forEach(function(F) { + P.cfvoXform.render(p, F); + }), O.color.forEach(function(F) { + P.colorXform.render(p, F); + }), p.closeNode(); + } + }, { + key: "createNewModel", + value: function(p) { + return { + cfvo: [], + color: [] + }; + } + }, { + key: "onParserClose", + value: function(p, O) { + this.model[p].push(O.model); + } + }, { + key: "tag", + get: function() { + return "colorScale"; + } + }]), n; + }(v); + x.exports = r; + }, { "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-xform": 83 }], 85: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../composite-xform"), c = e("./cf-rule-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + var n; + return m(this, i), n = t.call(this), n.map = { + cfRule: new c() + }, n; + } + return b(i, [{ + key: "render", + value: function(o, p) { + var O = this; + p.rules.some(c.isPrimitive) && (o.openNode(this.tag, { + sqref: p.ref + }), p.rules.forEach(function(P) { + c.isPrimitive(P) && (P.ref = p.ref, O.map.cfRule.render(o, P)); + }), o.closeNode()); + } + }, { + key: "createNewModel", + value: function(o) { + var p = o.attributes; + return { + ref: p.sqref, + rules: [] + }; + } + }, { + key: "onParserClose", + value: function(o, p) { + this.model.rules.push(p.model); + } + }, { + key: "tag", + get: function() { + return "conditionalFormatting"; + } + }]), i; + }(v); + x.exports = a; + }, { "../../composite-xform": 47, "./cf-rule-xform": 82 }], 86: [function(e, x, _) { + function u(O) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(F) { + return typeof F; + } : u = function(F) { + return F && typeof Symbol == "function" && F.constructor === Symbol && F !== Symbol.prototype ? "symbol" : typeof F; + }, u(O); + } + function m(O) { + return f(O) || w(O) || b(O) || g(); + } + function g() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function b(O, P) { + if (O) { + if (typeof O == "string") + return y(O, P); + var F = Object.prototype.toString.call(O).slice(8, -1); + if (F === "Object" && O.constructor && (F = O.constructor.name), F === "Map" || F === "Set") + return Array.from(O); + if (F === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F)) + return y(O, P); + } + } + function w(O) { + if (typeof Symbol != "undefined" && Symbol.iterator in Object(O)) + return Array.from(O); + } + function f(O) { + if (Array.isArray(O)) + return y(O); + } + function y(O, P) { + (P == null || P > O.length) && (P = O.length); + for (var F = 0, z = new Array(P); F < P; F++) + z[F] = O[F]; + return z; + } + function h(O, P) { + if (!(O instanceof P)) + throw new TypeError("Cannot call a class as a function"); + } + function l(O, P) { + for (var F = 0; F < P.length; F++) { + var z = P[F]; + z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(O, z.key, z); + } + } + function d(O, P, F) { + return P && l(O.prototype, P), F && l(O, F), O; + } + function s(O, P) { + if (typeof P != "function" && P !== null) + throw new TypeError("Super expression must either be null or a function"); + O.prototype = Object.create(P && P.prototype, { constructor: { value: O, writable: !0, configurable: !0 } }), P && v(O, P); + } + function v(O, P) { + return v = Object.setPrototypeOf || function(z, N) { + return z.__proto__ = N, z; + }, v(O, P); + } + function c(O) { + var P = t(); + return function() { + var z = i(O), N; + if (P) { + var M = i(this).constructor; + N = Reflect.construct(z, arguments, M); + } else + N = z.apply(this, arguments); + return a(this, N); + }; + } + function a(O, P) { + return P && (u(P) === "object" || typeof P == "function") ? P : r(O); + } + function r(O) { + if (O === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return O; + } + function t() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (O) { + return !1; + } + } + function i(O) { + return i = Object.setPrototypeOf ? Object.getPrototypeOf : function(F) { + return F.__proto__ || Object.getPrototypeOf(F); + }, i(O); + } + var n = e("../../base-xform"), o = e("./conditional-formatting-xform"), p = /* @__PURE__ */ function(O) { + s(F, O); + var P = c(F); + function F() { + var z; + return h(this, F), z = P.call(this), z.cfXform = new o(), z; + } + return d(F, [{ + key: "reset", + value: function() { + this.model = []; + } + }, { + key: "prepare", + value: function(N, M) { + var I = N.reduce(function(R, C) { + return Math.max.apply(Math, [R].concat(m(C.rules.map(function(E) { + return E.priority || 0; + })))); + }, 1); + N.forEach(function(R) { + R.rules.forEach(function(C) { + C.priority || (C.priority = I++), C.style && (C.dxfId = M.styles.addDxfStyle(C.style)); + }); + }); + } + }, { + key: "render", + value: function(N, M) { + var I = this; + M.forEach(function(R) { + I.cfXform.render(N, R); + }); + } + }, { + key: "parseOpen", + value: function(N) { + if (this.parser) + return this.parser.parseOpen(N), !0; + switch (N.name) { + case "conditionalFormatting": + return this.parser = this.cfXform, this.parser.parseOpen(N), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(N) { + this.parser && this.parser.parseText(N); + } + }, { + key: "parseClose", + value: function(N) { + return this.parser ? this.parser.parseClose(N) ? !0 : (this.model.push(this.parser.model), this.parser = void 0, !1) : !1; + } + }, { + key: "reconcile", + value: function(N, M) { + N.forEach(function(I) { + I.rules.forEach(function(R) { + R.dxfId !== void 0 && (R.style = M.styles.getDxfStyle(R.dxfId), delete R.dxfId); + }); + }); + } + }, { + key: "tag", + get: function() { + return "conditionalFormatting"; + } + }]), F; + }(n); + x.exports = p; + }, { "../../base-xform": 31, "./conditional-formatting-xform": 85 }], 87: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../composite-xform"), c = e("../../style/color-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + cfvo: o.cfvoXform = new a(), + color: o.colorXform = new c() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + var P = this; + p.openNode(this.tag), O.cfvo.forEach(function(F) { + P.cfvoXform.render(p, F); + }), this.colorXform.render(p, O.color), p.closeNode(); + } + }, { + key: "createNewModel", + value: function() { + return { + cfvo: [] + }; + } + }, { + key: "onParserClose", + value: function(p, O) { + switch (p) { + case "cfvo": + this.model.cfvo.push(O.model); + break; + case "color": + this.model.color = O.model; + break; + } + } + }, { + key: "tag", + get: function() { + return "dataBar"; + } + }]), n; + }(v); + x.exports = r; + }, { "../../composite-xform": 47, "../../style/color-xform": 127, "./cfvo-xform": 83 }], 88: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("../../base-xform"), c = e("../../composite-xform"), a = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + return m(this, o), n.apply(this, arguments); + } + return b(o, [{ + key: "render", + value: function(O, P) { + O.leafNode(this.tag, null, P); + } + }, { + key: "parseOpen", + value: function() { + this.model = ""; + } + }, { + key: "parseText", + value: function(O) { + this.model += O; + } + }, { + key: "parseClose", + value: function(O) { + return O !== this.tag; + } + }, { + key: "tag", + get: function() { + return "x14:id"; + } + }]), o; + }(v), r = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + var p; + return m(this, o), p = n.call(this), p.map = { + "x14:id": p.idXform = new a() + }, p; + } + return b(o, [{ + key: "render", + value: function(O, P) { + O.openNode(this.tag, { + uri: "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}", + "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" + }), this.idXform.render(O, P.x14Id), O.closeNode(); + } + }, { + key: "createNewModel", + value: function() { + return {}; + } + }, { + key: "onParserClose", + value: function(O, P) { + this.model.x14Id = P.model; + } + }, { + key: "tag", + get: function() { + return "ext"; + } + }]), o; + }(c), t = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + var p; + return m(this, o), p = n.call(this), p.map = { + ext: new r() + }, p; + } + return b(o, [{ + key: "render", + value: function(O, P) { + O.openNode(this.tag), this.map.ext.render(O, P), O.closeNode(); + } + }, { + key: "createNewModel", + value: function() { + return {}; + } + }, { + key: "onParserClose", + value: function(O, P) { + Object.assign(this.model, P.model); + } + }, { + key: "tag", + get: function() { + return "extLst"; + } + }]), o; + }(c); + x.exports = t; + }, { "../../base-xform": 31, "../../composite-xform": 47 }], 89: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode(this.tag, null, o); + } + }, { + key: "parseOpen", + value: function() { + this.model = ""; + } + }, { + key: "parseText", + value: function(n) { + this.model += n; + } + }, { + key: "parseClose", + value: function(n) { + return n !== this.tag; + } + }, { + key: "tag", + get: function() { + return "formula"; + } + }]), t; + }(v); + x.exports = c; + }, { "../../base-xform": 31 }], 90: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../base-xform"), c = e("../../composite-xform"), a = e("./cfvo-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + cfvo: o.cfvoXform = new a() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + var P = this; + p.openNode(this.tag, { + iconSet: v.toStringAttribute(O.iconSet, "3TrafficLights"), + reverse: v.toBoolAttribute(O.reverse, !1), + showValue: v.toBoolAttribute(O.showValue, !0) + }), O.cfvo.forEach(function(F) { + P.cfvoXform.render(p, F); + }), p.closeNode(); + } + }, { + key: "createNewModel", + value: function(p) { + var O = p.attributes; + return { + iconSet: v.toStringValue(O.iconSet, "3TrafficLights"), + reverse: v.toBoolValue(O.reverse), + showValue: v.toBoolValue(O.showValue), + cfvo: [] + }; + } + }, { + key: "onParserClose", + value: function(p, O) { + this.model[p].push(O.model); + } + }, { + key: "tag", + get: function() { + return "iconSet"; + } + }]), n; + }(c); + x.exports = r; + }, { "../../base-xform": 31, "../../composite-xform": 47, "./cfvo-xform": 83 }], 91: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "prepare", + value: function(n, o) { + var p = o.styles.addStyleModel(n.style || {}); + p && (n.styleId = p); + } + }, { + key: "render", + value: function(n, o) { + n.openNode("col"), n.addAttribute("min", o.min), n.addAttribute("max", o.max), o.width && n.addAttribute("width", o.width), o.styleId && n.addAttribute("style", o.styleId), o.hidden && n.addAttribute("hidden", "1"), o.bestFit && n.addAttribute("bestFit", "1"), o.outlineLevel && n.addAttribute("outlineLevel", o.outlineLevel), o.collapsed && n.addAttribute("collapsed", "1"), n.addAttribute("customWidth", "1"), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + if (n.name === "col") { + var o = this.model = { + min: parseInt(n.attributes.min || "0", 10), + max: parseInt(n.attributes.max || "0", 10), + width: n.attributes.width === void 0 ? void 0 : parseFloat(n.attributes.width || "0") + }; + return n.attributes.style && (o.styleId = parseInt(n.attributes.style, 10)), (n.attributes.hidden === !0 || n.attributes.hidden === "true" || n.attributes.hidden === 1 || n.attributes.hidden === "1") && (o.hidden = !0), n.attributes.bestFit && (o.bestFit = !0), n.attributes.outlineLevel && (o.outlineLevel = parseInt(n.attributes.outlineLevel, 10)), n.attributes.collapsed && (o.collapsed = !0), !0; + } + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "reconcile", + value: function(n, o) { + n.styleId && (n.style = o.styles.getStyleModel(n.styleId)); + } + }, { + key: "tag", + get: function() { + return "col"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 92: [function(e, x, _) { + function u(N) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(I) { + return typeof I; + } : u = function(I) { + return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I; + }, u(N); + } + function m(N, M) { + if (!(N instanceof M)) + throw new TypeError("Cannot call a class as a function"); + } + function g(N, M) { + for (var I = 0; I < M.length; I++) { + var R = M[I]; + R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(N, R.key, R); + } + } + function b(N, M, I) { + return M && g(N.prototype, M), I && g(N, I), N; + } + function w(N, M) { + if (typeof M != "function" && M !== null) + throw new TypeError("Super expression must either be null or a function"); + N.prototype = Object.create(M && M.prototype, { constructor: { value: N, writable: !0, configurable: !0 } }), M && f(N, M); + } + function f(N, M) { + return f = Object.setPrototypeOf || function(R, C) { + return R.__proto__ = C, R; + }, f(N, M); + } + function y(N) { + var M = d(); + return function() { + var R = s(N), C; + if (M) { + var E = s(this).constructor; + C = Reflect.construct(R, arguments, E); + } else + C = R.apply(this, arguments); + return h(this, C); + }; + } + function h(N, M) { + return M && (u(M) === "object" || typeof M == "function") ? M : l(N); + } + function l(N) { + if (N === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return N; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (N) { + return !1; + } + } + function s(N) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(I) { + return I.__proto__ || Object.getPrototypeOf(I); + }, s(N); + } + function v(N, M) { + var I = Object.keys(N); + if (Object.getOwnPropertySymbols) { + var R = Object.getOwnPropertySymbols(N); + M && (R = R.filter(function(C) { + return Object.getOwnPropertyDescriptor(N, C).enumerable; + })), I.push.apply(I, R); + } + return I; + } + function c(N) { + for (var M = 1; M < arguments.length; M++) { + var I = arguments[M] != null ? arguments[M] : {}; + M % 2 ? v(Object(I), !0).forEach(function(R) { + a(N, R, I[R]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(N, Object.getOwnPropertyDescriptors(I)) : v(Object(I)).forEach(function(R) { + Object.defineProperty(N, R, Object.getOwnPropertyDescriptor(I, R)); + }); + } + return N; + } + function a(N, M, I) { + return M in N ? Object.defineProperty(N, M, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : N[M] = I, N; + } + var r = e("../../../utils/under-dash"), t = e("../../../utils/utils"), i = e("../../../utils/col-cache"), n = e("../base-xform"), o = e("../../../doc/range"); + function p(N, M, I, R) { + var C = M[I]; + C !== void 0 ? N[I] = C : R !== void 0 && (N[I] = R); + } + function O(N) { + switch (N) { + case "1": + case "true": + return !0; + default: + return !1; + } + } + function P(N, M, I, R) { + var C = M[I]; + C !== void 0 ? N[I] = O(C) : R !== void 0 && (N[I] = R); + } + function F(N) { + var M = r.map(N, function(C, E) { + return { + address: E, + dataValidation: C, + marked: !1 + }; + }).sort(function(C, E) { + return r.strcmp(C.address, E.address); + }), I = r.keyBy(M, "address"), R = function(E, A, L) { + for (var $ = 0; $ < A; $++) { + var W = i.encodeAddress(E.row + $, L); + if (!N[W] || !r.isEqual(N[E.address], N[W])) + return !1; + } + return !0; + }; + return M.map(function(C) { + if (!C.marked) { + var E = i.decodeEx(C.address); + if (E.dimensions) + return I[E.dimensions].marked = !0, c(c({}, C.dataValidation), {}, { + sqref: C.address + }); + for (var A = 1, L = i.encodeAddress(E.row + A, E.col); N[L] && r.isEqual(C.dataValidation, N[L]); ) + A++, L = i.encodeAddress(E.row + A, E.col); + for (var $ = 1; R(E, A, E.col + $); ) + $++; + for (var W = 0; W < A; W++) + for (var U = 0; U < $; U++) + L = i.encodeAddress(E.row + W, E.col + U), I[L].marked = !0; + if (A > 1 || $ > 1) { + var D = E.row + (A - 1), B = E.col + ($ - 1); + return c(c({}, C.dataValidation), {}, { + sqref: "".concat(C.address, ":").concat(i.encodeAddress(D, B)) + }); + } + return c(c({}, C.dataValidation), {}, { + sqref: C.address + }); + } + return null; + }).filter(Boolean); + } + var z = /* @__PURE__ */ function(N) { + w(I, N); + var M = y(I); + function I() { + return m(this, I), M.apply(this, arguments); + } + return b(I, [{ + key: "render", + value: function(C, E) { + var A = F(E); + A.length && (C.openNode("dataValidations", { + count: A.length + }), A.forEach(function(L) { + C.openNode("dataValidation"), L.type !== "any" && (C.addAttribute("type", L.type), L.operator && L.type !== "list" && L.operator !== "between" && C.addAttribute("operator", L.operator), L.allowBlank && C.addAttribute("allowBlank", "1")), L.showInputMessage && C.addAttribute("showInputMessage", "1"), L.promptTitle && C.addAttribute("promptTitle", L.promptTitle), L.prompt && C.addAttribute("prompt", L.prompt), L.showErrorMessage && C.addAttribute("showErrorMessage", "1"), L.errorStyle && C.addAttribute("errorStyle", L.errorStyle), L.errorTitle && C.addAttribute("errorTitle", L.errorTitle), L.error && C.addAttribute("error", L.error), C.addAttribute("sqref", L.sqref), (L.formulae || []).forEach(function($, W) { + C.openNode("formula".concat(W + 1)), L.type === "date" ? C.writeText(t.dateToExcel(new Date($))) : C.writeText($), C.closeNode(); + }), C.closeNode(); + }), C.closeNode()); + } + }, { + key: "parseOpen", + value: function(C) { + switch (C.name) { + case "dataValidations": + return this.model = {}, !0; + case "dataValidation": { + this._address = C.attributes.sqref; + var E = { + type: C.attributes.type || "any", + formulae: [] + }; + switch (C.attributes.type && P(E, C.attributes, "allowBlank"), P(E, C.attributes, "showInputMessage"), P(E, C.attributes, "showErrorMessage"), E.type) { + case "any": + case "list": + case "custom": + break; + default: + p(E, C.attributes, "operator", "between"); + break; + } + return p(E, C.attributes, "promptTitle"), p(E, C.attributes, "prompt"), p(E, C.attributes, "errorStyle"), p(E, C.attributes, "errorTitle"), p(E, C.attributes, "error"), this._dataValidation = E, !0; + } + case "formula1": + case "formula2": + return this._formula = [], !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(C) { + this._formula && this._formula.push(C); + } + }, { + key: "parseClose", + value: function(C) { + var E = this; + switch (C) { + case "dataValidations": + return !1; + case "dataValidation": { + (!this._dataValidation.formulae || !this._dataValidation.formulae.length) && (delete this._dataValidation.formulae, delete this._dataValidation.operator); + var A = this._address.split(/\s+/g) || []; + return A.forEach(function($) { + if ($.includes(":")) { + var W = new o($); + W.forEachAddress(function(U) { + E.model[U] = E._dataValidation; + }); + } else + E.model[$] = E._dataValidation; + }), !0; + } + case "formula1": + case "formula2": { + var L = this._formula.join(""); + switch (this._dataValidation.type) { + case "whole": + case "textLength": + L = parseInt(L, 10); + break; + case "decimal": + L = parseFloat(L); + break; + case "date": + L = t.excelToDate(parseFloat(L)); + break; + } + return this._dataValidation.formulae.push(L), this._formula = void 0, !0; + } + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "dataValidations"; + } + }]), I; + }(n); + x.exports = z; + }, { "../../../doc/range": 10, "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/utils": 26, "../base-xform": 31 }], 93: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && n.leafNode("dimension", { + ref: o + }); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "dimension" ? (this.model = n.attributes.ref, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "dimension"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 94: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && n.leafNode(this.tag, { + "r:id": o.rId + }); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + rId: n.attributes["r:id"] + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "drawing"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 95: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../composite-xform"), c = e("./cf-ext/conditional-formattings-ext-xform"), a = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + "x14:conditionalFormattings": o.conditionalFormattings = new c() + }, o; + } + return b(n, [{ + key: "hasContent", + value: function(p) { + return this.conditionalFormattings.hasContent(p.conditionalFormattings); + } + }, { + key: "prepare", + value: function(p, O) { + this.conditionalFormattings.prepare(p.conditionalFormattings, O); + } + }, { + key: "render", + value: function(p, O) { + p.openNode("ext", { + uri: "{78C0D931-6437-407d-A8EE-F0AAD7539E65}", + "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" + }), this.conditionalFormattings.render(p, O.conditionalFormattings), p.closeNode(); + } + }, { + key: "createNewModel", + value: function() { + return {}; + } + }, { + key: "onParserClose", + value: function(p, O) { + this.model[p] = O.model; + } + }, { + key: "tag", + get: function() { + return "ext"; + } + }]), n; + }(v), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + ext: o.ext = new a() + }, o; + } + return b(n, [{ + key: "prepare", + value: function(p, O) { + this.ext.prepare(p, O); + } + }, { + key: "hasContent", + value: function(p) { + return this.ext.hasContent(p); + } + }, { + key: "render", + value: function(p, O) { + this.hasContent(O) && (p.openNode("extLst"), this.ext.render(p, O), p.closeNode()); + } + }, { + key: "createNewModel", + value: function() { + return {}; + } + }, { + key: "onParserClose", + value: function(p, O) { + Object.assign(this.model, O.model); + } + }, { + key: "tag", + get: function() { + return "extLst"; + } + }]), n; + }(v); + x.exports = r; + }, { "../composite-xform": 47, "./cf-ext/conditional-formattings-ext-xform": 77 }], 96: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + if (o) { + n.addRollback(); + var p = !1; + n.openNode("headerFooter"), o.differentFirst && (n.addAttribute("differentFirst", "1"), p = !0), o.differentOddEven && (n.addAttribute("differentOddEven", "1"), p = !0), o.oddHeader && typeof o.oddHeader == "string" && (n.leafNode("oddHeader", null, o.oddHeader), p = !0), o.oddFooter && typeof o.oddFooter == "string" && (n.leafNode("oddFooter", null, o.oddFooter), p = !0), o.evenHeader && typeof o.evenHeader == "string" && (n.leafNode("evenHeader", null, o.evenHeader), p = !0), o.evenFooter && typeof o.evenFooter == "string" && (n.leafNode("evenFooter", null, o.evenFooter), p = !0), o.firstHeader && typeof o.firstHeader == "string" && (n.leafNode("firstHeader", null, o.firstHeader), p = !0), o.firstFooter && typeof o.firstFooter == "string" && (n.leafNode("firstFooter", null, o.firstFooter), p = !0), p ? (n.closeNode(), n.commit()) : n.rollback(); + } + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case "headerFooter": + return this.model = {}, n.attributes.differentFirst && (this.model.differentFirst = parseInt(n.attributes.differentFirst, 0) === 1), n.attributes.differentOddEven && (this.model.differentOddEven = parseInt(n.attributes.differentOddEven, 0) === 1), !0; + case "oddHeader": + return this.currentNode = "oddHeader", !0; + case "oddFooter": + return this.currentNode = "oddFooter", !0; + case "evenHeader": + return this.currentNode = "evenHeader", !0; + case "evenFooter": + return this.currentNode = "evenFooter", !0; + case "firstHeader": + return this.currentNode = "firstHeader", !0; + case "firstFooter": + return this.currentNode = "firstFooter", !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(n) { + switch (this.currentNode) { + case "oddHeader": + this.model.oddHeader = n; + break; + case "oddFooter": + this.model.oddFooter = n; + break; + case "evenHeader": + this.model.evenHeader = n; + break; + case "evenFooter": + this.model.evenFooter = n; + break; + case "firstHeader": + this.model.firstHeader = n; + break; + case "firstFooter": + this.model.firstFooter = n; + break; + } + } + }, { + key: "parseClose", + value: function() { + switch (this.currentNode) { + case "oddHeader": + case "oddFooter": + case "evenHeader": + case "evenFooter": + case "firstHeader": + case "firstFooter": + return this.currentNode = void 0, !0; + default: + return !1; + } + } + }, { + key: "tag", + get: function() { + return "headerFooter"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 97: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("hyperlink", { + ref: o.address, + "r:id": o.rId, + tooltip: o.tooltip + }); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "hyperlink" ? (this.model = { + address: n.attributes.ref, + rId: n.attributes["r:id"], + tooltip: n.attributes.tooltip + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "hyperlink"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 98: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("mergeCell", { + ref: o + }); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "mergeCell" ? (this.model = n.attributes.ref, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "mergeCell"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 99: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + var b = e("../../../utils/under-dash"), w = e("../../../doc/range"), f = e("../../../utils/col-cache"), y = e("../../../doc/enums"), h = /* @__PURE__ */ function() { + function l() { + u(this, l), this.merges = {}; + } + return g(l, [{ + key: "add", + value: function(s) { + if (this.merges[s.master]) + this.merges[s.master].expandToAddress(s.address); + else { + var v = "".concat(s.master, ":").concat(s.address); + this.merges[s.master] = new w(v); + } + } + }, { + key: "reconcile", + value: function(s, v) { + b.each(s, function(c) { + for (var a = f.decode(c), r = a.top; r <= a.bottom; r++) + for (var t = v[r - 1], i = a.left; i <= a.right; i++) { + var n = t.cells[i - 1]; + n ? n.type === y.ValueType.Merge && (n.master = a.tl) : t.cells[i] = { + type: y.ValueType.Null, + address: f.encodeAddress(r, i) + }; + } + }); + } + }, { + key: "getMasterAddress", + value: function(s) { + var v = this.hash[s]; + return v && v.tl; + } + }, { + key: "mergeCells", + get: function() { + return b.map(this.merges, function(s) { + return s.range; + }); + } + }]), l; + }(); + x.exports = h; + }, { "../../../doc/enums": 7, "../../../doc/range": 10, "../../../utils/col-cache": 19, "../../../utils/under-dash": 25 }], 100: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = function(t) { + return typeof t != "undefined"; + }, a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + return p && (c(p.summaryBelow) || c(p.summaryRight)) ? (o.leafNode(this.tag, { + summaryBelow: c(p.summaryBelow) ? Number(p.summaryBelow) : void 0, + summaryRight: c(p.summaryRight) ? Number(p.summaryRight) : void 0 + }), !0) : !1; + } + }, { + key: "parseOpen", + value: function(o) { + return o.name === this.tag ? (this.model = { + summaryBelow: c(o.attributes.summaryBelow) ? !!Number(o.attributes.summaryBelow) : void 0, + summaryRight: c(o.attributes.summaryRight) ? !!Number(o.attributes.summaryRight) : void 0 + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "outlinePr"; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31 }], 101: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.leafNode("brk", o); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === "brk" ? (this.model = n.attributes.ref, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "brk"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 102: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../../utils/under-dash"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + if (p) { + var O = { + left: p.left, + right: p.right, + top: p.top, + bottom: p.bottom, + header: p.header, + footer: p.footer + }; + v.some(O, function(P) { + return P !== void 0; + }) && o.leafNode(this.tag, O); + } + } + }, { + key: "parseOpen", + value: function(o) { + switch (o.name) { + case this.tag: + return this.model = { + left: parseFloat(o.attributes.left || 0.7), + right: parseFloat(o.attributes.right || 0.7), + top: parseFloat(o.attributes.top || 0.75), + bottom: parseFloat(o.attributes.bottom || 0.75), + header: parseFloat(o.attributes.header || 0.3), + footer: parseFloat(o.attributes.footer || 0.3) + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "pageMargins"; + } + }]), i; + }(c); + x.exports = a; + }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 103: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + return o && o.fitToPage ? (n.leafNode(this.tag, { + fitToPage: o.fitToPage ? "1" : void 0 + }), !0) : !1; + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === this.tag ? (this.model = { + fitToPage: n.attributes.fitToPage === "1" + }, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "pageSetUpPr"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 104: [function(e, x, _) { + function u(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) { + return typeof P; + } : u = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, u(p); + } + function m(p, O) { + if (!(p instanceof O)) + throw new TypeError("Cannot call a class as a function"); + } + function g(p, O) { + for (var P = 0; P < O.length; P++) { + var F = O[P]; + F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F); + } + } + function b(p, O, P) { + return O && g(p.prototype, O), P && g(p, P), p; + } + function w(p, O) { + if (typeof O != "function" && O !== null) + throw new TypeError("Super expression must either be null or a function"); + p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O); + } + function f(p, O) { + return f = Object.setPrototypeOf || function(F, z) { + return F.__proto__ = z, F; + }, f(p, O); + } + function y(p) { + var O = d(); + return function() { + var F = s(p), z; + if (O) { + var N = s(this).constructor; + z = Reflect.construct(F, arguments, N); + } else + z = F.apply(this, arguments); + return h(this, z); + }; + } + function h(p, O) { + return O && (u(O) === "object" || typeof O == "function") ? O : l(p); + } + function l(p) { + if (p === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return p; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (p) { + return !1; + } + } + function s(p) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) { + return P.__proto__ || Object.getPrototypeOf(P); + }, s(p); + } + var v = e("../../../utils/under-dash"), c = e("../base-xform"); + function a(p) { + return p ? "1" : void 0; + } + function r(p) { + switch (p) { + case "overThenDown": + return p; + default: + return; + } + } + function t(p) { + switch (p) { + case "atEnd": + case "asDisplyed": + return p; + default: + return; + } + } + function i(p) { + switch (p) { + case "dash": + case "blank": + case "NA": + return p; + default: + return; + } + } + function n(p) { + return p !== void 0 ? parseInt(p, 10) : void 0; + } + var o = /* @__PURE__ */ function(p) { + w(P, p); + var O = y(P); + function P() { + return m(this, P), O.apply(this, arguments); + } + return b(P, [{ + key: "render", + value: function(z, N) { + if (N) { + var M = { + paperSize: N.paperSize, + orientation: N.orientation, + horizontalDpi: N.horizontalDpi, + verticalDpi: N.verticalDpi, + pageOrder: r(N.pageOrder), + blackAndWhite: a(N.blackAndWhite), + draft: a(N.draft), + cellComments: t(N.cellComments), + errors: i(N.errors), + scale: N.scale, + fitToWidth: N.fitToWidth, + fitToHeight: N.fitToHeight, + firstPageNumber: N.firstPageNumber, + useFirstPageNumber: a(N.firstPageNumber), + usePrinterDefaults: a(N.usePrinterDefaults), + copies: N.copies + }; + v.some(M, function(I) { + return I !== void 0; + }) && z.leafNode(this.tag, M); + } + } + }, { + key: "parseOpen", + value: function(z) { + switch (z.name) { + case this.tag: + return this.model = { + paperSize: n(z.attributes.paperSize), + orientation: z.attributes.orientation || "portrait", + horizontalDpi: parseInt(z.attributes.horizontalDpi || "4294967295", 10), + verticalDpi: parseInt(z.attributes.verticalDpi || "4294967295", 10), + pageOrder: z.attributes.pageOrder || "downThenOver", + blackAndWhite: z.attributes.blackAndWhite === "1", + draft: z.attributes.draft === "1", + cellComments: z.attributes.cellComments || "None", + errors: z.attributes.errors || "displayed", + scale: parseInt(z.attributes.scale || "100", 10), + fitToWidth: parseInt(z.attributes.fitToWidth || "1", 10), + fitToHeight: parseInt(z.attributes.fitToHeight || "1", 10), + firstPageNumber: parseInt(z.attributes.firstPageNumber || "1", 10), + useFirstPageNumber: z.attributes.useFirstPageNumber === "1", + usePrinterDefaults: z.attributes.usePrinterDefaults === "1", + copies: parseInt(z.attributes.copies || "1", 10) + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "pageSetup"; + } + }]), P; + }(c); + x.exports = o; + }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 105: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && n.leafNode(this.tag, { + "r:id": o.rId + }); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + rId: n.attributes["r:id"] + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "picture"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 106: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../../utils/under-dash"), c = e("../base-xform"); + function a(t) { + return t ? "1" : void 0; + } + var r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + return m(this, n), i.apply(this, arguments); + } + return b(n, [{ + key: "render", + value: function(p, O) { + if (O) { + var P = { + headings: a(O.showRowColHeaders), + gridLines: a(O.showGridLines), + horizontalCentered: a(O.horizontalCentered), + verticalCentered: a(O.verticalCentered) + }; + v.some(P, function(F) { + return F !== void 0; + }) && p.leafNode(this.tag, P); + } + } + }, { + key: "parseOpen", + value: function(p) { + switch (p.name) { + case this.tag: + return this.model = { + showRowColHeaders: p.attributes.headings === "1", + showGridLines: p.attributes.gridLines === "1", + horizontalCentered: p.attributes.horizontalCentered === "1", + verticalCentered: p.attributes.verticalCentered === "1" + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "printOptions"; + } + }]), n; + }(c); + x.exports = r; + }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 107: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("./page-breaks-xform"), c = e("../list-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + m(this, i); + var n = { + tag: "rowBreaks", + count: !0, + childXform: new v() + }; + return t.call(this, n); + } + return b(i, [{ + key: "render", + value: function(o, p) { + if (p && p.length) { + o.openNode(this.tag, this.$), this.count && (o.addAttribute(this.$count, p.length), o.addAttribute("manualBreakCount", p.length)); + var O = this.childXform; + p.forEach(function(P) { + O.render(o, P); + }), o.closeNode(); + } else + this.empty && o.leafNode(this.tag); + } + }]), i; + }(c); + x.exports = a; + }, { "../list-xform": 70, "./page-breaks-xform": 101 }], 108: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = e("./cell-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i(n) { + var o; + return m(this, i), o = t.call(this), o.maxItems = n && n.maxItems, o.map = { + c: new c() + }, o; + } + return b(i, [{ + key: "prepare", + value: function(o, p) { + var O = p.styles.addStyleModel(o.style); + O && (o.styleId = O); + var P = this.map.c; + o.cells.forEach(function(F) { + P.prepare(F, p); + }); + } + }, { + key: "render", + value: function(o, p, O) { + o.openNode("row"), o.addAttribute("r", p.number), p.height && (o.addAttribute("ht", p.height), o.addAttribute("customHeight", "1")), p.hidden && o.addAttribute("hidden", "1"), p.min > 0 && p.max > 0 && p.min <= p.max && o.addAttribute("spans", "".concat(p.min, ":").concat(p.max)), p.styleId && (o.addAttribute("s", p.styleId), o.addAttribute("customFormat", "1")), o.addAttribute("x14ac:dyDescent", "0.25"), p.outlineLevel && o.addAttribute("outlineLevel", p.outlineLevel), p.collapsed && o.addAttribute("collapsed", "1"); + var P = this.map.c; + p.cells.forEach(function(F) { + P.render(o, F, O); + }), o.closeNode(); + } + }, { + key: "parseOpen", + value: function(o) { + if (this.parser) + return this.parser.parseOpen(o), !0; + if (o.name === "row") { + this.numRowsSeen += 1; + var p = o.attributes.spans ? o.attributes.spans.split(":").map(function(P) { + return parseInt(P, 10); + }) : [void 0, void 0], O = this.model = { + number: parseInt(o.attributes.r, 10), + min: p[0], + max: p[1], + cells: [] + }; + return o.attributes.s && (O.styleId = parseInt(o.attributes.s, 10)), (o.attributes.hidden === !0 || o.attributes.hidden === "true" || o.attributes.hidden === 1 || o.attributes.hidden === "1") && (O.hidden = !0), o.attributes.bestFit && (O.bestFit = !0), o.attributes.ht && (O.height = parseFloat(o.attributes.ht)), o.attributes.outlineLevel && (O.outlineLevel = parseInt(o.attributes.outlineLevel, 10)), o.attributes.collapsed && (O.collapsed = !0), !0; + } + return this.parser = this.map[o.name], this.parser ? (this.parser.parseOpen(o), !0) : !1; + } + }, { + key: "parseText", + value: function(o) { + this.parser && this.parser.parseText(o); + } + }, { + key: "parseClose", + value: function(o) { + if (this.parser) { + if (!this.parser.parseClose(o)) { + if (this.model.cells.push(this.parser.model), this.maxItems && this.model.cells.length > this.maxItems) + throw new Error("Max column count (".concat(this.maxItems, ") exceeded")); + this.parser = void 0; + } + return !0; + } + return !1; + } + }, { + key: "reconcile", + value: function(o, p) { + o.style = o.styleId ? p.styles.getStyleModel(o.styleId) : {}, o.styleId !== void 0 && (o.styleId = void 0); + var O = this.map.c; + o.cells.forEach(function(P) { + O.reconcile(P, p); + }); + } + }, { + key: "tag", + get: function() { + return "row"; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31, "./cell-xform": 72 }], 109: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../../../utils/under-dash"), c = e("../base-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + if (p) { + var O = { + defaultRowHeight: p.defaultRowHeight, + outlineLevelRow: p.outlineLevelRow, + outlineLevelCol: p.outlineLevelCol, + "x14ac:dyDescent": p.dyDescent + }; + p.defaultColWidth && (O.defaultColWidth = p.defaultColWidth), (!p.defaultRowHeight || p.defaultRowHeight !== 15) && (O.customHeight = "1"), v.some(O, function(P) { + return P !== void 0; + }) && o.leafNode("sheetFormatPr", O); + } + } + }, { + key: "parseOpen", + value: function(o) { + return o.name === "sheetFormatPr" ? (this.model = { + defaultRowHeight: parseFloat(o.attributes.defaultRowHeight || "0"), + dyDescent: parseFloat(o.attributes["x14ac:dyDescent"] || "0"), + outlineLevelRow: parseInt(o.attributes.outlineLevelRow || "0", 10), + outlineLevelCol: parseInt(o.attributes.outlineLevelCol || "0", 10) + }, o.attributes.defaultColWidth && (this.model.defaultColWidth = parseFloat(o.attributes.defaultColWidth)), !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "sheetFormatPr"; + } + }]), i; + }(c); + x.exports = a; + }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 110: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("../base-xform"), c = e("../style/color-xform"), a = e("./page-setup-properties-xform"), r = e("./outline-properties-xform"), t = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + var p; + return m(this, o), p = n.call(this), p.map = { + tabColor: new c("tabColor"), + pageSetUpPr: new a(), + outlinePr: new r() + }, p; + } + return b(o, [{ + key: "render", + value: function(O, P) { + if (P) { + O.addRollback(), O.openNode("sheetPr"); + var F = !1; + F = this.map.tabColor.render(O, P.tabColor) || F, F = this.map.pageSetUpPr.render(O, P.pageSetup) || F, F = this.map.outlinePr.render(O, P.outlineProperties) || F, F ? (O.closeNode(), O.commit()) : O.rollback(); + } + } + }, { + key: "parseOpen", + value: function(O) { + return this.parser ? (this.parser.parseOpen(O), !0) : O.name === this.tag ? (this.reset(), !0) : this.map[O.name] ? (this.parser = this.map[O.name], this.parser.parseOpen(O), !0) : !1; + } + }, { + key: "parseText", + value: function(O) { + return this.parser ? (this.parser.parseText(O), !0) : !1; + } + }, { + key: "parseClose", + value: function(O) { + return this.parser ? (this.parser.parseClose(O) || (this.parser = void 0), !0) : (this.map.tabColor.model || this.map.pageSetUpPr.model || this.map.outlinePr.model ? (this.model = {}, this.map.tabColor.model && (this.model.tabColor = this.map.tabColor.model), this.map.pageSetUpPr.model && (this.model.pageSetup = this.map.pageSetUpPr.model), this.map.outlinePr.model && (this.model.outlineProperties = this.map.outlinePr.model)) : this.model = null, !1); + } + }, { + key: "tag", + get: function() { + return "sheetPr"; + } + }]), o; + }(v); + x.exports = t; + }, { "../base-xform": 31, "../style/color-xform": 127, "./outline-properties-xform": 100, "./page-setup-properties-xform": 103 }], 111: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("../../../utils/under-dash"), c = e("../base-xform"); + function a(i, n) { + return i ? n : void 0; + } + function r(i, n) { + return i === n ? !0 : void 0; + } + var t = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o() { + return m(this, o), n.apply(this, arguments); + } + return b(o, [{ + key: "render", + value: function(O, P) { + if (P) { + var F = { + sheet: a(P.sheet, "1"), + selectLockedCells: P.selectLockedCells === !1 ? "1" : void 0, + selectUnlockedCells: P.selectUnlockedCells === !1 ? "1" : void 0, + formatCells: a(P.formatCells, "0"), + formatColumns: a(P.formatColumns, "0"), + formatRows: a(P.formatRows, "0"), + insertColumns: a(P.insertColumns, "0"), + insertRows: a(P.insertRows, "0"), + insertHyperlinks: a(P.insertHyperlinks, "0"), + deleteColumns: a(P.deleteColumns, "0"), + deleteRows: a(P.deleteRows, "0"), + sort: a(P.sort, "0"), + autoFilter: a(P.autoFilter, "0"), + pivotTables: a(P.pivotTables, "0") + }; + P.sheet && (F.algorithmName = P.algorithmName, F.hashValue = P.hashValue, F.saltValue = P.saltValue, F.spinCount = P.spinCount, F.objects = a(P.objects === !1, "1"), F.scenarios = a(P.scenarios === !1, "1")), v.some(F, function(z) { + return z !== void 0; + }) && O.leafNode(this.tag, F); + } + } + }, { + key: "parseOpen", + value: function(O) { + switch (O.name) { + case this.tag: + return this.model = { + sheet: r(O.attributes.sheet, "1"), + objects: O.attributes.objects === "1" ? !1 : void 0, + scenarios: O.attributes.scenarios === "1" ? !1 : void 0, + selectLockedCells: O.attributes.selectLockedCells === "1" ? !1 : void 0, + selectUnlockedCells: O.attributes.selectUnlockedCells === "1" ? !1 : void 0, + formatCells: r(O.attributes.formatCells, "0"), + formatColumns: r(O.attributes.formatColumns, "0"), + formatRows: r(O.attributes.formatRows, "0"), + insertColumns: r(O.attributes.insertColumns, "0"), + insertRows: r(O.attributes.insertRows, "0"), + insertHyperlinks: r(O.attributes.insertHyperlinks, "0"), + deleteColumns: r(O.attributes.deleteColumns, "0"), + deleteRows: r(O.attributes.deleteRows, "0"), + sort: r(O.attributes.sort, "0"), + autoFilter: r(O.attributes.autoFilter, "0"), + pivotTables: r(O.attributes.pivotTables, "0") + }, O.attributes.algorithmName && (this.model.algorithmName = O.attributes.algorithmName, this.model.hashValue = O.attributes.hashValue, this.model.saltValue = O.attributes.saltValue, this.model.spinCount = parseInt(O.attributes.spinCount, 10)), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "sheetProtection"; + } + }]), o; + }(c); + x.exports = t; + }, { "../../../utils/under-dash": 25, "../base-xform": 31 }], 112: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../../utils/col-cache"), c = e("../base-xform"), a = { + frozen: "frozen", + frozenSplit: "frozen", + split: "split" + }, r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + return m(this, n), i.apply(this, arguments); + } + return b(n, [{ + key: "prepare", + value: function(p) { + switch (p.state) { + case "frozen": + case "split": + break; + default: + p.state = "normal"; + break; + } + } + }, { + key: "render", + value: function(p, O) { + p.openNode("sheetView", { + workbookViewId: O.workbookViewId || 0 + }); + var P = function(R, C, E) { + E && p.addAttribute(R, C); + }; + P("rightToLeft", "1", O.rightToLeft === !0), P("tabSelected", "1", O.tabSelected), P("showRuler", "0", O.showRuler === !1), P("showRowColHeaders", "0", O.showRowColHeaders === !1), P("showGridLines", "0", O.showGridLines === !1), P("zoomScale", O.zoomScale, O.zoomScale), P("zoomScaleNormal", O.zoomScaleNormal, O.zoomScaleNormal), P("view", O.style, O.style); + var F, z, N, M; + switch (O.state) { + case "frozen": + z = O.xSplit || 0, N = O.ySplit || 0, F = O.topLeftCell || v.getAddress(N + 1, z + 1).address, M = O.xSplit && O.ySplit && "bottomRight" || O.xSplit && "topRight" || "bottomLeft", p.leafNode("pane", { + xSplit: O.xSplit || void 0, + ySplit: O.ySplit || void 0, + topLeftCell: F, + activePane: M, + state: "frozen" + }), p.leafNode("selection", { + pane: M, + activeCell: O.activeCell, + sqref: O.activeCell + }); + break; + case "split": + O.activePane === "topLeft" && (O.activePane = void 0), p.leafNode("pane", { + xSplit: O.xSplit || void 0, + ySplit: O.ySplit || void 0, + topLeftCell: O.topLeftCell, + activePane: O.activePane + }), p.leafNode("selection", { + pane: O.activePane, + activeCell: O.activeCell, + sqref: O.activeCell + }); + break; + case "normal": + O.activeCell && p.leafNode("selection", { + activeCell: O.activeCell, + sqref: O.activeCell + }); + break; + } + p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + switch (p.name) { + case "sheetView": + return this.sheetView = { + workbookViewId: parseInt(p.attributes.workbookViewId, 10), + rightToLeft: p.attributes.rightToLeft === "1", + tabSelected: p.attributes.tabSelected === "1", + showRuler: p.attributes.showRuler !== "0", + showRowColHeaders: p.attributes.showRowColHeaders !== "0", + showGridLines: p.attributes.showGridLines !== "0", + zoomScale: parseInt(p.attributes.zoomScale || "100", 10), + zoomScaleNormal: parseInt(p.attributes.zoomScaleNormal || "100", 10), + style: p.attributes.view + }, this.pane = void 0, this.selections = {}, !0; + case "pane": + return this.pane = { + xSplit: parseInt(p.attributes.xSplit || "0", 10), + ySplit: parseInt(p.attributes.ySplit || "0", 10), + topLeftCell: p.attributes.topLeftCell, + activePane: p.attributes.activePane || "topLeft", + state: p.attributes.state + }, !0; + case "selection": { + var O = p.attributes.pane || "topLeft"; + return this.selections[O] = { + pane: O, + activeCell: p.attributes.activeCell + }, !0; + } + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(p) { + var O, P; + switch (p) { + case "sheetView": + return this.sheetView && this.pane ? (O = this.model = { + workbookViewId: this.sheetView.workbookViewId, + rightToLeft: this.sheetView.rightToLeft, + state: a[this.pane.state] || "split", + // split is default + xSplit: this.pane.xSplit, + ySplit: this.pane.ySplit, + topLeftCell: this.pane.topLeftCell, + showRuler: this.sheetView.showRuler, + showRowColHeaders: this.sheetView.showRowColHeaders, + showGridLines: this.sheetView.showGridLines, + zoomScale: this.sheetView.zoomScale, + zoomScaleNormal: this.sheetView.zoomScaleNormal + }, this.model.state === "split" && (O.activePane = this.pane.activePane), P = this.selections[this.pane.activePane], P && P.activeCell && (O.activeCell = P.activeCell), this.sheetView.style && (O.style = this.sheetView.style)) : (O = this.model = { + workbookViewId: this.sheetView.workbookViewId, + rightToLeft: this.sheetView.rightToLeft, + state: "normal", + showRuler: this.sheetView.showRuler, + showRowColHeaders: this.sheetView.showRowColHeaders, + showGridLines: this.sheetView.showGridLines, + zoomScale: this.sheetView.zoomScale, + zoomScaleNormal: this.sheetView.zoomScaleNormal + }, P = this.selections.topLeft, P && P.activeCell && (O.activeCell = P.activeCell), this.sheetView.style && (O.style = this.sheetView.style)), !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function() { + } + }, { + key: "tag", + get: function() { + return "sheetView"; + } + }]), n; + }(c); + x.exports = r; + }, { "../../../utils/col-cache": 19, "../base-xform": 31 }], 113: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && n.leafNode(this.tag, { + "r:id": o.rId + }); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case this.tag: + return this.model = { + rId: n.attributes["r:id"] + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "tablePart"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 114: [function(e, x, _) { + function u(ve) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(oe) { + return typeof oe; + } : u = function(oe) { + return oe && typeof Symbol == "function" && oe.constructor === Symbol && oe !== Symbol.prototype ? "symbol" : typeof oe; + }, u(ve); + } + function m(ve, ge) { + if (!(ve instanceof ge)) + throw new TypeError("Cannot call a class as a function"); + } + function g(ve, ge) { + for (var oe = 0; oe < ge.length; oe++) { + var J = ge[oe]; + J.enumerable = J.enumerable || !1, J.configurable = !0, "value" in J && (J.writable = !0), Object.defineProperty(ve, J.key, J); + } + } + function b(ve, ge, oe) { + return ge && g(ve.prototype, ge), oe && g(ve, oe), ve; + } + function w(ve, ge) { + if (typeof ge != "function" && ge !== null) + throw new TypeError("Super expression must either be null or a function"); + ve.prototype = Object.create(ge && ge.prototype, { constructor: { value: ve, writable: !0, configurable: !0 } }), ge && f(ve, ge); + } + function f(ve, ge) { + return f = Object.setPrototypeOf || function(J, Q) { + return J.__proto__ = Q, J; + }, f(ve, ge); + } + function y(ve) { + var ge = d(); + return function() { + var J = s(ve), Q; + if (ge) { + var he = s(this).constructor; + Q = Reflect.construct(J, arguments, he); + } else + Q = J.apply(this, arguments); + return h(this, Q); + }; + } + function h(ve, ge) { + return ge && (u(ge) === "object" || typeof ge == "function") ? ge : l(ve); + } + function l(ve) { + if (ve === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return ve; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (ve) { + return !1; + } + } + function s(ve) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(oe) { + return oe.__proto__ || Object.getPrototypeOf(oe); + }, s(ve); + } + var v = e("../../../utils/under-dash"), c = e("../../../utils/col-cache"), a = e("../../../utils/xml-stream"), r = e("../../rel-type"), t = e("./merges"), i = e("../base-xform"), n = e("../list-xform"), o = e("./row-xform"), p = e("./col-xform"), O = e("./dimension-xform"), P = e("./hyperlink-xform"), F = e("./merge-cell-xform"), z = e("./data-validations-xform"), N = e("./sheet-properties-xform"), M = e("./sheet-format-properties-xform"), I = e("./sheet-view-xform"), R = e("./sheet-protection-xform"), C = e("./page-margins-xform"), E = e("./page-setup-xform"), A = e("./print-options-xform"), L = e("./auto-filter-xform"), $ = e("./picture-xform"), W = e("./drawing-xform"), U = e("./table-part-xform"), D = e("./row-breaks-xform"), B = e("./header-footer-xform"), j = e("./cf/conditional-formattings-xform"), V = e("./ext-lst-xform"), re = function(ge, oe) { + Object.keys(oe).forEach(function(J) { + var Q = ge[J], he = oe[J]; + Q === void 0 && he !== void 0 && (ge[J] = he); + }); + }, ee = function(ge, oe) { + if (!oe || !oe.length) + return ge; + if (!ge || !ge.length) + return oe; + var J = {}, Q = {}; + return ge.forEach(function(he) { + J[he.ref] = he, he.rules.forEach(function(ke) { + var ne = ke.x14Id; + ne && (Q[ne] = ke); + }); + }), oe.forEach(function(he) { + he.rules.forEach(function(ke) { + var ne = Q[ke.x14Id]; + ne ? re(ne, ke) : J[he.ref] ? J[he.ref].rules.push(ke) : ge.push({ + ref: he.ref, + rules: [ke] + }); + }); + }), ge; + }, ce = /* @__PURE__ */ function(ve) { + w(oe, ve); + var ge = y(oe); + function oe(J) { + var Q; + m(this, oe), Q = ge.call(this); + var he = J || {}, ke = he.maxRows, ne = he.maxCols; + return Q.map = { + sheetPr: new N(), + dimension: new O(), + sheetViews: new n({ + tag: "sheetViews", + count: !1, + childXform: new I() + }), + sheetFormatPr: new M(), + cols: new n({ + tag: "cols", + count: !1, + childXform: new p() + }), + sheetData: new n({ + tag: "sheetData", + count: !1, + empty: !0, + childXform: new o({ + maxItems: ne + }), + maxItems: ke + }), + autoFilter: new L(), + mergeCells: new n({ + tag: "mergeCells", + count: !0, + childXform: new F() + }), + rowBreaks: new D(), + hyperlinks: new n({ + tag: "hyperlinks", + count: !1, + childXform: new P() + }), + pageMargins: new C(), + dataValidations: new z(), + pageSetup: new E(), + headerFooter: new B(), + printOptions: new A(), + picture: new $(), + drawing: new W(), + sheetProtection: new R(), + tableParts: new n({ + tag: "tableParts", + count: !0, + childXform: new U() + }), + conditionalFormatting: new j(), + extLst: new V() + }, Q; + } + return b(oe, [{ + key: "prepare", + value: function(Q, he) { + var ke = this; + he.merges = new t(), Q.hyperlinks = he.hyperlinks = [], Q.comments = he.comments = [], he.formulae = {}, he.siFormulae = 0, this.map.cols.prepare(Q.cols, he), this.map.sheetData.prepare(Q.rows, he), this.map.conditionalFormatting.prepare(Q.conditionalFormattings, he), Q.mergeCells = he.merges.mergeCells; + var ne = Q.rels = []; + function se(fe) { + return "rId".concat(fe.length + 1); + } + if (Q.hyperlinks.forEach(function(fe) { + var we = se(ne); + fe.rId = we, ne.push({ + Id: we, + Type: r.Hyperlink, + Target: fe.target, + TargetMode: "External" + }); + }), Q.comments.length > 0) { + var Ce = { + Id: se(ne), + Type: r.Comments, + Target: "../comments".concat(Q.id, ".xml") + }; + ne.push(Ce); + var q = { + Id: se(ne), + Type: r.VmlDrawing, + Target: "../drawings/vmlDrawing".concat(Q.id, ".vml") + }; + ne.push(q), Q.comments.forEach(function(fe) { + fe.refAddress = c.decodeAddress(fe.ref); + }), he.commentRefs.push({ + commentName: "comments".concat(Q.id), + vmlDrawing: "vmlDrawing".concat(Q.id) + }); + } + var G = [], Y; + Q.media.forEach(function(fe) { + if (fe.type === "background") { + var we = se(ne); + Y = he.media[fe.imageId], ne.push({ + Id: we, + Type: r.Image, + Target: "../media/".concat(Y.name, ".").concat(Y.extension) + }), Q.background = { + rId: we + }, Q.image = he.media[fe.imageId]; + } else if (fe.type === "image") { + var _e = Q.drawing; + Y = he.media[fe.imageId], _e || (_e = Q.drawing = { + rId: se(ne), + name: "drawing".concat(++he.drawingsCount), + anchors: [], + rels: [] + }, he.drawings.push(_e), ne.push({ + Id: _e.rId, + Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing", + Target: "../drawings/".concat(_e.name, ".xml") + })); + var je = ke.preImageId === fe.imageId ? G[fe.imageId] : G[_e.rels.length]; + je || (je = se(_e.rels), G[_e.rels.length] = je, _e.rels.push({ + Id: je, + Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", + Target: "../media/".concat(Y.name, ".").concat(Y.extension) + })); + var Ye = { + picture: { + rId: je + }, + range: fe.range + }; + if (fe.hyperlinks && fe.hyperlinks.hyperlink) { + var nt = se(_e.rels); + G[_e.rels.length] = nt, Ye.picture.hyperlinks = { + tooltip: fe.hyperlinks.tooltip, + rId: nt + }, _e.rels.push({ + Id: nt, + Type: r.Hyperlink, + Target: fe.hyperlinks.hyperlink, + TargetMode: "External" + }); + } + ke.preImageId = fe.imageId, _e.anchors.push(Ye); + } + }), Q.tables.forEach(function(fe) { + var we = se(ne); + fe.rId = we, ne.push({ + Id: we, + Type: r.Table, + Target: "../tables/".concat(fe.target) + }), fe.columns.forEach(function(_e) { + var je = _e.style; + je && (_e.dxfId = he.styles.addDxfStyle(je)); + }); + }), this.map.extLst.prepare(Q, he); + } + }, { + key: "render", + value: function(Q, he) { + Q.openXml(a.StdDocAttributes), Q.openNode("worksheet", oe.WORKSHEET_ATTRIBUTES); + var ke = he.properties ? { + defaultRowHeight: he.properties.defaultRowHeight, + dyDescent: he.properties.dyDescent, + outlineLevelCol: he.properties.outlineLevelCol, + outlineLevelRow: he.properties.outlineLevelRow + } : void 0; + he.properties && he.properties.defaultColWidth && (ke.defaultColWidth = he.properties.defaultColWidth); + var ne = { + outlineProperties: he.properties && he.properties.outlineProperties, + tabColor: he.properties && he.properties.tabColor, + pageSetup: he.pageSetup && he.pageSetup.fitToPage ? { + fitToPage: he.pageSetup.fitToPage + } : void 0 + }, se = he.pageSetup && he.pageSetup.margins, Ce = { + showRowColHeaders: he.pageSetup && he.pageSetup.showRowColHeaders, + showGridLines: he.pageSetup && he.pageSetup.showGridLines, + horizontalCentered: he.pageSetup && he.pageSetup.horizontalCentered, + verticalCentered: he.pageSetup && he.pageSetup.verticalCentered + }, q = he.sheetProtection; + this.map.sheetPr.render(Q, ne), this.map.dimension.render(Q, he.dimensions), this.map.sheetViews.render(Q, he.views), this.map.sheetFormatPr.render(Q, ke), this.map.cols.render(Q, he.cols), this.map.sheetData.render(Q, he.rows), this.map.sheetProtection.render(Q, q), this.map.autoFilter.render(Q, he.autoFilter), this.map.mergeCells.render(Q, he.mergeCells), this.map.conditionalFormatting.render(Q, he.conditionalFormattings), this.map.dataValidations.render(Q, he.dataValidations), this.map.hyperlinks.render(Q, he.hyperlinks), this.map.printOptions.render(Q, Ce), this.map.pageMargins.render(Q, se), this.map.pageSetup.render(Q, he.pageSetup), this.map.headerFooter.render(Q, he.headerFooter), this.map.rowBreaks.render(Q, he.rowBreaks), this.map.drawing.render(Q, he.drawing), this.map.picture.render(Q, he.background), this.map.tableParts.render(Q, he.tables), this.map.extLst.render(Q, he), he.rels && he.rels.forEach(function(G) { + G.Type === r.VmlDrawing && Q.leafNode("legacyDrawing", { + "r:id": G.Id + }); + }), Q.closeNode(); + } + }, { + key: "parseOpen", + value: function(Q) { + return this.parser ? (this.parser.parseOpen(Q), !0) : Q.name === "worksheet" ? (v.each(this.map, function(he) { + he.reset(); + }), !0) : (this.parser = this.map[Q.name], this.parser && this.parser.parseOpen(Q), !0); + } + }, { + key: "parseText", + value: function(Q) { + this.parser && this.parser.parseText(Q); + } + }, { + key: "parseClose", + value: function(Q) { + if (this.parser) + return this.parser.parseClose(Q) || (this.parser = void 0), !0; + switch (Q) { + case "worksheet": { + var he = this.map.sheetFormatPr.model || {}; + this.map.sheetPr.model && this.map.sheetPr.model.tabColor && (he.tabColor = this.map.sheetPr.model.tabColor), this.map.sheetPr.model && this.map.sheetPr.model.outlineProperties && (he.outlineProperties = this.map.sheetPr.model.outlineProperties); + var ke = { + fitToPage: this.map.sheetPr.model && this.map.sheetPr.model.pageSetup && this.map.sheetPr.model.pageSetup.fitToPage || !1, + margins: this.map.pageMargins.model + }, ne = Object.assign(ke, this.map.pageSetup.model, this.map.printOptions.model), se = ee(this.map.conditionalFormatting.model, this.map.extLst.model && this.map.extLst.model["x14:conditionalFormattings"]); + return this.model = { + dimensions: this.map.dimension.model, + cols: this.map.cols.model, + rows: this.map.sheetData.model, + mergeCells: this.map.mergeCells.model, + hyperlinks: this.map.hyperlinks.model, + dataValidations: this.map.dataValidations.model, + properties: he, + views: this.map.sheetViews.model, + pageSetup: ne, + headerFooter: this.map.headerFooter.model, + background: this.map.picture.model, + drawing: this.map.drawing.model, + tables: this.map.tableParts.model, + conditionalFormattings: se + }, this.map.autoFilter.model && (this.model.autoFilter = this.map.autoFilter.model), this.map.sheetProtection.model && (this.model.sheetProtection = this.map.sheetProtection.model), !1; + } + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(Q, he) { + var ke = (Q.relationships || []).reduce(function(we, _e) { + if (we[_e.Id] = _e, _e.Type === r.Comments && (Q.comments = he.comments[_e.Target].comments), _e.Type === r.VmlDrawing && Q.comments && Q.comments.length) { + var je = he.vmlDrawings[_e.Target].comments; + Q.comments.forEach(function(Ye, nt) { + Ye.note = Object.assign({}, Ye.note, je[nt]); + }); + } + return we; + }, {}); + if (he.commentsMap = (Q.comments || []).reduce(function(we, _e) { + return _e.ref && (we[_e.ref] = _e), we; + }, {}), he.hyperlinkMap = (Q.hyperlinks || []).reduce(function(we, _e) { + return _e.rId && (we[_e.address] = ke[_e.rId].Target), we; + }, {}), he.formulae = {}, Q.rows = Q.rows && Q.rows.filter(Boolean) || [], Q.rows.forEach(function(we) { + we.cells = we.cells && we.cells.filter(Boolean) || []; + }), this.map.cols.reconcile(Q.cols, he), this.map.sheetData.reconcile(Q.rows, he), this.map.conditionalFormatting.reconcile(Q.conditionalFormattings, he), Q.media = [], Q.drawing) { + var ne = ke[Q.drawing.rId], se = ne.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/); + if (se) { + var Ce = se[1], q = he.drawings[Ce]; + q.anchors.forEach(function(we) { + if (we.medium) { + var _e = { + type: "image", + imageId: we.medium.index, + range: we.range, + hyperlinks: we.picture.hyperlinks + }; + Q.media.push(_e); + } + }); + } + } + var G = Q.background && ke[Q.background.rId]; + if (G) { + var Y = G.Target.split("/media/")[1], fe = he.mediaIndex && he.mediaIndex[Y]; + fe !== void 0 && Q.media.push({ + type: "background", + imageId: fe + }); + } + Q.tables = (Q.tables || []).map(function(we) { + var _e = ke[we.rId]; + return he.tables[_e.Target]; + }), delete Q.relationships, delete Q.hyperlinks, delete Q.comments; + } + }]), oe; + }(i); + ce.WORKSHEET_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", + "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", + "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", + "mc:Ignorable": "x14ac", + "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" + }, x.exports = ce; + }, { "../../../utils/col-cache": 19, "../../../utils/under-dash": 25, "../../../utils/xml-stream": 27, "../../rel-type": 30, "../base-xform": 31, "../list-xform": 70, "./auto-filter-xform": 71, "./cf/conditional-formattings-xform": 86, "./col-xform": 91, "./data-validations-xform": 92, "./dimension-xform": 93, "./drawing-xform": 94, "./ext-lst-xform": 95, "./header-footer-xform": 96, "./hyperlink-xform": 97, "./merge-cell-xform": 98, "./merges": 99, "./page-margins-xform": 102, "./page-setup-xform": 104, "./picture-xform": 105, "./print-options-xform": 106, "./row-breaks-xform": 107, "./row-xform": 108, "./sheet-format-properties-xform": 109, "./sheet-properties-xform": 110, "./sheet-protection-xform": 111, "./sheet-view-xform": 112, "./table-part-xform": 113 }], 115: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && (n.openNode(this.tag), n.closeNode()); + } + }, { + key: "parseOpen", + value: function(n) { + n.name === this.tag && (this.model = !0); + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 116: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n._format = i.format || function(o) { + try { + return Number.isNaN(o.getTime()) ? "" : o.toISOString(); + } catch (p) { + return ""; + } + }, n._parse = i.parse || function(o) { + return new Date(o); + }, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + o && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, this._format(o)) : n.writeText(this._format(o)), n.closeNode()); + } + }, { + key: "parseOpen", + value: function(n) { + n.name === this.tag && (this.attr ? this.model = this._parse(n.attributes[this.attr]) : this.text = []); + } + }, { + key: "parseText", + value: function(n) { + this.attr || this.text.push(n); + } + }, { + key: "parseClose", + value: function() { + return this.attr || (this.model = this._parse(this.text.join(""))), !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 117: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n.zero = i.zero, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + (o || this.zero) && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, o) : n.writeText(o), n.closeNode()); + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === this.tag ? (this.attr ? this.model = parseInt(n.attributes[this.attr], 10) : this.text = [], !0) : !1; + } + }, { + key: "parseText", + value: function(n) { + this.attr || this.text.push(n); + } + }, { + key: "parseClose", + value: function() { + return this.attr || (this.model = parseInt(this.text.join("") || 0, 10)), !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 118: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.tag = i.tag, n.attr = i.attr, n.attrs = i.attrs, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + o !== void 0 && (n.openNode(this.tag), this.attrs && n.addAttributes(this.attrs), this.attr ? n.addAttribute(this.attr, o) : n.writeText(o), n.closeNode()); + } + }, { + key: "parseOpen", + value: function(n) { + n.name === this.tag && (this.attr ? this.model = n.attributes[this.attr] : this.text = []); + } + }, { + key: "parseText", + value: function(n) { + this.attr || this.text.push(n); + } + }, { + key: "parseClose", + value: function() { + return this.attr || (this.model = this.text.join("")), !1; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 119: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("./base-xform"), c = e("../../utils/xml-stream"); + function a(t, i) { + t.openNode(i.tag, i.$), i.c && i.c.forEach(function(n) { + a(t, n); + }), i.t && t.writeText(i.t), t.closeNode(); + } + var r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n(o) { + var p; + return m(this, n), p = i.call(this), p._model = o, p; + } + return b(n, [{ + key: "render", + value: function(p) { + if (!this._xml) { + var O = new c(); + a(O, this._model), this._xml = O.xml; + } + p.writeXml(this._xml); + } + }, { + key: "parseOpen", + value: function() { + return !0; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(p) { + switch (p) { + case this._model.tag: + return !1; + default: + return !0; + } + } + }]), n; + }(v); + x.exports = r; + }, { "../../utils/xml-stream": 27, "./base-xform": 31 }], 120: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("./text-xform"), c = e("./rich-text-xform"), a = e("../base-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n() { + var o; + return m(this, n), o = i.call(this), o.map = { + r: new c(), + t: new v() + }, o; + } + return b(n, [{ + key: "render", + value: function(p, O) { + if (p.openNode(this.tag, { + sb: O.sb || 0, + eb: O.eb || 0 + }), O && O.hasOwnProperty("richText") && O.richText) { + var P = this.map.r; + O.richText.forEach(function(F) { + P.render(p, F); + }); + } else + O && this.map.t.render(p, O.text); + p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + var O = p.name; + return this.parser ? (this.parser.parseOpen(p), !0) : O === this.tag ? (this.model = { + sb: parseInt(p.attributes.sb, 10), + eb: parseInt(p.attributes.eb, 10) + }, !0) : (this.parser = this.map[O], this.parser ? (this.parser.parseOpen(p), !0) : !1); + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) { + if (!this.parser.parseClose(p)) { + switch (p) { + case "r": { + var O = this.model.richText; + O || (O = this.model.richText = []), O.push(this.parser.model); + break; + } + case "t": + this.model.text = this.parser.model; + break; + } + this.parser = void 0; + } + return !0; + } + switch (p) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "rPh"; + } + }]), n; + }(a); + x.exports = r; + }, { "../base-xform": 31, "./rich-text-xform": 121, "./text-xform": 124 }], 121: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("./text-xform"), c = e("../style/font-xform"), a = e("../base-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n(o) { + var p; + return m(this, n), p = i.call(this), p.model = o, p; + } + return b(n, [{ + key: "render", + value: function(p, O) { + O = O || this.model, p.openNode("r"), O.font && this.fontXform.render(p, O.font), this.textXform.render(p, O.text), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case "r": + return this.model = {}, !0; + case "t": + return this.parser = this.textXform, this.parser.parseOpen(p), !0; + case "rPr": + return this.parser = this.fontXform, this.parser.parseOpen(p), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + switch (p) { + case "r": + return !1; + case "t": + return this.model.text = this.parser.model, this.parser = void 0, !0; + case "rPr": + return this.model.font = this.parser.model, this.parser = void 0, !0; + default: + return this.parser && this.parser.parseClose(p), !0; + } + } + }, { + key: "tag", + get: function() { + return "r"; + } + }, { + key: "textXform", + get: function() { + return this._textXform || (this._textXform = new v()); + } + }, { + key: "fontXform", + get: function() { + return this._fontXform || (this._fontXform = new c(n.FONT_OPTIONS)); + } + }]), n; + }(a); + r.FONT_OPTIONS = { + tagName: "rPr", + fontNameTag: "rFont" + }, x.exports = r; + }, { "../base-xform": 31, "../style/font-xform": 130, "./text-xform": 124 }], 122: [function(e, x, _) { + function u(i) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(o) { + return typeof o; + } : u = function(o) { + return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, u(i); + } + function m(i, n) { + if (!(i instanceof n)) + throw new TypeError("Cannot call a class as a function"); + } + function g(i, n) { + for (var o = 0; o < n.length; o++) { + var p = n[o]; + p.enumerable = p.enumerable || !1, p.configurable = !0, "value" in p && (p.writable = !0), Object.defineProperty(i, p.key, p); + } + } + function b(i, n, o) { + return n && g(i.prototype, n), o && g(i, o), i; + } + function w(i, n) { + if (typeof n != "function" && n !== null) + throw new TypeError("Super expression must either be null or a function"); + i.prototype = Object.create(n && n.prototype, { constructor: { value: i, writable: !0, configurable: !0 } }), n && f(i, n); + } + function f(i, n) { + return f = Object.setPrototypeOf || function(p, O) { + return p.__proto__ = O, p; + }, f(i, n); + } + function y(i) { + var n = d(); + return function() { + var p = s(i), O; + if (n) { + var P = s(this).constructor; + O = Reflect.construct(p, arguments, P); + } else + O = p.apply(this, arguments); + return h(this, O); + }; + } + function h(i, n) { + return n && (u(n) === "object" || typeof n == "function") ? n : l(i); + } + function l(i) { + if (i === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return i; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (i) { + return !1; + } + } + function s(i) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }, s(i); + } + var v = e("./text-xform"), c = e("./rich-text-xform"), a = e("./phonetic-text-xform"), r = e("../base-xform"), t = /* @__PURE__ */ function(i) { + w(o, i); + var n = y(o); + function o(p) { + var O; + return m(this, o), O = n.call(this), O.model = p, O.map = { + r: new c(), + t: new v(), + rPh: new a() + }, O; + } + return b(o, [{ + key: "render", + value: function(O, P) { + var F = this; + O.openNode(this.tag), P && P.hasOwnProperty("richText") && P.richText ? P.richText.length ? P.richText.forEach(function(z) { + F.map.r.render(O, z); + }) : this.map.t.render(O, "") : P != null && this.map.t.render(O, P), O.closeNode(); + } + }, { + key: "parseOpen", + value: function(O) { + var P = O.name; + return this.parser ? (this.parser.parseOpen(O), !0) : P === this.tag ? (this.model = {}, !0) : (this.parser = this.map[P], this.parser ? (this.parser.parseOpen(O), !0) : !1); + } + }, { + key: "parseText", + value: function(O) { + this.parser && this.parser.parseText(O); + } + }, { + key: "parseClose", + value: function(O) { + if (this.parser) { + if (!this.parser.parseClose(O)) { + switch (O) { + case "r": { + var P = this.model.richText; + P || (P = this.model.richText = []), P.push(this.parser.model); + break; + } + case "t": + this.model = this.parser.model; + break; + } + this.parser = void 0; + } + return !0; + } + switch (O) { + case this.tag: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return "si"; + } + }]), o; + }(r); + x.exports = t; + }, { "../base-xform": 31, "./phonetic-text-xform": 120, "./rich-text-xform": 121, "./text-xform": 124 }], 123: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../../../utils/xml-stream"), c = e("../base-xform"), a = e("./shared-string-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n(o) { + var p; + return m(this, n), p = i.call(this), p.model = o || { + values: [], + count: 0 + }, p.hash = /* @__PURE__ */ Object.create(null), p.rich = /* @__PURE__ */ Object.create(null), p; + } + return b(n, [{ + key: "getString", + value: function(p) { + return this.model.values[p]; + } + }, { + key: "add", + value: function(p) { + return p.richText ? this.addRichText(p) : this.addText(p); + } + }, { + key: "addText", + value: function(p) { + var O = this.hash[p]; + return O === void 0 && (O = this.hash[p] = this.model.values.length, this.model.values.push(p)), this.model.count++, O; + } + }, { + key: "addRichText", + value: function(p) { + var O = this.sharedStringXform.toXml(p), P = this.rich[O]; + return P === void 0 && (P = this.rich[O] = this.model.values.length, this.model.values.push(p)), this.model.count++, P; + } + // + // + // <%=text%> + // + // + }, { + key: "render", + value: function(p, O) { + O = O || this._values, p.openXml(v.StdDocAttributes), p.openNode("sst", { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", + count: O.count, + uniqueCount: O.values.length + }); + var P = this.sharedStringXform; + O.values.forEach(function(F) { + P.render(p, F); + }), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case "sst": + return !0; + case "si": + return this.parser = this.sharedStringXform, this.parser.parseOpen(p), !0; + default: + throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(p))); + } + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + if (this.parser) + return this.parser.parseClose(p) || (this.model.values.push(this.parser.model), this.model.count++, this.parser = void 0), !0; + switch (p) { + case "sst": + return !1; + default: + throw new Error("Unexpected xml node in parseClose: ".concat(p)); + } + } + }, { + key: "sharedStringXform", + get: function() { + return this._sharedStringXform || (this._sharedStringXform = new a()); + } + }, { + key: "values", + get: function() { + return this.model.values; + } + }, { + key: "uniqueCount", + get: function() { + return this.model.values.length; + } + }, { + key: "count", + get: function() { + return this.model.count; + } + }]), n; + }(c); + x.exports = r; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "./shared-string-xform": 122 }], 124: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + n.openNode("t"), /^\s|\n|\s$/.test(o) && n.addAttribute("xml:space", "preserve"), n.writeText(o), n.closeNode(); + } + }, { + key: "parseOpen", + value: function(n) { + switch (n.name) { + case "t": + return this._text = [], !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(n) { + this._text.push(n); + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "t"; + } + }, { + key: "model", + get: function() { + return this._text.join("").replace(/_x([0-9A-F]{4})_/g, function(n, o) { + return String.fromCharCode(parseInt(o, 16)); + }); + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 125: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../../../doc/enums"), c = e("../../../utils/utils"), a = e("../base-xform"), r = { + horizontalValues: ["left", "center", "right", "fill", "centerContinuous", "distributed", "justify"].reduce(function(n, o) { + return n[o] = !0, n; + }, {}), + horizontal: function(o) { + return this.horizontalValues[o] ? o : void 0; + }, + verticalValues: ["top", "middle", "bottom", "distributed", "justify"].reduce(function(n, o) { + return n[o] = !0, n; + }, {}), + vertical: function(o) { + return o === "middle" ? "center" : this.verticalValues[o] ? o : void 0; + }, + wrapText: function(o) { + return o ? !0 : void 0; + }, + shrinkToFit: function(o) { + return o ? !0 : void 0; + }, + textRotation: function(o) { + switch (o) { + case "vertical": + return o; + default: + return o = c.validInt(o), o >= -90 && o <= 90 ? o : void 0; + } + }, + indent: function(o) { + return o = c.validInt(o), Math.max(0, o); + }, + readingOrder: function(o) { + switch (o) { + case "ltr": + return v.ReadingOrder.LeftToRight; + case "rtl": + return v.ReadingOrder.RightToLeft; + default: + return; + } + } + }, t = { + toXml: function(o) { + if (o = r.textRotation(o), o) { + if (o === "vertical") + return 255; + var p = Math.round(o); + if (p >= 0 && p <= 90) + return p; + if (p < 0 && p >= -90) + return 90 - p; + } + }, + toModel: function(o) { + var p = c.validInt(o); + if (p !== void 0) { + if (p === 255) + return "vertical"; + if (p >= 0 && p <= 90) + return p; + if (p > 90 && p <= 180) + return 90 - p; + } + } + }, i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + return m(this, p), o.apply(this, arguments); + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.addRollback(), P.openNode("alignment"); + var z = !1; + function N(M, I) { + I && (P.addAttribute(M, I), z = !0); + } + N("horizontal", r.horizontal(F.horizontal)), N("vertical", r.vertical(F.vertical)), N("wrapText", r.wrapText(F.wrapText) ? "1" : !1), N("shrinkToFit", r.shrinkToFit(F.shrinkToFit) ? "1" : !1), N("indent", r.indent(F.indent)), N("textRotation", t.toXml(F.textRotation)), N("readingOrder", r.readingOrder(F.readingOrder)), P.closeNode(), z ? P.commit() : P.rollback(); + } + }, { + key: "parseOpen", + value: function(P) { + var F = {}, z = !1; + function N(M, I, R) { + M && (F[I] = R, z = !0); + } + N(P.attributes.horizontal, "horizontal", P.attributes.horizontal), N(P.attributes.vertical, "vertical", P.attributes.vertical === "center" ? "middle" : P.attributes.vertical), N(P.attributes.wrapText, "wrapText", !!P.attributes.wrapText), N(P.attributes.shrinkToFit, "shrinkToFit", !!P.attributes.shrinkToFit), N(P.attributes.indent, "indent", parseInt(P.attributes.indent, 10)), N(P.attributes.textRotation, "textRotation", t.toModel(P.attributes.textRotation)), N(P.attributes.readingOrder, "readingOrder", P.attributes.readingOrder === "2" ? "rtl" : "ltr"), this.model = z ? F : null; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "alignment"; + } + }]), p; + }(a); + x.exports = i; + }, { "../../../doc/enums": 7, "../../../utils/utils": 26, "../base-xform": 31 }], 126: [function(e, x, _) { + function u(o, p) { + var O = Object.keys(o); + if (Object.getOwnPropertySymbols) { + var P = Object.getOwnPropertySymbols(o); + p && (P = P.filter(function(F) { + return Object.getOwnPropertyDescriptor(o, F).enumerable; + })), O.push.apply(O, P); + } + return O; + } + function m(o) { + for (var p = 1; p < arguments.length; p++) { + var O = arguments[p] != null ? arguments[p] : {}; + p % 2 ? u(Object(O), !0).forEach(function(P) { + g(o, P, O[P]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(O)) : u(Object(O)).forEach(function(P) { + Object.defineProperty(o, P, Object.getOwnPropertyDescriptor(O, P)); + }); + } + return o; + } + function g(o, p, O) { + return p in o ? Object.defineProperty(o, p, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : o[p] = O, o; + } + function b(o) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? b = function(O) { + return typeof O; + } : b = function(O) { + return O && typeof Symbol == "function" && O.constructor === Symbol && O !== Symbol.prototype ? "symbol" : typeof O; + }, b(o); + } + function w(o, p) { + if (!(o instanceof p)) + throw new TypeError("Cannot call a class as a function"); + } + function f(o, p) { + for (var O = 0; O < p.length; O++) { + var P = p[O]; + P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(o, P.key, P); + } + } + function y(o, p, O) { + return p && f(o.prototype, p), O && f(o, O), o; + } + function h(o, p) { + if (typeof p != "function" && p !== null) + throw new TypeError("Super expression must either be null or a function"); + o.prototype = Object.create(p && p.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), p && l(o, p); + } + function l(o, p) { + return l = Object.setPrototypeOf || function(P, F) { + return P.__proto__ = F, P; + }, l(o, p); + } + function d(o) { + var p = c(); + return function() { + var P = a(o), F; + if (p) { + var z = a(this).constructor; + F = Reflect.construct(P, arguments, z); + } else + F = P.apply(this, arguments); + return s(this, F); + }; + } + function s(o, p) { + return p && (b(p) === "object" || typeof p == "function") ? p : v(o); + } + function v(o) { + if (o === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return o; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (o) { + return !1; + } + } + function a(o) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(O) { + return O.__proto__ || Object.getPrototypeOf(O); + }, a(o); + } + var r = e("../base-xform"), t = e("./color-xform"), i = /* @__PURE__ */ function(o) { + h(O, o); + var p = d(O); + function O(P) { + var F; + return w(this, O), F = p.call(this), F.name = P, F.map = { + color: new t() + }, F; + } + return y(O, [{ + key: "render", + value: function(F, z, N) { + var M = z && z.color || N || this.defaultColor; + F.openNode(this.name), z && z.style && (F.addAttribute("style", z.style), M && this.map.color.render(F, M)), F.closeNode(); + } + }, { + key: "parseOpen", + value: function(F) { + if (this.parser) + return this.parser.parseOpen(F), !0; + switch (F.name) { + case this.name: { + var z = F.attributes.style; + return z ? this.model = { + style: z + } : this.model = void 0, !0; + } + case "color": + return this.parser = this.map.color, this.parser.parseOpen(F), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(F) { + this.parser && this.parser.parseText(F); + } + }, { + key: "parseClose", + value: function(F) { + return this.parser ? (this.parser.parseClose(F) || (this.parser = void 0), !0) : (F === this.name && this.map.color.model && (this.model || (this.model = {}), this.model.color = this.map.color.model), !1); + } + }, { + key: "validStyle", + value: function(F) { + return O.validStyleValues[F]; + } + }, { + key: "tag", + get: function() { + return this.name; + } + }]), O; + }(r); + i.validStyleValues = ["thin", "dotted", "dashDot", "hair", "dashDotDot", "slantDashDot", "mediumDashed", "mediumDashDotDot", "mediumDashDot", "medium", "double", "thick"].reduce(function(o, p) { + return o[p] = !0, o; + }, {}); + var n = /* @__PURE__ */ function(o) { + h(O, o); + var p = d(O); + function O() { + var P; + return w(this, O), P = p.call(this), P.map = { + top: new i("top"), + left: new i("left"), + bottom: new i("bottom"), + right: new i("right"), + diagonal: new i("diagonal") + }, P; + } + return y(O, [{ + key: "render", + value: function(F, z) { + var N = z.color; + F.openNode("border"), z.diagonal && z.diagonal.style && (z.diagonal.up && F.addAttribute("diagonalUp", "1"), z.diagonal.down && F.addAttribute("diagonalDown", "1")); + function M(I, R) { + I && !I.color && z.color && (I = m(m({}, I), {}, { + color: z.color + })), R.render(F, I, N); + } + M(z.left, this.map.left), M(z.right, this.map.right), M(z.top, this.map.top), M(z.bottom, this.map.bottom), M(z.diagonal, this.map.diagonal), F.closeNode(); + } + }, { + key: "parseOpen", + value: function(F) { + if (this.parser) + return this.parser.parseOpen(F), !0; + switch (F.name) { + case "border": + return this.reset(), this.diagonalUp = !!F.attributes.diagonalUp, this.diagonalDown = !!F.attributes.diagonalDown, !0; + default: + return this.parser = this.map[F.name], this.parser ? (this.parser.parseOpen(F), !0) : !1; + } + } + }, { + key: "parseText", + value: function(F) { + this.parser && this.parser.parseText(F); + } + }, { + key: "parseClose", + value: function(F) { + if (this.parser) + return this.parser.parseClose(F) || (this.parser = void 0), !0; + if (F === "border") { + var z = this.model = {}, N = function(I, R, C) { + R && (C && Object.assign(R, C), z[I] = R); + }; + N("left", this.map.left.model), N("right", this.map.right.model), N("top", this.map.top.model), N("bottom", this.map.bottom.model), N("diagonal", this.map.diagonal.model, { + up: this.diagonalUp, + down: this.diagonalDown + }); + } + return !1; + } + }]), O; + }(r); + x.exports = n; + }, { "../base-xform": 31, "./color-xform": 127 }], 127: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.name = i || "color", n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + return o ? (n.openNode(this.name), o.argb ? n.addAttribute("rgb", o.argb) : o.theme !== void 0 ? (n.addAttribute("theme", o.theme), o.tint !== void 0 && n.addAttribute("tint", o.tint)) : o.indexed !== void 0 ? n.addAttribute("indexed", o.indexed) : n.addAttribute("auto", "1"), n.closeNode(), !0) : !1; + } + }, { + key: "parseOpen", + value: function(n) { + return n.name === this.name ? (n.attributes.rgb ? this.model = { + argb: n.attributes.rgb + } : n.attributes.theme ? (this.model = { + theme: parseInt(n.attributes.theme, 10) + }, n.attributes.tint && (this.model.tint = parseFloat(n.attributes.tint))) : n.attributes.indexed ? this.model = { + indexed: parseInt(n.attributes.indexed, 10) + } : this.model = void 0, !0) : !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return this.name; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 128: [function(e, x, _) { + function u(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) { + return typeof P; + } : u = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, u(p); + } + function m(p, O) { + if (!(p instanceof O)) + throw new TypeError("Cannot call a class as a function"); + } + function g(p, O) { + for (var P = 0; P < O.length; P++) { + var F = O[P]; + F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F); + } + } + function b(p, O, P) { + return O && g(p.prototype, O), P && g(p, P), p; + } + function w(p, O) { + if (typeof O != "function" && O !== null) + throw new TypeError("Super expression must either be null or a function"); + p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O); + } + function f(p, O) { + return f = Object.setPrototypeOf || function(F, z) { + return F.__proto__ = z, F; + }, f(p, O); + } + function y(p) { + var O = d(); + return function() { + var F = s(p), z; + if (O) { + var N = s(this).constructor; + z = Reflect.construct(F, arguments, N); + } else + z = F.apply(this, arguments); + return h(this, z); + }; + } + function h(p, O) { + return O && (u(O) === "object" || typeof O == "function") ? O : l(p); + } + function l(p) { + if (p === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return p; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (p) { + return !1; + } + } + function s(p) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) { + return P.__proto__ || Object.getPrototypeOf(P); + }, s(p); + } + var v = e("../base-xform"), c = e("./alignment-xform"), a = e("./border-xform"), r = e("./fill-xform"), t = e("./font-xform"), i = e("./numfmt-xform"), n = e("./protection-xform"), o = /* @__PURE__ */ function(p) { + w(P, p); + var O = y(P); + function P() { + var F; + return m(this, P), F = O.call(this), F.map = { + alignment: new c(), + border: new a(), + fill: new r(), + font: new t(), + numFmt: new i(), + protection: new n() + }, F; + } + return b(P, [{ + key: "render", + // how do we generate dxfid? + value: function(z, N) { + z.openNode(this.tag), N.font && this.map.font.render(z, N.font), N.numFmt && this.map.numFmt.render(z, N.numFmt), N.fill && this.map.fill.render(z, N.fill), N.alignment && this.map.alignment.render(z, N.alignment), N.border && this.map.border.render(z, N.border), N.protection && this.map.protection.render(z, N.protection), z.closeNode(); + } + }, { + key: "parseOpen", + value: function(z) { + if (this.parser) + return this.parser.parseOpen(z), !0; + switch (z.name) { + case this.tag: + return this.reset(), !0; + default: + return this.parser = this.map[z.name], this.parser && this.parser.parseOpen(z), !0; + } + } + }, { + key: "parseText", + value: function(z) { + this.parser && this.parser.parseText(z); + } + }, { + key: "parseClose", + value: function(z) { + return this.parser ? (this.parser.parseClose(z) || (this.parser = void 0), !0) : z === this.tag ? (this.model = { + alignment: this.map.alignment.model, + border: this.map.border.model, + fill: this.map.fill.model, + font: this.map.font.model, + numFmt: this.map.numFmt.model, + protection: this.map.protection.model + }, !1) : !0; + } + }, { + key: "tag", + get: function() { + return "dxf"; + } + }]), P; + }(v); + x.exports = o; + }, { "../base-xform": 31, "./alignment-xform": 125, "./border-xform": 126, "./fill-xform": 129, "./font-xform": 130, "./numfmt-xform": 131, "./protection-xform": 132 }], 129: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../base-xform"), c = e("./color-xform"), a = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + color: new c() + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.openNode("stop"), P.addAttribute("position", F.position), this.map.color.render(P, F.color), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "stop": + return this.model = { + position: parseFloat(P.attributes.position) + }, !0; + case "color": + return this.parser = this.map.color, this.parser.parseOpen(P), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function(P) { + return this.parser ? (this.parser.parseClose(P) || (this.model.color = this.parser.model, this.parser = void 0), !0) : !1; + } + }, { + key: "tag", + get: function() { + return "stop"; + } + }]), p; + }(v), r = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + fgColor: new c("fgColor"), + bgColor: new c("bgColor") + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.openNode("patternFill"), P.addAttribute("patternType", F.pattern), F.fgColor && this.map.fgColor.render(P, F.fgColor), F.bgColor && this.map.bgColor.render(P, F.bgColor), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "patternFill": + return this.model = { + type: "pattern", + pattern: P.attributes.patternType + }, !0; + default: + return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1; + } + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + return this.parser ? (this.parser.parseClose(P) || (this.parser.model && (this.model[P] = this.parser.model), this.parser = void 0), !0) : !1; + } + }, { + key: "name", + get: function() { + return "pattern"; + } + }, { + key: "tag", + get: function() { + return "patternFill"; + } + }]), p; + }(v), t = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + stop: new a() + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + switch (P.openNode("gradientFill"), F.gradient) { + case "angle": + P.addAttribute("degree", F.degree); + break; + case "path": + P.addAttribute("type", "path"), F.center.left && (P.addAttribute("left", F.center.left), F.center.right === void 0 && P.addAttribute("right", F.center.left)), F.center.right && P.addAttribute("right", F.center.right), F.center.top && (P.addAttribute("top", F.center.top), F.center.bottom === void 0 && P.addAttribute("bottom", F.center.top)), F.center.bottom && P.addAttribute("bottom", F.center.bottom); + break; + } + var z = this.map.stop; + F.stops.forEach(function(N) { + z.render(P, N); + }), P.closeNode(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "gradientFill": { + var F = this.model = { + stops: [] + }; + return P.attributes.degree ? (F.gradient = "angle", F.degree = parseInt(P.attributes.degree, 10)) : P.attributes.type === "path" && (F.gradient = "path", F.center = { + left: P.attributes.left ? parseFloat(P.attributes.left) : 0, + top: P.attributes.top ? parseFloat(P.attributes.top) : 0 + }, P.attributes.right !== P.attributes.left && (F.center.right = P.attributes.right ? parseFloat(P.attributes.right) : 0), P.attributes.bottom !== P.attributes.top && (F.center.bottom = P.attributes.bottom ? parseFloat(P.attributes.bottom) : 0)), !0; + } + case "stop": + return this.parser = this.map.stop, this.parser.parseOpen(P), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + return this.parser ? (this.parser.parseClose(P) || (this.model.stops.push(this.parser.model), this.parser = void 0), !0) : !1; + } + }, { + key: "name", + get: function() { + return "gradient"; + } + }, { + key: "tag", + get: function() { + return "gradientFill"; + } + }]), p; + }(v), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p() { + var O; + return m(this, p), O = o.call(this), O.map = { + patternFill: new r(), + gradientFill: new t() + }, O; + } + return b(p, [{ + key: "render", + value: function(P, F) { + switch (P.addRollback(), P.openNode("fill"), F.type) { + case "pattern": + this.map.patternFill.render(P, F); + break; + case "gradient": + this.map.gradientFill.render(P, F); + break; + default: + P.rollback(); + return; + } + P.closeNode(), P.commit(); + } + }, { + key: "parseOpen", + value: function(P) { + if (this.parser) + return this.parser.parseOpen(P), !0; + switch (P.name) { + case "fill": + return this.model = {}, !0; + default: + return this.parser = this.map[P.name], this.parser ? (this.parser.parseOpen(P), !0) : !1; + } + } + }, { + key: "parseText", + value: function(P) { + this.parser && this.parser.parseText(P); + } + }, { + key: "parseClose", + value: function(P) { + return this.parser ? (this.parser.parseClose(P) || (this.model = this.parser.model, this.model.type = this.parser.name, this.parser = void 0), !0) : !1; + } + }, { + key: "validStyle", + value: function(P) { + return p.validPatternValues[P]; + } + }, { + key: "tag", + get: function() { + return "fill"; + } + }]), p; + }(v); + i.validPatternValues = ["none", "solid", "darkVertical", "darkGray", "mediumGray", "lightGray", "gray125", "gray0625", "darkHorizontal", "darkVertical", "darkDown", "darkUp", "darkGrid", "darkTrellis", "lightHorizontal", "lightVertical", "lightDown", "lightUp", "lightGrid", "lightTrellis", "lightGrid"].reduce(function(n, o) { + return n[o] = !0, n; + }, {}), i.StopXform = a, i.PatternFillXform = r, i.GradientFillXform = t, x.exports = i; + }, { "../base-xform": 31, "./color-xform": 127 }], 130: [function(e, x, _) { + function u(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(P) { + return typeof P; + } : u = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, u(p); + } + function m(p, O) { + if (!(p instanceof O)) + throw new TypeError("Cannot call a class as a function"); + } + function g(p, O) { + for (var P = 0; P < O.length; P++) { + var F = O[P]; + F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F); + } + } + function b(p, O, P) { + return O && g(p.prototype, O), P && g(p, P), p; + } + function w(p, O) { + if (typeof O != "function" && O !== null) + throw new TypeError("Super expression must either be null or a function"); + p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && f(p, O); + } + function f(p, O) { + return f = Object.setPrototypeOf || function(F, z) { + return F.__proto__ = z, F; + }, f(p, O); + } + function y(p) { + var O = d(); + return function() { + var F = s(p), z; + if (O) { + var N = s(this).constructor; + z = Reflect.construct(F, arguments, N); + } else + z = F.apply(this, arguments); + return h(this, z); + }; + } + function h(p, O) { + return O && (u(O) === "object" || typeof O == "function") ? O : l(p); + } + function l(p) { + if (p === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return p; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (p) { + return !1; + } + } + function s(p) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) { + return P.__proto__ || Object.getPrototypeOf(P); + }, s(p); + } + var v = e("./color-xform"), c = e("../simple/boolean-xform"), a = e("../simple/integer-xform"), r = e("../simple/string-xform"), t = e("./underline-xform"), i = e("../../../utils/under-dash"), n = e("../base-xform"), o = /* @__PURE__ */ function(p) { + w(P, p); + var O = y(P); + function P(F) { + var z; + return m(this, P), z = O.call(this), z.options = F || P.OPTIONS, z.map = { + b: { + prop: "bold", + xform: new c({ + tag: "b", + attr: "val" + }) + }, + i: { + prop: "italic", + xform: new c({ + tag: "i", + attr: "val" + }) + }, + u: { + prop: "underline", + xform: new t() + }, + charset: { + prop: "charset", + xform: new a({ + tag: "charset", + attr: "val" + }) + }, + color: { + prop: "color", + xform: new v() + }, + condense: { + prop: "condense", + xform: new c({ + tag: "condense", + attr: "val" + }) + }, + extend: { + prop: "extend", + xform: new c({ + tag: "extend", + attr: "val" + }) + }, + family: { + prop: "family", + xform: new a({ + tag: "family", + attr: "val" + }) + }, + outline: { + prop: "outline", + xform: new c({ + tag: "outline", + attr: "val" + }) + }, + vertAlign: { + prop: "vertAlign", + xform: new r({ + tag: "vertAlign", + attr: "val" + }) + }, + scheme: { + prop: "scheme", + xform: new r({ + tag: "scheme", + attr: "val" + }) + }, + shadow: { + prop: "shadow", + xform: new c({ + tag: "shadow", + attr: "val" + }) + }, + strike: { + prop: "strike", + xform: new c({ + tag: "strike", + attr: "val" + }) + }, + sz: { + prop: "size", + xform: new a({ + tag: "sz", + attr: "val" + }) + } + }, z.map[z.options.fontNameTag] = { + prop: "name", + xform: new r({ + tag: z.options.fontNameTag, + attr: "val" + }) + }, z; + } + return b(P, [{ + key: "render", + value: function(z, N) { + var M = this.map; + z.openNode(this.options.tagName), i.each(this.map, function(I, R) { + M[R].xform.render(z, N[I.prop]); + }), z.closeNode(); + } + }, { + key: "parseOpen", + value: function(z) { + if (this.parser) + return this.parser.parseOpen(z), !0; + if (this.map[z.name]) + return this.parser = this.map[z.name].xform, this.parser.parseOpen(z); + switch (z.name) { + case this.options.tagName: + return this.model = {}, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(z) { + this.parser && this.parser.parseText(z); + } + }, { + key: "parseClose", + value: function(z) { + if (this.parser && !this.parser.parseClose(z)) { + var N = this.map[z]; + return this.parser.model && (this.model[N.prop] = this.parser.model), this.parser = void 0, !0; + } + switch (z) { + case this.options.tagName: + return !1; + default: + return !0; + } + } + }, { + key: "tag", + get: function() { + return this.options.tagName; + } + }]), P; + }(n); + o.OPTIONS = { + tagName: "font", + fontNameTag: "name" + }, x.exports = o; + }, { "../../../utils/under-dash": 25, "../base-xform": 31, "../simple/boolean-xform": 115, "../simple/integer-xform": 117, "../simple/string-xform": 118, "./color-xform": 127, "./underline-xform": 135 }], 131: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + function m(n, o) { + if (!(n instanceof o)) + throw new TypeError("Cannot call a class as a function"); + } + function g(n, o) { + for (var p = 0; p < o.length; p++) { + var O = o[p]; + O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(n, O.key, O); + } + } + function b(n, o, p) { + return o && g(n.prototype, o), p && g(n, p), n; + } + function w(n, o) { + if (typeof o != "function" && o !== null) + throw new TypeError("Super expression must either be null or a function"); + n.prototype = Object.create(o && o.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), o && f(n, o); + } + function f(n, o) { + return f = Object.setPrototypeOf || function(O, P) { + return O.__proto__ = P, O; + }, f(n, o); + } + function y(n) { + var o = d(); + return function() { + var O = s(n), P; + if (o) { + var F = s(this).constructor; + P = Reflect.construct(O, arguments, F); + } else + P = O.apply(this, arguments); + return h(this, P); + }; + } + function h(n, o) { + return o && (u(o) === "object" || typeof o == "function") ? o : l(n); + } + function l(n) { + if (n === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return n; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (n) { + return !1; + } + } + function s(n) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(p) { + return p.__proto__ || Object.getPrototypeOf(p); + }, s(n); + } + var v = e("../../../utils/under-dash"), c = e("../../defaultnumformats"), a = e("../base-xform"); + function r() { + var n = {}; + return v.each(c, function(o, p) { + o.f && (n[o.f] = parseInt(p, 10)); + }), n; + } + var t = r(), i = /* @__PURE__ */ function(n) { + w(p, n); + var o = y(p); + function p(O, P) { + var F; + return m(this, p), F = o.call(this), F.id = O, F.formatCode = P, F; + } + return b(p, [{ + key: "render", + value: function(P, F) { + P.leafNode("numFmt", { + numFmtId: F.id, + formatCode: F.formatCode + }); + } + }, { + key: "parseOpen", + value: function(P) { + switch (P.name) { + case "numFmt": + return this.model = { + id: parseInt(P.attributes.numFmtId, 10), + formatCode: P.attributes.formatCode.replace(/[\\](.)/g, "$1") + }, !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "numFmt"; + } + }]), p; + }(a); + i.getDefaultFmtId = function(o) { + return t[o]; + }, i.getDefaultFmtCode = function(o) { + return c[o] && c[o].f; + }, x.exports = i; + }, { "../../../utils/under-dash": 25, "../../defaultnumformats": 29, "../base-xform": 31 }], 132: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = { + boolean: function(t, i) { + return t === void 0 ? i : t; + } + }, a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + return m(this, i), t.apply(this, arguments); + } + return b(i, [{ + key: "render", + value: function(o, p) { + o.addRollback(), o.openNode("protection"); + var O = !1; + function P(F, z) { + z !== void 0 && (o.addAttribute(F, z), O = !0); + } + P("locked", c.boolean(p.locked, !0) ? void 0 : "0"), P("hidden", c.boolean(p.hidden, !1) ? "1" : void 0), o.closeNode(), O ? o.commit() : o.rollback(); + } + }, { + key: "parseOpen", + value: function(o) { + var p = { + locked: o.attributes.locked !== "0", + hidden: o.attributes.hidden === "1" + }, O = !p.locked || p.hidden; + this.model = O ? p : null; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "protection"; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31 }], 133: [function(e, x, _) { + function u(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(n) { + return typeof n; + } : u = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, u(t); + } + function m(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function g(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function b(t, i, n) { + return i && g(t.prototype, i), n && g(t, n), t; + } + function w(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && f(t, i); + } + function f(t, i) { + return f = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, f(t, i); + } + function y(t) { + var i = d(); + return function() { + var o = s(t), p; + if (i) { + var O = s(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return h(this, p); + }; + } + function h(t, i) { + return i && (u(i) === "object" || typeof i == "function") ? i : l(t); + } + function l(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function s(t) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, s(t); + } + var v = e("../base-xform"), c = e("./alignment-xform"), a = e("./protection-xform"), r = /* @__PURE__ */ function(t) { + w(n, t); + var i = y(n); + function n(o) { + var p; + return m(this, n), p = i.call(this), p.xfId = !!(o && o.xfId), p.map = { + alignment: new c(), + protection: new a() + }, p; + } + return b(n, [{ + key: "render", + value: function(p, O) { + p.openNode("xf", { + numFmtId: O.numFmtId || 0, + fontId: O.fontId || 0, + fillId: O.fillId || 0, + borderId: O.borderId || 0 + }), this.xfId && p.addAttribute("xfId", O.xfId || 0), O.numFmtId && p.addAttribute("applyNumberFormat", "1"), O.fontId && p.addAttribute("applyFont", "1"), O.fillId && p.addAttribute("applyFill", "1"), O.borderId && p.addAttribute("applyBorder", "1"), O.alignment && p.addAttribute("applyAlignment", "1"), O.protection && p.addAttribute("applyProtection", "1"), O.alignment && this.map.alignment.render(p, O.alignment), O.protection && this.map.protection.render(p, O.protection), p.closeNode(); + } + }, { + key: "parseOpen", + value: function(p) { + if (this.parser) + return this.parser.parseOpen(p), !0; + switch (p.name) { + case "xf": + return this.model = { + numFmtId: parseInt(p.attributes.numFmtId, 10), + fontId: parseInt(p.attributes.fontId, 10), + fillId: parseInt(p.attributes.fillId, 10), + borderId: parseInt(p.attributes.borderId, 10) + }, this.xfId && (this.model.xfId = parseInt(p.attributes.xfId, 10)), !0; + case "alignment": + return this.parser = this.map.alignment, this.parser.parseOpen(p), !0; + case "protection": + return this.parser = this.map.protection, this.parser.parseOpen(p), !0; + default: + return !1; + } + } + }, { + key: "parseText", + value: function(p) { + this.parser && this.parser.parseText(p); + } + }, { + key: "parseClose", + value: function(p) { + return this.parser ? (this.parser.parseClose(p) || (this.map.protection === this.parser ? this.model.protection = this.parser.model : this.model.alignment = this.parser.model, this.parser = void 0), !0) : p !== "xf"; + } + }, { + key: "tag", + get: function() { + return "xf"; + } + }]), n; + }(v); + x.exports = r; + }, { "../base-xform": 31, "./alignment-xform": 125, "./protection-xform": 132 }], 134: [function(e, x, _) { + function u(M) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(R) { + return typeof R; + } : u = function(R) { + return R && typeof Symbol == "function" && R.constructor === Symbol && R !== Symbol.prototype ? "symbol" : typeof R; + }, u(M); + } + function m(M, I) { + if (!(M instanceof I)) + throw new TypeError("Cannot call a class as a function"); + } + function g(M, I) { + for (var R = 0; R < I.length; R++) { + var C = I[R]; + C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(M, C.key, C); + } + } + function b(M, I, R) { + return I && g(M.prototype, I), R && g(M, R), M; + } + function w(M, I) { + if (typeof I != "function" && I !== null) + throw new TypeError("Super expression must either be null or a function"); + M.prototype = Object.create(I && I.prototype, { constructor: { value: M, writable: !0, configurable: !0 } }), I && f(M, I); + } + function f(M, I) { + return f = Object.setPrototypeOf || function(C, E) { + return C.__proto__ = E, C; + }, f(M, I); + } + function y(M) { + var I = d(); + return function() { + var C = s(M), E; + if (I) { + var A = s(this).constructor; + E = Reflect.construct(C, arguments, A); + } else + E = C.apply(this, arguments); + return h(this, E); + }; + } + function h(M, I) { + return I && (u(I) === "object" || typeof I == "function") ? I : l(M); + } + function l(M) { + if (M === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return M; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (M) { + return !1; + } + } + function s(M) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(R) { + return R.__proto__ || Object.getPrototypeOf(R); + }, s(M); + } + var v = e("../../../doc/enums"), c = e("../../../utils/xml-stream"), a = e("../base-xform"), r = e("../static-xform"), t = e("../list-xform"), i = e("./font-xform"), n = e("./fill-xform"), o = e("./border-xform"), p = e("./numfmt-xform"), O = e("./style-xform"), P = e("./dxf-xform"), F = 164, z = /* @__PURE__ */ function(M) { + w(R, M); + var I = y(R); + function R(C) { + var E; + return m(this, R), E = I.call(this), E.map = { + numFmts: new t({ + tag: "numFmts", + count: !0, + childXform: new p() + }), + fonts: new t({ + tag: "fonts", + count: !0, + childXform: new i(), + $: { + "x14ac:knownFonts": 1 + } + }), + fills: new t({ + tag: "fills", + count: !0, + childXform: new n() + }), + borders: new t({ + tag: "borders", + count: !0, + childXform: new o() + }), + cellStyleXfs: new t({ + tag: "cellStyleXfs", + count: !0, + childXform: new O() + }), + cellXfs: new t({ + tag: "cellXfs", + count: !0, + childXform: new O({ + xfId: !0 + }) + }), + dxfs: new t({ + tag: "dxfs", + always: !0, + count: !0, + childXform: new P() + }), + // for style manager + numFmt: new p(), + font: new i(), + fill: new n(), + border: new o(), + style: new O({ + xfId: !0 + }), + cellStyles: R.STATIC_XFORMS.cellStyles, + tableStyles: R.STATIC_XFORMS.tableStyles, + extLst: R.STATIC_XFORMS.extLst + }, C && E.init(), E; + } + return b(R, [{ + key: "initIndex", + value: function() { + this.index = { + style: {}, + numFmt: {}, + numFmtNextId: 164, + // start custom format ids here + font: {}, + border: {}, + fill: {} + }; + } + }, { + key: "init", + value: function() { + this.model = { + styles: [], + numFmts: [], + fonts: [], + borders: [], + fills: [], + dxfs: [] + }, this.initIndex(), this._addBorder({}), this._addStyle({ + numFmtId: 0, + fontId: 0, + fillId: 0, + borderId: 0, + xfId: 0 + }), this._addFill({ + type: "pattern", + pattern: "none" + }), this._addFill({ + type: "pattern", + pattern: "gray125" + }), this.weakMap = /* @__PURE__ */ new WeakMap(); + } + }, { + key: "render", + value: function(E, A) { + A = A || this.model, E.openXml(c.StdDocAttributes), E.openNode("styleSheet", R.STYLESHEET_ATTRIBUTES), this.index ? (A.numFmts && A.numFmts.length && (E.openNode("numFmts", { + count: A.numFmts.length + }), A.numFmts.forEach(function(L) { + E.writeXml(L); + }), E.closeNode()), A.fonts.length || this._addFont({ + size: 11, + color: { + theme: 1 + }, + name: "Calibri", + family: 2, + scheme: "minor" + }), E.openNode("fonts", { + count: A.fonts.length, + "x14ac:knownFonts": 1 + }), A.fonts.forEach(function(L) { + E.writeXml(L); + }), E.closeNode(), E.openNode("fills", { + count: A.fills.length + }), A.fills.forEach(function(L) { + E.writeXml(L); + }), E.closeNode(), E.openNode("borders", { + count: A.borders.length + }), A.borders.forEach(function(L) { + E.writeXml(L); + }), E.closeNode(), this.map.cellStyleXfs.render(E, [{ + numFmtId: 0, + fontId: 0, + fillId: 0, + borderId: 0, + xfId: 0 + }]), E.openNode("cellXfs", { + count: A.styles.length + }), A.styles.forEach(function(L) { + E.writeXml(L); + }), E.closeNode()) : (this.map.numFmts.render(E, A.numFmts), this.map.fonts.render(E, A.fonts), this.map.fills.render(E, A.fills), this.map.borders.render(E, A.borders), this.map.cellStyleXfs.render(E, [{ + numFmtId: 0, + fontId: 0, + fillId: 0, + borderId: 0, + xfId: 0 + }]), this.map.cellXfs.render(E, A.styles)), R.STATIC_XFORMS.cellStyles.render(E), this.map.dxfs.render(E, A.dxfs), R.STATIC_XFORMS.tableStyles.render(E), R.STATIC_XFORMS.extLst.render(E), E.closeNode(); + } + }, { + key: "parseOpen", + value: function(E) { + if (this.parser) + return this.parser.parseOpen(E), !0; + switch (E.name) { + case "styleSheet": + return this.initIndex(), !0; + default: + return this.parser = this.map[E.name], this.parser && this.parser.parseOpen(E), !0; + } + } + }, { + key: "parseText", + value: function(E) { + this.parser && this.parser.parseText(E); + } + }, { + key: "parseClose", + value: function(E) { + var A = this; + if (this.parser) + return this.parser.parseClose(E) || (this.parser = void 0), !0; + switch (E) { + case "styleSheet": { + this.model = {}; + var L = function(U, D) { + D.model && D.model.length && (A.model[U] = D.model); + }; + if (L("numFmts", this.map.numFmts), L("fonts", this.map.fonts), L("fills", this.map.fills), L("borders", this.map.borders), L("styles", this.map.cellXfs), L("dxfs", this.map.dxfs), this.index = { + model: [], + numFmt: [] + }, this.model.numFmts) { + var $ = this.index.numFmt; + this.model.numFmts.forEach(function(W) { + $[W.id] = W.formatCode; + }); + } + return !1; + } + default: + return !0; + } + } + // add a cell's style model to the collection + // each style property is processed and cross-referenced, etc. + // the styleId is returned. Note: cellType is used when numFmt not defined + }, { + key: "addStyleModel", + value: function(E, A) { + if (!E) + return 0; + if (this.model.fonts.length || this._addFont({ + size: 11, + color: { + theme: 1 + }, + name: "Calibri", + family: 2, + scheme: "minor" + }), this.weakMap && this.weakMap.has(E)) + return this.weakMap.get(E); + var L = {}; + if (A = A || v.ValueType.Number, E.numFmt) + L.numFmtId = this._addNumFmtStr(E.numFmt); + else + switch (A) { + case v.ValueType.Number: + L.numFmtId = this._addNumFmtStr("General"); + break; + case v.ValueType.Date: + L.numFmtId = this._addNumFmtStr("mm-dd-yy"); + break; + } + E.font && (L.fontId = this._addFont(E.font)), E.border && (L.borderId = this._addBorder(E.border)), E.fill && (L.fillId = this._addFill(E.fill)), E.alignment && (L.alignment = E.alignment), E.protection && (L.protection = E.protection); + var $ = this._addStyle(L); + return this.weakMap && this.weakMap.set(E, $), $; + } + // given a styleId (i.e. s="n"), get the cell's style model + // objects are shared where possible. + }, { + key: "getStyleModel", + value: function(E) { + var A = this.model.styles[E]; + if (!A) + return null; + var L = this.index.model[E]; + if (L) + return L; + if (L = this.index.model[E] = {}, A.numFmtId) { + var $ = this.index.numFmt[A.numFmtId] || p.getDefaultFmtCode(A.numFmtId); + $ && (L.numFmt = $); + } + function W(U, D, B) { + if (B || B === 0) { + var j = D[B]; + j && (L[U] = j); + } + } + return W("font", this.model.fonts, A.fontId), W("border", this.model.borders, A.borderId), W("fill", this.model.fills, A.fillId), A.alignment && (L.alignment = A.alignment), A.protection && (L.protection = A.protection), L; + } + }, { + key: "addDxfStyle", + value: function(E) { + return this.model.dxfs.push(E), this.model.dxfs.length - 1; + } + }, { + key: "getDxfStyle", + value: function(E) { + return this.model.dxfs[E]; + } + // ========================================================================= + // Private Interface + }, { + key: "_addStyle", + value: function(E) { + var A = this.map.style.toXml(E), L = this.index.style[A]; + return L === void 0 && (L = this.index.style[A] = this.model.styles.length, this.model.styles.push(A)), L; + } + // ========================================================================= + // Number Formats + }, { + key: "_addNumFmtStr", + value: function(E) { + var A = p.getDefaultFmtId(E); + if (A !== void 0 || (A = this.index.numFmt[E], A !== void 0)) + return A; + A = this.index.numFmt[E] = F + this.model.numFmts.length; + var L = this.map.numFmt.toXml({ + id: A, + formatCode: E + }); + return this.model.numFmts.push(L), A; + } + // ========================================================================= + // Fonts + }, { + key: "_addFont", + value: function(E) { + var A = this.map.font.toXml(E), L = this.index.font[A]; + return L === void 0 && (L = this.index.font[A] = this.model.fonts.length, this.model.fonts.push(A)), L; + } + // ========================================================================= + // Borders + }, { + key: "_addBorder", + value: function(E) { + var A = this.map.border.toXml(E), L = this.index.border[A]; + return L === void 0 && (L = this.index.border[A] = this.model.borders.length, this.model.borders.push(A)), L; + } + // ========================================================================= + // Fills + }, { + key: "_addFill", + value: function(E) { + var A = this.map.fill.toXml(E), L = this.index.fill[A]; + return L === void 0 && (L = this.index.fill[A] = this.model.fills.length, this.model.fills.push(A)), L; + } + // ========================================================================= + }]), R; + }(a); + z.STYLESHEET_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", + "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", + "mc:Ignorable": "x14ac x16r2", + "xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac", + "xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" + }, z.STATIC_XFORMS = { + cellStyles: new r({ + tag: "cellStyles", + $: { + count: 1 + }, + c: [{ + tag: "cellStyle", + $: { + name: "Normal", + xfId: 0, + builtinId: 0 + } + }] + }), + dxfs: new r({ + tag: "dxfs", + $: { + count: 0 + } + }), + tableStyles: new r({ + tag: "tableStyles", + $: { + count: 0, + defaultTableStyle: "TableStyleMedium2", + defaultPivotStyle: "PivotStyleLight16" + } + }), + extLst: new r({ + tag: "extLst", + c: [{ + tag: "ext", + $: { + uri: "{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}", + "xmlns:x14": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" + }, + c: [{ + tag: "x14:slicerStyles", + $: { + defaultSlicerStyle: "SlicerStyleLight1" + } + }] + }, { + tag: "ext", + $: { + uri: "{9260A510-F301-46a8-8635-F512D64BE5F5}", + "xmlns:x15": "http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" + }, + c: [{ + tag: "x15:timelineStyles", + $: { + defaultTimelineStyle: "TimeSlicerStyleLight1" + } + }] + }] + }) + }; + var N = /* @__PURE__ */ function(M) { + w(R, M); + var I = y(R); + function R() { + var C; + return m(this, R), C = I.call(this), C.model = { + styles: [{ + numFmtId: 0, + fontId: 0, + fillId: 0, + borderId: 0, + xfId: 0 + }], + numFmts: [], + fonts: [{ + size: 11, + color: { + theme: 1 + }, + name: "Calibri", + family: 2, + scheme: "minor" + }], + borders: [{}], + fills: [{ + type: "pattern", + pattern: "none" + }, { + type: "pattern", + pattern: "gray125" + }] + }, C; + } + return b(R, [{ + key: "parseStream", + value: function(E) { + return E.autodrain(), Promise.resolve(); + } + // add a cell's style model to the collection + // each style property is processed and cross-referenced, etc. + // the styleId is returned. Note: cellType is used when numFmt not defined + }, { + key: "addStyleModel", + value: function(E, A) { + switch (A) { + case v.ValueType.Date: + return this.dateStyleId; + default: + return 0; + } + } + }, { + key: "getStyleModel", + // given a styleId (i.e. s="n"), get the cell's style model + // objects are shared where possible. + value: function() { + return {}; + } + }, { + key: "dateStyleId", + get: function() { + if (!this._dateStyleId) { + var E = { + numFmtId: p.getDefaultFmtId("mm-dd-yy") + }; + this._dateStyleId = this.model.styles.length, this.model.styles.push(E); + } + return this._dateStyleId; + } + }]), R; + }(z); + z.Mock = N, x.exports = z; + }, { "../../../doc/enums": 7, "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "../static-xform": 119, "./border-xform": 126, "./dxf-xform": 128, "./fill-xform": 129, "./font-xform": 130, "./numfmt-xform": 131, "./style-xform": 133 }], 135: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t(i) { + var n; + return m(this, t), n = r.call(this), n.model = i, n; + } + return b(t, [{ + key: "render", + value: function(n, o) { + if (o = o || this.model, o === !0) + n.leafNode("u"); + else { + var p = t.Attributes[o]; + p && n.leafNode("u", p); + } + } + }, { + key: "parseOpen", + value: function(n) { + n.name === "u" && (this.model = n.attributes.val || !0); + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "u"; + } + }]), t; + }(v); + c.Attributes = { + single: {}, + double: { + val: "double" + }, + singleAccounting: { + val: "singleAccounting" + }, + doubleAccounting: { + val: "doubleAccounting" + } + }, x.exports = c; + }, { "../base-xform": 31 }], 136: [function(e, x, _) { + function u(r) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(i) { + return typeof i; + } : u = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; + }, u(r); + } + function m(r, t) { + if (!(r instanceof t)) + throw new TypeError("Cannot call a class as a function"); + } + function g(r, t) { + for (var i = 0; i < t.length; i++) { + var n = t[i]; + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, n.key, n); + } + } + function b(r, t, i) { + return t && g(r.prototype, t), i && g(r, i), r; + } + function w(r, t) { + if (typeof t != "function" && t !== null) + throw new TypeError("Super expression must either be null or a function"); + r.prototype = Object.create(t && t.prototype, { constructor: { value: r, writable: !0, configurable: !0 } }), t && f(r, t); + } + function f(r, t) { + return f = Object.setPrototypeOf || function(n, o) { + return n.__proto__ = o, n; + }, f(r, t); + } + function y(r) { + var t = d(); + return function() { + var n = s(r), o; + if (t) { + var p = s(this).constructor; + o = Reflect.construct(n, arguments, p); + } else + o = n.apply(this, arguments); + return h(this, o); + }; + } + function h(r, t) { + return t && (u(t) === "object" || typeof t == "function") ? t : l(r); + } + function l(r) { + if (r === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return r; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (r) { + return !1; + } + } + function s(r) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, s(r); + } + var v = e("../base-xform"), c = e("./filter-column-xform"), a = /* @__PURE__ */ function(r) { + w(i, r); + var t = y(i); + function i() { + var n; + return m(this, i), n = t.call(this), n.map = { + filterColumn: new c() + }, n; + } + return b(i, [{ + key: "prepare", + value: function(o) { + var p = this; + o.columns.forEach(function(O, P) { + p.map.filterColumn.prepare(O, { + index: P + }); + }); + } + }, { + key: "render", + value: function(o, p) { + var O = this; + return o.openNode(this.tag, { + ref: p.autoFilterRef + }), p.columns.forEach(function(P) { + O.map.filterColumn.render(o, P); + }), o.closeNode(), !0; + } + }, { + key: "parseOpen", + value: function(o) { + if (this.parser) + return this.parser.parseOpen(o), !0; + switch (o.name) { + case this.tag: + return this.model = { + autoFilterRef: o.attributes.ref, + columns: [] + }, !0; + default: + if (this.parser = this.map[o.name], this.parser) + return this.parseOpen(o), !0; + throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(o))); + } + } + }, { + key: "parseText", + value: function(o) { + this.parser && this.parser.parseText(o); + } + }, { + key: "parseClose", + value: function(o) { + if (this.parser) + return this.parser.parseClose(o) || (this.model.columns.push(this.parser.model), this.parser = void 0), !0; + switch (o) { + case this.tag: + return !1; + default: + throw new Error("Unexpected xml node in parseClose: ".concat(o)); + } + } + }, { + key: "tag", + get: function() { + return "autoFilter"; + } + }]), i; + }(v); + x.exports = a; + }, { "../base-xform": 31, "./filter-column-xform": 137 }], 137: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "prepare", + value: function(n, o) { + n.colId = o.index.toString(); + } + }, { + key: "render", + value: function(n, o) { + return n.leafNode(this.tag, { + colId: o.colId, + hiddenButton: o.filterButton ? "0" : "1" + }), !0; + } + }, { + key: "parseOpen", + value: function(n) { + if (n.name === this.tag) { + var o = n.attributes; + return this.model = { + filterButton: o.hiddenButton === "0" + }, !0; + } + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "filterColumn"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 138: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "prepare", + value: function(n, o) { + n.id = o.index + 1; + } + }, { + key: "render", + value: function(n, o) { + return n.leafNode(this.tag, { + id: o.id.toString(), + name: o.name, + totalsRowLabel: o.totalsRowLabel, + totalsRowFunction: o.totalsRowFunction, + dxfId: o.dxfId + }), !0; + } + }, { + key: "parseOpen", + value: function(n) { + if (n.name === this.tag) { + var o = n.attributes; + return this.model = { + name: o.name, + totalsRowLabel: o.totalsRowLabel, + totalsRowFunction: o.totalsRowFunction, + dxfId: o.dxfId + }, !0; + } + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "tableColumn"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 139: [function(e, x, _) { + function u(a) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(t) { + return typeof t; + } : u = function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, u(a); + } + function m(a, r) { + if (!(a instanceof r)) + throw new TypeError("Cannot call a class as a function"); + } + function g(a, r) { + for (var t = 0; t < r.length; t++) { + var i = r[t]; + i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(a, i.key, i); + } + } + function b(a, r, t) { + return r && g(a.prototype, r), t && g(a, t), a; + } + function w(a, r) { + if (typeof r != "function" && r !== null) + throw new TypeError("Super expression must either be null or a function"); + a.prototype = Object.create(r && r.prototype, { constructor: { value: a, writable: !0, configurable: !0 } }), r && f(a, r); + } + function f(a, r) { + return f = Object.setPrototypeOf || function(i, n) { + return i.__proto__ = n, i; + }, f(a, r); + } + function y(a) { + var r = d(); + return function() { + var i = s(a), n; + if (r) { + var o = s(this).constructor; + n = Reflect.construct(i, arguments, o); + } else + n = i.apply(this, arguments); + return h(this, n); + }; + } + function h(a, r) { + return r && (u(r) === "object" || typeof r == "function") ? r : l(a); + } + function l(a) { + if (a === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return a; + } + function d() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (a) { + return !1; + } + } + function s(a) { + return s = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, s(a); + } + var v = e("../base-xform"), c = /* @__PURE__ */ function(a) { + w(t, a); + var r = y(t); + function t() { + return m(this, t), r.apply(this, arguments); + } + return b(t, [{ + key: "render", + value: function(n, o) { + return n.leafNode(this.tag, { + name: o.theme ? o.theme : void 0, + showFirstColumn: o.showFirstColumn ? "1" : "0", + showLastColumn: o.showLastColumn ? "1" : "0", + showRowStripes: o.showRowStripes ? "1" : "0", + showColumnStripes: o.showColumnStripes ? "1" : "0" + }), !0; + } + }, { + key: "parseOpen", + value: function(n) { + if (n.name === this.tag) { + var o = n.attributes; + return this.model = { + theme: o.name ? o.name : null, + showFirstColumn: o.showFirstColumn === "1", + showLastColumn: o.showLastColumn === "1", + showRowStripes: o.showRowStripes === "1", + showColumnStripes: o.showColumnStripes === "1" + }, !0; + } + return !1; + } + }, { + key: "parseText", + value: function() { + } + }, { + key: "parseClose", + value: function() { + return !1; + } + }, { + key: "tag", + get: function() { + return "tableStyleInfo"; + } + }]), t; + }(v); + x.exports = c; + }, { "../base-xform": 31 }], 140: [function(e, x, _) { + function u(P) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(z) { + return typeof z; + } : u = function(z) { + return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z; + }, u(P); + } + function m(P, F) { + var z = Object.keys(P); + if (Object.getOwnPropertySymbols) { + var N = Object.getOwnPropertySymbols(P); + F && (N = N.filter(function(M) { + return Object.getOwnPropertyDescriptor(P, M).enumerable; + })), z.push.apply(z, N); + } + return z; + } + function g(P) { + for (var F = 1; F < arguments.length; F++) { + var z = arguments[F] != null ? arguments[F] : {}; + F % 2 ? m(Object(z), !0).forEach(function(N) { + b(P, N, z[N]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(P, Object.getOwnPropertyDescriptors(z)) : m(Object(z)).forEach(function(N) { + Object.defineProperty(P, N, Object.getOwnPropertyDescriptor(z, N)); + }); + } + return P; + } + function b(P, F, z) { + return F in P ? Object.defineProperty(P, F, { value: z, enumerable: !0, configurable: !0, writable: !0 }) : P[F] = z, P; + } + function w(P, F) { + if (!(P instanceof F)) + throw new TypeError("Cannot call a class as a function"); + } + function f(P, F) { + for (var z = 0; z < F.length; z++) { + var N = F[z]; + N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(P, N.key, N); + } + } + function y(P, F, z) { + return F && f(P.prototype, F), z && f(P, z), P; + } + function h(P, F) { + if (typeof F != "function" && F !== null) + throw new TypeError("Super expression must either be null or a function"); + P.prototype = Object.create(F && F.prototype, { constructor: { value: P, writable: !0, configurable: !0 } }), F && l(P, F); + } + function l(P, F) { + return l = Object.setPrototypeOf || function(N, M) { + return N.__proto__ = M, N; + }, l(P, F); + } + function d(P) { + var F = c(); + return function() { + var N = a(P), M; + if (F) { + var I = a(this).constructor; + M = Reflect.construct(N, arguments, I); + } else + M = N.apply(this, arguments); + return s(this, M); + }; + } + function s(P, F) { + return F && (u(F) === "object" || typeof F == "function") ? F : v(P); + } + function v(P) { + if (P === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return P; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (P) { + return !1; + } + } + function a(P) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(z) { + return z.__proto__ || Object.getPrototypeOf(z); + }, a(P); + } + var r = e("../../../utils/xml-stream"), t = e("../base-xform"), i = e("../list-xform"), n = e("./auto-filter-xform"), o = e("./table-column-xform"), p = e("./table-style-info-xform"), O = /* @__PURE__ */ function(P) { + h(z, P); + var F = d(z); + function z() { + var N; + return w(this, z), N = F.call(this), N.map = { + autoFilter: new n(), + tableColumns: new i({ + tag: "tableColumns", + count: !0, + empty: !0, + childXform: new o() + }), + tableStyleInfo: new p() + }, N; + } + return y(z, [{ + key: "prepare", + value: function(M, I) { + this.map.autoFilter.prepare(M), this.map.tableColumns.prepare(M.columns, I); + } + }, { + key: "render", + value: function(M, I) { + M.openXml(r.StdDocAttributes), M.openNode(this.tag, g(g({}, z.TABLE_ATTRIBUTES), {}, { + id: I.id, + name: I.name, + displayName: I.displayName || I.name, + ref: I.tableRef, + totalsRowCount: I.totalsRow ? "1" : void 0, + totalsRowShown: I.totalsRow ? void 0 : "1", + headerRowCount: I.headerRow ? "1" : "0" + })), this.map.autoFilter.render(M, I), this.map.tableColumns.render(M, I.columns), this.map.tableStyleInfo.render(M, I.style), M.closeNode(); + } + }, { + key: "parseOpen", + value: function(M) { + if (this.parser) + return this.parser.parseOpen(M), !0; + var I = M.name, R = M.attributes; + switch (I) { + case this.tag: + this.reset(), this.model = { + name: R.name, + displayName: R.displayName || R.name, + tableRef: R.ref, + totalsRow: R.totalsRowCount === "1", + headerRow: R.headerRowCount === "1" + }; + break; + default: + this.parser = this.map[M.name], this.parser && this.parser.parseOpen(M); + break; + } + return !0; + } + }, { + key: "parseText", + value: function(M) { + this.parser && this.parser.parseText(M); + } + }, { + key: "parseClose", + value: function(M) { + var I = this; + if (this.parser) + return this.parser.parseClose(M) || (this.parser = void 0), !0; + switch (M) { + case this.tag: + return this.model.columns = this.map.tableColumns.model, this.map.autoFilter.model && (this.model.autoFilterRef = this.map.autoFilter.model.autoFilterRef, this.map.autoFilter.model.columns.forEach(function(R, C) { + I.model.columns[C].filterButton = R.filterButton; + })), this.model.style = this.map.tableStyleInfo.model, !1; + default: + return !0; + } + } + }, { + key: "reconcile", + value: function(M, I) { + M.columns.forEach(function(R) { + R.dxfId !== void 0 && (R.style = I.styles.getDxfStyle(R.dxfId)); + }); + } + }, { + key: "tag", + get: function() { + return "table"; + } + }]), z; + }(t); + O.TABLE_ATTRIBUTES = { + xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main", + "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", + "mc:Ignorable": "xr xr3", + "xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision", + "xmlns:xr3": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" + // 'xr:uid': '{00000000-000C-0000-FFFF-FFFF00000000}', + }, x.exports = O; + }, { "../../../utils/xml-stream": 27, "../base-xform": 31, "../list-xform": 70, "./auto-filter-xform": 136, "./table-column-xform": 138, "./table-style-info-xform": 139 }], 141: [function(e, x, _) { + (function(u, m) { + function g(W, U, D, B, j, V, re) { + try { + var ee = W[V](re), ce = ee.value; + } catch (ve) { + D(ve); + return; + } + ee.done ? U(ce) : Promise.resolve(ce).then(B, j); + } + function b(W) { + return function() { + var U = this, D = arguments; + return new Promise(function(B, j) { + var V = W.apply(U, D); + function re(ce) { + g(V, B, j, re, ee, "next", ce); + } + function ee(ce) { + g(V, B, j, re, ee, "throw", ce); + } + re(void 0); + }); + }; + } + function w(W, U) { + if (!(W instanceof U)) + throw new TypeError("Cannot call a class as a function"); + } + function f(W, U) { + for (var D = 0; D < U.length; D++) { + var B = U[D]; + B.enumerable = B.enumerable || !1, B.configurable = !0, "value" in B && (B.writable = !0), Object.defineProperty(W, B.key, B); + } + } + function y(W, U, D) { + return U && f(W.prototype, U), D && f(W, D), W; + } + function h(W) { + var U; + if (typeof Symbol != "undefined" && (Symbol.asyncIterator && (U = W[Symbol.asyncIterator], U != null) || Symbol.iterator && (U = W[Symbol.iterator], U != null))) + return U.call(W); + throw new TypeError("Object is not async iterable"); + } + var l = e("fs"), d = e("jszip"), s = e("readable-stream"), v = s.PassThrough, c = e("../utils/zip-stream"), a = e("../utils/stream-buf"), r = e("../utils/utils"), t = e("../utils/xml-stream"), i = e("../utils/browser-buffer-decode"), n = i.bufferToString, o = e("./xform/style/styles-xform"), p = e("./xform/core/core-xform"), O = e("./xform/strings/shared-strings-xform"), P = e("./xform/core/relationships-xform"), F = e("./xform/core/content-types-xform"), z = e("./xform/core/app-xform"), N = e("./xform/book/workbook-xform"), M = e("./xform/sheet/worksheet-xform"), I = e("./xform/drawing/drawing-xform"), R = e("./xform/table/table-xform"), C = e("./xform/comment/comments-xform"), E = e("./xform/comment/vml-notes-xform"), A = e("./xml/theme1.js"); + function L(W, U) { + return new Promise(function(D, B) { + l.readFile(W, U, function(j, V) { + j ? B(j) : D(V); + }); + }); + } + var $ = /* @__PURE__ */ function() { + function W(U) { + w(this, W), this.workbook = U; + } + return y(W, [{ + key: "readFile", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee; + return regeneratorRuntime.wrap(function(ve) { + for (; ; ) + switch (ve.prev = ve.next) { + case 0: + return ve.next = 2, r.fs.exists(j); + case 2: + if (ve.sent) { + ve.next = 4; + break; + } + throw new Error("File not found: ".concat(j)); + case 4: + return re = l.createReadStream(j), ve.prev = 5, ve.next = 8, this.read(re, V); + case 8: + return ee = ve.sent, re.close(), ve.abrupt("return", ee); + case 13: + throw ve.prev = 13, ve.t0 = ve.catch(5), re.close(), ve.t0; + case 17: + case "end": + return ve.stop(); + } + }, B, this, [[5, 13]]); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "parseRels", + value: function(D) { + var B = new P(); + return B.parseStream(D); + } + }, { + key: "parseWorkbook", + value: function(D) { + var B = new N(); + return B.parseStream(D); + } + }, { + key: "parseSharedStrings", + value: function(D) { + var B = new O(); + return B.parseStream(D); + } + }, { + key: "reconcile", + value: function(D, B) { + var j = new N(), V = new M(B), re = new I(), ee = new R(); + j.reconcile(D); + var ce = { + media: D.media, + mediaIndex: D.mediaIndex + }; + Object.keys(D.drawings).forEach(function(oe) { + var J = D.drawings[oe], Q = D.drawingRels[oe]; + Q && (ce.rels = Q.reduce(function(he, ke) { + return he[ke.Id] = ke, he; + }, {}), (J.anchors || []).forEach(function(he) { + var ke = he.picture && he.picture.hyperlinks; + ke && ce.rels[ke.rId] && (ke.hyperlink = ce.rels[ke.rId].Target, delete ke.rId); + }), re.reconcile(J, ce)); + }); + var ve = { + styles: D.styles + }; + Object.values(D.tables).forEach(function(oe) { + ee.reconcile(oe, ve); + }); + var ge = { + styles: D.styles, + sharedStrings: D.sharedStrings, + media: D.media, + mediaIndex: D.mediaIndex, + date1904: D.properties && D.properties.date1904, + drawings: D.drawings, + comments: D.comments, + tables: D.tables, + vmlDrawings: D.vmlDrawings + }; + D.worksheets.forEach(function(oe) { + oe.relationships = D.worksheetRels[oe.sheetNo], V.reconcile(oe, ge); + }), delete D.worksheetHash, delete D.worksheetRels, delete D.globalRels, delete D.sharedStrings, delete D.workbookRels, delete D.sheetDefs, delete D.styles, delete D.mediaIndex, delete D.drawings, delete D.drawingRels, delete D.vmlDrawings; + } + }, { + key: "_processWorksheetEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re, ee, ce) { + var ve, ge; + return regeneratorRuntime.wrap(function(J) { + for (; ; ) + switch (J.prev = J.next) { + case 0: + return ve = new M(ee), J.next = 3, ve.parseStream(j); + case 3: + ge = J.sent, ge.sheetNo = re, V.worksheetHash[ce] = ge, V.worksheets.push(ge); + case 7: + case "end": + return J.stop(); + } + }, B); + })); + function D(B, j, V, re, ee) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processCommentEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new C(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.comments["../".concat(re, ".xml")] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processTableEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new R(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.tables["../tables/".concat(re, ".xml")] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processWorksheetRelsEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new P(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.worksheetRels[re] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processMediaEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce, ve; + return regeneratorRuntime.wrap(function(oe) { + for (; ; ) + switch (oe.prev = oe.next) { + case 0: + if (ee = re.lastIndexOf("."), !(ee >= 1)) { + oe.next = 6; + break; + } + return ce = re.substr(ee + 1), ve = re.substr(0, ee), oe.next = 6, new Promise(function(J, Q) { + var he = new a(); + he.on("finish", function() { + V.mediaIndex[re] = V.media.length, V.mediaIndex[ve] = V.media.length; + var ke = { + type: "image", + name: ve, + extension: ce, + buffer: he.toBuffer() + }; + V.media.push(ke), J(); + }), j.on("error", function(ke) { + Q(ke); + }), j.pipe(he); + }); + case 6: + case "end": + return oe.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processDrawingEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new I(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.drawings[re] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processDrawingRelsEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new P(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.drawingRels[re] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processVmlDrawingEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + var ee, ce; + return regeneratorRuntime.wrap(function(ge) { + for (; ; ) + switch (ge.prev = ge.next) { + case 0: + return ee = new E(), ge.next = 3, ee.parseStream(j); + case 3: + ce = ge.sent, V.vmlDrawings["../drawings/".concat(re, ".vml")] = ce; + case 5: + case "end": + return ge.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_processThemeEntry", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V, re) { + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + return ce.next = 2, new Promise(function(ve, ge) { + var oe = new a(); + j.on("error", ge), oe.on("error", ge), oe.on("finish", function() { + V.themes[re] = oe.read().toString(), ve(); + }), j.pipe(oe); + }); + case 2: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B, j, V) { + return U.apply(this, arguments); + } + return D; + }() + /** + * @deprecated since version 4.0. You should use `#read` instead. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md + */ + }, { + key: "createInputStream", + value: function() { + throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md"); + } + }, { + key: "read", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee, ce, ve, ge, oe, J, Q; + return regeneratorRuntime.wrap(function(ke) { + for (; ; ) + switch (ke.prev = ke.next) { + case 0: + !j[Symbol.asyncIterator] && j.pipe && (j = j.pipe(new v())), re = [], ee = !0, ce = !1, ke.prev = 4, ge = h(j); + case 6: + return ke.next = 8, ge.next(); + case 8: + return oe = ke.sent, ee = oe.done, ke.next = 12, oe.value; + case 12: + if (J = ke.sent, ee) { + ke.next = 19; + break; + } + Q = J, re.push(Q); + case 16: + ee = !0, ke.next = 6; + break; + case 19: + ke.next = 25; + break; + case 21: + ke.prev = 21, ke.t0 = ke.catch(4), ce = !0, ve = ke.t0; + case 25: + if (ke.prev = 25, ke.prev = 26, !(!ee && ge.return != null)) { + ke.next = 30; + break; + } + return ke.next = 30, ge.return(); + case 30: + if (ke.prev = 30, !ce) { + ke.next = 33; + break; + } + throw ve; + case 33: + return ke.finish(30); + case 34: + return ke.finish(25); + case 35: + return ke.abrupt("return", this.load(m.concat(re), V)); + case 36: + case "end": + return ke.stop(); + } + }, B, this, [[4, 21, 25, 35], [26, , 30, 34]]); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "load", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee, ce, ve, ge, oe, J, Q, he, ke, ne, se, Ce, q, G, Y, fe; + return regeneratorRuntime.wrap(function(_e) { + for (; ; ) + switch (_e.prev = _e.next) { + case 0: + return V && V.base64 ? re = m.from(j.toString(), "base64") : re = j, ee = { + worksheets: [], + worksheetHash: {}, + worksheetRels: [], + themes: {}, + media: [], + mediaIndex: {}, + drawings: {}, + drawingRels: {}, + comments: {}, + tables: {}, + vmlDrawings: {} + }, _e.next = 4, d.loadAsync(re); + case 4: + ce = _e.sent, ve = 0, ge = Object.values(ce.files); + case 6: + if (!(ve < ge.length)) { + _e.next = 126; + break; + } + if (oe = ge[ve], oe.dir) { + _e.next = 123; + break; + } + if (J = oe.name, J[0] === "/" && (J = J.substr(1)), Q = void 0, !(J.match(/xl\/media\//) || // themes are not parsed as stream + J.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))) { + _e.next = 21; + break; + } + return Q = new v(), _e.t0 = Q, _e.next = 17, oe.async("nodebuffer"); + case 17: + _e.t1 = _e.sent, _e.t0.write.call(_e.t0, _e.t1), _e.next = 36; + break; + case 21: + if (Q = new v({ + writableObjectMode: !0, + readableObjectMode: !0 + }), he = void 0, !u.browser) { + _e.next = 31; + break; + } + return _e.t2 = n, _e.next = 27, oe.async("nodebuffer"); + case 27: + _e.t3 = _e.sent, he = (0, _e.t2)(_e.t3), _e.next = 34; + break; + case 31: + return _e.next = 33, oe.async("string"); + case 33: + he = _e.sent; + case 34: + for (ke = 16384, ne = 0; ne < he.length; ne += ke) + Q.write(he.substring(ne, ne + ke)); + case 36: + Q.end(), _e.t4 = J, _e.next = _e.t4 === "_rels/.rels" ? 40 : _e.t4 === "xl/workbook.xml" ? 44 : _e.t4 === "xl/_rels/workbook.xml.rels" ? 53 : _e.t4 === "xl/sharedStrings.xml" ? 57 : _e.t4 === "xl/styles.xml" ? 61 : _e.t4 === "docProps/app.xml" ? 65 : _e.t4 === "docProps/core.xml" ? 72 : 78; + break; + case 40: + return _e.next = 42, this.parseRels(Q); + case 42: + return ee.globalRels = _e.sent, _e.abrupt("break", 123); + case 44: + return _e.next = 46, this.parseWorkbook(Q); + case 46: + return se = _e.sent, ee.sheets = se.sheets, ee.definedNames = se.definedNames, ee.views = se.views, ee.properties = se.properties, ee.calcProperties = se.calcProperties, _e.abrupt("break", 123); + case 53: + return _e.next = 55, this.parseRels(Q); + case 55: + return ee.workbookRels = _e.sent, _e.abrupt("break", 123); + case 57: + return ee.sharedStrings = new O(), _e.next = 60, ee.sharedStrings.parseStream(Q); + case 60: + return _e.abrupt("break", 123); + case 61: + return ee.styles = new o(), _e.next = 64, ee.styles.parseStream(Q); + case 64: + return _e.abrupt("break", 123); + case 65: + return Ce = new z(), _e.next = 68, Ce.parseStream(Q); + case 68: + return q = _e.sent, ee.company = q.company, ee.manager = q.manager, _e.abrupt("break", 123); + case 72: + return G = new p(), _e.next = 75, G.parseStream(Q); + case 75: + return Y = _e.sent, Object.assign(ee, Y), _e.abrupt("break", 123); + case 78: + if (fe = J.match(/xl\/worksheets\/sheet(\d+)[.]xml/), !fe) { + _e.next = 83; + break; + } + return _e.next = 82, this._processWorksheetEntry(Q, ee, fe[1], V, J); + case 82: + return _e.abrupt("break", 123); + case 83: + if (fe = J.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/), !fe) { + _e.next = 88; + break; + } + return _e.next = 87, this._processWorksheetRelsEntry(Q, ee, fe[1]); + case 87: + return _e.abrupt("break", 123); + case 88: + if (fe = J.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/), !fe) { + _e.next = 93; + break; + } + return _e.next = 92, this._processThemeEntry(Q, ee, fe[1]); + case 92: + return _e.abrupt("break", 123); + case 93: + if (fe = J.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/), !fe) { + _e.next = 98; + break; + } + return _e.next = 97, this._processMediaEntry(Q, ee, fe[1]); + case 97: + return _e.abrupt("break", 123); + case 98: + if (fe = J.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/), !fe) { + _e.next = 103; + break; + } + return _e.next = 102, this._processDrawingEntry(Q, ee, fe[1]); + case 102: + return _e.abrupt("break", 123); + case 103: + if (fe = J.match(/xl\/(comments\d+)[.]xml/), !fe) { + _e.next = 108; + break; + } + return _e.next = 107, this._processCommentEntry(Q, ee, fe[1]); + case 107: + return _e.abrupt("break", 123); + case 108: + if (fe = J.match(/xl\/tables\/(table\d+)[.]xml/), !fe) { + _e.next = 113; + break; + } + return _e.next = 112, this._processTableEntry(Q, ee, fe[1]); + case 112: + return _e.abrupt("break", 123); + case 113: + if (fe = J.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/), !fe) { + _e.next = 118; + break; + } + return _e.next = 117, this._processDrawingRelsEntry(Q, ee, fe[1]); + case 117: + return _e.abrupt("break", 123); + case 118: + if (fe = J.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/), !fe) { + _e.next = 123; + break; + } + return _e.next = 122, this._processVmlDrawingEntry(Q, ee, fe[1]); + case 122: + return _e.abrupt("break", 123); + case 123: + ve++, _e.next = 6; + break; + case 126: + return this.reconcile(ee, V), this.workbook.model = ee, _e.abrupt("return", this.workbook); + case 129: + case "end": + return _e.stop(); + } + }, B, this); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + // ========================================================================= + // Write + }, { + key: "addMedia", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + return regeneratorRuntime.wrap(function(ee) { + for (; ; ) + switch (ee.prev = ee.next) { + case 0: + return ee.next = 2, Promise.all(V.media.map(/* @__PURE__ */ function() { + var ce = b(/* @__PURE__ */ regeneratorRuntime.mark(function ve(ge) { + var oe, J, Q, he; + return regeneratorRuntime.wrap(function(ne) { + for (; ; ) + switch (ne.prev = ne.next) { + case 0: + if (ge.type !== "image") { + ne.next = 13; + break; + } + if (oe = "xl/media/".concat(ge.name, ".").concat(ge.extension), !ge.filename) { + ne.next = 7; + break; + } + return ne.next = 5, L(ge.filename); + case 5: + return J = ne.sent, ne.abrupt("return", j.append(J, { + name: oe + })); + case 7: + if (!ge.buffer) { + ne.next = 9; + break; + } + return ne.abrupt("return", j.append(ge.buffer, { + name: oe + })); + case 9: + if (!ge.base64) { + ne.next = 13; + break; + } + return Q = ge.base64, he = Q.substring(Q.indexOf(",") + 1), ne.abrupt("return", j.append(he, { + name: oe, + base64: !0 + })); + case 13: + throw new Error("Unsupported media"); + case 14: + case "end": + return ne.stop(); + } + }, ve); + })); + return function(ve) { + return ce.apply(this, arguments); + }; + }())); + case 2: + case "end": + return ee.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addDrawings", + value: function(D, B) { + var j = new I(), V = new P(); + B.worksheets.forEach(function(re) { + var ee = re.drawing; + if (ee) { + j.prepare(ee, {}); + var ce = j.toXml(ee); + D.append(ce, { + name: "xl/drawings/".concat(ee.name, ".xml") + }), ce = V.toXml(ee.rels), D.append(ce, { + name: "xl/drawings/_rels/".concat(ee.name, ".xml.rels") + }); + } + }); + } + }, { + key: "addTables", + value: function(D, B) { + var j = new R(); + B.worksheets.forEach(function(V) { + var re = V.tables; + re.forEach(function(ee) { + j.prepare(ee, {}); + var ce = j.toXml(ee); + D.append(ce, { + name: "xl/tables/".concat(ee.target) + }); + }); + }); + } + }, { + key: "addContentTypes", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee; + return regeneratorRuntime.wrap(function(ve) { + for (; ; ) + switch (ve.prev = ve.next) { + case 0: + re = new F(), ee = re.toXml(V), j.append(ee, { + name: "[Content_Types].xml" + }); + case 3: + case "end": + return ve.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addApp", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee; + return regeneratorRuntime.wrap(function(ve) { + for (; ; ) + switch (ve.prev = ve.next) { + case 0: + re = new z(), ee = re.toXml(V), j.append(ee, { + name: "docProps/app.xml" + }); + case 3: + case "end": + return ve.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addCore", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re; + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + re = new p(), j.append(re.toXml(V), { + name: "docProps/core.xml" + }); + case 2: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addThemes", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re; + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + re = V.themes || { + theme1: A + }, Object.keys(re).forEach(function(ve) { + var ge = re[ve], oe = "xl/theme/".concat(ve, ".xml"); + j.append(ge, { + name: oe + }); + }); + case 2: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addOfficeRels", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j) { + var V, re; + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + V = new P(), re = V.toXml([{ + Id: "rId1", + Type: W.RelType.OfficeDocument, + Target: "xl/workbook.xml" + }, { + Id: "rId2", + Type: W.RelType.CoreProperties, + Target: "docProps/core.xml" + }, { + Id: "rId3", + Type: W.RelType.ExtenderProperties, + Target: "docProps/app.xml" + }]), j.append(re, { + name: "_rels/.rels" + }); + case 3: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addWorkbookRels", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee, ce, ve; + return regeneratorRuntime.wrap(function(oe) { + for (; ; ) + switch (oe.prev = oe.next) { + case 0: + re = 1, ee = [{ + Id: "rId".concat(re++), + Type: W.RelType.Styles, + Target: "styles.xml" + }, { + Id: "rId".concat(re++), + Type: W.RelType.Theme, + Target: "theme/theme1.xml" + }], V.sharedStrings.count && ee.push({ + Id: "rId".concat(re++), + Type: W.RelType.SharedStrings, + Target: "sharedStrings.xml" + }), V.worksheets.forEach(function(J) { + J.rId = "rId".concat(re++), ee.push({ + Id: J.rId, + Type: W.RelType.Worksheet, + Target: "worksheets/sheet".concat(J.id, ".xml") + }); + }), ce = new P(), ve = ce.toXml(ee), j.append(ve, { + name: "xl/_rels/workbook.xml.rels" + }); + case 7: + case "end": + return oe.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addSharedStrings", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + return regeneratorRuntime.wrap(function(ee) { + for (; ; ) + switch (ee.prev = ee.next) { + case 0: + V.sharedStrings && V.sharedStrings.count && j.append(V.sharedStrings.xml, { + name: "xl/sharedStrings.xml" + }); + case 1: + case "end": + return ee.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addStyles", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re; + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + re = V.styles.xml, re && j.append(re, { + name: "xl/styles.xml" + }); + case 2: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addWorkbook", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re; + return regeneratorRuntime.wrap(function(ce) { + for (; ; ) + switch (ce.prev = ce.next) { + case 0: + re = new N(), j.append(re.toXml(V), { + name: "xl/workbook.xml" + }); + case 2: + case "end": + return ce.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "addWorksheets", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee, ce, ve; + return regeneratorRuntime.wrap(function(oe) { + for (; ; ) + switch (oe.prev = oe.next) { + case 0: + re = new M(), ee = new P(), ce = new C(), ve = new E(), V.worksheets.forEach(function(J) { + var Q = new t(); + re.render(Q, J), j.append(Q.xml, { + name: "xl/worksheets/sheet".concat(J.id, ".xml") + }), J.rels && J.rels.length && (Q = new t(), ee.render(Q, J.rels), j.append(Q.xml, { + name: "xl/worksheets/_rels/sheet".concat(J.id, ".xml.rels") + })), J.comments.length > 0 && (Q = new t(), ce.render(Q, J), j.append(Q.xml, { + name: "xl/comments".concat(J.id, ".xml") + }), Q = new t(), ve.render(Q, J), j.append(Q.xml, { + name: "xl/drawings/vmlDrawing".concat(J.id, ".vml") + })); + }); + case 5: + case "end": + return oe.stop(); + } + }, B); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "_finalize", + value: function(D) { + var B = this; + return new Promise(function(j, V) { + D.on("finish", function() { + j(B); + }), D.on("error", V), D.finalize(); + }); + } + }, { + key: "prepareModel", + value: function(D, B) { + D.creator = D.creator || "ExcelJS", D.lastModifiedBy = D.lastModifiedBy || "ExcelJS", D.created = D.created || /* @__PURE__ */ new Date(), D.modified = D.modified || /* @__PURE__ */ new Date(), D.useSharedStrings = B.useSharedStrings !== void 0 ? B.useSharedStrings : !0, D.useStyles = B.useStyles !== void 0 ? B.useStyles : !0, D.sharedStrings = new O(), D.styles = D.useStyles ? new o(!0) : new o.Mock(); + var j = new N(), V = new M(); + j.prepare(D); + var re = { + sharedStrings: D.sharedStrings, + styles: D.styles, + date1904: D.properties.date1904, + drawingsCount: 0, + media: D.media + }; + re.drawings = D.drawings = [], re.commentRefs = D.commentRefs = []; + var ee = 0; + D.tables = [], D.worksheets.forEach(function(ce) { + ce.tables.forEach(function(ve) { + ee++, ve.target = "table".concat(ee, ".xml"), ve.id = ee, D.tables.push(ve); + }), V.prepare(ce, re); + }); + } + }, { + key: "write", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j, V) { + var re, ee; + return regeneratorRuntime.wrap(function(ve) { + for (; ; ) + switch (ve.prev = ve.next) { + case 0: + return V = V || {}, re = this.workbook.model, ee = new c.ZipWriter(V.zip), ee.pipe(j), this.prepareModel(re, V), ve.next = 7, this.addContentTypes(ee, re); + case 7: + return ve.next = 9, this.addOfficeRels(ee, re); + case 9: + return ve.next = 11, this.addWorkbookRels(ee, re); + case 11: + return ve.next = 13, this.addWorksheets(ee, re); + case 13: + return ve.next = 15, this.addSharedStrings(ee, re); + case 15: + return ve.next = 17, this.addDrawings(ee, re); + case 17: + return ve.next = 19, this.addTables(ee, re); + case 19: + return ve.next = 21, Promise.all([this.addThemes(ee, re), this.addStyles(ee, re)]); + case 21: + return ve.next = 23, this.addMedia(ee, re); + case 23: + return ve.next = 25, Promise.all([this.addApp(ee, re), this.addCore(ee, re)]); + case 25: + return ve.next = 27, this.addWorkbook(ee, re); + case 27: + return ve.abrupt("return", this._finalize(ee)); + case 28: + case "end": + return ve.stop(); + } + }, B, this); + })); + function D(B, j) { + return U.apply(this, arguments); + } + return D; + }() + }, { + key: "writeFile", + value: function(D, B) { + var j = this, V = l.createWriteStream(D); + return new Promise(function(re, ee) { + V.on("finish", function() { + re(); + }), V.on("error", function(ce) { + ee(ce); + }), j.write(V, B).then(function() { + V.end(); + }); + }); + } + }, { + key: "writeBuffer", + value: function() { + var U = b(/* @__PURE__ */ regeneratorRuntime.mark(function B(j) { + var V; + return regeneratorRuntime.wrap(function(ee) { + for (; ; ) + switch (ee.prev = ee.next) { + case 0: + return V = new a(), ee.next = 3, this.write(V, j); + case 3: + return ee.abrupt("return", V.read()); + case 4: + case "end": + return ee.stop(); + } + }, B, this); + })); + function D(B) { + return U.apply(this, arguments); + } + return D; + }() + }]), W; + }(); + $.RelType = e("./rel-type"), x.exports = $; + }).call(this, e("_process"), e("buffer").Buffer); + }, { "../utils/browser-buffer-decode": 16, "../utils/stream-buf": 23, "../utils/utils": 26, "../utils/xml-stream": 27, "../utils/zip-stream": 28, "./rel-type": 30, "./xform/book/workbook-xform": 37, "./xform/comment/comments-xform": 39, "./xform/comment/vml-notes-xform": 44, "./xform/core/app-xform": 50, "./xform/core/content-types-xform": 51, "./xform/core/core-xform": 52, "./xform/core/relationships-xform": 54, "./xform/drawing/drawing-xform": 61, "./xform/sheet/worksheet-xform": 114, "./xform/strings/shared-strings-xform": 123, "./xform/style/styles-xform": 134, "./xform/table/table-xform": 140, "./xml/theme1.js": 142, _process: 467, buffer: 216, fs: 215, jszip: 399, "readable-stream": 491 }], 142: [function(e, x, _) { + x.exports = ` + `; + }, {}], 143: [function(e, x, _) { + (function(u) { + function m(t) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(n) { + return typeof n; + } : m = function(n) { + return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + }, m(t); + } + function g(t, i) { + if (!(t instanceof i)) + throw new TypeError("Cannot call a class as a function"); + } + function b(t, i) { + for (var n = 0; n < i.length; n++) { + var o = i[n]; + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o); + } + } + function w(t, i, n) { + return i && b(t.prototype, i), n && b(t, n), t; + } + function f(t, i) { + if (typeof i != "function" && i !== null) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(i && i.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), i && y(t, i); + } + function y(t, i) { + return y = Object.setPrototypeOf || function(o, p) { + return o.__proto__ = p, o; + }, y(t, i); + } + function h(t) { + var i = s(); + return function() { + var o = v(t), p; + if (i) { + var O = v(this).constructor; + p = Reflect.construct(o, arguments, O); + } else + p = o.apply(this, arguments); + return l(this, p); + }; + } + function l(t, i) { + return i && (m(i) === "object" || typeof i == "function") ? i : d(t); + } + function d(t) { + if (t === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t; + } + function s() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (t) { + return !1; + } + } + function v(t) { + return v = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { + return n.__proto__ || Object.getPrototypeOf(n); + }, v(t); + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.CsvFormatterStream = void 0; + var c = e("stream"), a = e("./formatter"), r = /* @__PURE__ */ function(t) { + f(n, t); + var i = h(n); + function n(o) { + var p; + return g(this, n), p = i.call(this, { + writableObjectMode: o.objectMode + }), p.hasWrittenBOM = !1, p.formatterOptions = o, p.rowFormatter = new a.RowFormatter(o), p.hasWrittenBOM = !o.writeBOM, p; + } + return w(n, [{ + key: "transform", + value: function(p) { + return this.rowFormatter.rowTransform = p, this; + } + }, { + key: "_transform", + value: function(p, O, P) { + var F = this, z = !1; + try { + this.hasWrittenBOM || (this.push(this.formatterOptions.BOM), this.hasWrittenBOM = !0), this.rowFormatter.format(p, function(N, M) { + return N ? (z = !0, P(N)) : (M && M.forEach(function(I) { + F.push(u.from(I, "utf8")); + }), z = !0, P()); + }); + } catch (N) { + if (z) + throw N; + P(N); + } + } + }, { + key: "_flush", + value: function(p) { + var O = this; + this.rowFormatter.finish(function(P, F) { + return P ? p(P) : (F && F.forEach(function(z) { + O.push(u.from(z, "utf8")); + }), p()); + }); + } + }]), n; + }(c.Transform); + _.CsvFormatterStream = r; + }).call(this, e("buffer").Buffer); + }, { "./formatter": 147, buffer: 216, stream: 506 }], 144: [function(e, x, _) { + function u(g, b) { + if (!(g instanceof b)) + throw new TypeError("Cannot call a class as a function"); + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.FormatterOptions = void 0; + var m = function g() { + var b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + u(this, g); + var w; + this.objectMode = !0, this.delimiter = ",", this.rowDelimiter = ` +`, this.quote = '"', this.escape = this.quote, this.quoteColumns = !1, this.quoteHeaders = this.quoteColumns, this.headers = null, this.includeEndRowDelimiter = !1, this.writeBOM = !1, this.BOM = "\uFEFF", this.alwaysWriteHeaders = !1, Object.assign(this, b || {}), typeof (b == null ? void 0 : b.quoteHeaders) == "undefined" && (this.quoteHeaders = this.quoteColumns), (b == null ? void 0 : b.quote) === !0 ? this.quote = '"' : (b == null ? void 0 : b.quote) === !1 && (this.quote = ""), typeof (b == null ? void 0 : b.escape) != "string" && (this.escape = this.quote), this.shouldWriteHeaders = !!this.headers && ((w = b.writeHeaders) !== null && w !== void 0 ? w : !0), this.headers = Array.isArray(this.headers) ? this.headers : null, this.escapedQuote = "".concat(this.escape).concat(this.quote); + }; + _.FormatterOptions = m; + }, {}], 145: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + var b = function(l) { + return l && l.__esModule ? l : { + default: l + }; + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.FieldFormatter = void 0; + var w = b(e("lodash.isboolean")), f = b(e("lodash.isnil")), y = b(e("lodash.escaperegexp")), h = /* @__PURE__ */ function() { + function l(d) { + u(this, l), this._headers = null, this.formatterOptions = d, d.headers !== null && (this.headers = d.headers), this.REPLACE_REGEXP = new RegExp(d.quote, "g"); + var s = "[".concat(d.delimiter).concat(y.default(d.rowDelimiter), `|\r| +']`); + this.ESCAPE_REGEXP = new RegExp(s); + } + return g(l, [{ + key: "shouldQuote", + value: function(s, v) { + var c = v ? this.formatterOptions.quoteHeaders : this.formatterOptions.quoteColumns; + return w.default(c) ? c : Array.isArray(c) ? c[s] : this._headers !== null ? c[this._headers[s]] : !1; + } + }, { + key: "format", + value: function(s, v, c) { + var a = "".concat(f.default(s) ? "" : s).replace(/\0/g, ""), r = this.formatterOptions; + if (r.quote !== "") { + var t = a.indexOf(r.quote) !== -1; + if (t) + return this.quoteField(a.replace(this.REPLACE_REGEXP, r.escapedQuote)); + } + var i = a.search(this.ESCAPE_REGEXP) !== -1; + return i || this.shouldQuote(v, c) ? this.quoteField(a) : a; + } + }, { + key: "quoteField", + value: function(s) { + var v = this.formatterOptions.quote; + return "".concat(v).concat(s).concat(v); + } + }, { + key: "headers", + set: function(s) { + this._headers = s; + } + }]), l; + }(); + _.FieldFormatter = h; + }, { "lodash.escaperegexp": 426, "lodash.isboolean": 428, "lodash.isnil": 431 }], 146: [function(e, x, _) { + function u(d, s) { + if (!(d instanceof s)) + throw new TypeError("Cannot call a class as a function"); + } + function m(d, s) { + for (var v = 0; v < s.length; v++) { + var c = s[v]; + c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c); + } + } + function g(d, s, v) { + return s && m(d.prototype, s), v && m(d, v), d; + } + var b = function(d) { + return d && d.__esModule ? d : { + default: d + }; + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.RowFormatter = void 0; + var w = b(e("lodash.isfunction")), f = b(e("lodash.isequal")), y = e("./FieldFormatter"), h = e("../types"), l = /* @__PURE__ */ function() { + function d(s) { + u(this, d), this.rowCount = 0, this.formatterOptions = s, this.fieldFormatter = new y.FieldFormatter(s), this.headers = s.headers, this.shouldWriteHeaders = s.shouldWriteHeaders, this.hasWrittenHeaders = !1, this.headers !== null && (this.fieldFormatter.headers = this.headers), s.transform && (this.rowTransform = s.transform); + } + return g(d, [{ + key: "format", + value: function(v, c) { + var a = this; + this.callTransformer(v, function(r, t) { + if (r) + return c(r); + if (!v) + return c(null); + var i = []; + if (t) { + var n = a.checkHeaders(t), o = n.shouldFormatColumns, p = n.headers; + if (a.shouldWriteHeaders && p && !a.hasWrittenHeaders && (i.push(a.formatColumns(p, !0)), a.hasWrittenHeaders = !0), o) { + var O = a.gatherColumns(t); + i.push(a.formatColumns(O, !1)); + } + } + return c(null, i); + }); + } + }, { + key: "finish", + value: function(v) { + var c = []; + if (this.formatterOptions.alwaysWriteHeaders && this.rowCount === 0) { + if (!this.headers) + return v(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided.")); + c.push(this.formatColumns(this.headers, !0)); + } + return this.formatterOptions.includeEndRowDelimiter && c.push(this.formatterOptions.rowDelimiter), v(null, c); + } + // check if we need to write header return true if we should also write a row + // could be false if headers is true and the header row(first item) is passed in + }, { + key: "checkHeaders", + value: function(v) { + if (this.headers) + return { + shouldFormatColumns: !0, + headers: this.headers + }; + var c = d.gatherHeaders(v); + return this.headers = c, this.fieldFormatter.headers = c, this.shouldWriteHeaders ? { + shouldFormatColumns: !f.default(c, v), + headers: c + } : { + shouldFormatColumns: !0, + headers: null + }; + } + // todo change this method to unknown[] + }, { + key: "gatherColumns", + value: function(v) { + if (this.headers === null) + throw new Error("Headers is currently null"); + return Array.isArray(v) ? d.isHashArray(v) ? this.headers.map(function(c, a) { + var r = v[a]; + return r ? r[1] : ""; + }) : this.headers.map(function(c, a) { + return v[a]; + }) : this.headers.map(function(c) { + return v[c]; + }); + } + }, { + key: "callTransformer", + value: function(v, c) { + return this._rowTransform ? this._rowTransform(v, c) : c(null, v); + } + }, { + key: "formatColumns", + value: function(v, c) { + var a = this, r = v.map(function(i, n) { + return a.fieldFormatter.format(i, n, c); + }).join(this.formatterOptions.delimiter), t = this.rowCount; + return this.rowCount += 1, t ? [this.formatterOptions.rowDelimiter, r].join("") : r; + } + }, { + key: "rowTransform", + set: function(v) { + if (!w.default(v)) + throw new TypeError("The transform should be a function"); + this._rowTransform = d.createTransform(v); + } + }], [{ + key: "isHashArray", + value: function(v) { + return Array.isArray(v) ? Array.isArray(v[0]) && v[0].length === 2 : !1; + } + // get headers from a row item + }, { + key: "gatherHeaders", + value: function(v) { + return d.isHashArray(v) ? v.map(function(c) { + return c[0]; + }) : Array.isArray(v) ? v : Object.keys(v); + } + }, { + key: "createTransform", + value: function(v) { + return h.isSyncTransform(v) ? function(c, a) { + var r = null; + try { + r = v(c); + } catch (t) { + return a(t); + } + return a(null, r); + } : function(c, a) { + v(c, a); + }; + } + }]), d; + }(); + _.RowFormatter = l; + }, { "../types": 149, "./FieldFormatter": 145, "lodash.isequal": 429, "lodash.isfunction": 430 }], 147: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var u = e("./RowFormatter"); + Object.defineProperty(_, "RowFormatter", { + enumerable: !0, + get: function() { + return u.RowFormatter; + } + }); + var m = e("./FieldFormatter"); + Object.defineProperty(_, "FieldFormatter", { + enumerable: !0, + get: function() { + return m.FieldFormatter; + } + }); + }, { "./FieldFormatter": 145, "./RowFormatter": 146 }], 148: [function(e, x, _) { + (function(u) { + var m = Object.create ? function(c, a, r, t) { + t === void 0 && (t = r), Object.defineProperty(c, t, { + enumerable: !0, + get: function() { + return a[r]; + } + }); + } : function(c, a, r, t) { + t === void 0 && (t = r), c[t] = a[r]; + }, g = Object.create ? function(c, a) { + Object.defineProperty(c, "default", { + enumerable: !0, + value: a + }); + } : function(c, a) { + c.default = a; + }, b = function(c) { + if (c && c.__esModule) + return c; + var a = {}; + if (c != null) + for (var r in c) + r !== "default" && Object.hasOwnProperty.call(c, r) && m(a, c, r); + return g(a, c), a; + }, w = function(c, a) { + for (var r in c) + r !== "default" && !a.hasOwnProperty(r) && m(a, c, r); + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.writeToPath = _.writeToString = _.writeToBuffer = _.writeToStream = _.write = _.format = void 0; + var f = e("util"), y = e("stream"), h = b(e("fs")), l = e("./FormatterOptions"), d = e("./CsvFormatterStream"); + w(e("./types"), _); + var s = e("./CsvFormatterStream"); + Object.defineProperty(_, "CsvFormatterStream", { + enumerable: !0, + get: function() { + return s.CsvFormatterStream; + } + }); + var v = e("./FormatterOptions"); + Object.defineProperty(_, "FormatterOptions", { + enumerable: !0, + get: function() { + return v.FormatterOptions; + } + }), _.format = function(c) { + return new d.CsvFormatterStream(new l.FormatterOptions(c)); + }, _.write = function(c, a) { + var r = _.format(a), t = f.promisify(function(i, n) { + r.write(i, void 0, n); + }); + return c.reduce(function(i, n) { + return i.then(function() { + return t(n); + }); + }, Promise.resolve()).then(function() { + return r.end(); + }).catch(function(i) { + r.emit("error", i); + }), r; + }, _.writeToStream = function(c, a, r) { + return _.write(a, r).pipe(c); + }, _.writeToBuffer = function(c) { + var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], t = new y.Writable({ + write: function(n, o, p) { + r.push(n), p(); + } + }); + return new Promise(function(i, n) { + t.on("error", n).on("finish", function() { + return i(u.concat(r)); + }), _.write(c, a).pipe(t); + }); + }, _.writeToString = function(c, a) { + return _.writeToBuffer(c, a).then(function(r) { + return r.toString(); + }); + }, _.writeToPath = function(c, a, r) { + var t = h.createWriteStream(c, { + encoding: "utf8" + }); + return _.write(a, r).pipe(t); + }; + }).call(this, e("buffer").Buffer); + }, { "./CsvFormatterStream": 143, "./FormatterOptions": 144, "./types": 149, buffer: 216, fs: 215, stream: 506, util: 525 }], 149: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.isSyncTransform = void 0, _.isSyncTransform = function(u) { + return u.length === 1; + }; + }, {}], 150: [function(e, x, _) { + (function(u) { + function m(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(P) { + return typeof P; + } : m = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, m(p); + } + function g(p, O) { + if (!(p instanceof O)) + throw new TypeError("Cannot call a class as a function"); + } + function b(p, O) { + for (var P = 0; P < O.length; P++) { + var F = O[P]; + F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(p, F.key, F); + } + } + function w(p, O, P) { + return O && b(p.prototype, O), P && b(p, P), p; + } + function f(p, O, P) { + return typeof Reflect != "undefined" && Reflect.get ? f = Reflect.get : f = function(z, N, M) { + var I = y(z, N); + if (I) { + var R = Object.getOwnPropertyDescriptor(I, N); + return R.get ? R.get.call(M) : R.value; + } + }, f(p, O, P || p); + } + function y(p, O) { + for (; !Object.prototype.hasOwnProperty.call(p, O) && (p = a(p), p !== null); ) + ; + return p; + } + function h(p, O) { + if (typeof O != "function" && O !== null) + throw new TypeError("Super expression must either be null or a function"); + p.prototype = Object.create(O && O.prototype, { constructor: { value: p, writable: !0, configurable: !0 } }), O && l(p, O); + } + function l(p, O) { + return l = Object.setPrototypeOf || function(F, z) { + return F.__proto__ = z, F; + }, l(p, O); + } + function d(p) { + var O = c(); + return function() { + var F = a(p), z; + if (O) { + var N = a(this).constructor; + z = Reflect.construct(F, arguments, N); + } else + z = F.apply(this, arguments); + return s(this, z); + }; + } + function s(p, O) { + return O && (m(O) === "object" || typeof O == "function") ? O : v(p); + } + function v(p) { + if (p === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return p; + } + function c() { + if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) + return !1; + if (typeof Proxy == "function") + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })), !0; + } catch (p) { + return !1; + } + } + function a(p) { + return a = Object.setPrototypeOf ? Object.getPrototypeOf : function(P) { + return P.__proto__ || Object.getPrototypeOf(P); + }, a(p); + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.CsvParserStream = void 0; + var r = e("string_decoder"), t = e("stream"), i = e("./transforms"), n = e("./parser"), o = /* @__PURE__ */ function(p) { + h(P, p); + var O = d(P); + function P(F) { + var z; + return g(this, P), z = O.call(this, { + objectMode: F.objectMode + }), z.lines = "", z.rowCount = 0, z.parsedRowCount = 0, z.parsedLineCount = 0, z.endEmitted = !1, z.headersEmitted = !1, z.parserOptions = F, z.parser = new n.Parser(F), z.headerTransformer = new i.HeaderTransformer(F), z.decoder = new r.StringDecoder(F.encoding), z.rowTransformerValidator = new i.RowTransformerValidator(), z; + } + return w(P, [{ + key: "transform", + value: function(z) { + return this.rowTransformerValidator.rowTransform = z, this; + } + }, { + key: "validate", + value: function(z) { + return this.rowTransformerValidator.rowValidator = z, this; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + }, { + key: "emit", + value: function(z) { + var N; + if (z === "end") + return this.endEmitted || (this.endEmitted = !0, f(a(P.prototype), "emit", this).call(this, "end", this.rowCount)), !1; + for (var M = arguments.length, I = new Array(M > 1 ? M - 1 : 0), R = 1; R < M; R++) + I[R - 1] = arguments[R]; + return (N = f(a(P.prototype), "emit", this)).call.apply(N, [this, z].concat(I)); + } + }, { + key: "_transform", + value: function(z, N, M) { + if (this.hasHitRowLimit) + return M(); + try { + var I = this.lines, R = I + this.decoder.write(z), C = this.parse(R, !0); + return this.processRows(C, M); + } catch (E) { + return M(E); + } + } + }, { + key: "_flush", + value: function(z) { + if (this.hasHitRowLimit) + return z(); + try { + var N = this.lines + this.decoder.end(), M = this.parse(N, !1); + return this.processRows(M, z); + } catch (I) { + return z(I); + } + } + }, { + key: "parse", + value: function(z, N) { + if (!z) + return []; + var M = this.parser.parse(z, N), I = M.line, R = M.rows; + return this.lines = I, R; + } + }, { + key: "processRows", + value: function(z, N) { + var M = this, I = z.length, R = function C(E) { + var A = function(U) { + if (U) + return N(U); + if (E % 100 === 0) { + u(function() { + return C(E + 1); + }); + return; + } + return C(E + 1); + }; + if (M.checkAndEmitHeaders(), E >= I || M.hasHitRowLimit) + return N(); + if (M.parsedLineCount += 1, M.shouldSkipLine) + return A(); + var L = z[E]; + M.rowCount += 1, M.parsedRowCount += 1; + var $ = M.rowCount; + return M.transformRow(L, function(W, U) { + if (W) + return M.rowCount -= 1, A(W); + if (!U) + return A(new Error("expected transform result")); + if (!U.isValid) + M.emit("data-invalid", U.row, $, U.reason); + else if (U.row) + return M.pushRow(U.row, A); + return A(); + }); + }; + R(0); + } + }, { + key: "transformRow", + value: function(z, N) { + var M = this; + try { + this.headerTransformer.transform(z, function(I, R) { + return I ? N(I) : R ? R.isValid ? R.row ? M.shouldEmitRows ? M.rowTransformerValidator.transformAndValidate(R.row, N) : M.skipRow(N) : (M.rowCount -= 1, M.parsedRowCount -= 1, N(null, { + row: null, + isValid: !0 + })) : M.shouldEmitRows ? N(null, { + isValid: !1, + row: z + }) : M.skipRow(N) : N(new Error("Expected result from header transform")); + }); + } catch (I) { + N(I); + } + } + }, { + key: "checkAndEmitHeaders", + value: function() { + !this.headersEmitted && this.headerTransformer.headers && (this.headersEmitted = !0, this.emit("headers", this.headerTransformer.headers)); + } + }, { + key: "skipRow", + value: function(z) { + return this.rowCount -= 1, z(null, { + row: null, + isValid: !0 + }); + } + }, { + key: "pushRow", + value: function(z, N) { + try { + this.parserOptions.objectMode ? this.push(z) : this.push(JSON.stringify(z)), N(); + } catch (M) { + N(M); + } + } + }, { + key: "hasHitRowLimit", + get: function() { + return this.parserOptions.limitRows && this.rowCount >= this.parserOptions.maxRows; + } + }, { + key: "shouldEmitRows", + get: function() { + return this.parsedRowCount > this.parserOptions.skipRows; + } + }, { + key: "shouldSkipLine", + get: function() { + return this.parsedLineCount <= this.parserOptions.skipLines; + } + }]), P; + }(t.Transform); + _.CsvParserStream = o; + }).call(this, e("timers").setImmediate); + }, { "./parser": 162, "./transforms": 165, stream: 506, string_decoder: 520, timers: 521 }], 151: [function(e, x, _) { + function u(f, y) { + if (!(f instanceof y)) + throw new TypeError("Cannot call a class as a function"); + } + var m = function(f) { + return f && f.__esModule ? f : { + default: f + }; + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.ParserOptions = void 0; + var g = m(e("lodash.escaperegexp")), b = m(e("lodash.isnil")), w = function f(y) { + u(this, f); + var h; + if (this.objectMode = !0, this.delimiter = ",", this.ignoreEmpty = !1, this.quote = '"', this.escape = null, this.escapeChar = this.quote, this.comment = null, this.supportsComments = !1, this.ltrim = !1, this.rtrim = !1, this.trim = !1, this.headers = null, this.renameHeaders = !1, this.strictColumnHandling = !1, this.discardUnmappedColumns = !1, this.carriageReturn = "\r", this.encoding = "utf8", this.limitRows = !1, this.maxRows = 0, this.skipLines = 0, this.skipRows = 0, Object.assign(this, y || {}), this.delimiter.length > 1) + throw new Error("delimiter option must be one character long"); + this.escapedDelimiter = g.default(this.delimiter), this.escapeChar = (h = this.escape) !== null && h !== void 0 ? h : this.quote, this.supportsComments = !b.default(this.comment), this.NEXT_TOKEN_REGEXP = new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter, ")")), this.maxRows > 0 && (this.limitRows = !0); + }; + _.ParserOptions = w; + }, { "lodash.escaperegexp": 426, "lodash.isnil": 431 }], 152: [function(e, x, _) { + var u = Object.create ? function(s, v, c, a) { + a === void 0 && (a = c), Object.defineProperty(s, a, { + enumerable: !0, + get: function() { + return v[c]; + } + }); + } : function(s, v, c, a) { + a === void 0 && (a = c), s[a] = v[c]; + }, m = Object.create ? function(s, v) { + Object.defineProperty(s, "default", { + enumerable: !0, + value: v + }); + } : function(s, v) { + s.default = v; + }, g = function(s) { + if (s && s.__esModule) + return s; + var v = {}; + if (s != null) + for (var c in s) + c !== "default" && Object.hasOwnProperty.call(s, c) && u(v, s, c); + return m(v, s), v; + }, b = function(s, v) { + for (var c in s) + c !== "default" && !v.hasOwnProperty(c) && u(v, s, c); + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.parseString = _.parseFile = _.parseStream = _.parse = void 0; + var w = g(e("fs")), f = e("stream"), y = e("./ParserOptions"), h = e("./CsvParserStream"); + b(e("./types"), _); + var l = e("./CsvParserStream"); + Object.defineProperty(_, "CsvParserStream", { + enumerable: !0, + get: function() { + return l.CsvParserStream; + } + }); + var d = e("./ParserOptions"); + Object.defineProperty(_, "ParserOptions", { + enumerable: !0, + get: function() { + return d.ParserOptions; + } + }), _.parse = function(s) { + return new h.CsvParserStream(new y.ParserOptions(s)); + }, _.parseStream = function(s, v) { + return s.pipe(new h.CsvParserStream(new y.ParserOptions(v))); + }, _.parseFile = function(s) { + var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return w.createReadStream(s).pipe(new h.CsvParserStream(new y.ParserOptions(v))); + }, _.parseString = function(s, v) { + var c = new f.Readable(); + return c.push(s), c.push(null), c.pipe(new h.CsvParserStream(new y.ParserOptions(v))); + }; + }, { "./CsvParserStream": 150, "./ParserOptions": 151, "./types": 166, fs: 215, stream: 506 }], 153: [function(e, x, _) { + function u(l, d) { + if (!(l instanceof d)) + throw new TypeError("Cannot call a class as a function"); + } + function m(l, d) { + for (var s = 0; s < d.length; s++) { + var v = d[s]; + v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(l, v.key, v); + } + } + function g(l, d, s) { + return d && m(l.prototype, d), s && m(l, s), l; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.Parser = void 0; + var b = e("./Scanner"), w = e("./RowParser"), f = e("./Token"), y = /^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/, h = /* @__PURE__ */ function() { + function l(d) { + u(this, l), this.parserOptions = d, this.rowParser = new w.RowParser(this.parserOptions); + } + return g(l, [{ + key: "parse", + value: function(s, v) { + var c = new b.Scanner({ + line: l.removeBOM(s), + parserOptions: this.parserOptions, + hasMoreData: v + }); + return this.parserOptions.supportsComments ? this.parseWithComments(c) : this.parseWithoutComments(c); + } + }, { + key: "parseWithoutComments", + value: function(s) { + for (var v = [], c = !0; c; ) + c = this.parseRow(s, v); + return { + line: s.line, + rows: v + }; + } + }, { + key: "parseWithComments", + value: function(s) { + for (var v = this.parserOptions, c = [], a = s.nextCharacterToken; a !== null; a = s.nextCharacterToken) + if (f.Token.isTokenComment(a, v)) { + var r = s.advancePastLine(); + if (r === null) + return { + line: s.lineFromCursor, + rows: c + }; + if (!s.hasMoreCharacters) + return { + line: s.lineFromCursor, + rows: c + }; + s.truncateToCursor(); + } else if (!this.parseRow(s, c)) + break; + return { + line: s.line, + rows: c + }; + } + }, { + key: "parseRow", + value: function(s, v) { + var c = s.nextNonSpaceToken; + if (!c) + return !1; + var a = this.rowParser.parse(s); + return a === null ? !1 : (this.parserOptions.ignoreEmpty && y.test(a.join("")) || v.push(a), !0); + } + }], [{ + key: "removeBOM", + value: function(s) { + return s && s.charCodeAt(0) === 65279 ? s.slice(1) : s; + } + }]), l; + }(); + _.Parser = h; + }, { "./RowParser": 154, "./Scanner": 155, "./Token": 156 }], 154: [function(e, x, _) { + function u(s, v) { + if (!(s instanceof v)) + throw new TypeError("Cannot call a class as a function"); + } + function m(s, v) { + for (var c = 0; c < v.length; c++) { + var a = v[c]; + a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(s, a.key, a); + } + } + function g(s, v, c) { + return v && m(s.prototype, v), c && m(s, c), s; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.RowParser = void 0; + var b = e("./column"), w = e("./Token"), f = w.Token, y = f.isTokenRowDelimiter, h = f.isTokenCarriageReturn, l = f.isTokenDelimiter, d = /* @__PURE__ */ function() { + function s(v) { + u(this, s), this.parserOptions = v, this.columnParser = new b.ColumnParser(v); + } + return g(s, [{ + key: "parse", + value: function(c) { + for (var a = this.parserOptions, r = c.hasMoreData, t = c, i = [], n = this.getStartToken(t, i); n; ) { + if (y(n)) + return t.advancePastToken(n), !t.hasMoreCharacters && h(n, a) && r ? null : (t.truncateToCursor(), i); + if (!this.shouldSkipColumnParse(t, n, i)) { + var o = this.columnParser.parse(t); + if (o === null) + return null; + i.push(o); + } + n = t.nextNonSpaceToken; + } + return r ? null : (t.truncateToCursor(), i); + } + }, { + key: "getStartToken", + value: function(c, a) { + var r = c.nextNonSpaceToken; + return r !== null && l(r, this.parserOptions) ? (a.push(""), c.nextNonSpaceToken) : r; + } + }, { + key: "shouldSkipColumnParse", + value: function(c, a, r) { + var t = this.parserOptions; + if (l(a, t)) { + c.advancePastToken(a); + var i = c.nextCharacterToken; + if (!c.hasMoreCharacters || i !== null && y(i) || i !== null && l(i, t)) + return r.push(""), !0; + } + return !1; + } + }]), s; + }(); + _.RowParser = d; + }, { "./Token": 156, "./column": 161 }], 155: [function(e, x, _) { + function u(y, h) { + if (!(y instanceof h)) + throw new TypeError("Cannot call a class as a function"); + } + function m(y, h) { + for (var l = 0; l < h.length; l++) { + var d = h[l]; + d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(y, d.key, d); + } + } + function g(y, h, l) { + return h && m(y.prototype, h), l && m(y, l), y; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.Scanner = void 0; + var b = e("./Token"), w = /((?:\r\n)|\n|\r)/, f = /* @__PURE__ */ function() { + function y(h) { + u(this, y), this.cursor = 0, this.line = h.line, this.lineLength = this.line.length, this.parserOptions = h.parserOptions, this.hasMoreData = h.hasMoreData, this.cursor = h.cursor || 0; + } + return g(y, [{ + key: "advancePastLine", + value: function() { + var l = w.exec(this.lineFromCursor); + return l ? (this.cursor += (l.index || 0) + l[0].length, this) : this.hasMoreData ? null : (this.cursor = this.lineLength, this); + } + }, { + key: "advanceTo", + value: function(l) { + return this.cursor = l, this; + } + }, { + key: "advanceToToken", + value: function(l) { + return this.cursor = l.startCursor, this; + } + }, { + key: "advancePastToken", + value: function(l) { + return this.cursor = l.endCursor + 1, this; + } + }, { + key: "truncateToCursor", + value: function() { + return this.line = this.lineFromCursor, this.lineLength = this.line.length, this.cursor = 0, this; + } + }, { + key: "hasMoreCharacters", + get: function() { + return this.lineLength > this.cursor; + } + }, { + key: "nextNonSpaceToken", + get: function() { + var l = this.lineFromCursor, d = this.parserOptions.NEXT_TOKEN_REGEXP; + if (l.search(d) === -1) + return null; + var s = d.exec(l); + if (s == null) + return null; + var v = s[1], c = this.cursor + (s.index || 0); + return new b.Token({ + token: v, + startCursor: c, + endCursor: c + v.length - 1 + }); + } + }, { + key: "nextCharacterToken", + get: function() { + var l = this.cursor, d = this.lineLength; + return d <= l ? null : new b.Token({ + token: this.line[l], + startCursor: l, + endCursor: l + }); + } + }, { + key: "lineFromCursor", + get: function() { + return this.line.substr(this.cursor); + } + }]), y; + }(); + _.Scanner = f; + }, { "./Token": 156 }], 156: [function(e, x, _) { + function u(w, f) { + if (!(w instanceof f)) + throw new TypeError("Cannot call a class as a function"); + } + function m(w, f) { + for (var y = 0; y < f.length; y++) { + var h = f[y]; + h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(w, h.key, h); + } + } + function g(w, f, y) { + return f && m(w.prototype, f), y && m(w, y), w; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.Token = void 0; + var b = /* @__PURE__ */ function() { + function w(f) { + u(this, w), this.token = f.token, this.startCursor = f.startCursor, this.endCursor = f.endCursor; + } + return g(w, null, [{ + key: "isTokenRowDelimiter", + value: function(y) { + var h = y.token; + return h === "\r" || h === ` +` || h === `\r +`; + } + }, { + key: "isTokenCarriageReturn", + value: function(y, h) { + return y.token === h.carriageReturn; + } + }, { + key: "isTokenComment", + value: function(y, h) { + return h.supportsComments && !!y && y.token === h.comment; + } + }, { + key: "isTokenEscapeCharacter", + value: function(y, h) { + return y.token === h.escapeChar; + } + }, { + key: "isTokenQuote", + value: function(y, h) { + return y.token === h.quote; + } + }, { + key: "isTokenDelimiter", + value: function(y, h) { + return y.token === h.delimiter; + } + }]), w; + }(); + _.Token = b; + }, {}], 157: [function(e, x, _) { + function u(g, b) { + if (!(g instanceof b)) + throw new TypeError("Cannot call a class as a function"); + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.ColumnFormatter = void 0; + var m = function g(b) { + u(this, g), b.trim ? this.format = function(w) { + return w.trim(); + } : b.ltrim ? this.format = function(w) { + return w.trimLeft(); + } : b.rtrim ? this.format = function(w) { + return w.trimRight(); + } : this.format = function(w) { + return w; + }; + }; + _.ColumnFormatter = m; + }, {}], 158: [function(e, x, _) { + function u(h, l) { + if (!(h instanceof l)) + throw new TypeError("Cannot call a class as a function"); + } + function m(h, l) { + for (var d = 0; d < l.length; d++) { + var s = l[d]; + s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(h, s.key, s); + } + } + function g(h, l, d) { + return l && m(h.prototype, l), d && m(h, d), h; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.ColumnParser = void 0; + var b = e("./NonQuotedColumnParser"), w = e("./QuotedColumnParser"), f = e("../Token"), y = /* @__PURE__ */ function() { + function h(l) { + u(this, h), this.parserOptions = l, this.quotedColumnParser = new w.QuotedColumnParser(l), this.nonQuotedColumnParser = new b.NonQuotedColumnParser(l); + } + return g(h, [{ + key: "parse", + value: function(d) { + var s = d.nextNonSpaceToken; + return s !== null && f.Token.isTokenQuote(s, this.parserOptions) ? (d.advanceToToken(s), this.quotedColumnParser.parse(d)) : this.nonQuotedColumnParser.parse(d); + } + }]), h; + }(); + _.ColumnParser = y; + }, { "../Token": 156, "./NonQuotedColumnParser": 159, "./QuotedColumnParser": 160 }], 159: [function(e, x, _) { + function u(d, s) { + if (!(d instanceof s)) + throw new TypeError("Cannot call a class as a function"); + } + function m(d, s) { + for (var v = 0; v < s.length; v++) { + var c = s[v]; + c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c); + } + } + function g(d, s, v) { + return s && m(d.prototype, s), v && m(d, v), d; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.NonQuotedColumnParser = void 0; + var b = e("./ColumnFormatter"), w = e("../Token"), f = w.Token, y = f.isTokenDelimiter, h = f.isTokenRowDelimiter, l = /* @__PURE__ */ function() { + function d(s) { + u(this, d), this.parserOptions = s, this.columnFormatter = new b.ColumnFormatter(s); + } + return g(d, [{ + key: "parse", + value: function(v) { + if (!v.hasMoreCharacters) + return null; + for (var c = this.parserOptions, a = [], r = v.nextCharacterToken; r && !(y(r, c) || h(r)); r = v.nextCharacterToken) + a.push(r.token), v.advancePastToken(r); + return this.columnFormatter.format(a.join("")); + } + }]), d; + }(); + _.NonQuotedColumnParser = l; + }, { "../Token": 156, "./ColumnFormatter": 157 }], 160: [function(e, x, _) { + function u(v, c) { + if (!(v instanceof c)) + throw new TypeError("Cannot call a class as a function"); + } + function m(v, c) { + for (var a = 0; a < c.length; a++) { + var r = c[a]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(v, r.key, r); + } + } + function g(v, c, a) { + return c && m(v.prototype, c), a && m(v, a), v; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.QuotedColumnParser = void 0; + var b = e("./ColumnFormatter"), w = e("../Token"), f = w.Token, y = f.isTokenDelimiter, h = f.isTokenRowDelimiter, l = f.isTokenEscapeCharacter, d = f.isTokenQuote, s = /* @__PURE__ */ function() { + function v(c) { + u(this, v), this.parserOptions = c, this.columnFormatter = new b.ColumnFormatter(c); + } + return g(v, [{ + key: "parse", + value: function(a) { + if (!a.hasMoreCharacters) + return null; + var r = a.cursor, t = this.gatherDataBetweenQuotes(a), i = t.foundClosingQuote, n = t.col; + if (!i) { + if (a.advanceTo(r), !a.hasMoreData) + throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote || "", "' in line: at '").concat(a.lineFromCursor.replace(/[\r\n]/g, "\\n'"), "'")); + return null; + } + return this.checkForMalformedColumn(a), n; + } + }, { + key: "gatherDataBetweenQuotes", + value: function(a) { + for (var r = this.parserOptions, t = !1, i = !1, n = [], o = a.nextCharacterToken; !i && o !== null; o = a.nextCharacterToken) { + var p = d(o, r); + if (!t && p) + t = !0; + else if (t) + if (l(o, r)) { + a.advancePastToken(o); + var O = a.nextCharacterToken; + O !== null && (d(O, r) || l(O, r)) ? (n.push(O.token), o = O) : p ? i = !0 : n.push(o.token); + } else + p ? i = !0 : n.push(o.token); + a.advancePastToken(o); + } + return { + col: this.columnFormatter.format(n.join("")), + foundClosingQuote: i + }; + } + }, { + key: "checkForMalformedColumn", + value: function(a) { + var r = this.parserOptions, t = a.nextNonSpaceToken; + if (t) { + var i = y(t, r), n = h(t); + if (!(i || n)) { + var o = a.lineFromCursor.substr(0, 10).replace(/[\r\n]/g, "\\n'"); + throw new Error("Parse Error: expected: '".concat(r.escapedDelimiter, "' OR new line got: '").concat(t.token, "'. at '").concat(o)); + } + a.advanceToToken(t); + } else + a.hasMoreData || a.advancePastLine(); + } + }]), v; + }(); + _.QuotedColumnParser = s; + }, { "../Token": 156, "./ColumnFormatter": 157 }], 161: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var u = e("./ColumnParser"); + Object.defineProperty(_, "ColumnParser", { + enumerable: !0, + get: function() { + return u.ColumnParser; + } + }); + var m = e("./NonQuotedColumnParser"); + Object.defineProperty(_, "NonQuotedColumnParser", { + enumerable: !0, + get: function() { + return m.NonQuotedColumnParser; + } + }); + var g = e("./QuotedColumnParser"); + Object.defineProperty(_, "QuotedColumnParser", { + enumerable: !0, + get: function() { + return g.QuotedColumnParser; + } + }); + var b = e("./ColumnFormatter"); + Object.defineProperty(_, "ColumnFormatter", { + enumerable: !0, + get: function() { + return b.ColumnFormatter; + } + }); + }, { "./ColumnFormatter": 157, "./ColumnParser": 158, "./NonQuotedColumnParser": 159, "./QuotedColumnParser": 160 }], 162: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var u = e("./Parser"); + Object.defineProperty(_, "Parser", { + enumerable: !0, + get: function() { + return u.Parser; + } + }); + var m = e("./RowParser"); + Object.defineProperty(_, "RowParser", { + enumerable: !0, + get: function() { + return m.RowParser; + } + }); + var g = e("./Scanner"); + Object.defineProperty(_, "Scanner", { + enumerable: !0, + get: function() { + return g.Scanner; + } + }); + var b = e("./Token"); + Object.defineProperty(_, "Token", { + enumerable: !0, + get: function() { + return b.Token; + } + }); + var w = e("./column"); + Object.defineProperty(_, "ColumnParser", { + enumerable: !0, + get: function() { + return w.ColumnParser; + } + }), Object.defineProperty(_, "NonQuotedColumnParser", { + enumerable: !0, + get: function() { + return w.NonQuotedColumnParser; + } + }), Object.defineProperty(_, "QuotedColumnParser", { + enumerable: !0, + get: function() { + return w.QuotedColumnParser; + } + }); + }, { "./Parser": 153, "./RowParser": 154, "./Scanner": 155, "./Token": 156, "./column": 161 }], 163: [function(e, x, _) { + function u(d, s) { + if (!(d instanceof s)) + throw new TypeError("Cannot call a class as a function"); + } + function m(d, s) { + for (var v = 0; v < s.length; v++) { + var c = s[v]; + c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(d, c.key, c); + } + } + function g(d, s, v) { + return s && m(d.prototype, s), v && m(d, v), d; + } + var b = function(d) { + return d && d.__esModule ? d : { + default: d + }; + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.HeaderTransformer = void 0; + var w = b(e("lodash.isundefined")), f = b(e("lodash.isfunction")), y = b(e("lodash.uniq")), h = b(e("lodash.groupby")), l = /* @__PURE__ */ function() { + function d(s) { + u(this, d), this.headers = null, this.receivedHeaders = !1, this.shouldUseFirstRow = !1, this.processedFirstRow = !1, this.headersLength = 0, this.parserOptions = s, s.headers === !0 ? this.shouldUseFirstRow = !0 : Array.isArray(s.headers) ? this.setHeaders(s.headers) : f.default(s.headers) && (this.headersTransform = s.headers); + } + return g(d, [{ + key: "transform", + value: function(v, c) { + return this.shouldMapRow(v) ? c(null, this.processRow(v)) : c(null, { + row: null, + isValid: !0 + }); + } + }, { + key: "shouldMapRow", + value: function(v) { + var c = this.parserOptions; + if (!this.headersTransform && c.renameHeaders && !this.processedFirstRow) { + if (!this.receivedHeaders) + throw new Error("Error renaming headers: new headers must be provided in an array"); + return this.processedFirstRow = !0, !1; + } + if (!this.receivedHeaders && Array.isArray(v)) { + if (this.headersTransform) + this.setHeaders(this.headersTransform(v)); + else if (this.shouldUseFirstRow) + this.setHeaders(v); + else + return !0; + return !1; + } + return !0; + } + }, { + key: "processRow", + value: function(v) { + if (!this.headers) + return { + row: v, + isValid: !0 + }; + var c = this.parserOptions; + if (!c.discardUnmappedColumns && v.length > this.headersLength) { + if (!c.strictColumnHandling) + throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length)); + return { + row: v, + isValid: !1, + reason: "Column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length) + }; + } + return c.strictColumnHandling && v.length < this.headersLength ? { + row: v, + isValid: !1, + reason: "Column header mismatch expected: ".concat(this.headersLength, " columns got: ").concat(v.length) + } : { + row: this.mapHeaders(v), + isValid: !0 + }; + } + }, { + key: "mapHeaders", + value: function(v) { + for (var c = {}, a = this.headers, r = this.headersLength, t = 0; t < r; t += 1) { + var i = a[t]; + if (!w.default(i)) { + var n = v[t]; + w.default(n) ? c[i] = "" : c[i] = n; + } + } + return c; + } + }, { + key: "setHeaders", + value: function(v) { + var c, a = v.filter(function(i) { + return !!i; + }); + if (y.default(a).length !== a.length) { + var r = h.default(a), t = Object.keys(r).filter(function(i) { + return r[i].length > 1; + }); + throw new Error("Duplicate headers found ".concat(JSON.stringify(t))); + } + this.headers = v, this.receivedHeaders = !0, this.headersLength = ((c = this.headers) === null || c === void 0 ? void 0 : c.length) || 0; + } + }]), d; + }(); + _.HeaderTransformer = l; + }, { "lodash.groupby": 427, "lodash.isfunction": 430, "lodash.isundefined": 432, "lodash.uniq": 433 }], 164: [function(e, x, _) { + function u(h, l) { + if (!(h instanceof l)) + throw new TypeError("Cannot call a class as a function"); + } + function m(h, l) { + for (var d = 0; d < l.length; d++) { + var s = l[d]; + s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(h, s.key, s); + } + } + function g(h, l, d) { + return l && m(h.prototype, l), d && m(h, d), h; + } + var b = function(h) { + return h && h.__esModule ? h : { + default: h + }; + }; + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.RowTransformerValidator = void 0; + var w = b(e("lodash.isfunction")), f = e("../types"), y = /* @__PURE__ */ function() { + function h() { + u(this, h), this._rowTransform = null, this._rowValidator = null; + } + return g(h, [{ + key: "transformAndValidate", + value: function(d, s) { + var v = this; + return this.callTransformer(d, function(c, a) { + return c ? s(c) : a ? v.callValidator(a, function(r, t) { + return r ? s(r) : t && !t.isValid ? s(null, { + row: a, + isValid: !1, + reason: t.reason + }) : s(null, { + row: a, + isValid: !0 + }); + }) : s(null, { + row: null, + isValid: !0 + }); + }); + } + }, { + key: "callTransformer", + value: function(d, s) { + return this._rowTransform ? this._rowTransform(d, s) : s(null, d); + } + }, { + key: "callValidator", + value: function(d, s) { + return this._rowValidator ? this._rowValidator(d, s) : s(null, { + row: d, + isValid: !0 + }); + } + }, { + key: "rowTransform", + set: function(d) { + if (!w.default(d)) + throw new TypeError("The transform should be a function"); + this._rowTransform = h.createTransform(d); + } + }, { + key: "rowValidator", + set: function(d) { + if (!w.default(d)) + throw new TypeError("The validate should be a function"); + this._rowValidator = h.createValidator(d); + } + }], [{ + key: "createTransform", + value: function(d) { + return f.isSyncTransform(d) ? function(s, v) { + var c = null; + try { + c = d(s); + } catch (a) { + return v(a); + } + return v(null, c); + } : d; + } + }, { + key: "createValidator", + value: function(d) { + return f.isSyncValidate(d) ? function(s, v) { + v(null, { + row: s, + isValid: d(s) + }); + } : function(s, v) { + d(s, function(c, a, r) { + return c ? v(c) : a ? v(null, { + row: s, + isValid: a, + reason: r + }) : v(null, { + row: s, + isValid: !1, + reason: r + }); + }); + }; + } + }]), h; + }(); + _.RowTransformerValidator = y; + }, { "../types": 166, "lodash.isfunction": 430 }], 165: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var u = e("./RowTransformerValidator"); + Object.defineProperty(_, "RowTransformerValidator", { + enumerable: !0, + get: function() { + return u.RowTransformerValidator; + } + }); + var m = e("./HeaderTransformer"); + Object.defineProperty(_, "HeaderTransformer", { + enumerable: !0, + get: function() { + return m.HeaderTransformer; + } + }); + }, { "./HeaderTransformer": 163, "./RowTransformerValidator": 164 }], 166: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.isSyncValidate = _.isSyncTransform = void 0, _.isSyncTransform = function(u) { + return u.length === 1; + }, _.isSyncValidate = function(u) { + return u.length === 1; + }; + }, {}], 167: [function(e, x, _) { + var u = _; + u.bignum = e("bn.js"), u.define = e("./asn1/api").define, u.base = e("./asn1/base"), u.constants = e("./asn1/constants"), u.decoders = e("./asn1/decoders"), u.encoders = e("./asn1/encoders"); + }, { "./asn1/api": 168, "./asn1/base": 170, "./asn1/constants": 174, "./asn1/decoders": 176, "./asn1/encoders": 179, "bn.js": 181 }], 168: [function(e, x, _) { + var u = e("./encoders"), m = e("./decoders"), g = e("inherits"), b = _; + b.define = function(y, h) { + return new w(y, h); + }; + function w(f, y) { + this.name = f, this.body = y, this.decoders = {}, this.encoders = {}; + } + w.prototype._createNamed = function(y) { + var h = this.name; + function l(d) { + this._initNamed(d, h); + } + return g(l, y), l.prototype._initNamed = function(s, v) { + y.call(this, s, v); + }, new l(this); + }, w.prototype._getDecoder = function(y) { + return y = y || "der", this.decoders.hasOwnProperty(y) || (this.decoders[y] = this._createNamed(m[y])), this.decoders[y]; + }, w.prototype.decode = function(y, h, l) { + return this._getDecoder(h).decode(y, l); + }, w.prototype._getEncoder = function(y) { + return y = y || "der", this.encoders.hasOwnProperty(y) || (this.encoders[y] = this._createNamed(u[y])), this.encoders[y]; + }, w.prototype.encode = function(y, h, l) { + return this._getEncoder(h).encode(y, l); + }; + }, { "./decoders": 176, "./encoders": 179, inherits: 387 }], 169: [function(e, x, _) { + function u(y) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) { + return typeof l; + } : u = function(l) { + return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l; + }, u(y); + } + var m = e("inherits"), g = e("../base/reporter").Reporter, b = e("safer-buffer").Buffer; + function w(y, h) { + if (g.call(this, h), !b.isBuffer(y)) { + this.error("Input not Buffer"); + return; + } + this.base = y, this.offset = 0, this.length = y.length; + } + m(w, g), _.DecoderBuffer = w, w.isDecoderBuffer = function(h) { + if (h instanceof w) + return !0; + var l = u(h) === "object" && b.isBuffer(h.base) && h.constructor.name === "DecoderBuffer" && typeof h.offset == "number" && typeof h.length == "number" && typeof h.save == "function" && typeof h.restore == "function" && typeof h.isEmpty == "function" && typeof h.readUInt8 == "function" && typeof h.skip == "function" && typeof h.raw == "function"; + return l; + }, w.prototype.save = function() { + return { + offset: this.offset, + reporter: g.prototype.save.call(this) + }; + }, w.prototype.restore = function(h) { + var l = new w(this.base); + return l.offset = h.offset, l.length = this.offset, this.offset = h.offset, g.prototype.restore.call(this, h.reporter), l; + }, w.prototype.isEmpty = function() { + return this.offset === this.length; + }, w.prototype.readUInt8 = function(h) { + return this.offset + 1 <= this.length ? this.base.readUInt8(this.offset++, !0) : this.error(h || "DecoderBuffer overrun"); + }, w.prototype.skip = function(h, l) { + if (!(this.offset + h <= this.length)) + return this.error(l || "DecoderBuffer overrun"); + var d = new w(this.base); + return d._reporterState = this._reporterState, d.offset = this.offset, d.length = this.offset + h, this.offset += h, d; + }, w.prototype.raw = function(h) { + return this.base.slice(h ? h.offset : this.offset, this.length); + }; + function f(y, h) { + if (Array.isArray(y)) + this.length = 0, this.value = y.map(function(l) { + return f.isEncoderBuffer(l) || (l = new f(l, h)), this.length += l.length, l; + }, this); + else if (typeof y == "number") { + if (!(0 <= y && y <= 255)) + return h.error("non-byte EncoderBuffer value"); + this.value = y, this.length = 1; + } else if (typeof y == "string") + this.value = y, this.length = b.byteLength(y); + else if (b.isBuffer(y)) + this.value = y, this.length = y.length; + else + return h.error("Unsupported type: " + u(y)); + } + _.EncoderBuffer = f, f.isEncoderBuffer = function(h) { + if (h instanceof f) + return !0; + var l = u(h) === "object" && h.constructor.name === "EncoderBuffer" && typeof h.length == "number" && typeof h.join == "function"; + return l; + }, f.prototype.join = function(h, l) { + return h || (h = b.alloc(this.length)), l || (l = 0), this.length === 0 || (Array.isArray(this.value) ? this.value.forEach(function(d) { + d.join(h, l), l += d.length; + }) : (typeof this.value == "number" ? h[l] = this.value : typeof this.value == "string" ? h.write(this.value, l) : b.isBuffer(this.value) && this.value.copy(h, l), l += this.length)), h; + }; + }, { "../base/reporter": 172, inherits: 387, "safer-buffer": 495 }], 170: [function(e, x, _) { + var u = _; + u.Reporter = e("./reporter").Reporter, u.DecoderBuffer = e("./buffer").DecoderBuffer, u.EncoderBuffer = e("./buffer").EncoderBuffer, u.Node = e("./node"); + }, { "./buffer": 169, "./node": 171, "./reporter": 172 }], 171: [function(e, x, _) { + function u(s) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(c) { + return typeof c; + } : u = function(c) { + return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c; + }, u(s); + } + var m = e("../base/reporter").Reporter, g = e("../base/buffer").EncoderBuffer, b = e("../base/buffer").DecoderBuffer, w = e("minimalistic-assert"), f = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], y = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(f), h = ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"]; + function l(s, v, c) { + var a = {}; + this._baseState = a, a.name = c, a.enc = s, a.parent = v || null, a.children = null, a.tag = null, a.args = null, a.reverseArgs = null, a.choice = null, a.optional = !1, a.any = !1, a.obj = !1, a.use = null, a.useDecoder = null, a.key = null, a.default = null, a.explicit = null, a.implicit = null, a.contains = null, a.parent || (a.children = [], this._wrap()); + } + x.exports = l; + var d = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"]; + l.prototype.clone = function() { + var v = this._baseState, c = {}; + d.forEach(function(r) { + c[r] = v[r]; + }); + var a = new this.constructor(c.parent); + return a._baseState = c, a; + }, l.prototype._wrap = function() { + var v = this._baseState; + y.forEach(function(c) { + this[c] = function() { + var r = new this.constructor(this); + return v.children.push(r), r[c].apply(r, arguments); + }; + }, this); + }, l.prototype._init = function(v) { + var c = this._baseState; + w(c.parent === null), v.call(this), c.children = c.children.filter(function(a) { + return a._baseState.parent === this; + }, this), w.equal(c.children.length, 1, "Root node can have only one child"); + }, l.prototype._useArgs = function(v) { + var c = this._baseState, a = v.filter(function(r) { + return r instanceof this.constructor; + }, this); + v = v.filter(function(r) { + return !(r instanceof this.constructor); + }, this), a.length !== 0 && (w(c.children === null), c.children = a, a.forEach(function(r) { + r._baseState.parent = this; + }, this)), v.length !== 0 && (w(c.args === null), c.args = v, c.reverseArgs = v.map(function(r) { + if (u(r) !== "object" || r.constructor !== Object) + return r; + var t = {}; + return Object.keys(r).forEach(function(i) { + i == (i | 0) && (i |= 0); + var n = r[i]; + t[n] = i; + }), t; + })); + }, h.forEach(function(s) { + l.prototype[s] = function() { + var c = this._baseState; + throw new Error(s + " not implemented for encoding: " + c.enc); + }; + }), f.forEach(function(s) { + l.prototype[s] = function() { + var c = this._baseState, a = Array.prototype.slice.call(arguments); + return w(c.tag === null), c.tag = s, this._useArgs(a), this; + }; + }), l.prototype.use = function(v) { + w(v); + var c = this._baseState; + return w(c.use === null), c.use = v, this; + }, l.prototype.optional = function() { + var v = this._baseState; + return v.optional = !0, this; + }, l.prototype.def = function(v) { + var c = this._baseState; + return w(c.default === null), c.default = v, c.optional = !0, this; + }, l.prototype.explicit = function(v) { + var c = this._baseState; + return w(c.explicit === null && c.implicit === null), c.explicit = v, this; + }, l.prototype.implicit = function(v) { + var c = this._baseState; + return w(c.explicit === null && c.implicit === null), c.implicit = v, this; + }, l.prototype.obj = function() { + var v = this._baseState, c = Array.prototype.slice.call(arguments); + return v.obj = !0, c.length !== 0 && this._useArgs(c), this; + }, l.prototype.key = function(v) { + var c = this._baseState; + return w(c.key === null), c.key = v, this; + }, l.prototype.any = function() { + var v = this._baseState; + return v.any = !0, this; + }, l.prototype.choice = function(v) { + var c = this._baseState; + return w(c.choice === null), c.choice = v, this._useArgs(Object.keys(v).map(function(a) { + return v[a]; + })), this; + }, l.prototype.contains = function(v) { + var c = this._baseState; + return w(c.use === null), c.contains = v, this; + }, l.prototype._decode = function(v, c) { + var a = this._baseState; + if (a.parent === null) + return v.wrapResult(a.children[0]._decode(v, c)); + var r = a.default, t = !0, i = null; + if (a.key !== null && (i = v.enterKey(a.key)), a.optional) { + var n = null; + if (a.explicit !== null ? n = a.explicit : a.implicit !== null ? n = a.implicit : a.tag !== null && (n = a.tag), n === null && !a.any) { + var o = v.save(); + try { + a.choice === null ? this._decodeGeneric(a.tag, v, c) : this._decodeChoice(v, c), t = !0; + } catch (M) { + t = !1; + } + v.restore(o); + } else if (t = this._peekTag(v, n, a.any), v.isError(t)) + return t; + } + var p; + if (a.obj && t && (p = v.enterObject()), t) { + if (a.explicit !== null) { + var O = this._decodeTag(v, a.explicit); + if (v.isError(O)) + return O; + v = O; + } + var P = v.offset; + if (a.use === null && a.choice === null) { + var F; + a.any && (F = v.save()); + var z = this._decodeTag(v, a.implicit !== null ? a.implicit : a.tag, a.any); + if (v.isError(z)) + return z; + a.any ? r = v.raw(F) : v = z; + } + if (c && c.track && a.tag !== null && c.track(v.path(), P, v.length, "tagged"), c && c.track && a.tag !== null && c.track(v.path(), v.offset, v.length, "content"), a.any || (a.choice === null ? r = this._decodeGeneric(a.tag, v, c) : r = this._decodeChoice(v, c)), v.isError(r)) + return r; + if (!a.any && a.choice === null && a.children !== null && a.children.forEach(function(I) { + I._decode(v, c); + }), a.contains && (a.tag === "octstr" || a.tag === "bitstr")) { + var N = new b(r); + r = this._getUse(a.contains, v._reporterState.obj)._decode(N, c); + } + } + return a.obj && t && (r = v.leaveObject(p)), a.key !== null && (r !== null || t === !0) ? v.leaveKey(i, a.key, r) : i !== null && v.exitKey(i), r; + }, l.prototype._decodeGeneric = function(v, c, a) { + var r = this._baseState; + return v === "seq" || v === "set" ? null : v === "seqof" || v === "setof" ? this._decodeList(c, v, r.args[0], a) : /str$/.test(v) ? this._decodeStr(c, v, a) : v === "objid" && r.args ? this._decodeObjid(c, r.args[0], r.args[1], a) : v === "objid" ? this._decodeObjid(c, null, null, a) : v === "gentime" || v === "utctime" ? this._decodeTime(c, v, a) : v === "null_" ? this._decodeNull(c, a) : v === "bool" ? this._decodeBool(c, a) : v === "objDesc" ? this._decodeStr(c, v, a) : v === "int" || v === "enum" ? this._decodeInt(c, r.args && r.args[0], a) : r.use !== null ? this._getUse(r.use, c._reporterState.obj)._decode(c, a) : c.error("unknown tag: " + v); + }, l.prototype._getUse = function(v, c) { + var a = this._baseState; + return a.useDecoder = this._use(v, c), w(a.useDecoder._baseState.parent === null), a.useDecoder = a.useDecoder._baseState.children[0], a.implicit !== a.useDecoder._baseState.implicit && (a.useDecoder = a.useDecoder.clone(), a.useDecoder._baseState.implicit = a.implicit), a.useDecoder; + }, l.prototype._decodeChoice = function(v, c) { + var a = this._baseState, r = null, t = !1; + return Object.keys(a.choice).some(function(i) { + var n = v.save(), o = a.choice[i]; + try { + var p = o._decode(v, c); + if (v.isError(p)) + return !1; + r = { + type: i, + value: p + }, t = !0; + } catch (O) { + return v.restore(n), !1; + } + return !0; + }, this), t ? r : v.error("Choice not matched"); + }, l.prototype._createEncoderBuffer = function(v) { + return new g(v, this.reporter); + }, l.prototype._encode = function(v, c, a) { + var r = this._baseState; + if (!(r.default !== null && r.default === v)) { + var t = this._encodeValue(v, c, a); + if (t !== void 0 && !this._skipDefault(t, c, a)) + return t; + } + }, l.prototype._encodeValue = function(v, c, a) { + var r = this._baseState; + if (r.parent === null) + return r.children[0]._encode(v, c || new m()); + var t = null; + if (this.reporter = c, r.optional && v === void 0) + if (r.default !== null) + v = r.default; + else + return; + var i = null, n = !1; + if (r.any) + t = this._createEncoderBuffer(v); + else if (r.choice) + t = this._encodeChoice(v, c); + else if (r.contains) + i = this._getUse(r.contains, a)._encode(v, c), n = !0; + else if (r.children) + i = r.children.map(function(P) { + if (P._baseState.tag === "null_") + return P._encode(null, c, v); + if (P._baseState.key === null) + return c.error("Child should have a key"); + var F = c.enterKey(P._baseState.key); + if (u(v) !== "object") + return c.error("Child expected, but input is not object"); + var z = P._encode(v[P._baseState.key], c, v); + return c.leaveKey(F), z; + }, this).filter(function(P) { + return P; + }), i = this._createEncoderBuffer(i); + else if (r.tag === "seqof" || r.tag === "setof") { + if (!(r.args && r.args.length === 1)) + return c.error("Too many args for : " + r.tag); + if (!Array.isArray(v)) + return c.error("seqof/setof, but data is not Array"); + var o = this.clone(); + o._baseState.implicit = null, i = this._createEncoderBuffer(v.map(function(P) { + var F = this._baseState; + return this._getUse(F.args[0], v)._encode(P, c); + }, o)); + } else + r.use !== null ? t = this._getUse(r.use, a)._encode(v, c) : (i = this._encodePrimitive(r.tag, v), n = !0); + if (!r.any && r.choice === null) { + var p = r.implicit !== null ? r.implicit : r.tag, O = r.implicit === null ? "universal" : "context"; + p === null ? r.use === null && c.error("Tag could be omitted only for .use()") : r.use === null && (t = this._encodeComposite(p, n, O, i)); + } + return r.explicit !== null && (t = this._encodeComposite(r.explicit, !1, "context", t)), t; + }, l.prototype._encodeChoice = function(v, c) { + var a = this._baseState, r = a.choice[v.type]; + return r || w(!1, v.type + " not found in " + JSON.stringify(Object.keys(a.choice))), r._encode(v.value, c); + }, l.prototype._encodePrimitive = function(v, c) { + var a = this._baseState; + if (/str$/.test(v)) + return this._encodeStr(c, v); + if (v === "objid" && a.args) + return this._encodeObjid(c, a.reverseArgs[0], a.args[1]); + if (v === "objid") + return this._encodeObjid(c, null, null); + if (v === "gentime" || v === "utctime") + return this._encodeTime(c, v); + if (v === "null_") + return this._encodeNull(); + if (v === "int" || v === "enum") + return this._encodeInt(c, a.args && a.reverseArgs[0]); + if (v === "bool") + return this._encodeBool(c); + if (v === "objDesc") + return this._encodeStr(c, v); + throw new Error("Unsupported tag: " + v); + }, l.prototype._isNumstr = function(v) { + return /^[0-9 ]*$/.test(v); + }, l.prototype._isPrintstr = function(v) { + return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(v); + }; + }, { "../base/buffer": 169, "../base/reporter": 172, "minimalistic-assert": 437 }], 172: [function(e, x, _) { + var u = e("inherits"); + function m(b) { + this._reporterState = { + obj: null, + path: [], + options: b || {}, + errors: [] + }; + } + _.Reporter = m, m.prototype.isError = function(w) { + return w instanceof g; + }, m.prototype.save = function() { + var w = this._reporterState; + return { + obj: w.obj, + pathLen: w.path.length + }; + }, m.prototype.restore = function(w) { + var f = this._reporterState; + f.obj = w.obj, f.path = f.path.slice(0, w.pathLen); + }, m.prototype.enterKey = function(w) { + return this._reporterState.path.push(w); + }, m.prototype.exitKey = function(w) { + var f = this._reporterState; + f.path = f.path.slice(0, w - 1); + }, m.prototype.leaveKey = function(w, f, y) { + var h = this._reporterState; + this.exitKey(w), h.obj !== null && (h.obj[f] = y); + }, m.prototype.path = function() { + return this._reporterState.path.join("/"); + }, m.prototype.enterObject = function() { + var w = this._reporterState, f = w.obj; + return w.obj = {}, f; + }, m.prototype.leaveObject = function(w) { + var f = this._reporterState, y = f.obj; + return f.obj = w, y; + }, m.prototype.error = function(w) { + var f, y = this._reporterState, h = w instanceof g; + if (h ? f = w : f = new g(y.path.map(function(l) { + return "[" + JSON.stringify(l) + "]"; + }).join(""), w.message || w, w.stack), !y.options.partial) + throw f; + return h || y.errors.push(f), f; + }, m.prototype.wrapResult = function(w) { + var f = this._reporterState; + return f.options.partial ? { + result: this.isError(w) ? null : w, + errors: f.errors + } : w; + }; + function g(b, w) { + this.path = b, this.rethrow(w); + } + u(g, Error), g.prototype.rethrow = function(w) { + if (this.message = w + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, g), !this.stack) + try { + throw new Error(this.message); + } catch (f) { + this.stack = f.stack; + } + return this; + }; + }, { inherits: 387 }], 173: [function(e, x, _) { + function u(m) { + var g = {}; + return Object.keys(m).forEach(function(b) { + (b | 0) == b && (b = b | 0); + var w = m[b]; + g[w] = b; + }), g; + } + _.tagClass = { + 0: "universal", + 1: "application", + 2: "context", + 3: "private" + }, _.tagClassByName = u(_.tagClass), _.tag = { + 0: "end", + 1: "bool", + 2: "int", + 3: "bitstr", + 4: "octstr", + 5: "null_", + 6: "objid", + 7: "objDesc", + 8: "external", + 9: "real", + 10: "enum", + 11: "embed", + 12: "utf8str", + 13: "relativeOid", + 16: "seq", + 17: "set", + 18: "numstr", + 19: "printstr", + 20: "t61str", + 21: "videostr", + 22: "ia5str", + 23: "utctime", + 24: "gentime", + 25: "graphstr", + 26: "iso646str", + 27: "genstr", + 28: "unistr", + 29: "charstr", + 30: "bmpstr" + }, _.tagByName = u(_.tag); + }, {}], 174: [function(e, x, _) { + var u = _; + u._reverse = function(g) { + var b = {}; + return Object.keys(g).forEach(function(w) { + (w | 0) == w && (w = w | 0); + var f = g[w]; + b[f] = w; + }), b; + }, u.der = e("./der"); + }, { "./der": 173 }], 175: [function(e, x, _) { + var u = e("inherits"), m = e("bn.js"), g = e("../base/buffer").DecoderBuffer, b = e("../base/node"), w = e("../constants/der"); + function f(d) { + this.enc = "der", this.name = d.name, this.entity = d, this.tree = new y(), this.tree._init(d.body); + } + x.exports = f, f.prototype.decode = function(s, v) { + return g.isDecoderBuffer(s) || (s = new g(s, v)), this.tree._decode(s, v); + }; + function y(d) { + b.call(this, "der", d); + } + u(y, b), y.prototype._peekTag = function(s, v, c) { + if (s.isEmpty()) + return !1; + var a = s.save(), r = h(s, 'Failed to peek tag: "' + v + '"'); + return s.isError(r) ? r : (s.restore(a), r.tag === v || r.tagStr === v || r.tagStr + "of" === v || c); + }, y.prototype._decodeTag = function(s, v, c) { + var a = h(s, 'Failed to decode tag of "' + v + '"'); + if (s.isError(a)) + return a; + var r = l(s, a.primitive, 'Failed to get length of "' + v + '"'); + if (s.isError(r)) + return r; + if (!c && a.tag !== v && a.tagStr !== v && a.tagStr + "of" !== v) + return s.error('Failed to match tag: "' + v + '"'); + if (a.primitive || r !== null) + return s.skip(r, 'Failed to match body of: "' + v + '"'); + var t = s.save(), i = this._skipUntilEnd(s, 'Failed to skip indefinite length body: "' + this.tag + '"'); + return s.isError(i) ? i : (r = s.offset - t.offset, s.restore(t), s.skip(r, 'Failed to match body of: "' + v + '"')); + }, y.prototype._skipUntilEnd = function(s, v) { + for (; ; ) { + var c = h(s, v); + if (s.isError(c)) + return c; + var a = l(s, c.primitive, v); + if (s.isError(a)) + return a; + var r = void 0; + if (c.primitive || a !== null ? r = s.skip(a) : r = this._skipUntilEnd(s, v), s.isError(r)) + return r; + if (c.tagStr === "end") + break; + } + }, y.prototype._decodeList = function(s, v, c, a) { + for (var r = []; !s.isEmpty(); ) { + var t = this._peekTag(s, "end"); + if (s.isError(t)) + return t; + var i = c.decode(s, "der", a); + if (s.isError(i) && t) + break; + r.push(i); + } + return r; + }, y.prototype._decodeStr = function(s, v) { + if (v === "bitstr") { + var c = s.readUInt8(); + return s.isError(c) ? c : { + unused: c, + data: s.raw() + }; + } else if (v === "bmpstr") { + var a = s.raw(); + if (a.length % 2 === 1) + return s.error("Decoding of string type: bmpstr length mismatch"); + for (var r = "", t = 0; t < a.length / 2; t++) + r += String.fromCharCode(a.readUInt16BE(t * 2)); + return r; + } else if (v === "numstr") { + var i = s.raw().toString("ascii"); + return this._isNumstr(i) ? i : s.error("Decoding of string type: numstr unsupported characters"); + } else { + if (v === "octstr") + return s.raw(); + if (v === "objDesc") + return s.raw(); + if (v === "printstr") { + var n = s.raw().toString("ascii"); + return this._isPrintstr(n) ? n : s.error("Decoding of string type: printstr unsupported characters"); + } else + return /str$/.test(v) ? s.raw().toString() : s.error("Decoding of string type: " + v + " unsupported"); + } + }, y.prototype._decodeObjid = function(s, v, c) { + for (var a, r = [], t = 0, i = 0; !s.isEmpty(); ) + i = s.readUInt8(), t <<= 7, t |= i & 127, i & 128 || (r.push(t), t = 0); + i & 128 && r.push(t); + var n = r[0] / 40 | 0, o = r[0] % 40; + if (c ? a = r : a = [n, o].concat(r.slice(1)), v) { + var p = v[a.join(" ")]; + p === void 0 && (p = v[a.join(".")]), p !== void 0 && (a = p); + } + return a; + }, y.prototype._decodeTime = function(s, v) { + var c = s.raw().toString(), a, r, t, i, n, o; + if (v === "gentime") + a = c.slice(0, 4) | 0, r = c.slice(4, 6) | 0, t = c.slice(6, 8) | 0, i = c.slice(8, 10) | 0, n = c.slice(10, 12) | 0, o = c.slice(12, 14) | 0; + else if (v === "utctime") + a = c.slice(0, 2) | 0, r = c.slice(2, 4) | 0, t = c.slice(4, 6) | 0, i = c.slice(6, 8) | 0, n = c.slice(8, 10) | 0, o = c.slice(10, 12) | 0, a < 70 ? a = 2e3 + a : a = 1900 + a; + else + return s.error("Decoding " + v + " time is not supported yet"); + return Date.UTC(a, r - 1, t, i, n, o, 0); + }, y.prototype._decodeNull = function() { + return null; + }, y.prototype._decodeBool = function(s) { + var v = s.readUInt8(); + return s.isError(v) ? v : v !== 0; + }, y.prototype._decodeInt = function(s, v) { + var c = s.raw(), a = new m(c); + return v && (a = v[a.toString(10)] || a), a; + }, y.prototype._use = function(s, v) { + return typeof s == "function" && (s = s(v)), s._getDecoder("der").tree; + }; + function h(d, s) { + var v = d.readUInt8(s); + if (d.isError(v)) + return v; + var c = w.tagClass[v >> 6], a = (v & 32) === 0; + if ((v & 31) === 31) { + var r = v; + for (v = 0; (r & 128) === 128; ) { + if (r = d.readUInt8(s), d.isError(r)) + return r; + v <<= 7, v |= r & 127; + } + } else + v &= 31; + var t = w.tag[v]; + return { + cls: c, + primitive: a, + tag: v, + tagStr: t + }; + } + function l(d, s, v) { + var c = d.readUInt8(v); + if (d.isError(c)) + return c; + if (!s && c === 128) + return null; + if (!(c & 128)) + return c; + var a = c & 127; + if (a > 4) + return d.error("length octect is too long"); + c = 0; + for (var r = 0; r < a; r++) { + c <<= 8; + var t = d.readUInt8(v); + if (d.isError(t)) + return t; + c |= t; + } + return c; + } + }, { "../base/buffer": 169, "../base/node": 171, "../constants/der": 173, "bn.js": 181, inherits: 387 }], 176: [function(e, x, _) { + var u = _; + u.der = e("./der"), u.pem = e("./pem"); + }, { "./der": 175, "./pem": 177 }], 177: [function(e, x, _) { + var u = e("inherits"), m = e("safer-buffer").Buffer, g = e("./der"); + function b(w) { + g.call(this, w), this.enc = "pem"; + } + u(b, g), x.exports = b, b.prototype.decode = function(f, y) { + for (var h = f.toString().split(/[\r\n]+/g), l = y.label.toUpperCase(), d = /^-----(BEGIN|END) ([^-]+)-----$/, s = -1, v = -1, c = 0; c < h.length; c++) { + var a = h[c].match(d); + if (a !== null && a[2] === l) + if (s === -1) { + if (a[1] !== "BEGIN") + break; + s = c; + } else { + if (a[1] !== "END") + break; + v = c; + break; + } + } + if (s === -1 || v === -1) + throw new Error("PEM section not found for: " + l); + var r = h.slice(s + 1, v).join(""); + r.replace(/[^a-z0-9+/=]+/gi, ""); + var t = m.from(r, "base64"); + return g.prototype.decode.call(this, t, y); + }; + }, { "./der": 175, inherits: 387, "safer-buffer": 495 }], 178: [function(e, x, _) { + var u = e("inherits"), m = e("safer-buffer").Buffer, g = e("../base/node"), b = e("../constants/der"); + function w(l) { + this.enc = "der", this.name = l.name, this.entity = l, this.tree = new f(), this.tree._init(l.body); + } + x.exports = w, w.prototype.encode = function(d, s) { + return this.tree._encode(d, s).join(); + }; + function f(l) { + g.call(this, "der", l); + } + u(f, g), f.prototype._encodeComposite = function(d, s, v, c) { + var a = h(d, s, v, this.reporter); + if (c.length < 128) { + var r = m.alloc(2); + return r[0] = a, r[1] = c.length, this._createEncoderBuffer([r, c]); + } + for (var t = 1, i = c.length; i >= 256; i >>= 8) + t++; + var n = m.alloc(1 + 1 + t); + n[0] = a, n[1] = 128 | t; + for (var o = 1 + t, p = c.length; p > 0; o--, p >>= 8) + n[o] = p & 255; + return this._createEncoderBuffer([n, c]); + }, f.prototype._encodeStr = function(d, s) { + if (s === "bitstr") + return this._createEncoderBuffer([d.unused | 0, d.data]); + if (s === "bmpstr") { + for (var v = m.alloc(d.length * 2), c = 0; c < d.length; c++) + v.writeUInt16BE(d.charCodeAt(c), c * 2); + return this._createEncoderBuffer(v); + } else + return s === "numstr" ? this._isNumstr(d) ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: numstr supports only digits and space") : s === "printstr" ? this._isPrintstr(d) ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark") : /str$/.test(s) ? this._createEncoderBuffer(d) : s === "objDesc" ? this._createEncoderBuffer(d) : this.reporter.error("Encoding of string type: " + s + " unsupported"); + }, f.prototype._encodeObjid = function(d, s, v) { + if (typeof d == "string") { + if (!s) + return this.reporter.error("string objid given, but no values map found"); + if (!s.hasOwnProperty(d)) + return this.reporter.error("objid not found in values map"); + d = s[d].split(/[\s.]+/g); + for (var c = 0; c < d.length; c++) + d[c] |= 0; + } else if (Array.isArray(d)) { + d = d.slice(); + for (var a = 0; a < d.length; a++) + d[a] |= 0; + } + if (!Array.isArray(d)) + return this.reporter.error("objid() should be either array or string, got: " + JSON.stringify(d)); + if (!v) { + if (d[1] >= 40) + return this.reporter.error("Second objid identifier OOB"); + d.splice(0, 2, d[0] * 40 + d[1]); + } + for (var r = 0, t = 0; t < d.length; t++) { + var i = d[t]; + for (r++; i >= 128; i >>= 7) + r++; + } + for (var n = m.alloc(r), o = n.length - 1, p = d.length - 1; p >= 0; p--) { + var O = d[p]; + for (n[o--] = O & 127; (O >>= 7) > 0; ) + n[o--] = 128 | O & 127; + } + return this._createEncoderBuffer(n); + }; + function y(l) { + return l < 10 ? "0" + l : l; + } + f.prototype._encodeTime = function(d, s) { + var v, c = new Date(d); + return s === "gentime" ? v = [y(c.getUTCFullYear()), y(c.getUTCMonth() + 1), y(c.getUTCDate()), y(c.getUTCHours()), y(c.getUTCMinutes()), y(c.getUTCSeconds()), "Z"].join("") : s === "utctime" ? v = [y(c.getUTCFullYear() % 100), y(c.getUTCMonth() + 1), y(c.getUTCDate()), y(c.getUTCHours()), y(c.getUTCMinutes()), y(c.getUTCSeconds()), "Z"].join("") : this.reporter.error("Encoding " + s + " time is not supported yet"), this._encodeStr(v, "octstr"); + }, f.prototype._encodeNull = function() { + return this._createEncoderBuffer(""); + }, f.prototype._encodeInt = function(d, s) { + if (typeof d == "string") { + if (!s) + return this.reporter.error("String int or enum given, but no values map"); + if (!s.hasOwnProperty(d)) + return this.reporter.error("Values map doesn't contain: " + JSON.stringify(d)); + d = s[d]; + } + if (typeof d != "number" && !m.isBuffer(d)) { + var v = d.toArray(); + !d.sign && v[0] & 128 && v.unshift(0), d = m.from(v); + } + if (m.isBuffer(d)) { + var c = d.length; + d.length === 0 && c++; + var a = m.alloc(c); + return d.copy(a), d.length === 0 && (a[0] = 0), this._createEncoderBuffer(a); + } + if (d < 128) + return this._createEncoderBuffer(d); + if (d < 256) + return this._createEncoderBuffer([0, d]); + for (var r = 1, t = d; t >= 256; t >>= 8) + r++; + for (var i = new Array(r), n = i.length - 1; n >= 0; n--) + i[n] = d & 255, d >>= 8; + return i[0] & 128 && i.unshift(0), this._createEncoderBuffer(m.from(i)); + }, f.prototype._encodeBool = function(d) { + return this._createEncoderBuffer(d ? 255 : 0); + }, f.prototype._use = function(d, s) { + return typeof d == "function" && (d = d(s)), d._getEncoder("der").tree; + }, f.prototype._skipDefault = function(d, s, v) { + var c = this._baseState, a; + if (c.default === null) + return !1; + var r = d.join(); + if (c.defaultBuffer === void 0 && (c.defaultBuffer = this._encodeValue(c.default, s, v).join()), r.length !== c.defaultBuffer.length) + return !1; + for (a = 0; a < r.length; a++) + if (r[a] !== c.defaultBuffer[a]) + return !1; + return !0; + }; + function h(l, d, s, v) { + var c; + if (l === "seqof" ? l = "seq" : l === "setof" && (l = "set"), b.tagByName.hasOwnProperty(l)) + c = b.tagByName[l]; + else if (typeof l == "number" && (l | 0) === l) + c = l; + else + return v.error("Unknown tag: " + l); + return c >= 31 ? v.error("Multi-octet tag encoding unsupported") : (d || (c |= 32), c |= b.tagClassByName[s || "universal"] << 6, c); + } + }, { "../base/node": 171, "../constants/der": 173, inherits: 387, "safer-buffer": 495 }], 179: [function(e, x, _) { + var u = _; + u.der = e("./der"), u.pem = e("./pem"); + }, { "./der": 178, "./pem": 180 }], 180: [function(e, x, _) { + var u = e("inherits"), m = e("./der"); + function g(b) { + m.call(this, b), this.enc = "pem"; + } + u(g, m), x.exports = g, g.prototype.encode = function(w, f) { + for (var y = m.prototype.encode.call(this, w), h = y.toString("base64"), l = ["-----BEGIN " + f.label + "-----"], d = 0; d < h.length; d += 64) + l.push(h.slice(d, d + 64)); + return l.push("-----END " + f.label + "-----"), l.join(` +`); + }; + }, { "./der": 178, inherits: 387 }], 181: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + (function(m, g) { + function b(I, R) { + if (!I) + throw new Error(R || "Assertion failed"); + } + function w(I, R) { + I.super_ = R; + var C = function() { + }; + C.prototype = R.prototype, I.prototype = new C(), I.prototype.constructor = I; + } + function f(I, R, C) { + if (f.isBN(I)) + return I; + this.negative = 0, this.words = null, this.length = 0, this.red = null, I !== null && ((R === "le" || R === "be") && (C = R, R = 10), this._init(I || 0, R || 10, C || "be")); + } + u(m) === "object" ? m.exports = f : g.BN = f, f.BN = f, f.wordSize = 26; + var y; + try { + y = e("buffer").Buffer; + } catch (I) { + } + f.isBN = function(R) { + return R instanceof f ? !0 : R !== null && u(R) === "object" && R.constructor.wordSize === f.wordSize && Array.isArray(R.words); + }, f.max = function(R, C) { + return R.cmp(C) > 0 ? R : C; + }, f.min = function(R, C) { + return R.cmp(C) < 0 ? R : C; + }, f.prototype._init = function(R, C, E) { + if (typeof R == "number") + return this._initNumber(R, C, E); + if (u(R) === "object") + return this._initArray(R, C, E); + C === "hex" && (C = 16), b(C === (C | 0) && C >= 2 && C <= 36), R = R.toString().replace(/\s+/g, ""); + var A = 0; + R[0] === "-" && A++, C === 16 ? this._parseHex(R, A) : this._parseBase(R, C, A), R[0] === "-" && (this.negative = 1), this.strip(), E === "le" && this._initArray(this.toArray(), C, E); + }, f.prototype._initNumber = function(R, C, E) { + R < 0 && (this.negative = 1, R = -R), R < 67108864 ? (this.words = [R & 67108863], this.length = 1) : R < 4503599627370496 ? (this.words = [R & 67108863, R / 67108864 & 67108863], this.length = 2) : (b(R < 9007199254740992), this.words = [R & 67108863, R / 67108864 & 67108863, 1], this.length = 3), E === "le" && this._initArray(this.toArray(), C, E); + }, f.prototype._initArray = function(R, C, E) { + if (b(typeof R.length == "number"), R.length <= 0) + return this.words = [0], this.length = 1, this; + this.length = Math.ceil(R.length / 3), this.words = new Array(this.length); + for (var A = 0; A < this.length; A++) + this.words[A] = 0; + var L, $, W = 0; + if (E === "be") + for (A = R.length - 1, L = 0; A >= 0; A -= 3) + $ = R[A] | R[A - 1] << 8 | R[A - 2] << 16, this.words[L] |= $ << W & 67108863, this.words[L + 1] = $ >>> 26 - W & 67108863, W += 24, W >= 26 && (W -= 26, L++); + else if (E === "le") + for (A = 0, L = 0; A < R.length; A += 3) + $ = R[A] | R[A + 1] << 8 | R[A + 2] << 16, this.words[L] |= $ << W & 67108863, this.words[L + 1] = $ >>> 26 - W & 67108863, W += 24, W >= 26 && (W -= 26, L++); + return this.strip(); + }; + function h(I, R, C) { + for (var E = 0, A = Math.min(I.length, C), L = R; L < A; L++) { + var $ = I.charCodeAt(L) - 48; + E <<= 4, $ >= 49 && $ <= 54 ? E |= $ - 49 + 10 : $ >= 17 && $ <= 22 ? E |= $ - 17 + 10 : E |= $ & 15; + } + return E; + } + f.prototype._parseHex = function(R, C) { + this.length = Math.ceil((R.length - C) / 6), this.words = new Array(this.length); + for (var E = 0; E < this.length; E++) + this.words[E] = 0; + var A, L, $ = 0; + for (E = R.length - 6, A = 0; E >= C; E -= 6) + L = h(R, E, E + 6), this.words[A] |= L << $ & 67108863, this.words[A + 1] |= L >>> 26 - $ & 4194303, $ += 24, $ >= 26 && ($ -= 26, A++); + E + 6 !== C && (L = h(R, C, E + 6), this.words[A] |= L << $ & 67108863, this.words[A + 1] |= L >>> 26 - $ & 4194303), this.strip(); + }; + function l(I, R, C, E) { + for (var A = 0, L = Math.min(I.length, C), $ = R; $ < L; $++) { + var W = I.charCodeAt($) - 48; + A *= E, W >= 49 ? A += W - 49 + 10 : W >= 17 ? A += W - 17 + 10 : A += W; + } + return A; + } + f.prototype._parseBase = function(R, C, E) { + this.words = [0], this.length = 1; + for (var A = 0, L = 1; L <= 67108863; L *= C) + A++; + A--, L = L / C | 0; + for (var $ = R.length - E, W = $ % A, U = Math.min($, $ - W) + E, D = 0, B = E; B < U; B += A) + D = l(R, B, B + A, C), this.imuln(L), this.words[0] + D < 67108864 ? this.words[0] += D : this._iaddn(D); + if (W !== 0) { + var j = 1; + for (D = l(R, B, R.length, C), B = 0; B < W; B++) + j *= C; + this.imuln(j), this.words[0] + D < 67108864 ? this.words[0] += D : this._iaddn(D); + } + }, f.prototype.copy = function(R) { + R.words = new Array(this.length); + for (var C = 0; C < this.length; C++) + R.words[C] = this.words[C]; + R.length = this.length, R.negative = this.negative, R.red = this.red; + }, f.prototype.clone = function() { + var R = new f(null); + return this.copy(R), R; + }, f.prototype._expand = function(R) { + for (; this.length < R; ) + this.words[this.length++] = 0; + return this; + }, f.prototype.strip = function() { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }, f.prototype._normSign = function() { + return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this; + }, f.prototype.inspect = function() { + return (this.red ? ""; + }; + var d = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], s = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], v = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176]; + f.prototype.toString = function(R, C) { + R = R || 10, C = C | 0 || 1; + var E; + if (R === 16 || R === "hex") { + E = ""; + for (var A = 0, L = 0, $ = 0; $ < this.length; $++) { + var W = this.words[$], U = ((W << A | L) & 16777215).toString(16); + L = W >>> 24 - A & 16777215, L !== 0 || $ !== this.length - 1 ? E = d[6 - U.length] + U + E : E = U + E, A += 2, A >= 26 && (A -= 26, $--); + } + for (L !== 0 && (E = L.toString(16) + E); E.length % C !== 0; ) + E = "0" + E; + return this.negative !== 0 && (E = "-" + E), E; + } + if (R === (R | 0) && R >= 2 && R <= 36) { + var D = s[R], B = v[R]; + E = ""; + var j = this.clone(); + for (j.negative = 0; !j.isZero(); ) { + var V = j.modn(B).toString(R); + j = j.idivn(B), j.isZero() ? E = V + E : E = d[D - V.length] + V + E; + } + for (this.isZero() && (E = "0" + E); E.length % C !== 0; ) + E = "0" + E; + return this.negative !== 0 && (E = "-" + E), E; + } + b(!1, "Base should be between 2 and 36"); + }, f.prototype.toNumber = function() { + var R = this.words[0]; + return this.length === 2 ? R += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? R += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && b(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -R : R; + }, f.prototype.toJSON = function() { + return this.toString(16); + }, f.prototype.toBuffer = function(R, C) { + return b(typeof y != "undefined"), this.toArrayLike(y, R, C); + }, f.prototype.toArray = function(R, C) { + return this.toArrayLike(Array, R, C); + }, f.prototype.toArrayLike = function(R, C, E) { + var A = this.byteLength(), L = E || Math.max(1, A); + b(A <= L, "byte array longer than desired length"), b(L > 0, "Requested array length <= 0"), this.strip(); + var $ = C === "le", W = new R(L), U, D, B = this.clone(); + if ($) { + for (D = 0; !B.isZero(); D++) + U = B.andln(255), B.iushrn(8), W[D] = U; + for (; D < L; D++) + W[D] = 0; + } else { + for (D = 0; D < L - A; D++) + W[D] = 0; + for (D = 0; !B.isZero(); D++) + U = B.andln(255), B.iushrn(8), W[L - D - 1] = U; + } + return W; + }, Math.clz32 ? f.prototype._countBits = function(R) { + return 32 - Math.clz32(R); + } : f.prototype._countBits = function(R) { + var C = R, E = 0; + return C >= 4096 && (E += 13, C >>>= 13), C >= 64 && (E += 7, C >>>= 7), C >= 8 && (E += 4, C >>>= 4), C >= 2 && (E += 2, C >>>= 2), E + C; + }, f.prototype._zeroBits = function(R) { + if (R === 0) + return 26; + var C = R, E = 0; + return C & 8191 || (E += 13, C >>>= 13), C & 127 || (E += 7, C >>>= 7), C & 15 || (E += 4, C >>>= 4), C & 3 || (E += 2, C >>>= 2), C & 1 || E++, E; + }, f.prototype.bitLength = function() { + var R = this.words[this.length - 1], C = this._countBits(R); + return (this.length - 1) * 26 + C; + }; + function c(I) { + for (var R = new Array(I.bitLength()), C = 0; C < R.length; C++) { + var E = C / 26 | 0, A = C % 26; + R[C] = (I.words[E] & 1 << A) >>> A; + } + return R; + } + f.prototype.zeroBits = function() { + if (this.isZero()) + return 0; + for (var R = 0, C = 0; C < this.length; C++) { + var E = this._zeroBits(this.words[C]); + if (R += E, E !== 26) + break; + } + return R; + }, f.prototype.byteLength = function() { + return Math.ceil(this.bitLength() / 8); + }, f.prototype.toTwos = function(R) { + return this.negative !== 0 ? this.abs().inotn(R).iaddn(1) : this.clone(); + }, f.prototype.fromTwos = function(R) { + return this.testn(R - 1) ? this.notn(R).iaddn(1).ineg() : this.clone(); + }, f.prototype.isNeg = function() { + return this.negative !== 0; + }, f.prototype.neg = function() { + return this.clone().ineg(); + }, f.prototype.ineg = function() { + return this.isZero() || (this.negative ^= 1), this; + }, f.prototype.iuor = function(R) { + for (; this.length < R.length; ) + this.words[this.length++] = 0; + for (var C = 0; C < R.length; C++) + this.words[C] = this.words[C] | R.words[C]; + return this.strip(); + }, f.prototype.ior = function(R) { + return b((this.negative | R.negative) === 0), this.iuor(R); + }, f.prototype.or = function(R) { + return this.length > R.length ? this.clone().ior(R) : R.clone().ior(this); + }, f.prototype.uor = function(R) { + return this.length > R.length ? this.clone().iuor(R) : R.clone().iuor(this); + }, f.prototype.iuand = function(R) { + var C; + this.length > R.length ? C = R : C = this; + for (var E = 0; E < C.length; E++) + this.words[E] = this.words[E] & R.words[E]; + return this.length = C.length, this.strip(); + }, f.prototype.iand = function(R) { + return b((this.negative | R.negative) === 0), this.iuand(R); + }, f.prototype.and = function(R) { + return this.length > R.length ? this.clone().iand(R) : R.clone().iand(this); + }, f.prototype.uand = function(R) { + return this.length > R.length ? this.clone().iuand(R) : R.clone().iuand(this); + }, f.prototype.iuxor = function(R) { + var C, E; + this.length > R.length ? (C = this, E = R) : (C = R, E = this); + for (var A = 0; A < E.length; A++) + this.words[A] = C.words[A] ^ E.words[A]; + if (this !== C) + for (; A < C.length; A++) + this.words[A] = C.words[A]; + return this.length = C.length, this.strip(); + }, f.prototype.ixor = function(R) { + return b((this.negative | R.negative) === 0), this.iuxor(R); + }, f.prototype.xor = function(R) { + return this.length > R.length ? this.clone().ixor(R) : R.clone().ixor(this); + }, f.prototype.uxor = function(R) { + return this.length > R.length ? this.clone().iuxor(R) : R.clone().iuxor(this); + }, f.prototype.inotn = function(R) { + b(typeof R == "number" && R >= 0); + var C = Math.ceil(R / 26) | 0, E = R % 26; + this._expand(C), E > 0 && C--; + for (var A = 0; A < C; A++) + this.words[A] = ~this.words[A] & 67108863; + return E > 0 && (this.words[A] = ~this.words[A] & 67108863 >> 26 - E), this.strip(); + }, f.prototype.notn = function(R) { + return this.clone().inotn(R); + }, f.prototype.setn = function(R, C) { + b(typeof R == "number" && R >= 0); + var E = R / 26 | 0, A = R % 26; + return this._expand(E + 1), C ? this.words[E] = this.words[E] | 1 << A : this.words[E] = this.words[E] & ~(1 << A), this.strip(); + }, f.prototype.iadd = function(R) { + var C; + if (this.negative !== 0 && R.negative === 0) + return this.negative = 0, C = this.isub(R), this.negative ^= 1, this._normSign(); + if (this.negative === 0 && R.negative !== 0) + return R.negative = 0, C = this.isub(R), R.negative = 1, C._normSign(); + var E, A; + this.length > R.length ? (E = this, A = R) : (E = R, A = this); + for (var L = 0, $ = 0; $ < A.length; $++) + C = (E.words[$] | 0) + (A.words[$] | 0) + L, this.words[$] = C & 67108863, L = C >>> 26; + for (; L !== 0 && $ < E.length; $++) + C = (E.words[$] | 0) + L, this.words[$] = C & 67108863, L = C >>> 26; + if (this.length = E.length, L !== 0) + this.words[this.length] = L, this.length++; + else if (E !== this) + for (; $ < E.length; $++) + this.words[$] = E.words[$]; + return this; + }, f.prototype.add = function(R) { + var C; + return R.negative !== 0 && this.negative === 0 ? (R.negative = 0, C = this.sub(R), R.negative ^= 1, C) : R.negative === 0 && this.negative !== 0 ? (this.negative = 0, C = R.sub(this), this.negative = 1, C) : this.length > R.length ? this.clone().iadd(R) : R.clone().iadd(this); + }, f.prototype.isub = function(R) { + if (R.negative !== 0) { + R.negative = 0; + var C = this.iadd(R); + return R.negative = 1, C._normSign(); + } else if (this.negative !== 0) + return this.negative = 0, this.iadd(R), this.negative = 1, this._normSign(); + var E = this.cmp(R); + if (E === 0) + return this.negative = 0, this.length = 1, this.words[0] = 0, this; + var A, L; + E > 0 ? (A = this, L = R) : (A = R, L = this); + for (var $ = 0, W = 0; W < L.length; W++) + C = (A.words[W] | 0) - (L.words[W] | 0) + $, $ = C >> 26, this.words[W] = C & 67108863; + for (; $ !== 0 && W < A.length; W++) + C = (A.words[W] | 0) + $, $ = C >> 26, this.words[W] = C & 67108863; + if ($ === 0 && W < A.length && A !== this) + for (; W < A.length; W++) + this.words[W] = A.words[W]; + return this.length = Math.max(this.length, W), A !== this && (this.negative = 1), this.strip(); + }, f.prototype.sub = function(R) { + return this.clone().isub(R); + }; + function a(I, R, C) { + C.negative = R.negative ^ I.negative; + var E = I.length + R.length | 0; + C.length = E, E = E - 1 | 0; + var A = I.words[0] | 0, L = R.words[0] | 0, $ = A * L, W = $ & 67108863, U = $ / 67108864 | 0; + C.words[0] = W; + for (var D = 1; D < E; D++) { + for (var B = U >>> 26, j = U & 67108863, V = Math.min(D, R.length - 1), re = Math.max(0, D - I.length + 1); re <= V; re++) { + var ee = D - re | 0; + A = I.words[ee] | 0, L = R.words[re] | 0, $ = A * L + j, B += $ / 67108864 | 0, j = $ & 67108863; + } + C.words[D] = j | 0, U = B | 0; + } + return U !== 0 ? C.words[D] = U | 0 : C.length--, C.strip(); + } + var r = function(R, C, E) { + var A = R.words, L = C.words, $ = E.words, W = 0, U, D, B, j = A[0] | 0, V = j & 8191, re = j >>> 13, ee = A[1] | 0, ce = ee & 8191, ve = ee >>> 13, ge = A[2] | 0, oe = ge & 8191, J = ge >>> 13, Q = A[3] | 0, he = Q & 8191, ke = Q >>> 13, ne = A[4] | 0, se = ne & 8191, Ce = ne >>> 13, q = A[5] | 0, G = q & 8191, Y = q >>> 13, fe = A[6] | 0, we = fe & 8191, _e = fe >>> 13, je = A[7] | 0, Ye = je & 8191, nt = je >>> 13, ut = A[8] | 0, ot = ut & 8191, Ue = ut >>> 13, Ve = A[9] | 0, Qe = Ve & 8191, tt = Ve >>> 13, ae = L[0] | 0, Re = ae & 8191, be = ae >>> 13, Ee = L[1] | 0, pe = Ee & 8191, Pe = Ee >>> 13, te = L[2] | 0, He = te & 8191, it = te >>> 13, K = L[3] | 0, Me = K & 8191, Le = K >>> 13, ue = L[4] | 0, Se = ue & 8191, Ie = ue >>> 13, st = L[5] | 0, Ge = st & 8191, rt = st >>> 13, _t = L[6] | 0, wt = _t & 8191, Ot = _t >>> 13, pt = L[7] | 0, ct = pt & 8191, At = pt >>> 13, Pt = L[8] | 0, bt = Pt & 8191, Kt = Pt >>> 13, Ct = L[9] | 0, xt = Ct & 8191, Ft = Ct >>> 13; + E.negative = R.negative ^ C.negative, E.length = 19, U = Math.imul(V, Re), D = Math.imul(V, be), D = D + Math.imul(re, Re) | 0, B = Math.imul(re, be); + var Lt = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Lt >>> 26) | 0, Lt &= 67108863, U = Math.imul(ce, Re), D = Math.imul(ce, be), D = D + Math.imul(ve, Re) | 0, B = Math.imul(ve, be), U = U + Math.imul(V, pe) | 0, D = D + Math.imul(V, Pe) | 0, D = D + Math.imul(re, pe) | 0, B = B + Math.imul(re, Pe) | 0; + var Et = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Et >>> 26) | 0, Et &= 67108863, U = Math.imul(oe, Re), D = Math.imul(oe, be), D = D + Math.imul(J, Re) | 0, B = Math.imul(J, be), U = U + Math.imul(ce, pe) | 0, D = D + Math.imul(ce, Pe) | 0, D = D + Math.imul(ve, pe) | 0, B = B + Math.imul(ve, Pe) | 0, U = U + Math.imul(V, He) | 0, D = D + Math.imul(V, it) | 0, D = D + Math.imul(re, He) | 0, B = B + Math.imul(re, it) | 0; + var Dr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Dr >>> 26) | 0, Dr &= 67108863, U = Math.imul(he, Re), D = Math.imul(he, be), D = D + Math.imul(ke, Re) | 0, B = Math.imul(ke, be), U = U + Math.imul(oe, pe) | 0, D = D + Math.imul(oe, Pe) | 0, D = D + Math.imul(J, pe) | 0, B = B + Math.imul(J, Pe) | 0, U = U + Math.imul(ce, He) | 0, D = D + Math.imul(ce, it) | 0, D = D + Math.imul(ve, He) | 0, B = B + Math.imul(ve, it) | 0, U = U + Math.imul(V, Me) | 0, D = D + Math.imul(V, Le) | 0, D = D + Math.imul(re, Me) | 0, B = B + Math.imul(re, Le) | 0; + var Or = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Or >>> 26) | 0, Or &= 67108863, U = Math.imul(se, Re), D = Math.imul(se, be), D = D + Math.imul(Ce, Re) | 0, B = Math.imul(Ce, be), U = U + Math.imul(he, pe) | 0, D = D + Math.imul(he, Pe) | 0, D = D + Math.imul(ke, pe) | 0, B = B + Math.imul(ke, Pe) | 0, U = U + Math.imul(oe, He) | 0, D = D + Math.imul(oe, it) | 0, D = D + Math.imul(J, He) | 0, B = B + Math.imul(J, it) | 0, U = U + Math.imul(ce, Me) | 0, D = D + Math.imul(ce, Le) | 0, D = D + Math.imul(ve, Me) | 0, B = B + Math.imul(ve, Le) | 0, U = U + Math.imul(V, Se) | 0, D = D + Math.imul(V, Ie) | 0, D = D + Math.imul(re, Se) | 0, B = B + Math.imul(re, Ie) | 0; + var Gr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, U = Math.imul(G, Re), D = Math.imul(G, be), D = D + Math.imul(Y, Re) | 0, B = Math.imul(Y, be), U = U + Math.imul(se, pe) | 0, D = D + Math.imul(se, Pe) | 0, D = D + Math.imul(Ce, pe) | 0, B = B + Math.imul(Ce, Pe) | 0, U = U + Math.imul(he, He) | 0, D = D + Math.imul(he, it) | 0, D = D + Math.imul(ke, He) | 0, B = B + Math.imul(ke, it) | 0, U = U + Math.imul(oe, Me) | 0, D = D + Math.imul(oe, Le) | 0, D = D + Math.imul(J, Me) | 0, B = B + Math.imul(J, Le) | 0, U = U + Math.imul(ce, Se) | 0, D = D + Math.imul(ce, Ie) | 0, D = D + Math.imul(ve, Se) | 0, B = B + Math.imul(ve, Ie) | 0, U = U + Math.imul(V, Ge) | 0, D = D + Math.imul(V, rt) | 0, D = D + Math.imul(re, Ge) | 0, B = B + Math.imul(re, rt) | 0; + var Nr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, U = Math.imul(we, Re), D = Math.imul(we, be), D = D + Math.imul(_e, Re) | 0, B = Math.imul(_e, be), U = U + Math.imul(G, pe) | 0, D = D + Math.imul(G, Pe) | 0, D = D + Math.imul(Y, pe) | 0, B = B + Math.imul(Y, Pe) | 0, U = U + Math.imul(se, He) | 0, D = D + Math.imul(se, it) | 0, D = D + Math.imul(Ce, He) | 0, B = B + Math.imul(Ce, it) | 0, U = U + Math.imul(he, Me) | 0, D = D + Math.imul(he, Le) | 0, D = D + Math.imul(ke, Me) | 0, B = B + Math.imul(ke, Le) | 0, U = U + Math.imul(oe, Se) | 0, D = D + Math.imul(oe, Ie) | 0, D = D + Math.imul(J, Se) | 0, B = B + Math.imul(J, Ie) | 0, U = U + Math.imul(ce, Ge) | 0, D = D + Math.imul(ce, rt) | 0, D = D + Math.imul(ve, Ge) | 0, B = B + Math.imul(ve, rt) | 0, U = U + Math.imul(V, wt) | 0, D = D + Math.imul(V, Ot) | 0, D = D + Math.imul(re, wt) | 0, B = B + Math.imul(re, Ot) | 0; + var Yr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, U = Math.imul(Ye, Re), D = Math.imul(Ye, be), D = D + Math.imul(nt, Re) | 0, B = Math.imul(nt, be), U = U + Math.imul(we, pe) | 0, D = D + Math.imul(we, Pe) | 0, D = D + Math.imul(_e, pe) | 0, B = B + Math.imul(_e, Pe) | 0, U = U + Math.imul(G, He) | 0, D = D + Math.imul(G, it) | 0, D = D + Math.imul(Y, He) | 0, B = B + Math.imul(Y, it) | 0, U = U + Math.imul(se, Me) | 0, D = D + Math.imul(se, Le) | 0, D = D + Math.imul(Ce, Me) | 0, B = B + Math.imul(Ce, Le) | 0, U = U + Math.imul(he, Se) | 0, D = D + Math.imul(he, Ie) | 0, D = D + Math.imul(ke, Se) | 0, B = B + Math.imul(ke, Ie) | 0, U = U + Math.imul(oe, Ge) | 0, D = D + Math.imul(oe, rt) | 0, D = D + Math.imul(J, Ge) | 0, B = B + Math.imul(J, rt) | 0, U = U + Math.imul(ce, wt) | 0, D = D + Math.imul(ce, Ot) | 0, D = D + Math.imul(ve, wt) | 0, B = B + Math.imul(ve, Ot) | 0, U = U + Math.imul(V, ct) | 0, D = D + Math.imul(V, At) | 0, D = D + Math.imul(re, ct) | 0, B = B + Math.imul(re, At) | 0; + var Qt = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Qt >>> 26) | 0, Qt &= 67108863, U = Math.imul(ot, Re), D = Math.imul(ot, be), D = D + Math.imul(Ue, Re) | 0, B = Math.imul(Ue, be), U = U + Math.imul(Ye, pe) | 0, D = D + Math.imul(Ye, Pe) | 0, D = D + Math.imul(nt, pe) | 0, B = B + Math.imul(nt, Pe) | 0, U = U + Math.imul(we, He) | 0, D = D + Math.imul(we, it) | 0, D = D + Math.imul(_e, He) | 0, B = B + Math.imul(_e, it) | 0, U = U + Math.imul(G, Me) | 0, D = D + Math.imul(G, Le) | 0, D = D + Math.imul(Y, Me) | 0, B = B + Math.imul(Y, Le) | 0, U = U + Math.imul(se, Se) | 0, D = D + Math.imul(se, Ie) | 0, D = D + Math.imul(Ce, Se) | 0, B = B + Math.imul(Ce, Ie) | 0, U = U + Math.imul(he, Ge) | 0, D = D + Math.imul(he, rt) | 0, D = D + Math.imul(ke, Ge) | 0, B = B + Math.imul(ke, rt) | 0, U = U + Math.imul(oe, wt) | 0, D = D + Math.imul(oe, Ot) | 0, D = D + Math.imul(J, wt) | 0, B = B + Math.imul(J, Ot) | 0, U = U + Math.imul(ce, ct) | 0, D = D + Math.imul(ce, At) | 0, D = D + Math.imul(ve, ct) | 0, B = B + Math.imul(ve, At) | 0, U = U + Math.imul(V, bt) | 0, D = D + Math.imul(V, Kt) | 0, D = D + Math.imul(re, bt) | 0, B = B + Math.imul(re, Kt) | 0; + var Xr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, U = Math.imul(Qe, Re), D = Math.imul(Qe, be), D = D + Math.imul(tt, Re) | 0, B = Math.imul(tt, be), U = U + Math.imul(ot, pe) | 0, D = D + Math.imul(ot, Pe) | 0, D = D + Math.imul(Ue, pe) | 0, B = B + Math.imul(Ue, Pe) | 0, U = U + Math.imul(Ye, He) | 0, D = D + Math.imul(Ye, it) | 0, D = D + Math.imul(nt, He) | 0, B = B + Math.imul(nt, it) | 0, U = U + Math.imul(we, Me) | 0, D = D + Math.imul(we, Le) | 0, D = D + Math.imul(_e, Me) | 0, B = B + Math.imul(_e, Le) | 0, U = U + Math.imul(G, Se) | 0, D = D + Math.imul(G, Ie) | 0, D = D + Math.imul(Y, Se) | 0, B = B + Math.imul(Y, Ie) | 0, U = U + Math.imul(se, Ge) | 0, D = D + Math.imul(se, rt) | 0, D = D + Math.imul(Ce, Ge) | 0, B = B + Math.imul(Ce, rt) | 0, U = U + Math.imul(he, wt) | 0, D = D + Math.imul(he, Ot) | 0, D = D + Math.imul(ke, wt) | 0, B = B + Math.imul(ke, Ot) | 0, U = U + Math.imul(oe, ct) | 0, D = D + Math.imul(oe, At) | 0, D = D + Math.imul(J, ct) | 0, B = B + Math.imul(J, At) | 0, U = U + Math.imul(ce, bt) | 0, D = D + Math.imul(ce, Kt) | 0, D = D + Math.imul(ve, bt) | 0, B = B + Math.imul(ve, Kt) | 0, U = U + Math.imul(V, xt) | 0, D = D + Math.imul(V, Ft) | 0, D = D + Math.imul(re, xt) | 0, B = B + Math.imul(re, Ft) | 0; + var Fr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, U = Math.imul(Qe, pe), D = Math.imul(Qe, Pe), D = D + Math.imul(tt, pe) | 0, B = Math.imul(tt, Pe), U = U + Math.imul(ot, He) | 0, D = D + Math.imul(ot, it) | 0, D = D + Math.imul(Ue, He) | 0, B = B + Math.imul(Ue, it) | 0, U = U + Math.imul(Ye, Me) | 0, D = D + Math.imul(Ye, Le) | 0, D = D + Math.imul(nt, Me) | 0, B = B + Math.imul(nt, Le) | 0, U = U + Math.imul(we, Se) | 0, D = D + Math.imul(we, Ie) | 0, D = D + Math.imul(_e, Se) | 0, B = B + Math.imul(_e, Ie) | 0, U = U + Math.imul(G, Ge) | 0, D = D + Math.imul(G, rt) | 0, D = D + Math.imul(Y, Ge) | 0, B = B + Math.imul(Y, rt) | 0, U = U + Math.imul(se, wt) | 0, D = D + Math.imul(se, Ot) | 0, D = D + Math.imul(Ce, wt) | 0, B = B + Math.imul(Ce, Ot) | 0, U = U + Math.imul(he, ct) | 0, D = D + Math.imul(he, At) | 0, D = D + Math.imul(ke, ct) | 0, B = B + Math.imul(ke, At) | 0, U = U + Math.imul(oe, bt) | 0, D = D + Math.imul(oe, Kt) | 0, D = D + Math.imul(J, bt) | 0, B = B + Math.imul(J, Kt) | 0, U = U + Math.imul(ce, xt) | 0, D = D + Math.imul(ce, Ft) | 0, D = D + Math.imul(ve, xt) | 0, B = B + Math.imul(ve, Ft) | 0; + var Lr = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, U = Math.imul(Qe, He), D = Math.imul(Qe, it), D = D + Math.imul(tt, He) | 0, B = Math.imul(tt, it), U = U + Math.imul(ot, Me) | 0, D = D + Math.imul(ot, Le) | 0, D = D + Math.imul(Ue, Me) | 0, B = B + Math.imul(Ue, Le) | 0, U = U + Math.imul(Ye, Se) | 0, D = D + Math.imul(Ye, Ie) | 0, D = D + Math.imul(nt, Se) | 0, B = B + Math.imul(nt, Ie) | 0, U = U + Math.imul(we, Ge) | 0, D = D + Math.imul(we, rt) | 0, D = D + Math.imul(_e, Ge) | 0, B = B + Math.imul(_e, rt) | 0, U = U + Math.imul(G, wt) | 0, D = D + Math.imul(G, Ot) | 0, D = D + Math.imul(Y, wt) | 0, B = B + Math.imul(Y, Ot) | 0, U = U + Math.imul(se, ct) | 0, D = D + Math.imul(se, At) | 0, D = D + Math.imul(Ce, ct) | 0, B = B + Math.imul(Ce, At) | 0, U = U + Math.imul(he, bt) | 0, D = D + Math.imul(he, Kt) | 0, D = D + Math.imul(ke, bt) | 0, B = B + Math.imul(ke, Kt) | 0, U = U + Math.imul(oe, xt) | 0, D = D + Math.imul(oe, Ft) | 0, D = D + Math.imul(J, xt) | 0, B = B + Math.imul(J, Ft) | 0; + var Ur = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, U = Math.imul(Qe, Me), D = Math.imul(Qe, Le), D = D + Math.imul(tt, Me) | 0, B = Math.imul(tt, Le), U = U + Math.imul(ot, Se) | 0, D = D + Math.imul(ot, Ie) | 0, D = D + Math.imul(Ue, Se) | 0, B = B + Math.imul(Ue, Ie) | 0, U = U + Math.imul(Ye, Ge) | 0, D = D + Math.imul(Ye, rt) | 0, D = D + Math.imul(nt, Ge) | 0, B = B + Math.imul(nt, rt) | 0, U = U + Math.imul(we, wt) | 0, D = D + Math.imul(we, Ot) | 0, D = D + Math.imul(_e, wt) | 0, B = B + Math.imul(_e, Ot) | 0, U = U + Math.imul(G, ct) | 0, D = D + Math.imul(G, At) | 0, D = D + Math.imul(Y, ct) | 0, B = B + Math.imul(Y, At) | 0, U = U + Math.imul(se, bt) | 0, D = D + Math.imul(se, Kt) | 0, D = D + Math.imul(Ce, bt) | 0, B = B + Math.imul(Ce, Kt) | 0, U = U + Math.imul(he, xt) | 0, D = D + Math.imul(he, Ft) | 0, D = D + Math.imul(ke, xt) | 0, B = B + Math.imul(ke, Ft) | 0; + var vt = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (vt >>> 26) | 0, vt &= 67108863, U = Math.imul(Qe, Se), D = Math.imul(Qe, Ie), D = D + Math.imul(tt, Se) | 0, B = Math.imul(tt, Ie), U = U + Math.imul(ot, Ge) | 0, D = D + Math.imul(ot, rt) | 0, D = D + Math.imul(Ue, Ge) | 0, B = B + Math.imul(Ue, rt) | 0, U = U + Math.imul(Ye, wt) | 0, D = D + Math.imul(Ye, Ot) | 0, D = D + Math.imul(nt, wt) | 0, B = B + Math.imul(nt, Ot) | 0, U = U + Math.imul(we, ct) | 0, D = D + Math.imul(we, At) | 0, D = D + Math.imul(_e, ct) | 0, B = B + Math.imul(_e, At) | 0, U = U + Math.imul(G, bt) | 0, D = D + Math.imul(G, Kt) | 0, D = D + Math.imul(Y, bt) | 0, B = B + Math.imul(Y, Kt) | 0, U = U + Math.imul(se, xt) | 0, D = D + Math.imul(se, Ft) | 0, D = D + Math.imul(Ce, xt) | 0, B = B + Math.imul(Ce, Ft) | 0; + var Ke = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Ke >>> 26) | 0, Ke &= 67108863, U = Math.imul(Qe, Ge), D = Math.imul(Qe, rt), D = D + Math.imul(tt, Ge) | 0, B = Math.imul(tt, rt), U = U + Math.imul(ot, wt) | 0, D = D + Math.imul(ot, Ot) | 0, D = D + Math.imul(Ue, wt) | 0, B = B + Math.imul(Ue, Ot) | 0, U = U + Math.imul(Ye, ct) | 0, D = D + Math.imul(Ye, At) | 0, D = D + Math.imul(nt, ct) | 0, B = B + Math.imul(nt, At) | 0, U = U + Math.imul(we, bt) | 0, D = D + Math.imul(we, Kt) | 0, D = D + Math.imul(_e, bt) | 0, B = B + Math.imul(_e, Kt) | 0, U = U + Math.imul(G, xt) | 0, D = D + Math.imul(G, Ft) | 0, D = D + Math.imul(Y, xt) | 0, B = B + Math.imul(Y, Ft) | 0; + var me = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, U = Math.imul(Qe, wt), D = Math.imul(Qe, Ot), D = D + Math.imul(tt, wt) | 0, B = Math.imul(tt, Ot), U = U + Math.imul(ot, ct) | 0, D = D + Math.imul(ot, At) | 0, D = D + Math.imul(Ue, ct) | 0, B = B + Math.imul(Ue, At) | 0, U = U + Math.imul(Ye, bt) | 0, D = D + Math.imul(Ye, Kt) | 0, D = D + Math.imul(nt, bt) | 0, B = B + Math.imul(nt, Kt) | 0, U = U + Math.imul(we, xt) | 0, D = D + Math.imul(we, Ft) | 0, D = D + Math.imul(_e, xt) | 0, B = B + Math.imul(_e, Ft) | 0; + var Fe = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Fe >>> 26) | 0, Fe &= 67108863, U = Math.imul(Qe, ct), D = Math.imul(Qe, At), D = D + Math.imul(tt, ct) | 0, B = Math.imul(tt, At), U = U + Math.imul(ot, bt) | 0, D = D + Math.imul(ot, Kt) | 0, D = D + Math.imul(Ue, bt) | 0, B = B + Math.imul(Ue, Kt) | 0, U = U + Math.imul(Ye, xt) | 0, D = D + Math.imul(Ye, Ft) | 0, D = D + Math.imul(nt, xt) | 0, B = B + Math.imul(nt, Ft) | 0; + var Be = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, U = Math.imul(Qe, bt), D = Math.imul(Qe, Kt), D = D + Math.imul(tt, bt) | 0, B = Math.imul(tt, Kt), U = U + Math.imul(ot, xt) | 0, D = D + Math.imul(ot, Ft) | 0, D = D + Math.imul(Ue, xt) | 0, B = B + Math.imul(Ue, Ft) | 0; + var dt = (W + U | 0) + ((D & 8191) << 13) | 0; + W = (B + (D >>> 13) | 0) + (dt >>> 26) | 0, dt &= 67108863, U = Math.imul(Qe, xt), D = Math.imul(Qe, Ft), D = D + Math.imul(tt, xt) | 0, B = Math.imul(tt, Ft); + var St = (W + U | 0) + ((D & 8191) << 13) | 0; + return W = (B + (D >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, $[0] = Lt, $[1] = Et, $[2] = Dr, $[3] = Or, $[4] = Gr, $[5] = Nr, $[6] = Yr, $[7] = Qt, $[8] = Xr, $[9] = Fr, $[10] = Lr, $[11] = Ur, $[12] = vt, $[13] = Ke, $[14] = me, $[15] = Fe, $[16] = Be, $[17] = dt, $[18] = St, W !== 0 && ($[19] = W, E.length++), E; + }; + Math.imul || (r = a); + function t(I, R, C) { + C.negative = R.negative ^ I.negative, C.length = I.length + R.length; + for (var E = 0, A = 0, L = 0; L < C.length - 1; L++) { + var $ = A; + A = 0; + for (var W = E & 67108863, U = Math.min(L, R.length - 1), D = Math.max(0, L - I.length + 1); D <= U; D++) { + var B = L - D, j = I.words[B] | 0, V = R.words[D] | 0, re = j * V, ee = re & 67108863; + $ = $ + (re / 67108864 | 0) | 0, ee = ee + W | 0, W = ee & 67108863, $ = $ + (ee >>> 26) | 0, A += $ >>> 26, $ &= 67108863; + } + C.words[L] = W, E = $, $ = A; + } + return E !== 0 ? C.words[L] = E : C.length--, C.strip(); + } + function i(I, R, C) { + var E = new n(); + return E.mulp(I, R, C); + } + f.prototype.mulTo = function(R, C) { + var E, A = this.length + R.length; + return this.length === 10 && R.length === 10 ? E = r(this, R, C) : A < 63 ? E = a(this, R, C) : A < 1024 ? E = t(this, R, C) : E = i(this, R, C), E; + }; + function n(I, R) { + this.x = I, this.y = R; + } + n.prototype.makeRBT = function(R) { + for (var C = new Array(R), E = f.prototype._countBits(R) - 1, A = 0; A < R; A++) + C[A] = this.revBin(A, E, R); + return C; + }, n.prototype.revBin = function(R, C, E) { + if (R === 0 || R === E - 1) + return R; + for (var A = 0, L = 0; L < C; L++) + A |= (R & 1) << C - L - 1, R >>= 1; + return A; + }, n.prototype.permute = function(R, C, E, A, L, $) { + for (var W = 0; W < $; W++) + A[W] = C[R[W]], L[W] = E[R[W]]; + }, n.prototype.transform = function(R, C, E, A, L, $) { + this.permute($, R, C, E, A, L); + for (var W = 1; W < L; W <<= 1) + for (var U = W << 1, D = Math.cos(2 * Math.PI / U), B = Math.sin(2 * Math.PI / U), j = 0; j < L; j += U) + for (var V = D, re = B, ee = 0; ee < W; ee++) { + var ce = E[j + ee], ve = A[j + ee], ge = E[j + ee + W], oe = A[j + ee + W], J = V * ge - re * oe; + oe = V * oe + re * ge, ge = J, E[j + ee] = ce + ge, A[j + ee] = ve + oe, E[j + ee + W] = ce - ge, A[j + ee + W] = ve - oe, ee !== U && (J = D * V - B * re, re = D * re + B * V, V = J); + } + }, n.prototype.guessLen13b = function(R, C) { + var E = Math.max(C, R) | 1, A = E & 1, L = 0; + for (E = E / 2 | 0; E; E = E >>> 1) + L++; + return 1 << L + 1 + A; + }, n.prototype.conjugate = function(R, C, E) { + if (!(E <= 1)) + for (var A = 0; A < E / 2; A++) { + var L = R[A]; + R[A] = R[E - A - 1], R[E - A - 1] = L, L = C[A], C[A] = -C[E - A - 1], C[E - A - 1] = -L; + } + }, n.prototype.normalize13b = function(R, C) { + for (var E = 0, A = 0; A < C / 2; A++) { + var L = Math.round(R[2 * A + 1] / C) * 8192 + Math.round(R[2 * A] / C) + E; + R[A] = L & 67108863, L < 67108864 ? E = 0 : E = L / 67108864 | 0; + } + return R; + }, n.prototype.convert13b = function(R, C, E, A) { + for (var L = 0, $ = 0; $ < C; $++) + L = L + (R[$] | 0), E[2 * $] = L & 8191, L = L >>> 13, E[2 * $ + 1] = L & 8191, L = L >>> 13; + for ($ = 2 * C; $ < A; ++$) + E[$] = 0; + b(L === 0), b((L & -8192) === 0); + }, n.prototype.stub = function(R) { + for (var C = new Array(R), E = 0; E < R; E++) + C[E] = 0; + return C; + }, n.prototype.mulp = function(R, C, E) { + var A = 2 * this.guessLen13b(R.length, C.length), L = this.makeRBT(A), $ = this.stub(A), W = new Array(A), U = new Array(A), D = new Array(A), B = new Array(A), j = new Array(A), V = new Array(A), re = E.words; + re.length = A, this.convert13b(R.words, R.length, W, A), this.convert13b(C.words, C.length, B, A), this.transform(W, $, U, D, A, L), this.transform(B, $, j, V, A, L); + for (var ee = 0; ee < A; ee++) { + var ce = U[ee] * j[ee] - D[ee] * V[ee]; + D[ee] = U[ee] * V[ee] + D[ee] * j[ee], U[ee] = ce; + } + return this.conjugate(U, D, A), this.transform(U, D, re, $, A, L), this.conjugate(re, $, A), this.normalize13b(re, A), E.negative = R.negative ^ C.negative, E.length = R.length + C.length, E.strip(); + }, f.prototype.mul = function(R) { + var C = new f(null); + return C.words = new Array(this.length + R.length), this.mulTo(R, C); + }, f.prototype.mulf = function(R) { + var C = new f(null); + return C.words = new Array(this.length + R.length), i(this, R, C); + }, f.prototype.imul = function(R) { + return this.clone().mulTo(R, this); + }, f.prototype.imuln = function(R) { + b(typeof R == "number"), b(R < 67108864); + for (var C = 0, E = 0; E < this.length; E++) { + var A = (this.words[E] | 0) * R, L = (A & 67108863) + (C & 67108863); + C >>= 26, C += A / 67108864 | 0, C += L >>> 26, this.words[E] = L & 67108863; + } + return C !== 0 && (this.words[E] = C, this.length++), this; + }, f.prototype.muln = function(R) { + return this.clone().imuln(R); + }, f.prototype.sqr = function() { + return this.mul(this); + }, f.prototype.isqr = function() { + return this.imul(this.clone()); + }, f.prototype.pow = function(R) { + var C = c(R); + if (C.length === 0) + return new f(1); + for (var E = this, A = 0; A < C.length && C[A] === 0; A++, E = E.sqr()) + ; + if (++A < C.length) + for (var L = E.sqr(); A < C.length; A++, L = L.sqr()) + C[A] !== 0 && (E = E.mul(L)); + return E; + }, f.prototype.iushln = function(R) { + b(typeof R == "number" && R >= 0); + var C = R % 26, E = (R - C) / 26, A = 67108863 >>> 26 - C << 26 - C, L; + if (C !== 0) { + var $ = 0; + for (L = 0; L < this.length; L++) { + var W = this.words[L] & A, U = (this.words[L] | 0) - W << C; + this.words[L] = U | $, $ = W >>> 26 - C; + } + $ && (this.words[L] = $, this.length++); + } + if (E !== 0) { + for (L = this.length - 1; L >= 0; L--) + this.words[L + E] = this.words[L]; + for (L = 0; L < E; L++) + this.words[L] = 0; + this.length += E; + } + return this.strip(); + }, f.prototype.ishln = function(R) { + return b(this.negative === 0), this.iushln(R); + }, f.prototype.iushrn = function(R, C, E) { + b(typeof R == "number" && R >= 0); + var A; + C ? A = (C - C % 26) / 26 : A = 0; + var L = R % 26, $ = Math.min((R - L) / 26, this.length), W = 67108863 ^ 67108863 >>> L << L, U = E; + if (A -= $, A = Math.max(0, A), U) { + for (var D = 0; D < $; D++) + U.words[D] = this.words[D]; + U.length = $; + } + if ($ !== 0) + if (this.length > $) + for (this.length -= $, D = 0; D < this.length; D++) + this.words[D] = this.words[D + $]; + else + this.words[0] = 0, this.length = 1; + var B = 0; + for (D = this.length - 1; D >= 0 && (B !== 0 || D >= A); D--) { + var j = this.words[D] | 0; + this.words[D] = B << 26 - L | j >>> L, B = j & W; + } + return U && B !== 0 && (U.words[U.length++] = B), this.length === 0 && (this.words[0] = 0, this.length = 1), this.strip(); + }, f.prototype.ishrn = function(R, C, E) { + return b(this.negative === 0), this.iushrn(R, C, E); + }, f.prototype.shln = function(R) { + return this.clone().ishln(R); + }, f.prototype.ushln = function(R) { + return this.clone().iushln(R); + }, f.prototype.shrn = function(R) { + return this.clone().ishrn(R); + }, f.prototype.ushrn = function(R) { + return this.clone().iushrn(R); + }, f.prototype.testn = function(R) { + b(typeof R == "number" && R >= 0); + var C = R % 26, E = (R - C) / 26, A = 1 << C; + if (this.length <= E) + return !1; + var L = this.words[E]; + return !!(L & A); + }, f.prototype.imaskn = function(R) { + b(typeof R == "number" && R >= 0); + var C = R % 26, E = (R - C) / 26; + if (b(this.negative === 0, "imaskn works only with positive numbers"), this.length <= E) + return this; + if (C !== 0 && E++, this.length = Math.min(E, this.length), C !== 0) { + var A = 67108863 ^ 67108863 >>> C << C; + this.words[this.length - 1] &= A; + } + return this.strip(); + }, f.prototype.maskn = function(R) { + return this.clone().imaskn(R); + }, f.prototype.iaddn = function(R) { + return b(typeof R == "number"), b(R < 67108864), R < 0 ? this.isubn(-R) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) < R ? (this.words[0] = R - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(R), this.negative = 1, this) : this._iaddn(R); + }, f.prototype._iaddn = function(R) { + this.words[0] += R; + for (var C = 0; C < this.length && this.words[C] >= 67108864; C++) + this.words[C] -= 67108864, C === this.length - 1 ? this.words[C + 1] = 1 : this.words[C + 1]++; + return this.length = Math.max(this.length, C + 1), this; + }, f.prototype.isubn = function(R) { + if (b(typeof R == "number"), b(R < 67108864), R < 0) + return this.iaddn(-R); + if (this.negative !== 0) + return this.negative = 0, this.iaddn(R), this.negative = 1, this; + if (this.words[0] -= R, this.length === 1 && this.words[0] < 0) + this.words[0] = -this.words[0], this.negative = 1; + else + for (var C = 0; C < this.length && this.words[C] < 0; C++) + this.words[C] += 67108864, this.words[C + 1] -= 1; + return this.strip(); + }, f.prototype.addn = function(R) { + return this.clone().iaddn(R); + }, f.prototype.subn = function(R) { + return this.clone().isubn(R); + }, f.prototype.iabs = function() { + return this.negative = 0, this; + }, f.prototype.abs = function() { + return this.clone().iabs(); + }, f.prototype._ishlnsubmul = function(R, C, E) { + var A = R.length + E, L; + this._expand(A); + var $, W = 0; + for (L = 0; L < R.length; L++) { + $ = (this.words[L + E] | 0) + W; + var U = (R.words[L] | 0) * C; + $ -= U & 67108863, W = ($ >> 26) - (U / 67108864 | 0), this.words[L + E] = $ & 67108863; + } + for (; L < this.length - E; L++) + $ = (this.words[L + E] | 0) + W, W = $ >> 26, this.words[L + E] = $ & 67108863; + if (W === 0) + return this.strip(); + for (b(W === -1), W = 0, L = 0; L < this.length; L++) + $ = -(this.words[L] | 0) + W, W = $ >> 26, this.words[L] = $ & 67108863; + return this.negative = 1, this.strip(); + }, f.prototype._wordDiv = function(R, C) { + var E = this.length - R.length, A = this.clone(), L = R, $ = L.words[L.length - 1] | 0, W = this._countBits($); + E = 26 - W, E !== 0 && (L = L.ushln(E), A.iushln(E), $ = L.words[L.length - 1] | 0); + var U = A.length - L.length, D; + if (C !== "mod") { + D = new f(null), D.length = U + 1, D.words = new Array(D.length); + for (var B = 0; B < D.length; B++) + D.words[B] = 0; + } + var j = A.clone()._ishlnsubmul(L, 1, U); + j.negative === 0 && (A = j, D && (D.words[U] = 1)); + for (var V = U - 1; V >= 0; V--) { + var re = (A.words[L.length + V] | 0) * 67108864 + (A.words[L.length + V - 1] | 0); + for (re = Math.min(re / $ | 0, 67108863), A._ishlnsubmul(L, re, V); A.negative !== 0; ) + re--, A.negative = 0, A._ishlnsubmul(L, 1, V), A.isZero() || (A.negative ^= 1); + D && (D.words[V] = re); + } + return D && D.strip(), A.strip(), C !== "div" && E !== 0 && A.iushrn(E), { + div: D || null, + mod: A + }; + }, f.prototype.divmod = function(R, C, E) { + if (b(!R.isZero()), this.isZero()) + return { + div: new f(0), + mod: new f(0) + }; + var A, L, $; + return this.negative !== 0 && R.negative === 0 ? ($ = this.neg().divmod(R, C), C !== "mod" && (A = $.div.neg()), C !== "div" && (L = $.mod.neg(), E && L.negative !== 0 && L.iadd(R)), { + div: A, + mod: L + }) : this.negative === 0 && R.negative !== 0 ? ($ = this.divmod(R.neg(), C), C !== "mod" && (A = $.div.neg()), { + div: A, + mod: $.mod + }) : this.negative & R.negative ? ($ = this.neg().divmod(R.neg(), C), C !== "div" && (L = $.mod.neg(), E && L.negative !== 0 && L.isub(R)), { + div: $.div, + mod: L + }) : R.length > this.length || this.cmp(R) < 0 ? { + div: new f(0), + mod: this + } : R.length === 1 ? C === "div" ? { + div: this.divn(R.words[0]), + mod: null + } : C === "mod" ? { + div: null, + mod: new f(this.modn(R.words[0])) + } : { + div: this.divn(R.words[0]), + mod: new f(this.modn(R.words[0])) + } : this._wordDiv(R, C); + }, f.prototype.div = function(R) { + return this.divmod(R, "div", !1).div; + }, f.prototype.mod = function(R) { + return this.divmod(R, "mod", !1).mod; + }, f.prototype.umod = function(R) { + return this.divmod(R, "mod", !0).mod; + }, f.prototype.divRound = function(R) { + var C = this.divmod(R); + if (C.mod.isZero()) + return C.div; + var E = C.div.negative !== 0 ? C.mod.isub(R) : C.mod, A = R.ushrn(1), L = R.andln(1), $ = E.cmp(A); + return $ < 0 || L === 1 && $ === 0 ? C.div : C.div.negative !== 0 ? C.div.isubn(1) : C.div.iaddn(1); + }, f.prototype.modn = function(R) { + b(R <= 67108863); + for (var C = (1 << 26) % R, E = 0, A = this.length - 1; A >= 0; A--) + E = (C * E + (this.words[A] | 0)) % R; + return E; + }, f.prototype.idivn = function(R) { + b(R <= 67108863); + for (var C = 0, E = this.length - 1; E >= 0; E--) { + var A = (this.words[E] | 0) + C * 67108864; + this.words[E] = A / R | 0, C = A % R; + } + return this.strip(); + }, f.prototype.divn = function(R) { + return this.clone().idivn(R); + }, f.prototype.egcd = function(R) { + b(R.negative === 0), b(!R.isZero()); + var C = this, E = R.clone(); + C.negative !== 0 ? C = C.umod(R) : C = C.clone(); + for (var A = new f(1), L = new f(0), $ = new f(0), W = new f(1), U = 0; C.isEven() && E.isEven(); ) + C.iushrn(1), E.iushrn(1), ++U; + for (var D = E.clone(), B = C.clone(); !C.isZero(); ) { + for (var j = 0, V = 1; !(C.words[0] & V) && j < 26; ++j, V <<= 1) + ; + if (j > 0) + for (C.iushrn(j); j-- > 0; ) + (A.isOdd() || L.isOdd()) && (A.iadd(D), L.isub(B)), A.iushrn(1), L.iushrn(1); + for (var re = 0, ee = 1; !(E.words[0] & ee) && re < 26; ++re, ee <<= 1) + ; + if (re > 0) + for (E.iushrn(re); re-- > 0; ) + ($.isOdd() || W.isOdd()) && ($.iadd(D), W.isub(B)), $.iushrn(1), W.iushrn(1); + C.cmp(E) >= 0 ? (C.isub(E), A.isub($), L.isub(W)) : (E.isub(C), $.isub(A), W.isub(L)); + } + return { + a: $, + b: W, + gcd: E.iushln(U) + }; + }, f.prototype._invmp = function(R) { + b(R.negative === 0), b(!R.isZero()); + var C = this, E = R.clone(); + C.negative !== 0 ? C = C.umod(R) : C = C.clone(); + for (var A = new f(1), L = new f(0), $ = E.clone(); C.cmpn(1) > 0 && E.cmpn(1) > 0; ) { + for (var W = 0, U = 1; !(C.words[0] & U) && W < 26; ++W, U <<= 1) + ; + if (W > 0) + for (C.iushrn(W); W-- > 0; ) + A.isOdd() && A.iadd($), A.iushrn(1); + for (var D = 0, B = 1; !(E.words[0] & B) && D < 26; ++D, B <<= 1) + ; + if (D > 0) + for (E.iushrn(D); D-- > 0; ) + L.isOdd() && L.iadd($), L.iushrn(1); + C.cmp(E) >= 0 ? (C.isub(E), A.isub(L)) : (E.isub(C), L.isub(A)); + } + var j; + return C.cmpn(1) === 0 ? j = A : j = L, j.cmpn(0) < 0 && j.iadd(R), j; + }, f.prototype.gcd = function(R) { + if (this.isZero()) + return R.abs(); + if (R.isZero()) + return this.abs(); + var C = this.clone(), E = R.clone(); + C.negative = 0, E.negative = 0; + for (var A = 0; C.isEven() && E.isEven(); A++) + C.iushrn(1), E.iushrn(1); + do { + for (; C.isEven(); ) + C.iushrn(1); + for (; E.isEven(); ) + E.iushrn(1); + var L = C.cmp(E); + if (L < 0) { + var $ = C; + C = E, E = $; + } else if (L === 0 || E.cmpn(1) === 0) + break; + C.isub(E); + } while (!0); + return E.iushln(A); + }, f.prototype.invm = function(R) { + return this.egcd(R).a.umod(R); + }, f.prototype.isEven = function() { + return (this.words[0] & 1) === 0; + }, f.prototype.isOdd = function() { + return (this.words[0] & 1) === 1; + }, f.prototype.andln = function(R) { + return this.words[0] & R; + }, f.prototype.bincn = function(R) { + b(typeof R == "number"); + var C = R % 26, E = (R - C) / 26, A = 1 << C; + if (this.length <= E) + return this._expand(E + 1), this.words[E] |= A, this; + for (var L = A, $ = E; L !== 0 && $ < this.length; $++) { + var W = this.words[$] | 0; + W += L, L = W >>> 26, W &= 67108863, this.words[$] = W; + } + return L !== 0 && (this.words[$] = L, this.length++), this; + }, f.prototype.isZero = function() { + return this.length === 1 && this.words[0] === 0; + }, f.prototype.cmpn = function(R) { + var C = R < 0; + if (this.negative !== 0 && !C) + return -1; + if (this.negative === 0 && C) + return 1; + this.strip(); + var E; + if (this.length > 1) + E = 1; + else { + C && (R = -R), b(R <= 67108863, "Number is too big"); + var A = this.words[0] | 0; + E = A === R ? 0 : A < R ? -1 : 1; + } + return this.negative !== 0 ? -E | 0 : E; + }, f.prototype.cmp = function(R) { + if (this.negative !== 0 && R.negative === 0) + return -1; + if (this.negative === 0 && R.negative !== 0) + return 1; + var C = this.ucmp(R); + return this.negative !== 0 ? -C | 0 : C; + }, f.prototype.ucmp = function(R) { + if (this.length > R.length) + return 1; + if (this.length < R.length) + return -1; + for (var C = 0, E = this.length - 1; E >= 0; E--) { + var A = this.words[E] | 0, L = R.words[E] | 0; + if (A !== L) { + A < L ? C = -1 : A > L && (C = 1); + break; + } + } + return C; + }, f.prototype.gtn = function(R) { + return this.cmpn(R) === 1; + }, f.prototype.gt = function(R) { + return this.cmp(R) === 1; + }, f.prototype.gten = function(R) { + return this.cmpn(R) >= 0; + }, f.prototype.gte = function(R) { + return this.cmp(R) >= 0; + }, f.prototype.ltn = function(R) { + return this.cmpn(R) === -1; + }, f.prototype.lt = function(R) { + return this.cmp(R) === -1; + }, f.prototype.lten = function(R) { + return this.cmpn(R) <= 0; + }, f.prototype.lte = function(R) { + return this.cmp(R) <= 0; + }, f.prototype.eqn = function(R) { + return this.cmpn(R) === 0; + }, f.prototype.eq = function(R) { + return this.cmp(R) === 0; + }, f.red = function(R) { + return new N(R); + }, f.prototype.toRed = function(R) { + return b(!this.red, "Already a number in reduction context"), b(this.negative === 0, "red works only with positives"), R.convertTo(this)._forceRed(R); + }, f.prototype.fromRed = function() { + return b(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this); + }, f.prototype._forceRed = function(R) { + return this.red = R, this; + }, f.prototype.forceRed = function(R) { + return b(!this.red, "Already a number in reduction context"), this._forceRed(R); + }, f.prototype.redAdd = function(R) { + return b(this.red, "redAdd works only with red numbers"), this.red.add(this, R); + }, f.prototype.redIAdd = function(R) { + return b(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, R); + }, f.prototype.redSub = function(R) { + return b(this.red, "redSub works only with red numbers"), this.red.sub(this, R); + }, f.prototype.redISub = function(R) { + return b(this.red, "redISub works only with red numbers"), this.red.isub(this, R); + }, f.prototype.redShl = function(R) { + return b(this.red, "redShl works only with red numbers"), this.red.shl(this, R); + }, f.prototype.redMul = function(R) { + return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, R), this.red.mul(this, R); + }, f.prototype.redIMul = function(R) { + return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, R), this.red.imul(this, R); + }, f.prototype.redSqr = function() { + return b(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this); + }, f.prototype.redISqr = function() { + return b(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this); + }, f.prototype.redSqrt = function() { + return b(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this); + }, f.prototype.redInvm = function() { + return b(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this); + }, f.prototype.redNeg = function() { + return b(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this); + }, f.prototype.redPow = function(R) { + return b(this.red && !R.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, R); + }; + var o = { + k256: null, + p224: null, + p192: null, + p25519: null + }; + function p(I, R) { + this.name = I, this.p = new f(R, 16), this.n = this.p.bitLength(), this.k = new f(1).iushln(this.n).isub(this.p), this.tmp = this._tmp(); + } + p.prototype._tmp = function() { + var R = new f(null); + return R.words = new Array(Math.ceil(this.n / 13)), R; + }, p.prototype.ireduce = function(R) { + var C = R, E; + do + this.split(C, this.tmp), C = this.imulK(C), C = C.iadd(this.tmp), E = C.bitLength(); + while (E > this.n); + var A = E < this.n ? -1 : C.ucmp(this.p); + return A === 0 ? (C.words[0] = 0, C.length = 1) : A > 0 ? C.isub(this.p) : C.strip !== void 0 ? C.strip() : C._strip(), C; + }, p.prototype.split = function(R, C) { + R.iushrn(this.n, 0, C); + }, p.prototype.imulK = function(R) { + return R.imul(this.k); + }; + function O() { + p.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f"); + } + w(O, p), O.prototype.split = function(R, C) { + for (var E = 4194303, A = Math.min(R.length, 9), L = 0; L < A; L++) + C.words[L] = R.words[L]; + if (C.length = A, R.length <= 9) { + R.words[0] = 0, R.length = 1; + return; + } + var $ = R.words[9]; + for (C.words[C.length++] = $ & E, L = 10; L < R.length; L++) { + var W = R.words[L] | 0; + R.words[L - 10] = (W & E) << 4 | $ >>> 22, $ = W; + } + $ >>>= 22, R.words[L - 10] = $, $ === 0 && R.length > 10 ? R.length -= 10 : R.length -= 9; + }, O.prototype.imulK = function(R) { + R.words[R.length] = 0, R.words[R.length + 1] = 0, R.length += 2; + for (var C = 0, E = 0; E < R.length; E++) { + var A = R.words[E] | 0; + C += A * 977, R.words[E] = C & 67108863, C = A * 64 + (C / 67108864 | 0); + } + return R.words[R.length - 1] === 0 && (R.length--, R.words[R.length - 1] === 0 && R.length--), R; + }; + function P() { + p.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"); + } + w(P, p); + function F() { + p.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff"); + } + w(F, p); + function z() { + p.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"); + } + w(z, p), z.prototype.imulK = function(R) { + for (var C = 0, E = 0; E < R.length; E++) { + var A = (R.words[E] | 0) * 19 + C, L = A & 67108863; + A >>>= 26, R.words[E] = L, C = A; + } + return C !== 0 && (R.words[R.length++] = C), R; + }, f._prime = function(R) { + if (o[R]) + return o[R]; + var C; + if (R === "k256") + C = new O(); + else if (R === "p224") + C = new P(); + else if (R === "p192") + C = new F(); + else if (R === "p25519") + C = new z(); + else + throw new Error("Unknown prime " + R); + return o[R] = C, C; + }; + function N(I) { + if (typeof I == "string") { + var R = f._prime(I); + this.m = R.p, this.prime = R; + } else + b(I.gtn(1), "modulus must be greater than 1"), this.m = I, this.prime = null; + } + N.prototype._verify1 = function(R) { + b(R.negative === 0, "red works only with positives"), b(R.red, "red works only with red numbers"); + }, N.prototype._verify2 = function(R, C) { + b((R.negative | C.negative) === 0, "red works only with positives"), b(R.red && R.red === C.red, "red works only with red numbers"); + }, N.prototype.imod = function(R) { + return this.prime ? this.prime.ireduce(R)._forceRed(this) : R.umod(this.m)._forceRed(this); + }, N.prototype.neg = function(R) { + return R.isZero() ? R.clone() : this.m.sub(R)._forceRed(this); + }, N.prototype.add = function(R, C) { + this._verify2(R, C); + var E = R.add(C); + return E.cmp(this.m) >= 0 && E.isub(this.m), E._forceRed(this); + }, N.prototype.iadd = function(R, C) { + this._verify2(R, C); + var E = R.iadd(C); + return E.cmp(this.m) >= 0 && E.isub(this.m), E; + }, N.prototype.sub = function(R, C) { + this._verify2(R, C); + var E = R.sub(C); + return E.cmpn(0) < 0 && E.iadd(this.m), E._forceRed(this); + }, N.prototype.isub = function(R, C) { + this._verify2(R, C); + var E = R.isub(C); + return E.cmpn(0) < 0 && E.iadd(this.m), E; + }, N.prototype.shl = function(R, C) { + return this._verify1(R), this.imod(R.ushln(C)); + }, N.prototype.imul = function(R, C) { + return this._verify2(R, C), this.imod(R.imul(C)); + }, N.prototype.mul = function(R, C) { + return this._verify2(R, C), this.imod(R.mul(C)); + }, N.prototype.isqr = function(R) { + return this.imul(R, R.clone()); + }, N.prototype.sqr = function(R) { + return this.mul(R, R); + }, N.prototype.sqrt = function(R) { + if (R.isZero()) + return R.clone(); + var C = this.m.andln(3); + if (b(C % 2 === 1), C === 3) { + var E = this.m.add(new f(1)).iushrn(2); + return this.pow(R, E); + } + for (var A = this.m.subn(1), L = 0; !A.isZero() && A.andln(1) === 0; ) + L++, A.iushrn(1); + b(!A.isZero()); + var $ = new f(1).toRed(this), W = $.redNeg(), U = this.m.subn(1).iushrn(1), D = this.m.bitLength(); + for (D = new f(2 * D * D).toRed(this); this.pow(D, U).cmp(W) !== 0; ) + D.redIAdd(W); + for (var B = this.pow(D, A), j = this.pow(R, A.addn(1).iushrn(1)), V = this.pow(R, A), re = L; V.cmp($) !== 0; ) { + for (var ee = V, ce = 0; ee.cmp($) !== 0; ce++) + ee = ee.redSqr(); + b(ce < re); + var ve = this.pow(B, new f(1).iushln(re - ce - 1)); + j = j.redMul(ve), B = ve.redSqr(), V = V.redMul(B), re = ce; + } + return j; + }, N.prototype.invm = function(R) { + var C = R._invmp(this.m); + return C.negative !== 0 ? (C.negative = 0, this.imod(C).redNeg()) : this.imod(C); + }, N.prototype.pow = function(R, C) { + if (C.isZero()) + return new f(1).toRed(this); + if (C.cmpn(1) === 0) + return R.clone(); + var E = 4, A = new Array(1 << E); + A[0] = new f(1).toRed(this), A[1] = R; + for (var L = 2; L < A.length; L++) + A[L] = this.mul(A[L - 1], R); + var $ = A[0], W = 0, U = 0, D = C.bitLength() % 26; + for (D === 0 && (D = 26), L = C.length - 1; L >= 0; L--) { + for (var B = C.words[L], j = D - 1; j >= 0; j--) { + var V = B >> j & 1; + if ($ !== A[0] && ($ = this.sqr($)), V === 0 && W === 0) { + U = 0; + continue; + } + W <<= 1, W |= V, U++, !(U !== E && (L !== 0 || j !== 0)) && ($ = this.mul($, A[W]), U = 0, W = 0); + } + D = 26; + } + return $; + }, N.prototype.convertTo = function(R) { + var C = R.umod(this.m); + return C === R ? C.clone() : C; + }, N.prototype.convertFrom = function(R) { + var C = R.clone(); + return C.red = null, C; + }, f.mont = function(R) { + return new M(R); + }; + function M(I) { + N.call(this, I), this.shift = this.m.bitLength(), this.shift % 26 !== 0 && (this.shift += 26 - this.shift % 26), this.r = new f(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv); + } + w(M, N), M.prototype.convertTo = function(R) { + return this.imod(R.ushln(this.shift)); + }, M.prototype.convertFrom = function(R) { + var C = this.imod(R.mul(this.rinv)); + return C.red = null, C; + }, M.prototype.imul = function(R, C) { + if (R.isZero() || C.isZero()) + return R.words[0] = 0, R.length = 1, R; + var E = R.imul(C), A = E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), L = E.isub(A).iushrn(this.shift), $ = L; + return L.cmp(this.m) >= 0 ? $ = L.isub(this.m) : L.cmpn(0) < 0 && ($ = L.iadd(this.m)), $._forceRed(this); + }, M.prototype.mul = function(R, C) { + if (R.isZero() || C.isZero()) + return new f(0)._forceRed(this); + var E = R.mul(C), A = E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), L = E.isub(A).iushrn(this.shift), $ = L; + return L.cmp(this.m) >= 0 ? $ = L.isub(this.m) : L.cmpn(0) < 0 && ($ = L.iadd(this.m)), $._forceRed(this); + }, M.prototype.invm = function(R) { + var C = this.imod(R._invmp(this.m).mul(this.r2)); + return C._forceRed(this); + }; + })(typeof x == "undefined" || x, void 0); + }, { buffer: 185 }], 182: [function(e, x, _) { + _.byteLength = h, _.toByteArray = d, _.fromByteArray = c; + for (var u = [], m = [], g = typeof Uint8Array != "undefined" ? Uint8Array : Array, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", w = 0, f = b.length; w < f; ++w) + u[w] = b[w], m[b.charCodeAt(w)] = w; + m["-".charCodeAt(0)] = 62, m["_".charCodeAt(0)] = 63; + function y(a) { + var r = a.length; + if (r % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var t = a.indexOf("="); + t === -1 && (t = r); + var i = t === r ? 0 : 4 - t % 4; + return [t, i]; + } + function h(a) { + var r = y(a), t = r[0], i = r[1]; + return (t + i) * 3 / 4 - i; + } + function l(a, r, t) { + return (r + t) * 3 / 4 - t; + } + function d(a) { + var r, t = y(a), i = t[0], n = t[1], o = new g(l(a, i, n)), p = 0, O = n > 0 ? i - 4 : i, P; + for (P = 0; P < O; P += 4) + r = m[a.charCodeAt(P)] << 18 | m[a.charCodeAt(P + 1)] << 12 | m[a.charCodeAt(P + 2)] << 6 | m[a.charCodeAt(P + 3)], o[p++] = r >> 16 & 255, o[p++] = r >> 8 & 255, o[p++] = r & 255; + return n === 2 && (r = m[a.charCodeAt(P)] << 2 | m[a.charCodeAt(P + 1)] >> 4, o[p++] = r & 255), n === 1 && (r = m[a.charCodeAt(P)] << 10 | m[a.charCodeAt(P + 1)] << 4 | m[a.charCodeAt(P + 2)] >> 2, o[p++] = r >> 8 & 255, o[p++] = r & 255), o; + } + function s(a) { + return u[a >> 18 & 63] + u[a >> 12 & 63] + u[a >> 6 & 63] + u[a & 63]; + } + function v(a, r, t) { + for (var i, n = [], o = r; o < t; o += 3) + i = (a[o] << 16 & 16711680) + (a[o + 1] << 8 & 65280) + (a[o + 2] & 255), n.push(s(i)); + return n.join(""); + } + function c(a) { + for (var r, t = a.length, i = t % 3, n = [], o = 16383, p = 0, O = t - i; p < O; p += o) + n.push(v(a, p, p + o > O ? O : p + o)); + return i === 1 ? (r = a[t - 1], n.push(u[r >> 2] + u[r << 4 & 63] + "==")) : i === 2 && (r = (a[t - 2] << 8) + a[t - 1], n.push(u[r >> 10] + u[r >> 4 & 63] + u[r << 2 & 63] + "=")), n.join(""); + } + }, {}], 183: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + (function(m, g) { + function b(C, E) { + if (!C) + throw new Error(E || "Assertion failed"); + } + function w(C, E) { + C.super_ = E; + var A = function() { + }; + A.prototype = E.prototype, C.prototype = new A(), C.prototype.constructor = C; + } + function f(C, E, A) { + if (f.isBN(C)) + return C; + this.negative = 0, this.words = null, this.length = 0, this.red = null, C !== null && ((E === "le" || E === "be") && (A = E, E = 10), this._init(C || 0, E || 10, A || "be")); + } + u(m) === "object" ? m.exports = f : g.BN = f, f.BN = f, f.wordSize = 26; + var y; + try { + y = e("buffer").Buffer; + } catch (C) { + } + f.isBN = function(E) { + return E instanceof f ? !0 : E !== null && u(E) === "object" && E.constructor.wordSize === f.wordSize && Array.isArray(E.words); + }, f.max = function(E, A) { + return E.cmp(A) > 0 ? E : A; + }, f.min = function(E, A) { + return E.cmp(A) < 0 ? E : A; + }, f.prototype._init = function(E, A, L) { + if (typeof E == "number") + return this._initNumber(E, A, L); + if (u(E) === "object") + return this._initArray(E, A, L); + A === "hex" && (A = 16), b(A === (A | 0) && A >= 2 && A <= 36), E = E.toString().replace(/\s+/g, ""); + var $ = 0; + E[0] === "-" && $++, A === 16 ? this._parseHex(E, $) : this._parseBase(E, A, $), E[0] === "-" && (this.negative = 1), this._strip(), L === "le" && this._initArray(this.toArray(), A, L); + }, f.prototype._initNumber = function(E, A, L) { + E < 0 && (this.negative = 1, E = -E), E < 67108864 ? (this.words = [E & 67108863], this.length = 1) : E < 4503599627370496 ? (this.words = [E & 67108863, E / 67108864 & 67108863], this.length = 2) : (b(E < 9007199254740992), this.words = [E & 67108863, E / 67108864 & 67108863, 1], this.length = 3), L === "le" && this._initArray(this.toArray(), A, L); + }, f.prototype._initArray = function(E, A, L) { + if (b(typeof E.length == "number"), E.length <= 0) + return this.words = [0], this.length = 1, this; + this.length = Math.ceil(E.length / 3), this.words = new Array(this.length); + for (var $ = 0; $ < this.length; $++) + this.words[$] = 0; + var W, U, D = 0; + if (L === "be") + for ($ = E.length - 1, W = 0; $ >= 0; $ -= 3) + U = E[$] | E[$ - 1] << 8 | E[$ - 2] << 16, this.words[W] |= U << D & 67108863, this.words[W + 1] = U >>> 26 - D & 67108863, D += 24, D >= 26 && (D -= 26, W++); + else if (L === "le") + for ($ = 0, W = 0; $ < E.length; $ += 3) + U = E[$] | E[$ + 1] << 8 | E[$ + 2] << 16, this.words[W] |= U << D & 67108863, this.words[W + 1] = U >>> 26 - D & 67108863, D += 24, D >= 26 && (D -= 26, W++); + return this._strip(); + }; + function h(C, E, A) { + for (var L = 0, $ = Math.min(C.length, A), W = 0, U = E; U < $; U++) { + var D = C.charCodeAt(U) - 48; + L <<= 4; + var B; + D >= 49 && D <= 54 ? B = D - 49 + 10 : D >= 17 && D <= 22 ? B = D - 17 + 10 : B = D, L |= B, W |= B; + } + return b(!(W & 240), "Invalid character in " + C), L; + } + f.prototype._parseHex = function(E, A) { + this.length = Math.ceil((E.length - A) / 6), this.words = new Array(this.length); + for (var L = 0; L < this.length; L++) + this.words[L] = 0; + var $, W, U = 0; + for (L = E.length - 6, $ = 0; L >= A; L -= 6) + W = h(E, L, L + 6), this.words[$] |= W << U & 67108863, this.words[$ + 1] |= W >>> 26 - U & 4194303, U += 24, U >= 26 && (U -= 26, $++); + L + 6 !== A && (W = h(E, A, L + 6), this.words[$] |= W << U & 67108863, this.words[$ + 1] |= W >>> 26 - U & 4194303), this._strip(); + }; + function l(C, E, A, L) { + for (var $ = 0, W = 0, U = Math.min(C.length, A), D = E; D < U; D++) { + var B = C.charCodeAt(D) - 48; + $ *= L, B >= 49 ? W = B - 49 + 10 : B >= 17 ? W = B - 17 + 10 : W = B, b(B >= 0 && W < L, "Invalid character"), $ += W; + } + return $; + } + f.prototype._parseBase = function(E, A, L) { + this.words = [0], this.length = 1; + for (var $ = 0, W = 1; W <= 67108863; W *= A) + $++; + $--, W = W / A | 0; + for (var U = E.length - L, D = U % $, B = Math.min(U, U - D) + L, j = 0, V = L; V < B; V += $) + j = l(E, V, V + $, A), this.imuln(W), this.words[0] + j < 67108864 ? this.words[0] += j : this._iaddn(j); + if (D !== 0) { + var re = 1; + for (j = l(E, V, E.length, A), V = 0; V < D; V++) + re *= A; + this.imuln(re), this.words[0] + j < 67108864 ? this.words[0] += j : this._iaddn(j); + } + }, f.prototype.copy = function(E) { + E.words = new Array(this.length); + for (var A = 0; A < this.length; A++) + E.words[A] = this.words[A]; + E.length = this.length, E.negative = this.negative, E.red = this.red; + }; + function d(C, E) { + C.words = E.words, C.length = E.length, C.negative = E.negative, C.red = E.red; + } + if (f.prototype._move = function(E) { + d(E, this); + }, f.prototype.clone = function() { + var E = new f(null); + return this.copy(E), E; + }, f.prototype._expand = function(E) { + for (; this.length < E; ) + this.words[this.length++] = 0; + return this; + }, f.prototype._strip = function() { + for (; this.length > 1 && this.words[this.length - 1] === 0; ) + this.length--; + return this._normSign(); + }, f.prototype._normSign = function() { + return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this; + }, typeof Symbol != "undefined" && typeof Symbol.for == "function") + try { + f.prototype[Symbol.for("nodejs.util.inspect.custom")] = s; + } catch (C) { + f.prototype.inspect = s; + } + else + f.prototype.inspect = s; + function s() { + return (this.red ? ""; + } + var v = ["", "0", "00", "000", "0000", "00000", "000000", "0000000", "00000000", "000000000", "0000000000", "00000000000", "000000000000", "0000000000000", "00000000000000", "000000000000000", "0000000000000000", "00000000000000000", "000000000000000000", "0000000000000000000", "00000000000000000000", "000000000000000000000", "0000000000000000000000", "00000000000000000000000", "000000000000000000000000", "0000000000000000000000000"], c = [0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], a = [0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176]; + f.prototype.toString = function(E, A) { + E = E || 10, A = A | 0 || 1; + var L; + if (E === 16 || E === "hex") { + L = ""; + for (var $ = 0, W = 0, U = 0; U < this.length; U++) { + var D = this.words[U], B = ((D << $ | W) & 16777215).toString(16); + W = D >>> 24 - $ & 16777215, W !== 0 || U !== this.length - 1 ? L = v[6 - B.length] + B + L : L = B + L, $ += 2, $ >= 26 && ($ -= 26, U--); + } + for (W !== 0 && (L = W.toString(16) + L); L.length % A !== 0; ) + L = "0" + L; + return this.negative !== 0 && (L = "-" + L), L; + } + if (E === (E | 0) && E >= 2 && E <= 36) { + var j = c[E], V = a[E]; + L = ""; + var re = this.clone(); + for (re.negative = 0; !re.isZero(); ) { + var ee = re.modrn(V).toString(E); + re = re.idivn(V), re.isZero() ? L = ee + L : L = v[j - ee.length] + ee + L; + } + for (this.isZero() && (L = "0" + L); L.length % A !== 0; ) + L = "0" + L; + return this.negative !== 0 && (L = "-" + L), L; + } + b(!1, "Base should be between 2 and 36"); + }, f.prototype.toNumber = function() { + var E = this.words[0]; + return this.length === 2 ? E += this.words[1] * 67108864 : this.length === 3 && this.words[2] === 1 ? E += 4503599627370496 + this.words[1] * 67108864 : this.length > 2 && b(!1, "Number can only safely store up to 53 bits"), this.negative !== 0 ? -E : E; + }, f.prototype.toJSON = function() { + return this.toString(16, 2); + }, y && (f.prototype.toBuffer = function(E, A) { + return this.toArrayLike(y, E, A); + }), f.prototype.toArray = function(E, A) { + return this.toArrayLike(Array, E, A); + }; + var r = function(E, A) { + return E.allocUnsafe ? E.allocUnsafe(A) : new E(A); + }; + f.prototype.toArrayLike = function(E, A, L) { + this._strip(); + var $ = this.byteLength(), W = L || Math.max(1, $); + b($ <= W, "byte array longer than desired length"), b(W > 0, "Requested array length <= 0"); + var U = r(E, W), D = A === "le" ? "LE" : "BE"; + return this["_toArrayLike" + D](U, $), U; + }, f.prototype._toArrayLikeLE = function(E, A) { + for (var L = 0, $ = 0, W = 0, U = 0; W < this.length; W++) { + var D = this.words[W] << U | $; + E[L++] = D & 255, L < E.length && (E[L++] = D >> 8 & 255), L < E.length && (E[L++] = D >> 16 & 255), U === 6 ? (L < E.length && (E[L++] = D >> 24 & 255), $ = 0, U = 0) : ($ = D >>> 24, U += 2); + } + if (L < E.length) + for (E[L++] = $; L < E.length; ) + E[L++] = 0; + }, f.prototype._toArrayLikeBE = function(E, A) { + for (var L = E.length - 1, $ = 0, W = 0, U = 0; W < this.length; W++) { + var D = this.words[W] << U | $; + E[L--] = D & 255, L >= 0 && (E[L--] = D >> 8 & 255), L >= 0 && (E[L--] = D >> 16 & 255), U === 6 ? (L >= 0 && (E[L--] = D >> 24 & 255), $ = 0, U = 0) : ($ = D >>> 24, U += 2); + } + if (L >= 0) + for (E[L--] = $; L >= 0; ) + E[L--] = 0; + }, Math.clz32 ? f.prototype._countBits = function(E) { + return 32 - Math.clz32(E); + } : f.prototype._countBits = function(E) { + var A = E, L = 0; + return A >= 4096 && (L += 13, A >>>= 13), A >= 64 && (L += 7, A >>>= 7), A >= 8 && (L += 4, A >>>= 4), A >= 2 && (L += 2, A >>>= 2), L + A; + }, f.prototype._zeroBits = function(E) { + if (E === 0) + return 26; + var A = E, L = 0; + return A & 8191 || (L += 13, A >>>= 13), A & 127 || (L += 7, A >>>= 7), A & 15 || (L += 4, A >>>= 4), A & 3 || (L += 2, A >>>= 2), A & 1 || L++, L; + }, f.prototype.bitLength = function() { + var E = this.words[this.length - 1], A = this._countBits(E); + return (this.length - 1) * 26 + A; + }; + function t(C) { + for (var E = new Array(C.bitLength()), A = 0; A < E.length; A++) { + var L = A / 26 | 0, $ = A % 26; + E[A] = C.words[L] >>> $ & 1; + } + return E; + } + f.prototype.zeroBits = function() { + if (this.isZero()) + return 0; + for (var E = 0, A = 0; A < this.length; A++) { + var L = this._zeroBits(this.words[A]); + if (E += L, L !== 26) + break; + } + return E; + }, f.prototype.byteLength = function() { + return Math.ceil(this.bitLength() / 8); + }, f.prototype.toTwos = function(E) { + return this.negative !== 0 ? this.abs().inotn(E).iaddn(1) : this.clone(); + }, f.prototype.fromTwos = function(E) { + return this.testn(E - 1) ? this.notn(E).iaddn(1).ineg() : this.clone(); + }, f.prototype.isNeg = function() { + return this.negative !== 0; + }, f.prototype.neg = function() { + return this.clone().ineg(); + }, f.prototype.ineg = function() { + return this.isZero() || (this.negative ^= 1), this; + }, f.prototype.iuor = function(E) { + for (; this.length < E.length; ) + this.words[this.length++] = 0; + for (var A = 0; A < E.length; A++) + this.words[A] = this.words[A] | E.words[A]; + return this._strip(); + }, f.prototype.ior = function(E) { + return b((this.negative | E.negative) === 0), this.iuor(E); + }, f.prototype.or = function(E) { + return this.length > E.length ? this.clone().ior(E) : E.clone().ior(this); + }, f.prototype.uor = function(E) { + return this.length > E.length ? this.clone().iuor(E) : E.clone().iuor(this); + }, f.prototype.iuand = function(E) { + var A; + this.length > E.length ? A = E : A = this; + for (var L = 0; L < A.length; L++) + this.words[L] = this.words[L] & E.words[L]; + return this.length = A.length, this._strip(); + }, f.prototype.iand = function(E) { + return b((this.negative | E.negative) === 0), this.iuand(E); + }, f.prototype.and = function(E) { + return this.length > E.length ? this.clone().iand(E) : E.clone().iand(this); + }, f.prototype.uand = function(E) { + return this.length > E.length ? this.clone().iuand(E) : E.clone().iuand(this); + }, f.prototype.iuxor = function(E) { + var A, L; + this.length > E.length ? (A = this, L = E) : (A = E, L = this); + for (var $ = 0; $ < L.length; $++) + this.words[$] = A.words[$] ^ L.words[$]; + if (this !== A) + for (; $ < A.length; $++) + this.words[$] = A.words[$]; + return this.length = A.length, this._strip(); + }, f.prototype.ixor = function(E) { + return b((this.negative | E.negative) === 0), this.iuxor(E); + }, f.prototype.xor = function(E) { + return this.length > E.length ? this.clone().ixor(E) : E.clone().ixor(this); + }, f.prototype.uxor = function(E) { + return this.length > E.length ? this.clone().iuxor(E) : E.clone().iuxor(this); + }, f.prototype.inotn = function(E) { + b(typeof E == "number" && E >= 0); + var A = Math.ceil(E / 26) | 0, L = E % 26; + this._expand(A), L > 0 && A--; + for (var $ = 0; $ < A; $++) + this.words[$] = ~this.words[$] & 67108863; + return L > 0 && (this.words[$] = ~this.words[$] & 67108863 >> 26 - L), this._strip(); + }, f.prototype.notn = function(E) { + return this.clone().inotn(E); + }, f.prototype.setn = function(E, A) { + b(typeof E == "number" && E >= 0); + var L = E / 26 | 0, $ = E % 26; + return this._expand(L + 1), A ? this.words[L] = this.words[L] | 1 << $ : this.words[L] = this.words[L] & ~(1 << $), this._strip(); + }, f.prototype.iadd = function(E) { + var A; + if (this.negative !== 0 && E.negative === 0) + return this.negative = 0, A = this.isub(E), this.negative ^= 1, this._normSign(); + if (this.negative === 0 && E.negative !== 0) + return E.negative = 0, A = this.isub(E), E.negative = 1, A._normSign(); + var L, $; + this.length > E.length ? (L = this, $ = E) : (L = E, $ = this); + for (var W = 0, U = 0; U < $.length; U++) + A = (L.words[U] | 0) + ($.words[U] | 0) + W, this.words[U] = A & 67108863, W = A >>> 26; + for (; W !== 0 && U < L.length; U++) + A = (L.words[U] | 0) + W, this.words[U] = A & 67108863, W = A >>> 26; + if (this.length = L.length, W !== 0) + this.words[this.length] = W, this.length++; + else if (L !== this) + for (; U < L.length; U++) + this.words[U] = L.words[U]; + return this; + }, f.prototype.add = function(E) { + var A; + return E.negative !== 0 && this.negative === 0 ? (E.negative = 0, A = this.sub(E), E.negative ^= 1, A) : E.negative === 0 && this.negative !== 0 ? (this.negative = 0, A = E.sub(this), this.negative = 1, A) : this.length > E.length ? this.clone().iadd(E) : E.clone().iadd(this); + }, f.prototype.isub = function(E) { + if (E.negative !== 0) { + E.negative = 0; + var A = this.iadd(E); + return E.negative = 1, A._normSign(); + } else if (this.negative !== 0) + return this.negative = 0, this.iadd(E), this.negative = 1, this._normSign(); + var L = this.cmp(E); + if (L === 0) + return this.negative = 0, this.length = 1, this.words[0] = 0, this; + var $, W; + L > 0 ? ($ = this, W = E) : ($ = E, W = this); + for (var U = 0, D = 0; D < W.length; D++) + A = ($.words[D] | 0) - (W.words[D] | 0) + U, U = A >> 26, this.words[D] = A & 67108863; + for (; U !== 0 && D < $.length; D++) + A = ($.words[D] | 0) + U, U = A >> 26, this.words[D] = A & 67108863; + if (U === 0 && D < $.length && $ !== this) + for (; D < $.length; D++) + this.words[D] = $.words[D]; + return this.length = Math.max(this.length, D), $ !== this && (this.negative = 1), this._strip(); + }, f.prototype.sub = function(E) { + return this.clone().isub(E); + }; + function i(C, E, A) { + A.negative = E.negative ^ C.negative; + var L = C.length + E.length | 0; + A.length = L, L = L - 1 | 0; + var $ = C.words[0] | 0, W = E.words[0] | 0, U = $ * W, D = U & 67108863, B = U / 67108864 | 0; + A.words[0] = D; + for (var j = 1; j < L; j++) { + for (var V = B >>> 26, re = B & 67108863, ee = Math.min(j, E.length - 1), ce = Math.max(0, j - C.length + 1); ce <= ee; ce++) { + var ve = j - ce | 0; + $ = C.words[ve] | 0, W = E.words[ce] | 0, U = $ * W + re, V += U / 67108864 | 0, re = U & 67108863; + } + A.words[j] = re | 0, B = V | 0; + } + return B !== 0 ? A.words[j] = B | 0 : A.length--, A._strip(); + } + var n = function(E, A, L) { + var $ = E.words, W = A.words, U = L.words, D = 0, B, j, V, re = $[0] | 0, ee = re & 8191, ce = re >>> 13, ve = $[1] | 0, ge = ve & 8191, oe = ve >>> 13, J = $[2] | 0, Q = J & 8191, he = J >>> 13, ke = $[3] | 0, ne = ke & 8191, se = ke >>> 13, Ce = $[4] | 0, q = Ce & 8191, G = Ce >>> 13, Y = $[5] | 0, fe = Y & 8191, we = Y >>> 13, _e = $[6] | 0, je = _e & 8191, Ye = _e >>> 13, nt = $[7] | 0, ut = nt & 8191, ot = nt >>> 13, Ue = $[8] | 0, Ve = Ue & 8191, Qe = Ue >>> 13, tt = $[9] | 0, ae = tt & 8191, Re = tt >>> 13, be = W[0] | 0, Ee = be & 8191, pe = be >>> 13, Pe = W[1] | 0, te = Pe & 8191, He = Pe >>> 13, it = W[2] | 0, K = it & 8191, Me = it >>> 13, Le = W[3] | 0, ue = Le & 8191, Se = Le >>> 13, Ie = W[4] | 0, st = Ie & 8191, Ge = Ie >>> 13, rt = W[5] | 0, _t = rt & 8191, wt = rt >>> 13, Ot = W[6] | 0, pt = Ot & 8191, ct = Ot >>> 13, At = W[7] | 0, Pt = At & 8191, bt = At >>> 13, Kt = W[8] | 0, Ct = Kt & 8191, xt = Kt >>> 13, Ft = W[9] | 0, Lt = Ft & 8191, Et = Ft >>> 13; + L.negative = E.negative ^ A.negative, L.length = 19, B = Math.imul(ee, Ee), j = Math.imul(ee, pe), j = j + Math.imul(ce, Ee) | 0, V = Math.imul(ce, pe); + var Dr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Dr >>> 26) | 0, Dr &= 67108863, B = Math.imul(ge, Ee), j = Math.imul(ge, pe), j = j + Math.imul(oe, Ee) | 0, V = Math.imul(oe, pe), B = B + Math.imul(ee, te) | 0, j = j + Math.imul(ee, He) | 0, j = j + Math.imul(ce, te) | 0, V = V + Math.imul(ce, He) | 0; + var Or = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Or >>> 26) | 0, Or &= 67108863, B = Math.imul(Q, Ee), j = Math.imul(Q, pe), j = j + Math.imul(he, Ee) | 0, V = Math.imul(he, pe), B = B + Math.imul(ge, te) | 0, j = j + Math.imul(ge, He) | 0, j = j + Math.imul(oe, te) | 0, V = V + Math.imul(oe, He) | 0, B = B + Math.imul(ee, K) | 0, j = j + Math.imul(ee, Me) | 0, j = j + Math.imul(ce, K) | 0, V = V + Math.imul(ce, Me) | 0; + var Gr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Gr >>> 26) | 0, Gr &= 67108863, B = Math.imul(ne, Ee), j = Math.imul(ne, pe), j = j + Math.imul(se, Ee) | 0, V = Math.imul(se, pe), B = B + Math.imul(Q, te) | 0, j = j + Math.imul(Q, He) | 0, j = j + Math.imul(he, te) | 0, V = V + Math.imul(he, He) | 0, B = B + Math.imul(ge, K) | 0, j = j + Math.imul(ge, Me) | 0, j = j + Math.imul(oe, K) | 0, V = V + Math.imul(oe, Me) | 0, B = B + Math.imul(ee, ue) | 0, j = j + Math.imul(ee, Se) | 0, j = j + Math.imul(ce, ue) | 0, V = V + Math.imul(ce, Se) | 0; + var Nr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Nr >>> 26) | 0, Nr &= 67108863, B = Math.imul(q, Ee), j = Math.imul(q, pe), j = j + Math.imul(G, Ee) | 0, V = Math.imul(G, pe), B = B + Math.imul(ne, te) | 0, j = j + Math.imul(ne, He) | 0, j = j + Math.imul(se, te) | 0, V = V + Math.imul(se, He) | 0, B = B + Math.imul(Q, K) | 0, j = j + Math.imul(Q, Me) | 0, j = j + Math.imul(he, K) | 0, V = V + Math.imul(he, Me) | 0, B = B + Math.imul(ge, ue) | 0, j = j + Math.imul(ge, Se) | 0, j = j + Math.imul(oe, ue) | 0, V = V + Math.imul(oe, Se) | 0, B = B + Math.imul(ee, st) | 0, j = j + Math.imul(ee, Ge) | 0, j = j + Math.imul(ce, st) | 0, V = V + Math.imul(ce, Ge) | 0; + var Yr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Yr >>> 26) | 0, Yr &= 67108863, B = Math.imul(fe, Ee), j = Math.imul(fe, pe), j = j + Math.imul(we, Ee) | 0, V = Math.imul(we, pe), B = B + Math.imul(q, te) | 0, j = j + Math.imul(q, He) | 0, j = j + Math.imul(G, te) | 0, V = V + Math.imul(G, He) | 0, B = B + Math.imul(ne, K) | 0, j = j + Math.imul(ne, Me) | 0, j = j + Math.imul(se, K) | 0, V = V + Math.imul(se, Me) | 0, B = B + Math.imul(Q, ue) | 0, j = j + Math.imul(Q, Se) | 0, j = j + Math.imul(he, ue) | 0, V = V + Math.imul(he, Se) | 0, B = B + Math.imul(ge, st) | 0, j = j + Math.imul(ge, Ge) | 0, j = j + Math.imul(oe, st) | 0, V = V + Math.imul(oe, Ge) | 0, B = B + Math.imul(ee, _t) | 0, j = j + Math.imul(ee, wt) | 0, j = j + Math.imul(ce, _t) | 0, V = V + Math.imul(ce, wt) | 0; + var Qt = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Qt >>> 26) | 0, Qt &= 67108863, B = Math.imul(je, Ee), j = Math.imul(je, pe), j = j + Math.imul(Ye, Ee) | 0, V = Math.imul(Ye, pe), B = B + Math.imul(fe, te) | 0, j = j + Math.imul(fe, He) | 0, j = j + Math.imul(we, te) | 0, V = V + Math.imul(we, He) | 0, B = B + Math.imul(q, K) | 0, j = j + Math.imul(q, Me) | 0, j = j + Math.imul(G, K) | 0, V = V + Math.imul(G, Me) | 0, B = B + Math.imul(ne, ue) | 0, j = j + Math.imul(ne, Se) | 0, j = j + Math.imul(se, ue) | 0, V = V + Math.imul(se, Se) | 0, B = B + Math.imul(Q, st) | 0, j = j + Math.imul(Q, Ge) | 0, j = j + Math.imul(he, st) | 0, V = V + Math.imul(he, Ge) | 0, B = B + Math.imul(ge, _t) | 0, j = j + Math.imul(ge, wt) | 0, j = j + Math.imul(oe, _t) | 0, V = V + Math.imul(oe, wt) | 0, B = B + Math.imul(ee, pt) | 0, j = j + Math.imul(ee, ct) | 0, j = j + Math.imul(ce, pt) | 0, V = V + Math.imul(ce, ct) | 0; + var Xr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Xr >>> 26) | 0, Xr &= 67108863, B = Math.imul(ut, Ee), j = Math.imul(ut, pe), j = j + Math.imul(ot, Ee) | 0, V = Math.imul(ot, pe), B = B + Math.imul(je, te) | 0, j = j + Math.imul(je, He) | 0, j = j + Math.imul(Ye, te) | 0, V = V + Math.imul(Ye, He) | 0, B = B + Math.imul(fe, K) | 0, j = j + Math.imul(fe, Me) | 0, j = j + Math.imul(we, K) | 0, V = V + Math.imul(we, Me) | 0, B = B + Math.imul(q, ue) | 0, j = j + Math.imul(q, Se) | 0, j = j + Math.imul(G, ue) | 0, V = V + Math.imul(G, Se) | 0, B = B + Math.imul(ne, st) | 0, j = j + Math.imul(ne, Ge) | 0, j = j + Math.imul(se, st) | 0, V = V + Math.imul(se, Ge) | 0, B = B + Math.imul(Q, _t) | 0, j = j + Math.imul(Q, wt) | 0, j = j + Math.imul(he, _t) | 0, V = V + Math.imul(he, wt) | 0, B = B + Math.imul(ge, pt) | 0, j = j + Math.imul(ge, ct) | 0, j = j + Math.imul(oe, pt) | 0, V = V + Math.imul(oe, ct) | 0, B = B + Math.imul(ee, Pt) | 0, j = j + Math.imul(ee, bt) | 0, j = j + Math.imul(ce, Pt) | 0, V = V + Math.imul(ce, bt) | 0; + var Fr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Fr >>> 26) | 0, Fr &= 67108863, B = Math.imul(Ve, Ee), j = Math.imul(Ve, pe), j = j + Math.imul(Qe, Ee) | 0, V = Math.imul(Qe, pe), B = B + Math.imul(ut, te) | 0, j = j + Math.imul(ut, He) | 0, j = j + Math.imul(ot, te) | 0, V = V + Math.imul(ot, He) | 0, B = B + Math.imul(je, K) | 0, j = j + Math.imul(je, Me) | 0, j = j + Math.imul(Ye, K) | 0, V = V + Math.imul(Ye, Me) | 0, B = B + Math.imul(fe, ue) | 0, j = j + Math.imul(fe, Se) | 0, j = j + Math.imul(we, ue) | 0, V = V + Math.imul(we, Se) | 0, B = B + Math.imul(q, st) | 0, j = j + Math.imul(q, Ge) | 0, j = j + Math.imul(G, st) | 0, V = V + Math.imul(G, Ge) | 0, B = B + Math.imul(ne, _t) | 0, j = j + Math.imul(ne, wt) | 0, j = j + Math.imul(se, _t) | 0, V = V + Math.imul(se, wt) | 0, B = B + Math.imul(Q, pt) | 0, j = j + Math.imul(Q, ct) | 0, j = j + Math.imul(he, pt) | 0, V = V + Math.imul(he, ct) | 0, B = B + Math.imul(ge, Pt) | 0, j = j + Math.imul(ge, bt) | 0, j = j + Math.imul(oe, Pt) | 0, V = V + Math.imul(oe, bt) | 0, B = B + Math.imul(ee, Ct) | 0, j = j + Math.imul(ee, xt) | 0, j = j + Math.imul(ce, Ct) | 0, V = V + Math.imul(ce, xt) | 0; + var Lr = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Lr >>> 26) | 0, Lr &= 67108863, B = Math.imul(ae, Ee), j = Math.imul(ae, pe), j = j + Math.imul(Re, Ee) | 0, V = Math.imul(Re, pe), B = B + Math.imul(Ve, te) | 0, j = j + Math.imul(Ve, He) | 0, j = j + Math.imul(Qe, te) | 0, V = V + Math.imul(Qe, He) | 0, B = B + Math.imul(ut, K) | 0, j = j + Math.imul(ut, Me) | 0, j = j + Math.imul(ot, K) | 0, V = V + Math.imul(ot, Me) | 0, B = B + Math.imul(je, ue) | 0, j = j + Math.imul(je, Se) | 0, j = j + Math.imul(Ye, ue) | 0, V = V + Math.imul(Ye, Se) | 0, B = B + Math.imul(fe, st) | 0, j = j + Math.imul(fe, Ge) | 0, j = j + Math.imul(we, st) | 0, V = V + Math.imul(we, Ge) | 0, B = B + Math.imul(q, _t) | 0, j = j + Math.imul(q, wt) | 0, j = j + Math.imul(G, _t) | 0, V = V + Math.imul(G, wt) | 0, B = B + Math.imul(ne, pt) | 0, j = j + Math.imul(ne, ct) | 0, j = j + Math.imul(se, pt) | 0, V = V + Math.imul(se, ct) | 0, B = B + Math.imul(Q, Pt) | 0, j = j + Math.imul(Q, bt) | 0, j = j + Math.imul(he, Pt) | 0, V = V + Math.imul(he, bt) | 0, B = B + Math.imul(ge, Ct) | 0, j = j + Math.imul(ge, xt) | 0, j = j + Math.imul(oe, Ct) | 0, V = V + Math.imul(oe, xt) | 0, B = B + Math.imul(ee, Lt) | 0, j = j + Math.imul(ee, Et) | 0, j = j + Math.imul(ce, Lt) | 0, V = V + Math.imul(ce, Et) | 0; + var Ur = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, B = Math.imul(ae, te), j = Math.imul(ae, He), j = j + Math.imul(Re, te) | 0, V = Math.imul(Re, He), B = B + Math.imul(Ve, K) | 0, j = j + Math.imul(Ve, Me) | 0, j = j + Math.imul(Qe, K) | 0, V = V + Math.imul(Qe, Me) | 0, B = B + Math.imul(ut, ue) | 0, j = j + Math.imul(ut, Se) | 0, j = j + Math.imul(ot, ue) | 0, V = V + Math.imul(ot, Se) | 0, B = B + Math.imul(je, st) | 0, j = j + Math.imul(je, Ge) | 0, j = j + Math.imul(Ye, st) | 0, V = V + Math.imul(Ye, Ge) | 0, B = B + Math.imul(fe, _t) | 0, j = j + Math.imul(fe, wt) | 0, j = j + Math.imul(we, _t) | 0, V = V + Math.imul(we, wt) | 0, B = B + Math.imul(q, pt) | 0, j = j + Math.imul(q, ct) | 0, j = j + Math.imul(G, pt) | 0, V = V + Math.imul(G, ct) | 0, B = B + Math.imul(ne, Pt) | 0, j = j + Math.imul(ne, bt) | 0, j = j + Math.imul(se, Pt) | 0, V = V + Math.imul(se, bt) | 0, B = B + Math.imul(Q, Ct) | 0, j = j + Math.imul(Q, xt) | 0, j = j + Math.imul(he, Ct) | 0, V = V + Math.imul(he, xt) | 0, B = B + Math.imul(ge, Lt) | 0, j = j + Math.imul(ge, Et) | 0, j = j + Math.imul(oe, Lt) | 0, V = V + Math.imul(oe, Et) | 0; + var vt = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (vt >>> 26) | 0, vt &= 67108863, B = Math.imul(ae, K), j = Math.imul(ae, Me), j = j + Math.imul(Re, K) | 0, V = Math.imul(Re, Me), B = B + Math.imul(Ve, ue) | 0, j = j + Math.imul(Ve, Se) | 0, j = j + Math.imul(Qe, ue) | 0, V = V + Math.imul(Qe, Se) | 0, B = B + Math.imul(ut, st) | 0, j = j + Math.imul(ut, Ge) | 0, j = j + Math.imul(ot, st) | 0, V = V + Math.imul(ot, Ge) | 0, B = B + Math.imul(je, _t) | 0, j = j + Math.imul(je, wt) | 0, j = j + Math.imul(Ye, _t) | 0, V = V + Math.imul(Ye, wt) | 0, B = B + Math.imul(fe, pt) | 0, j = j + Math.imul(fe, ct) | 0, j = j + Math.imul(we, pt) | 0, V = V + Math.imul(we, ct) | 0, B = B + Math.imul(q, Pt) | 0, j = j + Math.imul(q, bt) | 0, j = j + Math.imul(G, Pt) | 0, V = V + Math.imul(G, bt) | 0, B = B + Math.imul(ne, Ct) | 0, j = j + Math.imul(ne, xt) | 0, j = j + Math.imul(se, Ct) | 0, V = V + Math.imul(se, xt) | 0, B = B + Math.imul(Q, Lt) | 0, j = j + Math.imul(Q, Et) | 0, j = j + Math.imul(he, Lt) | 0, V = V + Math.imul(he, Et) | 0; + var Ke = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Ke >>> 26) | 0, Ke &= 67108863, B = Math.imul(ae, ue), j = Math.imul(ae, Se), j = j + Math.imul(Re, ue) | 0, V = Math.imul(Re, Se), B = B + Math.imul(Ve, st) | 0, j = j + Math.imul(Ve, Ge) | 0, j = j + Math.imul(Qe, st) | 0, V = V + Math.imul(Qe, Ge) | 0, B = B + Math.imul(ut, _t) | 0, j = j + Math.imul(ut, wt) | 0, j = j + Math.imul(ot, _t) | 0, V = V + Math.imul(ot, wt) | 0, B = B + Math.imul(je, pt) | 0, j = j + Math.imul(je, ct) | 0, j = j + Math.imul(Ye, pt) | 0, V = V + Math.imul(Ye, ct) | 0, B = B + Math.imul(fe, Pt) | 0, j = j + Math.imul(fe, bt) | 0, j = j + Math.imul(we, Pt) | 0, V = V + Math.imul(we, bt) | 0, B = B + Math.imul(q, Ct) | 0, j = j + Math.imul(q, xt) | 0, j = j + Math.imul(G, Ct) | 0, V = V + Math.imul(G, xt) | 0, B = B + Math.imul(ne, Lt) | 0, j = j + Math.imul(ne, Et) | 0, j = j + Math.imul(se, Lt) | 0, V = V + Math.imul(se, Et) | 0; + var me = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, B = Math.imul(ae, st), j = Math.imul(ae, Ge), j = j + Math.imul(Re, st) | 0, V = Math.imul(Re, Ge), B = B + Math.imul(Ve, _t) | 0, j = j + Math.imul(Ve, wt) | 0, j = j + Math.imul(Qe, _t) | 0, V = V + Math.imul(Qe, wt) | 0, B = B + Math.imul(ut, pt) | 0, j = j + Math.imul(ut, ct) | 0, j = j + Math.imul(ot, pt) | 0, V = V + Math.imul(ot, ct) | 0, B = B + Math.imul(je, Pt) | 0, j = j + Math.imul(je, bt) | 0, j = j + Math.imul(Ye, Pt) | 0, V = V + Math.imul(Ye, bt) | 0, B = B + Math.imul(fe, Ct) | 0, j = j + Math.imul(fe, xt) | 0, j = j + Math.imul(we, Ct) | 0, V = V + Math.imul(we, xt) | 0, B = B + Math.imul(q, Lt) | 0, j = j + Math.imul(q, Et) | 0, j = j + Math.imul(G, Lt) | 0, V = V + Math.imul(G, Et) | 0; + var Fe = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Fe >>> 26) | 0, Fe &= 67108863, B = Math.imul(ae, _t), j = Math.imul(ae, wt), j = j + Math.imul(Re, _t) | 0, V = Math.imul(Re, wt), B = B + Math.imul(Ve, pt) | 0, j = j + Math.imul(Ve, ct) | 0, j = j + Math.imul(Qe, pt) | 0, V = V + Math.imul(Qe, ct) | 0, B = B + Math.imul(ut, Pt) | 0, j = j + Math.imul(ut, bt) | 0, j = j + Math.imul(ot, Pt) | 0, V = V + Math.imul(ot, bt) | 0, B = B + Math.imul(je, Ct) | 0, j = j + Math.imul(je, xt) | 0, j = j + Math.imul(Ye, Ct) | 0, V = V + Math.imul(Ye, xt) | 0, B = B + Math.imul(fe, Lt) | 0, j = j + Math.imul(fe, Et) | 0, j = j + Math.imul(we, Lt) | 0, V = V + Math.imul(we, Et) | 0; + var Be = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Be >>> 26) | 0, Be &= 67108863, B = Math.imul(ae, pt), j = Math.imul(ae, ct), j = j + Math.imul(Re, pt) | 0, V = Math.imul(Re, ct), B = B + Math.imul(Ve, Pt) | 0, j = j + Math.imul(Ve, bt) | 0, j = j + Math.imul(Qe, Pt) | 0, V = V + Math.imul(Qe, bt) | 0, B = B + Math.imul(ut, Ct) | 0, j = j + Math.imul(ut, xt) | 0, j = j + Math.imul(ot, Ct) | 0, V = V + Math.imul(ot, xt) | 0, B = B + Math.imul(je, Lt) | 0, j = j + Math.imul(je, Et) | 0, j = j + Math.imul(Ye, Lt) | 0, V = V + Math.imul(Ye, Et) | 0; + var dt = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (dt >>> 26) | 0, dt &= 67108863, B = Math.imul(ae, Pt), j = Math.imul(ae, bt), j = j + Math.imul(Re, Pt) | 0, V = Math.imul(Re, bt), B = B + Math.imul(Ve, Ct) | 0, j = j + Math.imul(Ve, xt) | 0, j = j + Math.imul(Qe, Ct) | 0, V = V + Math.imul(Qe, xt) | 0, B = B + Math.imul(ut, Lt) | 0, j = j + Math.imul(ut, Et) | 0, j = j + Math.imul(ot, Lt) | 0, V = V + Math.imul(ot, Et) | 0; + var St = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, B = Math.imul(ae, Ct), j = Math.imul(ae, xt), j = j + Math.imul(Re, Ct) | 0, V = Math.imul(Re, xt), B = B + Math.imul(Ve, Lt) | 0, j = j + Math.imul(Ve, Et) | 0, j = j + Math.imul(Qe, Lt) | 0, V = V + Math.imul(Qe, Et) | 0; + var Ht = (D + B | 0) + ((j & 8191) << 13) | 0; + D = (V + (j >>> 13) | 0) + (Ht >>> 26) | 0, Ht &= 67108863, B = Math.imul(ae, Lt), j = Math.imul(ae, Et), j = j + Math.imul(Re, Lt) | 0, V = Math.imul(Re, Et); + var lr = (D + B | 0) + ((j & 8191) << 13) | 0; + return D = (V + (j >>> 13) | 0) + (lr >>> 26) | 0, lr &= 67108863, U[0] = Dr, U[1] = Or, U[2] = Gr, U[3] = Nr, U[4] = Yr, U[5] = Qt, U[6] = Xr, U[7] = Fr, U[8] = Lr, U[9] = Ur, U[10] = vt, U[11] = Ke, U[12] = me, U[13] = Fe, U[14] = Be, U[15] = dt, U[16] = St, U[17] = Ht, U[18] = lr, D !== 0 && (U[19] = D, L.length++), L; + }; + Math.imul || (n = i); + function o(C, E, A) { + A.negative = E.negative ^ C.negative, A.length = C.length + E.length; + for (var L = 0, $ = 0, W = 0; W < A.length - 1; W++) { + var U = $; + $ = 0; + for (var D = L & 67108863, B = Math.min(W, E.length - 1), j = Math.max(0, W - C.length + 1); j <= B; j++) { + var V = W - j, re = C.words[V] | 0, ee = E.words[j] | 0, ce = re * ee, ve = ce & 67108863; + U = U + (ce / 67108864 | 0) | 0, ve = ve + D | 0, D = ve & 67108863, U = U + (ve >>> 26) | 0, $ += U >>> 26, U &= 67108863; + } + A.words[W] = D, L = U, U = $; + } + return L !== 0 ? A.words[W] = L : A.length--, A._strip(); + } + function p(C, E, A) { + return o(C, E, A); + } + f.prototype.mulTo = function(E, A) { + var L, $ = this.length + E.length; + return this.length === 10 && E.length === 10 ? L = n(this, E, A) : $ < 63 ? L = i(this, E, A) : $ < 1024 ? L = o(this, E, A) : L = p(this, E, A), L; + }, f.prototype.mul = function(E) { + var A = new f(null); + return A.words = new Array(this.length + E.length), this.mulTo(E, A); + }, f.prototype.mulf = function(E) { + var A = new f(null); + return A.words = new Array(this.length + E.length), p(this, E, A); + }, f.prototype.imul = function(E) { + return this.clone().mulTo(E, this); + }, f.prototype.imuln = function(E) { + var A = E < 0; + A && (E = -E), b(typeof E == "number"), b(E < 67108864); + for (var L = 0, $ = 0; $ < this.length; $++) { + var W = (this.words[$] | 0) * E, U = (W & 67108863) + (L & 67108863); + L >>= 26, L += W / 67108864 | 0, L += U >>> 26, this.words[$] = U & 67108863; + } + return L !== 0 && (this.words[$] = L, this.length++), A ? this.ineg() : this; + }, f.prototype.muln = function(E) { + return this.clone().imuln(E); + }, f.prototype.sqr = function() { + return this.mul(this); + }, f.prototype.isqr = function() { + return this.imul(this.clone()); + }, f.prototype.pow = function(E) { + var A = t(E); + if (A.length === 0) + return new f(1); + for (var L = this, $ = 0; $ < A.length && A[$] === 0; $++, L = L.sqr()) + ; + if (++$ < A.length) + for (var W = L.sqr(); $ < A.length; $++, W = W.sqr()) + A[$] !== 0 && (L = L.mul(W)); + return L; + }, f.prototype.iushln = function(E) { + b(typeof E == "number" && E >= 0); + var A = E % 26, L = (E - A) / 26, $ = 67108863 >>> 26 - A << 26 - A, W; + if (A !== 0) { + var U = 0; + for (W = 0; W < this.length; W++) { + var D = this.words[W] & $, B = (this.words[W] | 0) - D << A; + this.words[W] = B | U, U = D >>> 26 - A; + } + U && (this.words[W] = U, this.length++); + } + if (L !== 0) { + for (W = this.length - 1; W >= 0; W--) + this.words[W + L] = this.words[W]; + for (W = 0; W < L; W++) + this.words[W] = 0; + this.length += L; + } + return this._strip(); + }, f.prototype.ishln = function(E) { + return b(this.negative === 0), this.iushln(E); + }, f.prototype.iushrn = function(E, A, L) { + b(typeof E == "number" && E >= 0); + var $; + A ? $ = (A - A % 26) / 26 : $ = 0; + var W = E % 26, U = Math.min((E - W) / 26, this.length), D = 67108863 ^ 67108863 >>> W << W, B = L; + if ($ -= U, $ = Math.max(0, $), B) { + for (var j = 0; j < U; j++) + B.words[j] = this.words[j]; + B.length = U; + } + if (U !== 0) + if (this.length > U) + for (this.length -= U, j = 0; j < this.length; j++) + this.words[j] = this.words[j + U]; + else + this.words[0] = 0, this.length = 1; + var V = 0; + for (j = this.length - 1; j >= 0 && (V !== 0 || j >= $); j--) { + var re = this.words[j] | 0; + this.words[j] = V << 26 - W | re >>> W, V = re & D; + } + return B && V !== 0 && (B.words[B.length++] = V), this.length === 0 && (this.words[0] = 0, this.length = 1), this._strip(); + }, f.prototype.ishrn = function(E, A, L) { + return b(this.negative === 0), this.iushrn(E, A, L); + }, f.prototype.shln = function(E) { + return this.clone().ishln(E); + }, f.prototype.ushln = function(E) { + return this.clone().iushln(E); + }, f.prototype.shrn = function(E) { + return this.clone().ishrn(E); + }, f.prototype.ushrn = function(E) { + return this.clone().iushrn(E); + }, f.prototype.testn = function(E) { + b(typeof E == "number" && E >= 0); + var A = E % 26, L = (E - A) / 26, $ = 1 << A; + if (this.length <= L) + return !1; + var W = this.words[L]; + return !!(W & $); + }, f.prototype.imaskn = function(E) { + b(typeof E == "number" && E >= 0); + var A = E % 26, L = (E - A) / 26; + if (b(this.negative === 0, "imaskn works only with positive numbers"), this.length <= L) + return this; + if (A !== 0 && L++, this.length = Math.min(L, this.length), A !== 0) { + var $ = 67108863 ^ 67108863 >>> A << A; + this.words[this.length - 1] &= $; + } + return this._strip(); + }, f.prototype.maskn = function(E) { + return this.clone().imaskn(E); + }, f.prototype.iaddn = function(E) { + return b(typeof E == "number"), b(E < 67108864), E < 0 ? this.isubn(-E) : this.negative !== 0 ? this.length === 1 && (this.words[0] | 0) <= E ? (this.words[0] = E - (this.words[0] | 0), this.negative = 0, this) : (this.negative = 0, this.isubn(E), this.negative = 1, this) : this._iaddn(E); + }, f.prototype._iaddn = function(E) { + this.words[0] += E; + for (var A = 0; A < this.length && this.words[A] >= 67108864; A++) + this.words[A] -= 67108864, A === this.length - 1 ? this.words[A + 1] = 1 : this.words[A + 1]++; + return this.length = Math.max(this.length, A + 1), this; + }, f.prototype.isubn = function(E) { + if (b(typeof E == "number"), b(E < 67108864), E < 0) + return this.iaddn(-E); + if (this.negative !== 0) + return this.negative = 0, this.iaddn(E), this.negative = 1, this; + if (this.words[0] -= E, this.length === 1 && this.words[0] < 0) + this.words[0] = -this.words[0], this.negative = 1; + else + for (var A = 0; A < this.length && this.words[A] < 0; A++) + this.words[A] += 67108864, this.words[A + 1] -= 1; + return this._strip(); + }, f.prototype.addn = function(E) { + return this.clone().iaddn(E); + }, f.prototype.subn = function(E) { + return this.clone().isubn(E); + }, f.prototype.iabs = function() { + return this.negative = 0, this; + }, f.prototype.abs = function() { + return this.clone().iabs(); + }, f.prototype._ishlnsubmul = function(E, A, L) { + var $ = E.length + L, W; + this._expand($); + var U, D = 0; + for (W = 0; W < E.length; W++) { + U = (this.words[W + L] | 0) + D; + var B = (E.words[W] | 0) * A; + U -= B & 67108863, D = (U >> 26) - (B / 67108864 | 0), this.words[W + L] = U & 67108863; + } + for (; W < this.length - L; W++) + U = (this.words[W + L] | 0) + D, D = U >> 26, this.words[W + L] = U & 67108863; + if (D === 0) + return this._strip(); + for (b(D === -1), D = 0, W = 0; W < this.length; W++) + U = -(this.words[W] | 0) + D, D = U >> 26, this.words[W] = U & 67108863; + return this.negative = 1, this._strip(); + }, f.prototype._wordDiv = function(E, A) { + var L = this.length - E.length, $ = this.clone(), W = E, U = W.words[W.length - 1] | 0, D = this._countBits(U); + L = 26 - D, L !== 0 && (W = W.ushln(L), $.iushln(L), U = W.words[W.length - 1] | 0); + var B = $.length - W.length, j; + if (A !== "mod") { + j = new f(null), j.length = B + 1, j.words = new Array(j.length); + for (var V = 0; V < j.length; V++) + j.words[V] = 0; + } + var re = $.clone()._ishlnsubmul(W, 1, B); + re.negative === 0 && ($ = re, j && (j.words[B] = 1)); + for (var ee = B - 1; ee >= 0; ee--) { + var ce = ($.words[W.length + ee] | 0) * 67108864 + ($.words[W.length + ee - 1] | 0); + for (ce = Math.min(ce / U | 0, 67108863), $._ishlnsubmul(W, ce, ee); $.negative !== 0; ) + ce--, $.negative = 0, $._ishlnsubmul(W, 1, ee), $.isZero() || ($.negative ^= 1); + j && (j.words[ee] = ce); + } + return j && j._strip(), $._strip(), A !== "div" && L !== 0 && $.iushrn(L), { + div: j || null, + mod: $ + }; + }, f.prototype.divmod = function(E, A, L) { + if (b(!E.isZero()), this.isZero()) + return { + div: new f(0), + mod: new f(0) + }; + var $, W, U; + return this.negative !== 0 && E.negative === 0 ? (U = this.neg().divmod(E, A), A !== "mod" && ($ = U.div.neg()), A !== "div" && (W = U.mod.neg(), L && W.negative !== 0 && W.iadd(E)), { + div: $, + mod: W + }) : this.negative === 0 && E.negative !== 0 ? (U = this.divmod(E.neg(), A), A !== "mod" && ($ = U.div.neg()), { + div: $, + mod: U.mod + }) : this.negative & E.negative ? (U = this.neg().divmod(E.neg(), A), A !== "div" && (W = U.mod.neg(), L && W.negative !== 0 && W.isub(E)), { + div: U.div, + mod: W + }) : E.length > this.length || this.cmp(E) < 0 ? { + div: new f(0), + mod: this + } : E.length === 1 ? A === "div" ? { + div: this.divn(E.words[0]), + mod: null + } : A === "mod" ? { + div: null, + mod: new f(this.modrn(E.words[0])) + } : { + div: this.divn(E.words[0]), + mod: new f(this.modrn(E.words[0])) + } : this._wordDiv(E, A); + }, f.prototype.div = function(E) { + return this.divmod(E, "div", !1).div; + }, f.prototype.mod = function(E) { + return this.divmod(E, "mod", !1).mod; + }, f.prototype.umod = function(E) { + return this.divmod(E, "mod", !0).mod; + }, f.prototype.divRound = function(E) { + var A = this.divmod(E); + if (A.mod.isZero()) + return A.div; + var L = A.div.negative !== 0 ? A.mod.isub(E) : A.mod, $ = E.ushrn(1), W = E.andln(1), U = L.cmp($); + return U < 0 || W === 1 && U === 0 ? A.div : A.div.negative !== 0 ? A.div.isubn(1) : A.div.iaddn(1); + }, f.prototype.modrn = function(E) { + var A = E < 0; + A && (E = -E), b(E <= 67108863); + for (var L = (1 << 26) % E, $ = 0, W = this.length - 1; W >= 0; W--) + $ = (L * $ + (this.words[W] | 0)) % E; + return A ? -$ : $; + }, f.prototype.modn = function(E) { + return this.modrn(E); + }, f.prototype.idivn = function(E) { + var A = E < 0; + A && (E = -E), b(E <= 67108863); + for (var L = 0, $ = this.length - 1; $ >= 0; $--) { + var W = (this.words[$] | 0) + L * 67108864; + this.words[$] = W / E | 0, L = W % E; + } + return this._strip(), A ? this.ineg() : this; + }, f.prototype.divn = function(E) { + return this.clone().idivn(E); + }, f.prototype.egcd = function(E) { + b(E.negative === 0), b(!E.isZero()); + var A = this, L = E.clone(); + A.negative !== 0 ? A = A.umod(E) : A = A.clone(); + for (var $ = new f(1), W = new f(0), U = new f(0), D = new f(1), B = 0; A.isEven() && L.isEven(); ) + A.iushrn(1), L.iushrn(1), ++B; + for (var j = L.clone(), V = A.clone(); !A.isZero(); ) { + for (var re = 0, ee = 1; !(A.words[0] & ee) && re < 26; ++re, ee <<= 1) + ; + if (re > 0) + for (A.iushrn(re); re-- > 0; ) + ($.isOdd() || W.isOdd()) && ($.iadd(j), W.isub(V)), $.iushrn(1), W.iushrn(1); + for (var ce = 0, ve = 1; !(L.words[0] & ve) && ce < 26; ++ce, ve <<= 1) + ; + if (ce > 0) + for (L.iushrn(ce); ce-- > 0; ) + (U.isOdd() || D.isOdd()) && (U.iadd(j), D.isub(V)), U.iushrn(1), D.iushrn(1); + A.cmp(L) >= 0 ? (A.isub(L), $.isub(U), W.isub(D)) : (L.isub(A), U.isub($), D.isub(W)); + } + return { + a: U, + b: D, + gcd: L.iushln(B) + }; + }, f.prototype._invmp = function(E) { + b(E.negative === 0), b(!E.isZero()); + var A = this, L = E.clone(); + A.negative !== 0 ? A = A.umod(E) : A = A.clone(); + for (var $ = new f(1), W = new f(0), U = L.clone(); A.cmpn(1) > 0 && L.cmpn(1) > 0; ) { + for (var D = 0, B = 1; !(A.words[0] & B) && D < 26; ++D, B <<= 1) + ; + if (D > 0) + for (A.iushrn(D); D-- > 0; ) + $.isOdd() && $.iadd(U), $.iushrn(1); + for (var j = 0, V = 1; !(L.words[0] & V) && j < 26; ++j, V <<= 1) + ; + if (j > 0) + for (L.iushrn(j); j-- > 0; ) + W.isOdd() && W.iadd(U), W.iushrn(1); + A.cmp(L) >= 0 ? (A.isub(L), $.isub(W)) : (L.isub(A), W.isub($)); + } + var re; + return A.cmpn(1) === 0 ? re = $ : re = W, re.cmpn(0) < 0 && re.iadd(E), re; + }, f.prototype.gcd = function(E) { + if (this.isZero()) + return E.abs(); + if (E.isZero()) + return this.abs(); + var A = this.clone(), L = E.clone(); + A.negative = 0, L.negative = 0; + for (var $ = 0; A.isEven() && L.isEven(); $++) + A.iushrn(1), L.iushrn(1); + do { + for (; A.isEven(); ) + A.iushrn(1); + for (; L.isEven(); ) + L.iushrn(1); + var W = A.cmp(L); + if (W < 0) { + var U = A; + A = L, L = U; + } else if (W === 0 || L.cmpn(1) === 0) + break; + A.isub(L); + } while (!0); + return L.iushln($); + }, f.prototype.invm = function(E) { + return this.egcd(E).a.umod(E); + }, f.prototype.isEven = function() { + return (this.words[0] & 1) === 0; + }, f.prototype.isOdd = function() { + return (this.words[0] & 1) === 1; + }, f.prototype.andln = function(E) { + return this.words[0] & E; + }, f.prototype.bincn = function(E) { + b(typeof E == "number"); + var A = E % 26, L = (E - A) / 26, $ = 1 << A; + if (this.length <= L) + return this._expand(L + 1), this.words[L] |= $, this; + for (var W = $, U = L; W !== 0 && U < this.length; U++) { + var D = this.words[U] | 0; + D += W, W = D >>> 26, D &= 67108863, this.words[U] = D; + } + return W !== 0 && (this.words[U] = W, this.length++), this; + }, f.prototype.isZero = function() { + return this.length === 1 && this.words[0] === 0; + }, f.prototype.cmpn = function(E) { + var A = E < 0; + if (this.negative !== 0 && !A) + return -1; + if (this.negative === 0 && A) + return 1; + this._strip(); + var L; + if (this.length > 1) + L = 1; + else { + A && (E = -E), b(E <= 67108863, "Number is too big"); + var $ = this.words[0] | 0; + L = $ === E ? 0 : $ < E ? -1 : 1; + } + return this.negative !== 0 ? -L | 0 : L; + }, f.prototype.cmp = function(E) { + if (this.negative !== 0 && E.negative === 0) + return -1; + if (this.negative === 0 && E.negative !== 0) + return 1; + var A = this.ucmp(E); + return this.negative !== 0 ? -A | 0 : A; + }, f.prototype.ucmp = function(E) { + if (this.length > E.length) + return 1; + if (this.length < E.length) + return -1; + for (var A = 0, L = this.length - 1; L >= 0; L--) { + var $ = this.words[L] | 0, W = E.words[L] | 0; + if ($ !== W) { + $ < W ? A = -1 : $ > W && (A = 1); + break; + } + } + return A; + }, f.prototype.gtn = function(E) { + return this.cmpn(E) === 1; + }, f.prototype.gt = function(E) { + return this.cmp(E) === 1; + }, f.prototype.gten = function(E) { + return this.cmpn(E) >= 0; + }, f.prototype.gte = function(E) { + return this.cmp(E) >= 0; + }, f.prototype.ltn = function(E) { + return this.cmpn(E) === -1; + }, f.prototype.lt = function(E) { + return this.cmp(E) === -1; + }, f.prototype.lten = function(E) { + return this.cmpn(E) <= 0; + }, f.prototype.lte = function(E) { + return this.cmp(E) <= 0; + }, f.prototype.eqn = function(E) { + return this.cmpn(E) === 0; + }, f.prototype.eq = function(E) { + return this.cmp(E) === 0; + }, f.red = function(E) { + return new I(E); + }, f.prototype.toRed = function(E) { + return b(!this.red, "Already a number in reduction context"), b(this.negative === 0, "red works only with positives"), E.convertTo(this)._forceRed(E); + }, f.prototype.fromRed = function() { + return b(this.red, "fromRed works only with numbers in reduction context"), this.red.convertFrom(this); + }, f.prototype._forceRed = function(E) { + return this.red = E, this; + }, f.prototype.forceRed = function(E) { + return b(!this.red, "Already a number in reduction context"), this._forceRed(E); + }, f.prototype.redAdd = function(E) { + return b(this.red, "redAdd works only with red numbers"), this.red.add(this, E); + }, f.prototype.redIAdd = function(E) { + return b(this.red, "redIAdd works only with red numbers"), this.red.iadd(this, E); + }, f.prototype.redSub = function(E) { + return b(this.red, "redSub works only with red numbers"), this.red.sub(this, E); + }, f.prototype.redISub = function(E) { + return b(this.red, "redISub works only with red numbers"), this.red.isub(this, E); + }, f.prototype.redShl = function(E) { + return b(this.red, "redShl works only with red numbers"), this.red.shl(this, E); + }, f.prototype.redMul = function(E) { + return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.mul(this, E); + }, f.prototype.redIMul = function(E) { + return b(this.red, "redMul works only with red numbers"), this.red._verify2(this, E), this.red.imul(this, E); + }, f.prototype.redSqr = function() { + return b(this.red, "redSqr works only with red numbers"), this.red._verify1(this), this.red.sqr(this); + }, f.prototype.redISqr = function() { + return b(this.red, "redISqr works only with red numbers"), this.red._verify1(this), this.red.isqr(this); + }, f.prototype.redSqrt = function() { + return b(this.red, "redSqrt works only with red numbers"), this.red._verify1(this), this.red.sqrt(this); + }, f.prototype.redInvm = function() { + return b(this.red, "redInvm works only with red numbers"), this.red._verify1(this), this.red.invm(this); + }, f.prototype.redNeg = function() { + return b(this.red, "redNeg works only with red numbers"), this.red._verify1(this), this.red.neg(this); + }, f.prototype.redPow = function(E) { + return b(this.red && !E.red, "redPow(normalNum)"), this.red._verify1(this), this.red.pow(this, E); + }; + var O = { + k256: null, + p224: null, + p192: null, + p25519: null + }; + function P(C, E) { + this.name = C, this.p = new f(E, 16), this.n = this.p.bitLength(), this.k = new f(1).iushln(this.n).isub(this.p), this.tmp = this._tmp(); + } + P.prototype._tmp = function() { + var E = new f(null); + return E.words = new Array(Math.ceil(this.n / 13)), E; + }, P.prototype.ireduce = function(E) { + var A = E, L; + do + this.split(A, this.tmp), A = this.imulK(A), A = A.iadd(this.tmp), L = A.bitLength(); + while (L > this.n); + var $ = L < this.n ? -1 : A.ucmp(this.p); + return $ === 0 ? (A.words[0] = 0, A.length = 1) : $ > 0 ? A.isub(this.p) : A.strip !== void 0 ? A.strip() : A._strip(), A; + }, P.prototype.split = function(E, A) { + E.iushrn(this.n, 0, A); + }, P.prototype.imulK = function(E) { + return E.imul(this.k); + }; + function F() { + P.call(this, "k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f"); + } + w(F, P), F.prototype.split = function(E, A) { + for (var L = 4194303, $ = Math.min(E.length, 9), W = 0; W < $; W++) + A.words[W] = E.words[W]; + if (A.length = $, E.length <= 9) { + E.words[0] = 0, E.length = 1; + return; + } + var U = E.words[9]; + for (A.words[A.length++] = U & L, W = 10; W < E.length; W++) { + var D = E.words[W] | 0; + E.words[W - 10] = (D & L) << 4 | U >>> 22, U = D; + } + U >>>= 22, E.words[W - 10] = U, U === 0 && E.length > 10 ? E.length -= 10 : E.length -= 9; + }, F.prototype.imulK = function(E) { + E.words[E.length] = 0, E.words[E.length + 1] = 0, E.length += 2; + for (var A = 0, L = 0; L < E.length; L++) { + var $ = E.words[L] | 0; + A += $ * 977, E.words[L] = A & 67108863, A = $ * 64 + (A / 67108864 | 0); + } + return E.words[E.length - 1] === 0 && (E.length--, E.words[E.length - 1] === 0 && E.length--), E; + }; + function z() { + P.call(this, "p224", "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"); + } + w(z, P); + function N() { + P.call(this, "p192", "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff"); + } + w(N, P); + function M() { + P.call(this, "25519", "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"); + } + w(M, P), M.prototype.imulK = function(E) { + for (var A = 0, L = 0; L < E.length; L++) { + var $ = (E.words[L] | 0) * 19 + A, W = $ & 67108863; + $ >>>= 26, E.words[L] = W, A = $; + } + return A !== 0 && (E.words[E.length++] = A), E; + }, f._prime = function(E) { + if (O[E]) + return O[E]; + var A; + if (E === "k256") + A = new F(); + else if (E === "p224") + A = new z(); + else if (E === "p192") + A = new N(); + else if (E === "p25519") + A = new M(); + else + throw new Error("Unknown prime " + E); + return O[E] = A, A; + }; + function I(C) { + if (typeof C == "string") { + var E = f._prime(C); + this.m = E.p, this.prime = E; + } else + b(C.gtn(1), "modulus must be greater than 1"), this.m = C, this.prime = null; + } + I.prototype._verify1 = function(E) { + b(E.negative === 0, "red works only with positives"), b(E.red, "red works only with red numbers"); + }, I.prototype._verify2 = function(E, A) { + b((E.negative | A.negative) === 0, "red works only with positives"), b(E.red && E.red === A.red, "red works only with red numbers"); + }, I.prototype.imod = function(E) { + return this.prime ? this.prime.ireduce(E)._forceRed(this) : (d(E, E.umod(this.m)._forceRed(this)), E); + }, I.prototype.neg = function(E) { + return E.isZero() ? E.clone() : this.m.sub(E)._forceRed(this); + }, I.prototype.add = function(E, A) { + this._verify2(E, A); + var L = E.add(A); + return L.cmp(this.m) >= 0 && L.isub(this.m), L._forceRed(this); + }, I.prototype.iadd = function(E, A) { + this._verify2(E, A); + var L = E.iadd(A); + return L.cmp(this.m) >= 0 && L.isub(this.m), L; + }, I.prototype.sub = function(E, A) { + this._verify2(E, A); + var L = E.sub(A); + return L.cmpn(0) < 0 && L.iadd(this.m), L._forceRed(this); + }, I.prototype.isub = function(E, A) { + this._verify2(E, A); + var L = E.isub(A); + return L.cmpn(0) < 0 && L.iadd(this.m), L; + }, I.prototype.shl = function(E, A) { + return this._verify1(E), this.imod(E.ushln(A)); + }, I.prototype.imul = function(E, A) { + return this._verify2(E, A), this.imod(E.imul(A)); + }, I.prototype.mul = function(E, A) { + return this._verify2(E, A), this.imod(E.mul(A)); + }, I.prototype.isqr = function(E) { + return this.imul(E, E.clone()); + }, I.prototype.sqr = function(E) { + return this.mul(E, E); + }, I.prototype.sqrt = function(E) { + if (E.isZero()) + return E.clone(); + var A = this.m.andln(3); + if (b(A % 2 === 1), A === 3) { + var L = this.m.add(new f(1)).iushrn(2); + return this.pow(E, L); + } + for (var $ = this.m.subn(1), W = 0; !$.isZero() && $.andln(1) === 0; ) + W++, $.iushrn(1); + b(!$.isZero()); + var U = new f(1).toRed(this), D = U.redNeg(), B = this.m.subn(1).iushrn(1), j = this.m.bitLength(); + for (j = new f(2 * j * j).toRed(this); this.pow(j, B).cmp(D) !== 0; ) + j.redIAdd(D); + for (var V = this.pow(j, $), re = this.pow(E, $.addn(1).iushrn(1)), ee = this.pow(E, $), ce = W; ee.cmp(U) !== 0; ) { + for (var ve = ee, ge = 0; ve.cmp(U) !== 0; ge++) + ve = ve.redSqr(); + b(ge < ce); + var oe = this.pow(V, new f(1).iushln(ce - ge - 1)); + re = re.redMul(oe), V = oe.redSqr(), ee = ee.redMul(V), ce = ge; + } + return re; + }, I.prototype.invm = function(E) { + var A = E._invmp(this.m); + return A.negative !== 0 ? (A.negative = 0, this.imod(A).redNeg()) : this.imod(A); + }, I.prototype.pow = function(E, A) { + if (A.isZero()) + return new f(1).toRed(this); + if (A.cmpn(1) === 0) + return E.clone(); + var L = 4, $ = new Array(1 << L); + $[0] = new f(1).toRed(this), $[1] = E; + for (var W = 2; W < $.length; W++) + $[W] = this.mul($[W - 1], E); + var U = $[0], D = 0, B = 0, j = A.bitLength() % 26; + for (j === 0 && (j = 26), W = A.length - 1; W >= 0; W--) { + for (var V = A.words[W], re = j - 1; re >= 0; re--) { + var ee = V >> re & 1; + if (U !== $[0] && (U = this.sqr(U)), ee === 0 && D === 0) { + B = 0; + continue; + } + D <<= 1, D |= ee, B++, !(B !== L && (W !== 0 || re !== 0)) && (U = this.mul(U, $[D]), B = 0, D = 0); + } + j = 26; + } + return U; + }, I.prototype.convertTo = function(E) { + var A = E.umod(this.m); + return A === E ? A.clone() : A; + }, I.prototype.convertFrom = function(E) { + var A = E.clone(); + return A.red = null, A; + }, f.mont = function(E) { + return new R(E); + }; + function R(C) { + I.call(this, C), this.shift = this.m.bitLength(), this.shift % 26 !== 0 && (this.shift += 26 - this.shift % 26), this.r = new f(1).iushln(this.shift), this.r2 = this.imod(this.r.sqr()), this.rinv = this.r._invmp(this.m), this.minv = this.rinv.mul(this.r).isubn(1).div(this.m), this.minv = this.minv.umod(this.r), this.minv = this.r.sub(this.minv); + } + w(R, I), R.prototype.convertTo = function(E) { + return this.imod(E.ushln(this.shift)); + }, R.prototype.convertFrom = function(E) { + var A = this.imod(E.mul(this.rinv)); + return A.red = null, A; + }, R.prototype.imul = function(E, A) { + if (E.isZero() || A.isZero()) + return E.words[0] = 0, E.length = 1, E; + var L = E.imul(A), $ = L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), W = L.isub($).iushrn(this.shift), U = W; + return W.cmp(this.m) >= 0 ? U = W.isub(this.m) : W.cmpn(0) < 0 && (U = W.iadd(this.m)), U._forceRed(this); + }, R.prototype.mul = function(E, A) { + if (E.isZero() || A.isZero()) + return new f(0)._forceRed(this); + var L = E.mul(A), $ = L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), W = L.isub($).iushrn(this.shift), U = W; + return W.cmp(this.m) >= 0 ? U = W.isub(this.m) : W.cmpn(0) < 0 && (U = W.iadd(this.m)), U._forceRed(this); + }, R.prototype.invm = function(E) { + var A = this.imod(E._invmp(this.m).mul(this.r2)); + return A._forceRed(this); + }; + })(typeof x == "undefined" || x, void 0); + }, { buffer: 185 }], 184: [function(e, x, _) { + function u(w) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(y) { + return typeof y; + } : u = function(y) { + return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y; + }, u(w); + } + var m; + x.exports = function(f) { + return m || (m = new g(null)), m.generate(f); + }; + function g(w) { + this.rand = w; + } + if (x.exports.Rand = g, g.prototype.generate = function(f) { + return this._rand(f); + }, g.prototype._rand = function(f) { + if (this.rand.getBytes) + return this.rand.getBytes(f); + for (var y = new Uint8Array(f), h = 0; h < y.length; h++) + y[h] = this.rand.getByte(); + return y; + }, (typeof self == "undefined" ? "undefined" : u(self)) === "object") + self.crypto && self.crypto.getRandomValues ? g.prototype._rand = function(f) { + var y = new Uint8Array(f); + return self.crypto.getRandomValues(y), y; + } : self.msCrypto && self.msCrypto.getRandomValues ? g.prototype._rand = function(f) { + var y = new Uint8Array(f); + return self.msCrypto.getRandomValues(y), y; + } : (typeof window == "undefined" ? "undefined" : u(window)) === "object" && (g.prototype._rand = function() { + throw new Error("Not implemented yet"); + }); + else + try { + var b = e("crypto"); + if (typeof b.randomBytes != "function") + throw new Error("Not supported"); + g.prototype._rand = function(f) { + return b.randomBytes(f); + }; + } catch (w) { + } + }, { crypto: 185 }], 185: [function(e, x, _) { + }, {}], 186: [function(e, x, _) { + var u = e("safe-buffer").Buffer; + function m(h) { + u.isBuffer(h) || (h = u.from(h)); + for (var l = h.length / 4 | 0, d = new Array(l), s = 0; s < l; s++) + d[s] = h.readUInt32BE(s * 4); + return d; + } + function g(h) { + for (var l = 0; l < h.length; h++) + h[l] = 0; + } + function b(h, l, d, s, v) { + for (var c = d[0], a = d[1], r = d[2], t = d[3], i = h[0] ^ l[0], n = h[1] ^ l[1], o = h[2] ^ l[2], p = h[3] ^ l[3], O, P, F, z, N = 4, M = 1; M < v; M++) + O = c[i >>> 24] ^ a[n >>> 16 & 255] ^ r[o >>> 8 & 255] ^ t[p & 255] ^ l[N++], P = c[n >>> 24] ^ a[o >>> 16 & 255] ^ r[p >>> 8 & 255] ^ t[i & 255] ^ l[N++], F = c[o >>> 24] ^ a[p >>> 16 & 255] ^ r[i >>> 8 & 255] ^ t[n & 255] ^ l[N++], z = c[p >>> 24] ^ a[i >>> 16 & 255] ^ r[n >>> 8 & 255] ^ t[o & 255] ^ l[N++], i = O, n = P, o = F, p = z; + return O = (s[i >>> 24] << 24 | s[n >>> 16 & 255] << 16 | s[o >>> 8 & 255] << 8 | s[p & 255]) ^ l[N++], P = (s[n >>> 24] << 24 | s[o >>> 16 & 255] << 16 | s[p >>> 8 & 255] << 8 | s[i & 255]) ^ l[N++], F = (s[o >>> 24] << 24 | s[p >>> 16 & 255] << 16 | s[i >>> 8 & 255] << 8 | s[n & 255]) ^ l[N++], z = (s[p >>> 24] << 24 | s[i >>> 16 & 255] << 16 | s[n >>> 8 & 255] << 8 | s[o & 255]) ^ l[N++], O = O >>> 0, P = P >>> 0, F = F >>> 0, z = z >>> 0, [O, P, F, z]; + } + var w = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], f = function() { + for (var h = new Array(256), l = 0; l < 256; l++) + l < 128 ? h[l] = l << 1 : h[l] = l << 1 ^ 283; + for (var d = [], s = [], v = [[], [], [], []], c = [[], [], [], []], a = 0, r = 0, t = 0; t < 256; ++t) { + var i = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4; + i = i >>> 8 ^ i & 255 ^ 99, d[a] = i, s[i] = a; + var n = h[a], o = h[n], p = h[o], O = h[i] * 257 ^ i * 16843008; + v[0][a] = O << 24 | O >>> 8, v[1][a] = O << 16 | O >>> 16, v[2][a] = O << 8 | O >>> 24, v[3][a] = O, O = p * 16843009 ^ o * 65537 ^ n * 257 ^ a * 16843008, c[0][i] = O << 24 | O >>> 8, c[1][i] = O << 16 | O >>> 16, c[2][i] = O << 8 | O >>> 24, c[3][i] = O, a === 0 ? a = r = 1 : (a = n ^ h[h[h[p ^ n]]], r ^= h[h[r]]); + } + return { + SBOX: d, + INV_SBOX: s, + SUB_MIX: v, + INV_SUB_MIX: c + }; + }(); + function y(h) { + this._key = m(h), this._reset(); + } + y.blockSize = 4 * 4, y.keySize = 256 / 8, y.prototype.blockSize = y.blockSize, y.prototype.keySize = y.keySize, y.prototype._reset = function() { + for (var h = this._key, l = h.length, d = l + 6, s = (d + 1) * 4, v = [], c = 0; c < l; c++) + v[c] = h[c]; + for (c = l; c < s; c++) { + var a = v[c - 1]; + c % l === 0 ? (a = a << 8 | a >>> 24, a = f.SBOX[a >>> 24] << 24 | f.SBOX[a >>> 16 & 255] << 16 | f.SBOX[a >>> 8 & 255] << 8 | f.SBOX[a & 255], a ^= w[c / l | 0] << 24) : l > 6 && c % l === 4 && (a = f.SBOX[a >>> 24] << 24 | f.SBOX[a >>> 16 & 255] << 16 | f.SBOX[a >>> 8 & 255] << 8 | f.SBOX[a & 255]), v[c] = v[c - l] ^ a; + } + for (var r = [], t = 0; t < s; t++) { + var i = s - t, n = v[i - (t % 4 ? 0 : 4)]; + t < 4 || i <= 4 ? r[t] = n : r[t] = f.INV_SUB_MIX[0][f.SBOX[n >>> 24]] ^ f.INV_SUB_MIX[1][f.SBOX[n >>> 16 & 255]] ^ f.INV_SUB_MIX[2][f.SBOX[n >>> 8 & 255]] ^ f.INV_SUB_MIX[3][f.SBOX[n & 255]]; + } + this._nRounds = d, this._keySchedule = v, this._invKeySchedule = r; + }, y.prototype.encryptBlockRaw = function(h) { + return h = m(h), b(h, this._keySchedule, f.SUB_MIX, f.SBOX, this._nRounds); + }, y.prototype.encryptBlock = function(h) { + var l = this.encryptBlockRaw(h), d = u.allocUnsafe(16); + return d.writeUInt32BE(l[0], 0), d.writeUInt32BE(l[1], 4), d.writeUInt32BE(l[2], 8), d.writeUInt32BE(l[3], 12), d; + }, y.prototype.decryptBlock = function(h) { + h = m(h); + var l = h[1]; + h[1] = h[3], h[3] = l; + var d = b(h, this._invKeySchedule, f.INV_SUB_MIX, f.INV_SBOX, this._nRounds), s = u.allocUnsafe(16); + return s.writeUInt32BE(d[0], 0), s.writeUInt32BE(d[3], 4), s.writeUInt32BE(d[2], 8), s.writeUInt32BE(d[1], 12), s; + }, y.prototype.scrub = function() { + g(this._keySchedule), g(this._invKeySchedule), g(this._key); + }, x.exports.AES = y; + }, { "safe-buffer": 494 }], 187: [function(e, x, _) { + var u = e("./aes"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = e("inherits"), w = e("./ghash"), f = e("buffer-xor"), y = e("./incr32"); + function h(s, v) { + var c = 0; + s.length !== v.length && c++; + for (var a = Math.min(s.length, v.length), r = 0; r < a; ++r) + c += s[r] ^ v[r]; + return c; + } + function l(s, v, c) { + if (v.length === 12) + return s._finID = m.concat([v, m.from([0, 0, 0, 1])]), m.concat([v, m.from([0, 0, 0, 2])]); + var a = new w(c), r = v.length, t = r % 16; + a.update(v), t && (t = 16 - t, a.update(m.alloc(t, 0))), a.update(m.alloc(8, 0)); + var i = r * 8, n = m.alloc(8); + n.writeUIntBE(i, 0, 8), a.update(n), s._finID = a.state; + var o = m.from(s._finID); + return y(o), o; + } + function d(s, v, c, a) { + g.call(this); + var r = m.alloc(4, 0); + this._cipher = new u.AES(v); + var t = this._cipher.encryptBlock(r); + this._ghash = new w(t), c = l(this, c, t), this._prev = m.from(c), this._cache = m.allocUnsafe(0), this._secCache = m.allocUnsafe(0), this._decrypt = a, this._alen = 0, this._len = 0, this._mode = s, this._authTag = null, this._called = !1; + } + b(d, g), d.prototype._update = function(s) { + if (!this._called && this._alen) { + var v = 16 - this._alen % 16; + v < 16 && (v = m.alloc(v, 0), this._ghash.update(v)); + } + this._called = !0; + var c = this._mode.encrypt(this, s); + return this._decrypt ? this._ghash.update(s) : this._ghash.update(c), this._len += s.length, c; + }, d.prototype._final = function() { + if (this._decrypt && !this._authTag) + throw new Error("Unsupported state or unable to authenticate data"); + var s = f(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID)); + if (this._decrypt && h(s, this._authTag)) + throw new Error("Unsupported state or unable to authenticate data"); + this._authTag = s, this._cipher.scrub(); + }, d.prototype.getAuthTag = function() { + if (this._decrypt || !m.isBuffer(this._authTag)) + throw new Error("Attempting to get auth tag in unsupported state"); + return this._authTag; + }, d.prototype.setAuthTag = function(v) { + if (!this._decrypt) + throw new Error("Attempting to set auth tag in unsupported state"); + this._authTag = v; + }, d.prototype.setAAD = function(v) { + if (this._called) + throw new Error("Attempting to set AAD in unsupported state"); + this._ghash.update(v), this._alen += v.length; + }, x.exports = d; + }, { "./aes": 186, "./ghash": 191, "./incr32": 192, "buffer-xor": 217, "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 188: [function(e, x, _) { + var u = e("./encrypter"), m = e("./decrypter"), g = e("./modes/list.json"); + function b() { + return Object.keys(g); + } + _.createCipher = _.Cipher = u.createCipher, _.createCipheriv = _.Cipheriv = u.createCipheriv, _.createDecipher = _.Decipher = m.createDecipher, _.createDecipheriv = _.Decipheriv = m.createDecipheriv, _.listCiphers = _.getCiphers = b; + }, { "./decrypter": 189, "./encrypter": 190, "./modes/list.json": 200 }], 189: [function(e, x, _) { + var u = e("./authCipher"), m = e("safe-buffer").Buffer, g = e("./modes"), b = e("./streamCipher"), w = e("cipher-base"), f = e("./aes"), y = e("evp_bytestokey"), h = e("inherits"); + function l(a, r, t) { + w.call(this), this._cache = new d(), this._last = void 0, this._cipher = new f.AES(r), this._prev = m.from(t), this._mode = a, this._autopadding = !0; + } + h(l, w), l.prototype._update = function(a) { + this._cache.add(a); + for (var r, t, i = []; r = this._cache.get(this._autopadding); ) + t = this._mode.decrypt(this, r), i.push(t); + return m.concat(i); + }, l.prototype._final = function() { + var a = this._cache.flush(); + if (this._autopadding) + return s(this._mode.decrypt(this, a)); + if (a) + throw new Error("data not multiple of block length"); + }, l.prototype.setAutoPadding = function(a) { + return this._autopadding = !!a, this; + }; + function d() { + this.cache = m.allocUnsafe(0); + } + d.prototype.add = function(a) { + this.cache = m.concat([this.cache, a]); + }, d.prototype.get = function(a) { + var r; + if (a) { + if (this.cache.length > 16) + return r = this.cache.slice(0, 16), this.cache = this.cache.slice(16), r; + } else if (this.cache.length >= 16) + return r = this.cache.slice(0, 16), this.cache = this.cache.slice(16), r; + return null; + }, d.prototype.flush = function() { + if (this.cache.length) + return this.cache; + }; + function s(a) { + var r = a[15]; + if (r < 1 || r > 16) + throw new Error("unable to decrypt data"); + for (var t = -1; ++t < r; ) + if (a[t + (16 - r)] !== r) + throw new Error("unable to decrypt data"); + if (r !== 16) + return a.slice(0, 16 - r); + } + function v(a, r, t) { + var i = g[a.toLowerCase()]; + if (!i) + throw new TypeError("invalid suite type"); + if (typeof t == "string" && (t = m.from(t)), i.mode !== "GCM" && t.length !== i.iv) + throw new TypeError("invalid iv length " + t.length); + if (typeof r == "string" && (r = m.from(r)), r.length !== i.key / 8) + throw new TypeError("invalid key length " + r.length); + return i.type === "stream" ? new b(i.module, r, t, !0) : i.type === "auth" ? new u(i.module, r, t, !0) : new l(i.module, r, t); + } + function c(a, r) { + var t = g[a.toLowerCase()]; + if (!t) + throw new TypeError("invalid suite type"); + var i = y(r, !1, t.key, t.iv); + return v(a, i.key, i.iv); + } + _.createDecipher = c, _.createDecipheriv = v; + }, { "./aes": 186, "./authCipher": 187, "./modes": 199, "./streamCipher": 202, "cipher-base": 218, evp_bytestokey: 368, inherits: 387, "safe-buffer": 494 }], 190: [function(e, x, _) { + var u = e("./modes"), m = e("./authCipher"), g = e("safe-buffer").Buffer, b = e("./streamCipher"), w = e("cipher-base"), f = e("./aes"), y = e("evp_bytestokey"), h = e("inherits"); + function l(a, r, t) { + w.call(this), this._cache = new s(), this._cipher = new f.AES(r), this._prev = g.from(t), this._mode = a, this._autopadding = !0; + } + h(l, w), l.prototype._update = function(a) { + this._cache.add(a); + for (var r, t, i = []; r = this._cache.get(); ) + t = this._mode.encrypt(this, r), i.push(t); + return g.concat(i); + }; + var d = g.alloc(16, 16); + l.prototype._final = function() { + var a = this._cache.flush(); + if (this._autopadding) + return a = this._mode.encrypt(this, a), this._cipher.scrub(), a; + if (!a.equals(d)) + throw this._cipher.scrub(), new Error("data not multiple of block length"); + }, l.prototype.setAutoPadding = function(a) { + return this._autopadding = !!a, this; + }; + function s() { + this.cache = g.allocUnsafe(0); + } + s.prototype.add = function(a) { + this.cache = g.concat([this.cache, a]); + }, s.prototype.get = function() { + if (this.cache.length > 15) { + var a = this.cache.slice(0, 16); + return this.cache = this.cache.slice(16), a; + } + return null; + }, s.prototype.flush = function() { + for (var a = 16 - this.cache.length, r = g.allocUnsafe(a), t = -1; ++t < a; ) + r.writeUInt8(a, t); + return g.concat([this.cache, r]); + }; + function v(a, r, t) { + var i = u[a.toLowerCase()]; + if (!i) + throw new TypeError("invalid suite type"); + if (typeof r == "string" && (r = g.from(r)), r.length !== i.key / 8) + throw new TypeError("invalid key length " + r.length); + if (typeof t == "string" && (t = g.from(t)), i.mode !== "GCM" && t.length !== i.iv) + throw new TypeError("invalid iv length " + t.length); + return i.type === "stream" ? new b(i.module, r, t) : i.type === "auth" ? new m(i.module, r, t) : new l(i.module, r, t); + } + function c(a, r) { + var t = u[a.toLowerCase()]; + if (!t) + throw new TypeError("invalid suite type"); + var i = y(r, !1, t.key, t.iv); + return v(a, i.key, i.iv); + } + _.createCipheriv = v, _.createCipher = c; + }, { "./aes": 186, "./authCipher": 187, "./modes": 199, "./streamCipher": 202, "cipher-base": 218, evp_bytestokey: 368, inherits: 387, "safe-buffer": 494 }], 191: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = u.alloc(16, 0); + function g(f) { + return [f.readUInt32BE(0), f.readUInt32BE(4), f.readUInt32BE(8), f.readUInt32BE(12)]; + } + function b(f) { + var y = u.allocUnsafe(16); + return y.writeUInt32BE(f[0] >>> 0, 0), y.writeUInt32BE(f[1] >>> 0, 4), y.writeUInt32BE(f[2] >>> 0, 8), y.writeUInt32BE(f[3] >>> 0, 12), y; + } + function w(f) { + this.h = f, this.state = u.alloc(16, 0), this.cache = u.allocUnsafe(0); + } + w.prototype.ghash = function(f) { + for (var y = -1; ++y < f.length; ) + this.state[y] ^= f[y]; + this._multiply(); + }, w.prototype._multiply = function() { + for (var f = g(this.h), y = [0, 0, 0, 0], h, l, d, s = -1; ++s < 128; ) { + for (l = (this.state[~~(s / 8)] & 1 << 7 - s % 8) !== 0, l && (y[0] ^= f[0], y[1] ^= f[1], y[2] ^= f[2], y[3] ^= f[3]), d = (f[3] & 1) !== 0, h = 3; h > 0; h--) + f[h] = f[h] >>> 1 | (f[h - 1] & 1) << 31; + f[0] = f[0] >>> 1, d && (f[0] = f[0] ^ 225 << 24); + } + this.state = b(y); + }, w.prototype.update = function(f) { + this.cache = u.concat([this.cache, f]); + for (var y; this.cache.length >= 16; ) + y = this.cache.slice(0, 16), this.cache = this.cache.slice(16), this.ghash(y); + }, w.prototype.final = function(f, y) { + return this.cache.length && this.ghash(u.concat([this.cache, m], 16)), this.ghash(b([0, f, 0, y])), this.state; + }, x.exports = w; + }, { "safe-buffer": 494 }], 192: [function(e, x, _) { + function u(m) { + for (var g = m.length, b; g--; ) + if (b = m.readUInt8(g), b === 255) + m.writeUInt8(0, g); + else { + b++, m.writeUInt8(b, g); + break; + } + } + x.exports = u; + }, {}], 193: [function(e, x, _) { + var u = e("buffer-xor"); + _.encrypt = function(m, g) { + var b = u(g, m._prev); + return m._prev = m._cipher.encryptBlock(b), m._prev; + }, _.decrypt = function(m, g) { + var b = m._prev; + m._prev = g; + var w = m._cipher.decryptBlock(g); + return u(w, b); + }; + }, { "buffer-xor": 217 }], 194: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("buffer-xor"); + function g(b, w, f) { + var y = w.length, h = m(w, b._cache); + return b._cache = b._cache.slice(y), b._prev = u.concat([b._prev, f ? w : h]), h; + } + _.encrypt = function(b, w, f) { + for (var y = u.allocUnsafe(0), h; w.length; ) + if (b._cache.length === 0 && (b._cache = b._cipher.encryptBlock(b._prev), b._prev = u.allocUnsafe(0)), b._cache.length <= w.length) + h = b._cache.length, y = u.concat([y, g(b, w.slice(0, h), f)]), w = w.slice(h); + else { + y = u.concat([y, g(b, w, f)]); + break; + } + return y; + }; + }, { "buffer-xor": 217, "safe-buffer": 494 }], 195: [function(e, x, _) { + var u = e("safe-buffer").Buffer; + function m(b, w, f) { + for (var y, h = -1, l = 8, d = 0, s, v; ++h < l; ) + y = b._cipher.encryptBlock(b._prev), s = w & 1 << 7 - h ? 128 : 0, v = y[0] ^ s, d += (v & 128) >> h % 8, b._prev = g(b._prev, f ? s : v); + return d; + } + function g(b, w) { + var f = b.length, y = -1, h = u.allocUnsafe(b.length); + for (b = u.concat([b, u.from([w])]); ++y < f; ) + h[y] = b[y] << 1 | b[y + 1] >> 7; + return h; + } + _.encrypt = function(b, w, f) { + for (var y = w.length, h = u.allocUnsafe(y), l = -1; ++l < y; ) + h[l] = m(b, w[l], f); + return h; + }; + }, { "safe-buffer": 494 }], 196: [function(e, x, _) { + var u = e("safe-buffer").Buffer; + function m(g, b, w) { + var f = g._cipher.encryptBlock(g._prev), y = f[0] ^ b; + return g._prev = u.concat([g._prev.slice(1), u.from([w ? b : y])]), y; + } + _.encrypt = function(g, b, w) { + for (var f = b.length, y = u.allocUnsafe(f), h = -1; ++h < f; ) + y[h] = m(g, b[h], w); + return y; + }; + }, { "safe-buffer": 494 }], 197: [function(e, x, _) { + var u = e("buffer-xor"), m = e("safe-buffer").Buffer, g = e("../incr32"); + function b(f) { + var y = f._cipher.encryptBlockRaw(f._prev); + return g(f._prev), y; + } + var w = 16; + _.encrypt = function(f, y) { + var h = Math.ceil(y.length / w), l = f._cache.length; + f._cache = m.concat([f._cache, m.allocUnsafe(h * w)]); + for (var d = 0; d < h; d++) { + var s = b(f), v = l + d * w; + f._cache.writeUInt32BE(s[0], v + 0), f._cache.writeUInt32BE(s[1], v + 4), f._cache.writeUInt32BE(s[2], v + 8), f._cache.writeUInt32BE(s[3], v + 12); + } + var c = f._cache.slice(0, y.length); + return f._cache = f._cache.slice(y.length), u(y, c); + }; + }, { "../incr32": 192, "buffer-xor": 217, "safe-buffer": 494 }], 198: [function(e, x, _) { + _.encrypt = function(u, m) { + return u._cipher.encryptBlock(m); + }, _.decrypt = function(u, m) { + return u._cipher.decryptBlock(m); + }; + }, {}], 199: [function(e, x, _) { + var u = { + ECB: e("./ecb"), + CBC: e("./cbc"), + CFB: e("./cfb"), + CFB8: e("./cfb8"), + CFB1: e("./cfb1"), + OFB: e("./ofb"), + CTR: e("./ctr"), + GCM: e("./ctr") + }, m = e("./list.json"); + for (var g in m) + m[g].module = u[m[g].mode]; + x.exports = m; + }, { "./cbc": 193, "./cfb": 194, "./cfb1": 195, "./cfb8": 196, "./ctr": 197, "./ecb": 198, "./list.json": 200, "./ofb": 201 }], 200: [function(e, x, _) { + x.exports = { + "aes-128-ecb": { + cipher: "AES", + key: 128, + iv: 0, + mode: "ECB", + type: "block" + }, + "aes-192-ecb": { + cipher: "AES", + key: 192, + iv: 0, + mode: "ECB", + type: "block" + }, + "aes-256-ecb": { + cipher: "AES", + key: 256, + iv: 0, + mode: "ECB", + type: "block" + }, + "aes-128-cbc": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CBC", + type: "block" + }, + "aes-192-cbc": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CBC", + type: "block" + }, + "aes-256-cbc": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CBC", + type: "block" + }, + aes128: { + cipher: "AES", + key: 128, + iv: 16, + mode: "CBC", + type: "block" + }, + aes192: { + cipher: "AES", + key: 192, + iv: 16, + mode: "CBC", + type: "block" + }, + aes256: { + cipher: "AES", + key: 256, + iv: 16, + mode: "CBC", + type: "block" + }, + "aes-128-cfb": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB", + type: "stream" + }, + "aes-192-cfb": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB", + type: "stream" + }, + "aes-256-cfb": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB", + type: "stream" + }, + "aes-128-cfb8": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB8", + type: "stream" + }, + "aes-192-cfb8": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB8", + type: "stream" + }, + "aes-256-cfb8": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB8", + type: "stream" + }, + "aes-128-cfb1": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CFB1", + type: "stream" + }, + "aes-192-cfb1": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CFB1", + type: "stream" + }, + "aes-256-cfb1": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CFB1", + type: "stream" + }, + "aes-128-ofb": { + cipher: "AES", + key: 128, + iv: 16, + mode: "OFB", + type: "stream" + }, + "aes-192-ofb": { + cipher: "AES", + key: 192, + iv: 16, + mode: "OFB", + type: "stream" + }, + "aes-256-ofb": { + cipher: "AES", + key: 256, + iv: 16, + mode: "OFB", + type: "stream" + }, + "aes-128-ctr": { + cipher: "AES", + key: 128, + iv: 16, + mode: "CTR", + type: "stream" + }, + "aes-192-ctr": { + cipher: "AES", + key: 192, + iv: 16, + mode: "CTR", + type: "stream" + }, + "aes-256-ctr": { + cipher: "AES", + key: 256, + iv: 16, + mode: "CTR", + type: "stream" + }, + "aes-128-gcm": { + cipher: "AES", + key: 128, + iv: 12, + mode: "GCM", + type: "auth" + }, + "aes-192-gcm": { + cipher: "AES", + key: 192, + iv: 12, + mode: "GCM", + type: "auth" + }, + "aes-256-gcm": { + cipher: "AES", + key: 256, + iv: 12, + mode: "GCM", + type: "auth" + } + }; + }, {}], 201: [function(e, x, _) { + (function(u) { + var m = e("buffer-xor"); + function g(b) { + return b._prev = b._cipher.encryptBlock(b._prev), b._prev; + } + _.encrypt = function(b, w) { + for (; b._cache.length < w.length; ) + b._cache = u.concat([b._cache, g(b)]); + var f = b._cache.slice(0, w.length); + return b._cache = b._cache.slice(w.length), m(w, f); + }; + }).call(this, e("buffer").Buffer); + }, { buffer: 216, "buffer-xor": 217 }], 202: [function(e, x, _) { + var u = e("./aes"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = e("inherits"); + function w(f, y, h, l) { + g.call(this), this._cipher = new u.AES(y), this._prev = m.from(h), this._cache = m.allocUnsafe(0), this._secCache = m.allocUnsafe(0), this._decrypt = l, this._mode = f; + } + b(w, g), w.prototype._update = function(f) { + return this._mode.encrypt(this, f, this._decrypt); + }, w.prototype._final = function() { + this._cipher.scrub(); + }, x.exports = w; + }, { "./aes": 186, "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 203: [function(e, x, _) { + var u = e("browserify-des"), m = e("browserify-aes/browser"), g = e("browserify-aes/modes"), b = e("browserify-des/modes"), w = e("evp_bytestokey"); + function f(s, v) { + s = s.toLowerCase(); + var c, a; + if (g[s]) + c = g[s].key, a = g[s].iv; + else if (b[s]) + c = b[s].key * 8, a = b[s].iv; + else + throw new TypeError("invalid suite type"); + var r = w(v, !1, c, a); + return h(s, r.key, r.iv); + } + function y(s, v) { + s = s.toLowerCase(); + var c, a; + if (g[s]) + c = g[s].key, a = g[s].iv; + else if (b[s]) + c = b[s].key * 8, a = b[s].iv; + else + throw new TypeError("invalid suite type"); + var r = w(v, !1, c, a); + return l(s, r.key, r.iv); + } + function h(s, v, c) { + if (s = s.toLowerCase(), g[s]) + return m.createCipheriv(s, v, c); + if (b[s]) + return new u({ + key: v, + iv: c, + mode: s + }); + throw new TypeError("invalid suite type"); + } + function l(s, v, c) { + if (s = s.toLowerCase(), g[s]) + return m.createDecipheriv(s, v, c); + if (b[s]) + return new u({ + key: v, + iv: c, + mode: s, + decrypt: !0 + }); + throw new TypeError("invalid suite type"); + } + function d() { + return Object.keys(b).concat(m.getCiphers()); + } + _.createCipher = _.Cipher = f, _.createCipheriv = _.Cipheriv = h, _.createDecipher = _.Decipher = y, _.createDecipheriv = _.Decipheriv = l, _.listCiphers = _.getCiphers = d; + }, { "browserify-aes/browser": 188, "browserify-aes/modes": 199, "browserify-des": 204, "browserify-des/modes": 205, evp_bytestokey: 368 }], 204: [function(e, x, _) { + var u = e("cipher-base"), m = e("des.js"), g = e("inherits"), b = e("safe-buffer").Buffer, w = { + "des-ede3-cbc": m.CBC.instantiate(m.EDE), + "des-ede3": m.EDE, + "des-ede-cbc": m.CBC.instantiate(m.EDE), + "des-ede": m.EDE, + "des-cbc": m.CBC.instantiate(m.DES), + "des-ecb": m.DES + }; + w.des = w["des-cbc"], w.des3 = w["des-ede3-cbc"], x.exports = f, g(f, u); + function f(y) { + u.call(this); + var h = y.mode.toLowerCase(), l = w[h], d; + y.decrypt ? d = "decrypt" : d = "encrypt"; + var s = y.key; + b.isBuffer(s) || (s = b.from(s)), (h === "des-ede" || h === "des-ede-cbc") && (s = b.concat([s, s.slice(0, 8)])); + var v = y.iv; + b.isBuffer(v) || (v = b.from(v)), this._des = l.create({ + key: s, + iv: v, + type: d + }); + } + f.prototype._update = function(y) { + return b.from(this._des.update(y)); + }, f.prototype._final = function() { + return b.from(this._des.final()); + }; + }, { "cipher-base": 218, "des.js": 339, inherits: 387, "safe-buffer": 494 }], 205: [function(e, x, _) { + _["des-ecb"] = { + key: 8, + iv: 0 + }, _["des-cbc"] = _.des = { + key: 8, + iv: 8 + }, _["des-ede3-cbc"] = _.des3 = { + key: 24, + iv: 8 + }, _["des-ede3"] = { + key: 24, + iv: 0 + }, _["des-ede-cbc"] = { + key: 16, + iv: 8 + }, _["des-ede"] = { + key: 16, + iv: 0 + }; + }, {}], 206: [function(e, x, _) { + (function(u) { + var m = e("bn.js"), g = e("randombytes"); + x.exports = w; + function b(y) { + var h = f(y), l = h.toRed(m.mont(y.modulus)).redPow(new m(y.publicExponent)).fromRed(); + return { + blinder: l, + unblinder: h.invm(y.modulus) + }; + } + function w(y, h) { + var l = b(h), d = h.modulus.byteLength(); + m.mont(h.modulus); + var s = new m(y).mul(l.blinder).umod(h.modulus), v = s.toRed(m.mont(h.prime1)), c = s.toRed(m.mont(h.prime2)), a = h.coefficient, r = h.prime1, t = h.prime2, i = v.redPow(h.exponent1), n = c.redPow(h.exponent2); + i = i.fromRed(), n = n.fromRed(); + var o = i.isub(n).imul(a).umod(r); + return o.imul(t), n.iadd(o), new u(n.imul(l.unblinder).umod(h.modulus).toArray(!1, d)); + } + w.getr = f; + function f(y) { + for (var h = y.modulus.byteLength(), l = new m(g(h)); l.cmp(y.modulus) >= 0 || !l.umod(y.prime1) || !l.umod(y.prime2); ) + l = new m(g(h)); + return l; + } + }).call(this, e("buffer").Buffer); + }, { "bn.js": 207, buffer: 216, randombytes: 475 }], 207: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 208: [function(e, x, _) { + x.exports = e("./browser/algorithms.json"); + }, { "./browser/algorithms.json": 209 }], 209: [function(e, x, _) { + x.exports = { + sha224WithRSAEncryption: { + sign: "rsa", + hash: "sha224", + id: "302d300d06096086480165030402040500041c" + }, + "RSA-SHA224": { + sign: "ecdsa/rsa", + hash: "sha224", + id: "302d300d06096086480165030402040500041c" + }, + sha256WithRSAEncryption: { + sign: "rsa", + hash: "sha256", + id: "3031300d060960864801650304020105000420" + }, + "RSA-SHA256": { + sign: "ecdsa/rsa", + hash: "sha256", + id: "3031300d060960864801650304020105000420" + }, + sha384WithRSAEncryption: { + sign: "rsa", + hash: "sha384", + id: "3041300d060960864801650304020205000430" + }, + "RSA-SHA384": { + sign: "ecdsa/rsa", + hash: "sha384", + id: "3041300d060960864801650304020205000430" + }, + sha512WithRSAEncryption: { + sign: "rsa", + hash: "sha512", + id: "3051300d060960864801650304020305000440" + }, + "RSA-SHA512": { + sign: "ecdsa/rsa", + hash: "sha512", + id: "3051300d060960864801650304020305000440" + }, + "RSA-SHA1": { + sign: "rsa", + hash: "sha1", + id: "3021300906052b0e03021a05000414" + }, + "ecdsa-with-SHA1": { + sign: "ecdsa", + hash: "sha1", + id: "" + }, + sha256: { + sign: "ecdsa", + hash: "sha256", + id: "" + }, + sha224: { + sign: "ecdsa", + hash: "sha224", + id: "" + }, + sha384: { + sign: "ecdsa", + hash: "sha384", + id: "" + }, + sha512: { + sign: "ecdsa", + hash: "sha512", + id: "" + }, + "DSA-SHA": { + sign: "dsa", + hash: "sha1", + id: "" + }, + "DSA-SHA1": { + sign: "dsa", + hash: "sha1", + id: "" + }, + DSA: { + sign: "dsa", + hash: "sha1", + id: "" + }, + "DSA-WITH-SHA224": { + sign: "dsa", + hash: "sha224", + id: "" + }, + "DSA-SHA224": { + sign: "dsa", + hash: "sha224", + id: "" + }, + "DSA-WITH-SHA256": { + sign: "dsa", + hash: "sha256", + id: "" + }, + "DSA-SHA256": { + sign: "dsa", + hash: "sha256", + id: "" + }, + "DSA-WITH-SHA384": { + sign: "dsa", + hash: "sha384", + id: "" + }, + "DSA-SHA384": { + sign: "dsa", + hash: "sha384", + id: "" + }, + "DSA-WITH-SHA512": { + sign: "dsa", + hash: "sha512", + id: "" + }, + "DSA-SHA512": { + sign: "dsa", + hash: "sha512", + id: "" + }, + "DSA-RIPEMD160": { + sign: "dsa", + hash: "rmd160", + id: "" + }, + ripemd160WithRSA: { + sign: "rsa", + hash: "rmd160", + id: "3021300906052b2403020105000414" + }, + "RSA-RIPEMD160": { + sign: "rsa", + hash: "rmd160", + id: "3021300906052b2403020105000414" + }, + md5WithRSAEncryption: { + sign: "rsa", + hash: "md5", + id: "3020300c06082a864886f70d020505000410" + }, + "RSA-MD5": { + sign: "rsa", + hash: "md5", + id: "3020300c06082a864886f70d020505000410" + } + }; + }, {}], 210: [function(e, x, _) { + x.exports = { + "1.3.132.0.10": "secp256k1", + "1.3.132.0.33": "p224", + "1.2.840.10045.3.1.1": "p192", + "1.2.840.10045.3.1.7": "p256", + "1.3.132.0.34": "p384", + "1.3.132.0.35": "p521" + }; + }, {}], 211: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("create-hash"), g = e("readable-stream"), b = e("inherits"), w = e("./sign"), f = e("./verify"), y = e("./algorithms.json"); + Object.keys(y).forEach(function(v) { + y[v].id = u.from(y[v].id, "hex"), y[v.toLowerCase()] = y[v]; + }); + function h(v) { + g.Writable.call(this); + var c = y[v]; + if (!c) + throw new Error("Unknown message digest"); + this._hashType = c.hash, this._hash = m(c.hash), this._tag = c.id, this._signType = c.sign; + } + b(h, g.Writable), h.prototype._write = function(c, a, r) { + this._hash.update(c), r(); + }, h.prototype.update = function(c, a) { + return typeof c == "string" && (c = u.from(c, a)), this._hash.update(c), this; + }, h.prototype.sign = function(c, a) { + this.end(); + var r = this._hash.digest(), t = w(r, c, this._hashType, this._signType, this._tag); + return a ? t.toString(a) : t; + }; + function l(v) { + g.Writable.call(this); + var c = y[v]; + if (!c) + throw new Error("Unknown message digest"); + this._hash = m(c.hash), this._tag = c.id, this._signType = c.sign; + } + b(l, g.Writable), l.prototype._write = function(c, a, r) { + this._hash.update(c), r(); + }, l.prototype.update = function(c, a) { + return typeof c == "string" && (c = u.from(c, a)), this._hash.update(c), this; + }, l.prototype.verify = function(c, a, r) { + typeof a == "string" && (a = u.from(a, r)), this.end(); + var t = this._hash.digest(); + return f(a, t, c, this._signType, this._tag); + }; + function d(v) { + return new h(v); + } + function s(v) { + return new l(v); + } + x.exports = { + Sign: d, + Verify: s, + createSign: d, + createVerify: s + }; + }, { "./algorithms.json": 209, "./sign": 212, "./verify": 213, "create-hash": 331, inherits: 387, "readable-stream": 491, "safe-buffer": 214 }], 212: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("create-hmac"), g = e("browserify-rsa"), b = e("elliptic").ec, w = e("bn.js"), f = e("parse-asn1"), y = e("./curves.json"); + function h(i, n, o, p, O) { + var P = f(n); + if (P.curve) { + if (p !== "ecdsa" && p !== "ecdsa/rsa") + throw new Error("wrong private key type"); + return l(i, P); + } else if (P.type === "dsa") { + if (p !== "dsa") + throw new Error("wrong private key type"); + return d(i, P, o); + } else if (p !== "rsa" && p !== "ecdsa/rsa") + throw new Error("wrong private key type"); + i = u.concat([O, i]); + for (var F = P.modulus.byteLength(), z = [0, 1]; i.length + z.length + 1 < F; ) + z.push(255); + z.push(0); + for (var N = -1; ++N < i.length; ) + z.push(i[N]); + var M = g(z, P); + return M; + } + function l(i, n) { + var o = y[n.curve.join(".")]; + if (!o) + throw new Error("unknown curve " + n.curve.join(".")); + var p = new b(o), O = p.keyFromPrivate(n.privateKey), P = O.sign(i); + return u.from(P.toDER()); + } + function d(i, n, o) { + for (var p = n.params.priv_key, O = n.params.p, P = n.params.q, F = n.params.g, z = new w(0), N, M = c(i, P).mod(P), I = !1, R = v(p, P, i, o); I === !1; ) + N = r(P, R, o), z = t(F, N, O, P), I = N.invm(P).imul(M.add(p.mul(z))).mod(P), I.cmpn(0) === 0 && (I = !1, z = new w(0)); + return s(z, I); + } + function s(i, n) { + i = i.toArray(), n = n.toArray(), i[0] & 128 && (i = [0].concat(i)), n[0] & 128 && (n = [0].concat(n)); + var o = i.length + n.length + 4, p = [48, o, 2, i.length]; + return p = p.concat(i, [2, n.length], n), u.from(p); + } + function v(i, n, o, p) { + if (i = u.from(i.toArray()), i.length < n.byteLength()) { + var O = u.alloc(n.byteLength() - i.length); + i = u.concat([O, i]); + } + var P = o.length, F = a(o, n), z = u.alloc(P); + z.fill(1); + var N = u.alloc(P); + return N = m(p, N).update(z).update(u.from([0])).update(i).update(F).digest(), z = m(p, N).update(z).digest(), N = m(p, N).update(z).update(u.from([1])).update(i).update(F).digest(), z = m(p, N).update(z).digest(), { + k: N, + v: z + }; + } + function c(i, n) { + var o = new w(i), p = (i.length << 3) - n.bitLength(); + return p > 0 && o.ishrn(p), o; + } + function a(i, n) { + i = c(i, n), i = i.mod(n); + var o = u.from(i.toArray()); + if (o.length < n.byteLength()) { + var p = u.alloc(n.byteLength() - o.length); + o = u.concat([p, o]); + } + return o; + } + function r(i, n, o) { + var p, O; + do { + for (p = u.alloc(0); p.length * 8 < i.bitLength(); ) + n.v = m(o, n.k).update(n.v).digest(), p = u.concat([p, n.v]); + O = c(p, i), n.k = m(o, n.k).update(n.v).update(u.from([0])).digest(), n.v = m(o, n.k).update(n.v).digest(); + } while (O.cmp(i) !== -1); + return O; + } + function t(i, n, o, p) { + return i.toRed(w.mont(o)).redPow(n).fromRed().mod(p); + } + x.exports = h, x.exports.getKey = v, x.exports.makeKey = r; + }, { "./curves.json": 210, "bn.js": 183, "browserify-rsa": 206, "create-hmac": 333, elliptic: 350, "parse-asn1": 459, "safe-buffer": 214 }], 213: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("bn.js"), g = e("elliptic").ec, b = e("parse-asn1"), w = e("./curves.json"); + function f(d, s, v, c, a) { + var r = b(v); + if (r.type === "ec") { + if (c !== "ecdsa" && c !== "ecdsa/rsa") + throw new Error("wrong public key type"); + return y(d, s, r); + } else if (r.type === "dsa") { + if (c !== "dsa") + throw new Error("wrong public key type"); + return h(d, s, r); + } else if (c !== "rsa" && c !== "ecdsa/rsa") + throw new Error("wrong public key type"); + s = u.concat([a, s]); + for (var t = r.modulus.byteLength(), i = [1], n = 0; s.length + i.length + 2 < t; ) + i.push(255), n++; + i.push(0); + for (var o = -1; ++o < s.length; ) + i.push(s[o]); + i = u.from(i); + var p = m.mont(r.modulus); + d = new m(d).toRed(p), d = d.redPow(new m(r.publicExponent)), d = u.from(d.fromRed().toArray()); + var O = n < 8 ? 1 : 0; + for (t = Math.min(d.length, i.length), d.length !== i.length && (O = 1), o = -1; ++o < t; ) + O |= d[o] ^ i[o]; + return O === 0; + } + function y(d, s, v) { + var c = w[v.data.algorithm.curve.join(".")]; + if (!c) + throw new Error("unknown curve " + v.data.algorithm.curve.join(".")); + var a = new g(c), r = v.data.subjectPrivateKey.data; + return a.verify(s, d, r); + } + function h(d, s, v) { + var c = v.data.p, a = v.data.q, r = v.data.g, t = v.data.pub_key, i = b.signature.decode(d, "der"), n = i.s, o = i.r; + l(n, a), l(o, a); + var p = m.mont(c), O = n.invm(a), P = r.toRed(p).redPow(new m(s).mul(O).mod(a)).fromRed().mul(t.toRed(p).redPow(o.mul(O).mod(a)).fromRed()).mod(c).mod(a); + return P.cmp(o) === 0; + } + function l(d, s) { + if (d.cmpn(0) <= 0) + throw new Error("invalid sig"); + if (d.cmp(s) >= s) + throw new Error("invalid sig"); + } + x.exports = f; + }, { "./curves.json": 210, "bn.js": 183, elliptic: 350, "parse-asn1": 459, "safe-buffer": 214 }], 214: [function(e, x, _) { + /*! safe-buffer. MIT License. Feross Aboukhadijeh */ + var u = e("buffer"), m = u.Buffer; + function g(w, f) { + for (var y in w) + f[y] = w[y]; + } + m.from && m.alloc && m.allocUnsafe && m.allocUnsafeSlow ? x.exports = u : (g(u, _), _.Buffer = b); + function b(w, f, y) { + return m(w, f, y); + } + b.prototype = Object.create(m.prototype), g(m, b), b.from = function(w, f, y) { + if (typeof w == "number") + throw new TypeError("Argument must not be a number"); + return m(w, f, y); + }, b.alloc = function(w, f, y) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + var h = m(w); + return f !== void 0 ? typeof y == "string" ? h.fill(f, y) : h.fill(f) : h.fill(0), h; + }, b.allocUnsafe = function(w) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + return m(w); + }, b.allocUnsafeSlow = function(w) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + return u.SlowBuffer(w); + }; + }, { buffer: 216 }], 215: [function(e, x, _) { + arguments[4][185][0].apply(_, arguments); + }, { dup: 185 }], 216: [function(e, x, _) { + (function(h) { + function m(q) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Y) { + return typeof Y; + } : m = function(Y) { + return Y && typeof Symbol == "function" && Y.constructor === Symbol && Y !== Symbol.prototype ? "symbol" : typeof Y; + }, m(q); + } + var g = e("base64-js"), b = e("ieee754"); + _.Buffer = h, _.SlowBuffer = n, _.INSPECT_MAX_BYTES = 50; + var w = 2147483647; + _.kMaxLength = w, h.TYPED_ARRAY_SUPPORT = f(), !h.TYPED_ARRAY_SUPPORT && typeof console != "undefined" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."); + function f() { + try { + var q = new Uint8Array(1); + return q.__proto__ = { + __proto__: Uint8Array.prototype, + foo: function() { + return 42; + } + }, q.foo() === 42; + } catch (G) { + return !1; + } + } + Object.defineProperty(h.prototype, "parent", { + enumerable: !0, + get: function() { + if (h.isBuffer(this)) + return this.buffer; + } + }), Object.defineProperty(h.prototype, "offset", { + enumerable: !0, + get: function() { + if (h.isBuffer(this)) + return this.byteOffset; + } + }); + function y(q) { + if (q > w) + throw new RangeError('The value "' + q + '" is invalid for option "size"'); + var G = new Uint8Array(q); + return G.__proto__ = h.prototype, G; + } + function h(q, G, Y) { + if (typeof q == "number") { + if (typeof G == "string") + throw new TypeError('The "string" argument must be of type string. Received type number'); + return v(q); + } + return l(q, G, Y); + } + typeof Symbol != "undefined" && Symbol.species != null && h[Symbol.species] === h && Object.defineProperty(h, Symbol.species, { + value: null, + configurable: !0, + enumerable: !1, + writable: !1 + }), h.poolSize = 8192; + function l(q, G, Y) { + if (typeof q == "string") + return c(q, G); + if (ArrayBuffer.isView(q)) + return a(q); + if (q == null) + throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(q)); + if (se(q, ArrayBuffer) || q && se(q.buffer, ArrayBuffer)) + return r(q, G, Y); + if (typeof q == "number") + throw new TypeError('The "value" argument must not be of type number. Received type number'); + var fe = q.valueOf && q.valueOf(); + if (fe != null && fe !== q) + return h.from(fe, G, Y); + var we = t(q); + if (we) + return we; + if (typeof Symbol != "undefined" && Symbol.toPrimitive != null && typeof q[Symbol.toPrimitive] == "function") + return h.from(q[Symbol.toPrimitive]("string"), G, Y); + throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(q)); + } + h.from = function(q, G, Y) { + return l(q, G, Y); + }, h.prototype.__proto__ = Uint8Array.prototype, h.__proto__ = Uint8Array; + function d(q) { + if (typeof q != "number") + throw new TypeError('"size" argument must be of type number'); + if (q < 0) + throw new RangeError('The value "' + q + '" is invalid for option "size"'); + } + function s(q, G, Y) { + return d(q), q <= 0 ? y(q) : G !== void 0 ? typeof Y == "string" ? y(q).fill(G, Y) : y(q).fill(G) : y(q); + } + h.alloc = function(q, G, Y) { + return s(q, G, Y); + }; + function v(q) { + return d(q), y(q < 0 ? 0 : i(q) | 0); + } + h.allocUnsafe = function(q) { + return v(q); + }, h.allocUnsafeSlow = function(q) { + return v(q); + }; + function c(q, G) { + if ((typeof G != "string" || G === "") && (G = "utf8"), !h.isEncoding(G)) + throw new TypeError("Unknown encoding: " + G); + var Y = o(q, G) | 0, fe = y(Y), we = fe.write(q, G); + return we !== Y && (fe = fe.slice(0, we)), fe; + } + function a(q) { + for (var G = q.length < 0 ? 0 : i(q.length) | 0, Y = y(G), fe = 0; fe < G; fe += 1) + Y[fe] = q[fe] & 255; + return Y; + } + function r(q, G, Y) { + if (G < 0 || q.byteLength < G) + throw new RangeError('"offset" is outside of buffer bounds'); + if (q.byteLength < G + (Y || 0)) + throw new RangeError('"length" is outside of buffer bounds'); + var fe; + return G === void 0 && Y === void 0 ? fe = new Uint8Array(q) : Y === void 0 ? fe = new Uint8Array(q, G) : fe = new Uint8Array(q, G, Y), fe.__proto__ = h.prototype, fe; + } + function t(q) { + if (h.isBuffer(q)) { + var G = i(q.length) | 0, Y = y(G); + return Y.length === 0 || q.copy(Y, 0, 0, G), Y; + } + if (q.length !== void 0) + return typeof q.length != "number" || Ce(q.length) ? y(0) : a(q); + if (q.type === "Buffer" && Array.isArray(q.data)) + return a(q.data); + } + function i(q) { + if (q >= w) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes"); + return q | 0; + } + function n(q) { + return +q != q && (q = 0), h.alloc(+q); + } + h.isBuffer = function(G) { + return G != null && G._isBuffer === !0 && G !== h.prototype; + }, h.compare = function(G, Y) { + if (se(G, Uint8Array) && (G = h.from(G, G.offset, G.byteLength)), se(Y, Uint8Array) && (Y = h.from(Y, Y.offset, Y.byteLength)), !h.isBuffer(G) || !h.isBuffer(Y)) + throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + if (G === Y) + return 0; + for (var fe = G.length, we = Y.length, _e = 0, je = Math.min(fe, we); _e < je; ++_e) + if (G[_e] !== Y[_e]) { + fe = G[_e], we = Y[_e]; + break; + } + return fe < we ? -1 : we < fe ? 1 : 0; + }, h.isEncoding = function(G) { + switch (String(G).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return !0; + default: + return !1; + } + }, h.concat = function(G, Y) { + if (!Array.isArray(G)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (G.length === 0) + return h.alloc(0); + var fe; + if (Y === void 0) + for (Y = 0, fe = 0; fe < G.length; ++fe) + Y += G[fe].length; + var we = h.allocUnsafe(Y), _e = 0; + for (fe = 0; fe < G.length; ++fe) { + var je = G[fe]; + if (se(je, Uint8Array) && (je = h.from(je)), !h.isBuffer(je)) + throw new TypeError('"list" argument must be an Array of Buffers'); + je.copy(we, _e), _e += je.length; + } + return we; + }; + function o(q, G) { + if (h.isBuffer(q)) + return q.length; + if (ArrayBuffer.isView(q) || se(q, ArrayBuffer)) + return q.byteLength; + if (typeof q != "string") + throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + m(q)); + var Y = q.length, fe = arguments.length > 2 && arguments[2] === !0; + if (!fe && Y === 0) + return 0; + for (var we = !1; ; ) + switch (G) { + case "ascii": + case "latin1": + case "binary": + return Y; + case "utf8": + case "utf-8": + return J(q).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return Y * 2; + case "hex": + return Y >>> 1; + case "base64": + return ke(q).length; + default: + if (we) + return fe ? -1 : J(q).length; + G = ("" + G).toLowerCase(), we = !0; + } + } + h.byteLength = o; + function p(q, G, Y) { + var fe = !1; + if ((G === void 0 || G < 0) && (G = 0), G > this.length || ((Y === void 0 || Y > this.length) && (Y = this.length), Y <= 0) || (Y >>>= 0, G >>>= 0, Y <= G)) + return ""; + for (q || (q = "utf8"); ; ) + switch (q) { + case "hex": + return D(this, G, Y); + case "utf8": + case "utf-8": + return A(this, G, Y); + case "ascii": + return W(this, G, Y); + case "latin1": + case "binary": + return U(this, G, Y); + case "base64": + return E(this, G, Y); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return B(this, G, Y); + default: + if (fe) + throw new TypeError("Unknown encoding: " + q); + q = (q + "").toLowerCase(), fe = !0; + } + } + h.prototype._isBuffer = !0; + function O(q, G, Y) { + var fe = q[G]; + q[G] = q[Y], q[Y] = fe; + } + h.prototype.swap16 = function() { + var G = this.length; + if (G % 2 !== 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var Y = 0; Y < G; Y += 2) + O(this, Y, Y + 1); + return this; + }, h.prototype.swap32 = function() { + var G = this.length; + if (G % 4 !== 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var Y = 0; Y < G; Y += 4) + O(this, Y, Y + 3), O(this, Y + 1, Y + 2); + return this; + }, h.prototype.swap64 = function() { + var G = this.length; + if (G % 8 !== 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var Y = 0; Y < G; Y += 8) + O(this, Y, Y + 7), O(this, Y + 1, Y + 6), O(this, Y + 2, Y + 5), O(this, Y + 3, Y + 4); + return this; + }, h.prototype.toString = function() { + var G = this.length; + return G === 0 ? "" : arguments.length === 0 ? A(this, 0, G) : p.apply(this, arguments); + }, h.prototype.toLocaleString = h.prototype.toString, h.prototype.equals = function(G) { + if (!h.isBuffer(G)) + throw new TypeError("Argument must be a Buffer"); + return this === G ? !0 : h.compare(this, G) === 0; + }, h.prototype.inspect = function() { + var G = "", Y = _.INSPECT_MAX_BYTES; + return G = this.toString("hex", 0, Y).replace(/(.{2})/g, "$1 ").trim(), this.length > Y && (G += " ... "), ""; + }, h.prototype.compare = function(G, Y, fe, we, _e) { + if (se(G, Uint8Array) && (G = h.from(G, G.offset, G.byteLength)), !h.isBuffer(G)) + throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + m(G)); + if (Y === void 0 && (Y = 0), fe === void 0 && (fe = G ? G.length : 0), we === void 0 && (we = 0), _e === void 0 && (_e = this.length), Y < 0 || fe > G.length || we < 0 || _e > this.length) + throw new RangeError("out of range index"); + if (we >= _e && Y >= fe) + return 0; + if (we >= _e) + return -1; + if (Y >= fe) + return 1; + if (Y >>>= 0, fe >>>= 0, we >>>= 0, _e >>>= 0, this === G) + return 0; + for (var je = _e - we, Ye = fe - Y, nt = Math.min(je, Ye), ut = this.slice(we, _e), ot = G.slice(Y, fe), Ue = 0; Ue < nt; ++Ue) + if (ut[Ue] !== ot[Ue]) { + je = ut[Ue], Ye = ot[Ue]; + break; + } + return je < Ye ? -1 : Ye < je ? 1 : 0; + }; + function P(q, G, Y, fe, we) { + if (q.length === 0) + return -1; + if (typeof Y == "string" ? (fe = Y, Y = 0) : Y > 2147483647 ? Y = 2147483647 : Y < -2147483648 && (Y = -2147483648), Y = +Y, Ce(Y) && (Y = we ? 0 : q.length - 1), Y < 0 && (Y = q.length + Y), Y >= q.length) { + if (we) + return -1; + Y = q.length - 1; + } else if (Y < 0) + if (we) + Y = 0; + else + return -1; + if (typeof G == "string" && (G = h.from(G, fe)), h.isBuffer(G)) + return G.length === 0 ? -1 : F(q, G, Y, fe, we); + if (typeof G == "number") + return G = G & 255, typeof Uint8Array.prototype.indexOf == "function" ? we ? Uint8Array.prototype.indexOf.call(q, G, Y) : Uint8Array.prototype.lastIndexOf.call(q, G, Y) : F(q, [G], Y, fe, we); + throw new TypeError("val must be string, number or Buffer"); + } + function F(q, G, Y, fe, we) { + var _e = 1, je = q.length, Ye = G.length; + if (fe !== void 0 && (fe = String(fe).toLowerCase(), fe === "ucs2" || fe === "ucs-2" || fe === "utf16le" || fe === "utf-16le")) { + if (q.length < 2 || G.length < 2) + return -1; + _e = 2, je /= 2, Ye /= 2, Y /= 2; + } + function nt(Qe, tt) { + return _e === 1 ? Qe[tt] : Qe.readUInt16BE(tt * _e); + } + var ut; + if (we) { + var ot = -1; + for (ut = Y; ut < je; ut++) + if (nt(q, ut) === nt(G, ot === -1 ? 0 : ut - ot)) { + if (ot === -1 && (ot = ut), ut - ot + 1 === Ye) + return ot * _e; + } else + ot !== -1 && (ut -= ut - ot), ot = -1; + } else + for (Y + Ye > je && (Y = je - Ye), ut = Y; ut >= 0; ut--) { + for (var Ue = !0, Ve = 0; Ve < Ye; Ve++) + if (nt(q, ut + Ve) !== nt(G, Ve)) { + Ue = !1; + break; + } + if (Ue) + return ut; + } + return -1; + } + h.prototype.includes = function(G, Y, fe) { + return this.indexOf(G, Y, fe) !== -1; + }, h.prototype.indexOf = function(G, Y, fe) { + return P(this, G, Y, fe, !0); + }, h.prototype.lastIndexOf = function(G, Y, fe) { + return P(this, G, Y, fe, !1); + }; + function z(q, G, Y, fe) { + Y = Number(Y) || 0; + var we = q.length - Y; + fe ? (fe = Number(fe), fe > we && (fe = we)) : fe = we; + var _e = G.length; + fe > _e / 2 && (fe = _e / 2); + for (var je = 0; je < fe; ++je) { + var Ye = parseInt(G.substr(je * 2, 2), 16); + if (Ce(Ye)) + return je; + q[Y + je] = Ye; + } + return je; + } + function N(q, G, Y, fe) { + return ne(J(G, q.length - Y), q, Y, fe); + } + function M(q, G, Y, fe) { + return ne(Q(G), q, Y, fe); + } + function I(q, G, Y, fe) { + return M(q, G, Y, fe); + } + function R(q, G, Y, fe) { + return ne(ke(G), q, Y, fe); + } + function C(q, G, Y, fe) { + return ne(he(G, q.length - Y), q, Y, fe); + } + h.prototype.write = function(G, Y, fe, we) { + if (Y === void 0) + we = "utf8", fe = this.length, Y = 0; + else if (fe === void 0 && typeof Y == "string") + we = Y, fe = this.length, Y = 0; + else if (isFinite(Y)) + Y = Y >>> 0, isFinite(fe) ? (fe = fe >>> 0, we === void 0 && (we = "utf8")) : (we = fe, fe = void 0); + else + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + var _e = this.length - Y; + if ((fe === void 0 || fe > _e) && (fe = _e), G.length > 0 && (fe < 0 || Y < 0) || Y > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + we || (we = "utf8"); + for (var je = !1; ; ) + switch (we) { + case "hex": + return z(this, G, Y, fe); + case "utf8": + case "utf-8": + return N(this, G, Y, fe); + case "ascii": + return M(this, G, Y, fe); + case "latin1": + case "binary": + return I(this, G, Y, fe); + case "base64": + return R(this, G, Y, fe); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return C(this, G, Y, fe); + default: + if (je) + throw new TypeError("Unknown encoding: " + we); + we = ("" + we).toLowerCase(), je = !0; + } + }, h.prototype.toJSON = function() { + return { + type: "Buffer", + data: Array.prototype.slice.call(this._arr || this, 0) + }; + }; + function E(q, G, Y) { + return G === 0 && Y === q.length ? g.fromByteArray(q) : g.fromByteArray(q.slice(G, Y)); + } + function A(q, G, Y) { + Y = Math.min(q.length, Y); + for (var fe = [], we = G; we < Y; ) { + var _e = q[we], je = null, Ye = _e > 239 ? 4 : _e > 223 ? 3 : _e > 191 ? 2 : 1; + if (we + Ye <= Y) { + var nt, ut, ot, Ue; + switch (Ye) { + case 1: + _e < 128 && (je = _e); + break; + case 2: + nt = q[we + 1], (nt & 192) === 128 && (Ue = (_e & 31) << 6 | nt & 63, Ue > 127 && (je = Ue)); + break; + case 3: + nt = q[we + 1], ut = q[we + 2], (nt & 192) === 128 && (ut & 192) === 128 && (Ue = (_e & 15) << 12 | (nt & 63) << 6 | ut & 63, Ue > 2047 && (Ue < 55296 || Ue > 57343) && (je = Ue)); + break; + case 4: + nt = q[we + 1], ut = q[we + 2], ot = q[we + 3], (nt & 192) === 128 && (ut & 192) === 128 && (ot & 192) === 128 && (Ue = (_e & 15) << 18 | (nt & 63) << 12 | (ut & 63) << 6 | ot & 63, Ue > 65535 && Ue < 1114112 && (je = Ue)); + } + } + je === null ? (je = 65533, Ye = 1) : je > 65535 && (je -= 65536, fe.push(je >>> 10 & 1023 | 55296), je = 56320 | je & 1023), fe.push(je), we += Ye; + } + return $(fe); + } + var L = 4096; + function $(q) { + var G = q.length; + if (G <= L) + return String.fromCharCode.apply(String, q); + for (var Y = "", fe = 0; fe < G; ) + Y += String.fromCharCode.apply(String, q.slice(fe, fe += L)); + return Y; + } + function W(q, G, Y) { + var fe = ""; + Y = Math.min(q.length, Y); + for (var we = G; we < Y; ++we) + fe += String.fromCharCode(q[we] & 127); + return fe; + } + function U(q, G, Y) { + var fe = ""; + Y = Math.min(q.length, Y); + for (var we = G; we < Y; ++we) + fe += String.fromCharCode(q[we]); + return fe; + } + function D(q, G, Y) { + var fe = q.length; + (!G || G < 0) && (G = 0), (!Y || Y < 0 || Y > fe) && (Y = fe); + for (var we = "", _e = G; _e < Y; ++_e) + we += oe(q[_e]); + return we; + } + function B(q, G, Y) { + for (var fe = q.slice(G, Y), we = "", _e = 0; _e < fe.length; _e += 2) + we += String.fromCharCode(fe[_e] + fe[_e + 1] * 256); + return we; + } + h.prototype.slice = function(G, Y) { + var fe = this.length; + G = ~~G, Y = Y === void 0 ? fe : ~~Y, G < 0 ? (G += fe, G < 0 && (G = 0)) : G > fe && (G = fe), Y < 0 ? (Y += fe, Y < 0 && (Y = 0)) : Y > fe && (Y = fe), Y < G && (Y = G); + var we = this.subarray(G, Y); + return we.__proto__ = h.prototype, we; + }; + function j(q, G, Y) { + if (q % 1 !== 0 || q < 0) + throw new RangeError("offset is not uint"); + if (q + G > Y) + throw new RangeError("Trying to access beyond buffer length"); + } + h.prototype.readUIntLE = function(G, Y, fe) { + G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length); + for (var we = this[G], _e = 1, je = 0; ++je < Y && (_e *= 256); ) + we += this[G + je] * _e; + return we; + }, h.prototype.readUIntBE = function(G, Y, fe) { + G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length); + for (var we = this[G + --Y], _e = 1; Y > 0 && (_e *= 256); ) + we += this[G + --Y] * _e; + return we; + }, h.prototype.readUInt8 = function(G, Y) { + return G = G >>> 0, Y || j(G, 1, this.length), this[G]; + }, h.prototype.readUInt16LE = function(G, Y) { + return G = G >>> 0, Y || j(G, 2, this.length), this[G] | this[G + 1] << 8; + }, h.prototype.readUInt16BE = function(G, Y) { + return G = G >>> 0, Y || j(G, 2, this.length), this[G] << 8 | this[G + 1]; + }, h.prototype.readUInt32LE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), (this[G] | this[G + 1] << 8 | this[G + 2] << 16) + this[G + 3] * 16777216; + }, h.prototype.readUInt32BE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), this[G] * 16777216 + (this[G + 1] << 16 | this[G + 2] << 8 | this[G + 3]); + }, h.prototype.readIntLE = function(G, Y, fe) { + G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length); + for (var we = this[G], _e = 1, je = 0; ++je < Y && (_e *= 256); ) + we += this[G + je] * _e; + return _e *= 128, we >= _e && (we -= Math.pow(2, 8 * Y)), we; + }, h.prototype.readIntBE = function(G, Y, fe) { + G = G >>> 0, Y = Y >>> 0, fe || j(G, Y, this.length); + for (var we = Y, _e = 1, je = this[G + --we]; we > 0 && (_e *= 256); ) + je += this[G + --we] * _e; + return _e *= 128, je >= _e && (je -= Math.pow(2, 8 * Y)), je; + }, h.prototype.readInt8 = function(G, Y) { + return G = G >>> 0, Y || j(G, 1, this.length), this[G] & 128 ? (255 - this[G] + 1) * -1 : this[G]; + }, h.prototype.readInt16LE = function(G, Y) { + G = G >>> 0, Y || j(G, 2, this.length); + var fe = this[G] | this[G + 1] << 8; + return fe & 32768 ? fe | 4294901760 : fe; + }, h.prototype.readInt16BE = function(G, Y) { + G = G >>> 0, Y || j(G, 2, this.length); + var fe = this[G + 1] | this[G] << 8; + return fe & 32768 ? fe | 4294901760 : fe; + }, h.prototype.readInt32LE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), this[G] | this[G + 1] << 8 | this[G + 2] << 16 | this[G + 3] << 24; + }, h.prototype.readInt32BE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), this[G] << 24 | this[G + 1] << 16 | this[G + 2] << 8 | this[G + 3]; + }, h.prototype.readFloatLE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), b.read(this, G, !0, 23, 4); + }, h.prototype.readFloatBE = function(G, Y) { + return G = G >>> 0, Y || j(G, 4, this.length), b.read(this, G, !1, 23, 4); + }, h.prototype.readDoubleLE = function(G, Y) { + return G = G >>> 0, Y || j(G, 8, this.length), b.read(this, G, !0, 52, 8); + }, h.prototype.readDoubleBE = function(G, Y) { + return G = G >>> 0, Y || j(G, 8, this.length), b.read(this, G, !1, 52, 8); + }; + function V(q, G, Y, fe, we, _e) { + if (!h.isBuffer(q)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (G > we || G < _e) + throw new RangeError('"value" argument is out of bounds'); + if (Y + fe > q.length) + throw new RangeError("Index out of range"); + } + h.prototype.writeUIntLE = function(G, Y, fe, we) { + if (G = +G, Y = Y >>> 0, fe = fe >>> 0, !we) { + var _e = Math.pow(2, 8 * fe) - 1; + V(this, G, Y, fe, _e, 0); + } + var je = 1, Ye = 0; + for (this[Y] = G & 255; ++Ye < fe && (je *= 256); ) + this[Y + Ye] = G / je & 255; + return Y + fe; + }, h.prototype.writeUIntBE = function(G, Y, fe, we) { + if (G = +G, Y = Y >>> 0, fe = fe >>> 0, !we) { + var _e = Math.pow(2, 8 * fe) - 1; + V(this, G, Y, fe, _e, 0); + } + var je = fe - 1, Ye = 1; + for (this[Y + je] = G & 255; --je >= 0 && (Ye *= 256); ) + this[Y + je] = G / Ye & 255; + return Y + fe; + }, h.prototype.writeUInt8 = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 1, 255, 0), this[Y] = G & 255, Y + 1; + }, h.prototype.writeUInt16LE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 65535, 0), this[Y] = G & 255, this[Y + 1] = G >>> 8, Y + 2; + }, h.prototype.writeUInt16BE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 65535, 0), this[Y] = G >>> 8, this[Y + 1] = G & 255, Y + 2; + }, h.prototype.writeUInt32LE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 4294967295, 0), this[Y + 3] = G >>> 24, this[Y + 2] = G >>> 16, this[Y + 1] = G >>> 8, this[Y] = G & 255, Y + 4; + }, h.prototype.writeUInt32BE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 4294967295, 0), this[Y] = G >>> 24, this[Y + 1] = G >>> 16, this[Y + 2] = G >>> 8, this[Y + 3] = G & 255, Y + 4; + }, h.prototype.writeIntLE = function(G, Y, fe, we) { + if (G = +G, Y = Y >>> 0, !we) { + var _e = Math.pow(2, 8 * fe - 1); + V(this, G, Y, fe, _e - 1, -_e); + } + var je = 0, Ye = 1, nt = 0; + for (this[Y] = G & 255; ++je < fe && (Ye *= 256); ) + G < 0 && nt === 0 && this[Y + je - 1] !== 0 && (nt = 1), this[Y + je] = (G / Ye >> 0) - nt & 255; + return Y + fe; + }, h.prototype.writeIntBE = function(G, Y, fe, we) { + if (G = +G, Y = Y >>> 0, !we) { + var _e = Math.pow(2, 8 * fe - 1); + V(this, G, Y, fe, _e - 1, -_e); + } + var je = fe - 1, Ye = 1, nt = 0; + for (this[Y + je] = G & 255; --je >= 0 && (Ye *= 256); ) + G < 0 && nt === 0 && this[Y + je + 1] !== 0 && (nt = 1), this[Y + je] = (G / Ye >> 0) - nt & 255; + return Y + fe; + }, h.prototype.writeInt8 = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 1, 127, -128), G < 0 && (G = 255 + G + 1), this[Y] = G & 255, Y + 1; + }, h.prototype.writeInt16LE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 32767, -32768), this[Y] = G & 255, this[Y + 1] = G >>> 8, Y + 2; + }, h.prototype.writeInt16BE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 2, 32767, -32768), this[Y] = G >>> 8, this[Y + 1] = G & 255, Y + 2; + }, h.prototype.writeInt32LE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 2147483647, -2147483648), this[Y] = G & 255, this[Y + 1] = G >>> 8, this[Y + 2] = G >>> 16, this[Y + 3] = G >>> 24, Y + 4; + }, h.prototype.writeInt32BE = function(G, Y, fe) { + return G = +G, Y = Y >>> 0, fe || V(this, G, Y, 4, 2147483647, -2147483648), G < 0 && (G = 4294967295 + G + 1), this[Y] = G >>> 24, this[Y + 1] = G >>> 16, this[Y + 2] = G >>> 8, this[Y + 3] = G & 255, Y + 4; + }; + function re(q, G, Y, fe, we, _e) { + if (Y + fe > q.length) + throw new RangeError("Index out of range"); + if (Y < 0) + throw new RangeError("Index out of range"); + } + function ee(q, G, Y, fe, we) { + return G = +G, Y = Y >>> 0, we || re(q, G, Y, 4), b.write(q, G, Y, fe, 23, 4), Y + 4; + } + h.prototype.writeFloatLE = function(G, Y, fe) { + return ee(this, G, Y, !0, fe); + }, h.prototype.writeFloatBE = function(G, Y, fe) { + return ee(this, G, Y, !1, fe); + }; + function ce(q, G, Y, fe, we) { + return G = +G, Y = Y >>> 0, we || re(q, G, Y, 8), b.write(q, G, Y, fe, 52, 8), Y + 8; + } + h.prototype.writeDoubleLE = function(G, Y, fe) { + return ce(this, G, Y, !0, fe); + }, h.prototype.writeDoubleBE = function(G, Y, fe) { + return ce(this, G, Y, !1, fe); + }, h.prototype.copy = function(G, Y, fe, we) { + if (!h.isBuffer(G)) + throw new TypeError("argument should be a Buffer"); + if (fe || (fe = 0), !we && we !== 0 && (we = this.length), Y >= G.length && (Y = G.length), Y || (Y = 0), we > 0 && we < fe && (we = fe), we === fe || G.length === 0 || this.length === 0) + return 0; + if (Y < 0) + throw new RangeError("targetStart out of bounds"); + if (fe < 0 || fe >= this.length) + throw new RangeError("Index out of range"); + if (we < 0) + throw new RangeError("sourceEnd out of bounds"); + we > this.length && (we = this.length), G.length - Y < we - fe && (we = G.length - Y + fe); + var _e = we - fe; + if (this === G && typeof Uint8Array.prototype.copyWithin == "function") + this.copyWithin(Y, fe, we); + else if (this === G && fe < Y && Y < we) + for (var je = _e - 1; je >= 0; --je) + G[je + Y] = this[je + fe]; + else + Uint8Array.prototype.set.call(G, this.subarray(fe, we), Y); + return _e; + }, h.prototype.fill = function(G, Y, fe, we) { + if (typeof G == "string") { + if (typeof Y == "string" ? (we = Y, Y = 0, fe = this.length) : typeof fe == "string" && (we = fe, fe = this.length), we !== void 0 && typeof we != "string") + throw new TypeError("encoding must be a string"); + if (typeof we == "string" && !h.isEncoding(we)) + throw new TypeError("Unknown encoding: " + we); + if (G.length === 1) { + var _e = G.charCodeAt(0); + (we === "utf8" && _e < 128 || we === "latin1") && (G = _e); + } + } else + typeof G == "number" && (G = G & 255); + if (Y < 0 || this.length < Y || this.length < fe) + throw new RangeError("Out of range index"); + if (fe <= Y) + return this; + Y = Y >>> 0, fe = fe === void 0 ? this.length : fe >>> 0, G || (G = 0); + var je; + if (typeof G == "number") + for (je = Y; je < fe; ++je) + this[je] = G; + else { + var Ye = h.isBuffer(G) ? G : h.from(G, we), nt = Ye.length; + if (nt === 0) + throw new TypeError('The value "' + G + '" is invalid for argument "value"'); + for (je = 0; je < fe - Y; ++je) + this[je + Y] = Ye[je % nt]; + } + return this; + }; + var ve = /[^+/0-9A-Za-z-_]/g; + function ge(q) { + if (q = q.split("=")[0], q = q.trim().replace(ve, ""), q.length < 2) + return ""; + for (; q.length % 4 !== 0; ) + q = q + "="; + return q; + } + function oe(q) { + return q < 16 ? "0" + q.toString(16) : q.toString(16); + } + function J(q, G) { + G = G || 1 / 0; + for (var Y, fe = q.length, we = null, _e = [], je = 0; je < fe; ++je) { + if (Y = q.charCodeAt(je), Y > 55295 && Y < 57344) { + if (!we) { + if (Y > 56319) { + (G -= 3) > -1 && _e.push(239, 191, 189); + continue; + } else if (je + 1 === fe) { + (G -= 3) > -1 && _e.push(239, 191, 189); + continue; + } + we = Y; + continue; + } + if (Y < 56320) { + (G -= 3) > -1 && _e.push(239, 191, 189), we = Y; + continue; + } + Y = (we - 55296 << 10 | Y - 56320) + 65536; + } else + we && (G -= 3) > -1 && _e.push(239, 191, 189); + if (we = null, Y < 128) { + if ((G -= 1) < 0) + break; + _e.push(Y); + } else if (Y < 2048) { + if ((G -= 2) < 0) + break; + _e.push(Y >> 6 | 192, Y & 63 | 128); + } else if (Y < 65536) { + if ((G -= 3) < 0) + break; + _e.push(Y >> 12 | 224, Y >> 6 & 63 | 128, Y & 63 | 128); + } else if (Y < 1114112) { + if ((G -= 4) < 0) + break; + _e.push(Y >> 18 | 240, Y >> 12 & 63 | 128, Y >> 6 & 63 | 128, Y & 63 | 128); + } else + throw new Error("Invalid code point"); + } + return _e; + } + function Q(q) { + for (var G = [], Y = 0; Y < q.length; ++Y) + G.push(q.charCodeAt(Y) & 255); + return G; + } + function he(q, G) { + for (var Y, fe, we, _e = [], je = 0; je < q.length && !((G -= 2) < 0); ++je) + Y = q.charCodeAt(je), fe = Y >> 8, we = Y % 256, _e.push(we), _e.push(fe); + return _e; + } + function ke(q) { + return g.toByteArray(ge(q)); + } + function ne(q, G, Y, fe) { + for (var we = 0; we < fe && !(we + Y >= G.length || we >= q.length); ++we) + G[we + Y] = q[we]; + return we; + } + function se(q, G) { + return q instanceof G || q != null && q.constructor != null && q.constructor.name != null && q.constructor.name === G.name; + } + function Ce(q) { + return q !== q; + } + }).call(this, e("buffer").Buffer); + }, { "base64-js": 182, buffer: 216, ieee754: 385 }], 217: [function(e, x, _) { + (function(u) { + x.exports = function(g, b) { + for (var w = Math.min(g.length, b.length), f = new u(w), y = 0; y < w; ++y) + f[y] = g[y] ^ b[y]; + return f; + }; + }).call(this, e("buffer").Buffer); + }, { buffer: 216 }], 218: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("stream").Transform, g = e("string_decoder").StringDecoder, b = e("inherits"); + function w(f) { + m.call(this), this.hashMode = typeof f == "string", this.hashMode ? this[f] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null; + } + b(w, m), w.prototype.update = function(f, y, h) { + typeof f == "string" && (f = u.from(f, y)); + var l = this._update(f); + return this.hashMode ? this : (h && (l = this._toString(l, h)), l); + }, w.prototype.setAutoPadding = function() { + }, w.prototype.getAuthTag = function() { + throw new Error("trying to get auth tag in unsupported state"); + }, w.prototype.setAuthTag = function() { + throw new Error("trying to set auth tag in unsupported state"); + }, w.prototype.setAAD = function() { + throw new Error("trying to set aad in unsupported state"); + }, w.prototype._transform = function(f, y, h) { + var l; + try { + this.hashMode ? this._update(f) : this.push(this._update(f)); + } catch (d) { + l = d; + } finally { + h(l); + } + }, w.prototype._flush = function(f) { + var y; + try { + this.push(this.__final()); + } catch (h) { + y = h; + } + f(y); + }, w.prototype._finalOrDigest = function(f) { + var y = this.__final() || u.alloc(0); + return f && (y = this._toString(y, f, !0)), y; + }, w.prototype._toString = function(f, y, h) { + if (this._decoder || (this._decoder = new g(y), this._encoding = y), this._encoding !== y) + throw new Error("can't switch encodings"); + var l = this._decoder.write(f); + return h && (l += this._decoder.end()), l; + }, x.exports = w; + }, { inherits: 387, "safe-buffer": 494, stream: 506, string_decoder: 520 }], 219: [function(e, x, _) { + x.exports = function(u) { + if (typeof u != "function") + throw TypeError(String(u) + " is not a function"); + return u; + }; + }, {}], 220: [function(e, x, _) { + var u = e("../internals/is-object"); + x.exports = function(m) { + if (!u(m) && m !== null) + throw TypeError("Can't set " + String(m) + " as a prototype"); + return m; + }; + }, { "../internals/is-object": 263 }], 221: [function(e, x, _) { + var u = e("../internals/well-known-symbol"), m = e("../internals/object-create"), g = e("../internals/object-define-property"), b = u("unscopables"), w = Array.prototype; + w[b] == null && g.f(w, b, { + configurable: !0, + value: m(null) + }), x.exports = function(f) { + w[b][f] = !0; + }; + }, { "../internals/object-create": 276, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 222: [function(e, x, _) { + x.exports = function(u, m, g) { + if (!(u instanceof m)) + throw TypeError("Incorrect " + (g ? g + " " : "") + "invocation"); + return u; + }; + }, {}], 223: [function(e, x, _) { + var u = e("../internals/is-object"); + x.exports = function(m) { + if (!u(m)) + throw TypeError(String(m) + " is not an object"); + return m; + }; + }, { "../internals/is-object": 263 }], 224: [function(e, x, _) { + var u = e("../internals/to-indexed-object"), m = e("../internals/to-length"), g = e("../internals/to-absolute-index"), b = function(w) { + return function(f, y, h) { + var l = u(f), d = m(l.length), s = g(h, d), v; + if (w && y != y) { + for (; d > s; ) + if (v = l[s++], v != v) + return !0; + } else + for (; d > s; s++) + if ((w || s in l) && l[s] === y) + return w || s || 0; + return !w && -1; + }; + }; + x.exports = { + // `Array.prototype.includes` method + // https://tc39.github.io/ecma262/#sec-array.prototype.includes + includes: b(!0), + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + indexOf: b(!1) + }; + }, { "../internals/to-absolute-index": 304, "../internals/to-indexed-object": 305, "../internals/to-length": 307 }], 225: [function(e, x, _) { + var u = e("../internals/function-bind-context"), m = e("../internals/indexed-object"), g = e("../internals/to-object"), b = e("../internals/to-length"), w = e("../internals/array-species-create"), f = [].push, y = function(h) { + var l = h == 1, d = h == 2, s = h == 3, v = h == 4, c = h == 6, a = h == 5 || c; + return function(r, t, i, n) { + for (var o = g(r), p = m(o), O = u(t, i, 3), P = b(p.length), F = 0, z = n || w, N = l ? z(r, P) : d ? z(r, 0) : void 0, M, I; P > F; F++) + if ((a || F in p) && (M = p[F], I = O(M, F, o), h)) { + if (l) + N[F] = I; + else if (I) + switch (h) { + case 3: + return !0; + case 5: + return M; + case 6: + return F; + case 2: + f.call(N, M); + } + else if (v) + return !1; + } + return c ? -1 : s || v ? v : N; + }; + }; + x.exports = { + // `Array.prototype.forEach` method + // https://tc39.github.io/ecma262/#sec-array.prototype.foreach + forEach: y(0), + // `Array.prototype.map` method + // https://tc39.github.io/ecma262/#sec-array.prototype.map + map: y(1), + // `Array.prototype.filter` method + // https://tc39.github.io/ecma262/#sec-array.prototype.filter + filter: y(2), + // `Array.prototype.some` method + // https://tc39.github.io/ecma262/#sec-array.prototype.some + some: y(3), + // `Array.prototype.every` method + // https://tc39.github.io/ecma262/#sec-array.prototype.every + every: y(4), + // `Array.prototype.find` method + // https://tc39.github.io/ecma262/#sec-array.prototype.find + find: y(5), + // `Array.prototype.findIndex` method + // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex + findIndex: y(6) + }; + }, { "../internals/array-species-create": 227, "../internals/function-bind-context": 248, "../internals/indexed-object": 257, "../internals/to-length": 307, "../internals/to-object": 308 }], 226: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/has"), b = Object.defineProperty, w = {}, f = function(y) { + throw y; + }; + x.exports = function(y, h) { + if (g(w, y)) + return w[y]; + h || (h = {}); + var l = [][y], d = g(h, "ACCESSORS") ? h.ACCESSORS : !1, s = g(h, 0) ? h[0] : f, v = g(h, 1) ? h[1] : void 0; + return w[y] = !!l && !m(function() { + if (d && !u) + return !0; + var c = { length: -1 }; + d ? b(c, 1, { enumerable: !0, get: f }) : c[1] = 1, l.call(c, s, v); + }); + }; + }, { "../internals/descriptors": 240, "../internals/fails": 247, "../internals/has": 252 }], 227: [function(e, x, _) { + var u = e("../internals/is-object"), m = e("../internals/is-array"), g = e("../internals/well-known-symbol"), b = g("species"); + x.exports = function(w, f) { + var y; + return m(w) && (y = w.constructor, typeof y == "function" && (y === Array || m(y.prototype)) ? y = void 0 : u(y) && (y = y[b], y === null && (y = void 0))), new (y === void 0 ? Array : y)(f === 0 ? 0 : f); + }; + }, { "../internals/is-array": 261, "../internals/is-object": 263, "../internals/well-known-symbol": 314 }], 228: [function(e, x, _) { + var u = e("../internals/an-object"); + x.exports = function(m, g, b, w) { + try { + return w ? g(u(b)[0], b[1]) : g(b); + } catch (y) { + var f = m.return; + throw f !== void 0 && u(f.call(m)), y; + } + }; + }, { "../internals/an-object": 223 }], 229: [function(e, x, _) { + var u = e("../internals/well-known-symbol"), m = u("iterator"), g = !1; + try { + var b = 0, w = { + next: function() { + return { done: !!b++ }; + }, + return: function() { + g = !0; + } + }; + w[m] = function() { + return this; + }, Array.from(w, function() { + throw 2; + }); + } catch (f) { + } + x.exports = function(f, y) { + if (!y && !g) + return !1; + var h = !1; + try { + var l = {}; + l[m] = function() { + return { + next: function() { + return { done: h = !0 }; + } + }; + }, f(l); + } catch (d) { + } + return h; + }; + }, { "../internals/well-known-symbol": 314 }], 230: [function(e, x, _) { + var u = {}.toString; + x.exports = function(m) { + return u.call(m).slice(8, -1); + }; + }, {}], 231: [function(e, x, _) { + var u = e("../internals/to-string-tag-support"), m = e("../internals/classof-raw"), g = e("../internals/well-known-symbol"), b = g("toStringTag"), w = m(function() { + return arguments; + }()) == "Arguments", f = function(y, h) { + try { + return y[h]; + } catch (l) { + } + }; + x.exports = u ? m : function(y) { + var h, l, d; + return y === void 0 ? "Undefined" : y === null ? "Null" : typeof (l = f(h = Object(y), b)) == "string" ? l : w ? m(h) : (d = m(h)) == "Object" && typeof h.callee == "function" ? "Arguments" : d; + }; + }, { "../internals/classof-raw": 230, "../internals/to-string-tag-support": 310, "../internals/well-known-symbol": 314 }], 232: [function(e, x, _) { + var u = e("../internals/has"), m = e("../internals/own-keys"), g = e("../internals/object-get-own-property-descriptor"), b = e("../internals/object-define-property"); + x.exports = function(w, f) { + for (var y = m(f), h = b.f, l = g.f, d = 0; d < y.length; d++) { + var s = y[d]; + u(w, s) || h(w, s, l(f, s)); + } + }; + }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/object-get-own-property-descriptor": 279, "../internals/own-keys": 289 }], 233: [function(e, x, _) { + var u = e("../internals/well-known-symbol"), m = u("match"); + x.exports = function(g) { + var b = /./; + try { + "/./"[g](b); + } catch (w) { + try { + return b[m] = !1, "/./"[g](b); + } catch (f) { + } + } + return !1; + }; + }, { "../internals/well-known-symbol": 314 }], 234: [function(e, x, _) { + var u = e("../internals/fails"); + x.exports = !u(function() { + function m() { + } + return m.prototype.constructor = null, Object.getPrototypeOf(new m()) !== m.prototype; + }); + }, { "../internals/fails": 247 }], 235: [function(e, x, _) { + var u = e("../internals/iterators-core").IteratorPrototype, m = e("../internals/object-create"), g = e("../internals/create-property-descriptor"), b = e("../internals/set-to-string-tag"), w = e("../internals/iterators"), f = function() { + return this; + }; + x.exports = function(y, h, l) { + var d = h + " Iterator"; + return y.prototype = m(u, { next: g(1, l) }), b(y, d, !1, !0), w[d] = f, y; + }; + }, { "../internals/create-property-descriptor": 237, "../internals/iterators": 268, "../internals/iterators-core": 267, "../internals/object-create": 276, "../internals/set-to-string-tag": 298 }], 236: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/object-define-property"), g = e("../internals/create-property-descriptor"); + x.exports = u ? function(b, w, f) { + return m.f(b, w, g(1, f)); + } : function(b, w, f) { + return b[w] = f, b; + }; + }, { "../internals/create-property-descriptor": 237, "../internals/descriptors": 240, "../internals/object-define-property": 278 }], 237: [function(e, x, _) { + x.exports = function(u, m) { + return { + enumerable: !(u & 1), + configurable: !(u & 2), + writable: !(u & 4), + value: m + }; + }; + }, {}], 238: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/create-iterator-constructor"), g = e("../internals/object-get-prototype-of"), b = e("../internals/object-set-prototype-of"), w = e("../internals/set-to-string-tag"), f = e("../internals/create-non-enumerable-property"), y = e("../internals/redefine"), h = e("../internals/well-known-symbol"), l = e("../internals/is-pure"), d = e("../internals/iterators"), s = e("../internals/iterators-core"), v = s.IteratorPrototype, c = s.BUGGY_SAFARI_ITERATORS, a = h("iterator"), r = "keys", t = "values", i = "entries", n = function() { + return this; + }; + x.exports = function(o, p, O, P, F, z, N) { + m(O, p, P); + var M = function(D) { + if (D === F && A) + return A; + if (!c && D in C) + return C[D]; + switch (D) { + case r: + return function() { + return new O(this, D); + }; + case t: + return function() { + return new O(this, D); + }; + case i: + return function() { + return new O(this, D); + }; + } + return function() { + return new O(this); + }; + }, I = p + " Iterator", R = !1, C = o.prototype, E = C[a] || C["@@iterator"] || F && C[F], A = !c && E || M(F), L = p == "Array" && C.entries || E, $, W, U; + if (L && ($ = g(L.call(new o())), v !== Object.prototype && $.next && (!l && g($) !== v && (b ? b($, v) : typeof $[a] != "function" && f($, a, n)), w($, I, !0, !0), l && (d[I] = n))), F == t && E && E.name !== t && (R = !0, A = function() { + return E.call(this); + }), (!l || N) && C[a] !== A && f(C, a, A), d[p] = A, F) + if (W = { + values: M(t), + keys: z ? A : M(r), + entries: M(i) + }, N) + for (U in W) + (c || R || !(U in C)) && y(C, U, W[U]); + else + u({ target: p, proto: !0, forced: c || R }, W); + return W; + }; + }, { "../internals/create-iterator-constructor": 235, "../internals/create-non-enumerable-property": 236, "../internals/export": 246, "../internals/is-pure": 264, "../internals/iterators": 268, "../internals/iterators-core": 267, "../internals/object-get-prototype-of": 283, "../internals/object-set-prototype-of": 287, "../internals/redefine": 294, "../internals/set-to-string-tag": 298, "../internals/well-known-symbol": 314 }], 239: [function(e, x, _) { + var u = e("../internals/path"), m = e("../internals/has"), g = e("../internals/well-known-symbol-wrapped"), b = e("../internals/object-define-property").f; + x.exports = function(w) { + var f = u.Symbol || (u.Symbol = {}); + m(f, w) || b(f, w, { + value: g.f(w) + }); + }; + }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/path": 290, "../internals/well-known-symbol-wrapped": 313 }], 240: [function(e, x, _) { + var u = e("../internals/fails"); + x.exports = !u(function() { + return Object.defineProperty({}, 1, { get: function() { + return 7; + } })[1] != 7; + }); + }, { "../internals/fails": 247 }], 241: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/is-object"), g = u.document, b = m(g) && m(g.createElement); + x.exports = function(w) { + return b ? g.createElement(w) : {}; + }; + }, { "../internals/global": 251, "../internals/is-object": 263 }], 242: [function(e, x, _) { + var u = e("../internals/engine-user-agent"); + x.exports = /(iphone|ipod|ipad).*applewebkit/i.test(u); + }, { "../internals/engine-user-agent": 243 }], 243: [function(e, x, _) { + var u = e("../internals/get-built-in"); + x.exports = u("navigator", "userAgent") || ""; + }, { "../internals/get-built-in": 249 }], 244: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/engine-user-agent"), g = u.process, b = g && g.versions, w = b && b.v8, f, y; + w ? (f = w.split("."), y = f[0] + f[1]) : m && (f = m.match(/Edge\/(\d+)/), (!f || f[1] >= 74) && (f = m.match(/Chrome\/(\d+)/), f && (y = f[1]))), x.exports = y && +y; + }, { "../internals/engine-user-agent": 243, "../internals/global": 251 }], 245: [function(e, x, _) { + x.exports = [ + "constructor", + "hasOwnProperty", + "isPrototypeOf", + "propertyIsEnumerable", + "toLocaleString", + "toString", + "valueOf" + ]; + }, {}], 246: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/object-get-own-property-descriptor").f, g = e("../internals/create-non-enumerable-property"), b = e("../internals/redefine"), w = e("../internals/set-global"), f = e("../internals/copy-constructor-properties"), y = e("../internals/is-forced"); + x.exports = function(h, l) { + var d = h.target, s = h.global, v = h.stat, c, a, r, t, i, n; + if (s ? a = u : v ? a = u[d] || w(d, {}) : a = (u[d] || {}).prototype, a) + for (r in l) { + if (i = l[r], h.noTargetGet ? (n = m(a, r), t = n && n.value) : t = a[r], c = y(s ? r : d + (v ? "." : "#") + r, h.forced), !c && t !== void 0) { + if (typeof i == typeof t) + continue; + f(i, t); + } + (h.sham || t && t.sham) && g(i, "sham", !0), b(a, r, i, h); + } + }; + }, { "../internals/copy-constructor-properties": 232, "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/is-forced": 262, "../internals/object-get-own-property-descriptor": 279, "../internals/redefine": 294, "../internals/set-global": 296 }], 247: [function(e, x, _) { + x.exports = function(u) { + try { + return !!u(); + } catch (m) { + return !0; + } + }; + }, {}], 248: [function(e, x, _) { + var u = e("../internals/a-function"); + x.exports = function(m, g, b) { + if (u(m), g === void 0) + return m; + switch (b) { + case 0: + return function() { + return m.call(g); + }; + case 1: + return function(w) { + return m.call(g, w); + }; + case 2: + return function(w, f) { + return m.call(g, w, f); + }; + case 3: + return function(w, f, y) { + return m.call(g, w, f, y); + }; + } + return function() { + return m.apply(g, arguments); + }; + }; + }, { "../internals/a-function": 219 }], 249: [function(e, x, _) { + var u = e("../internals/path"), m = e("../internals/global"), g = function(b) { + return typeof b == "function" ? b : void 0; + }; + x.exports = function(b, w) { + return arguments.length < 2 ? g(u[b]) || g(m[b]) : u[b] && u[b][w] || m[b] && m[b][w]; + }; + }, { "../internals/global": 251, "../internals/path": 290 }], 250: [function(e, x, _) { + var u = e("../internals/classof"), m = e("../internals/iterators"), g = e("../internals/well-known-symbol"), b = g("iterator"); + x.exports = function(w) { + if (w != null) + return w[b] || w["@@iterator"] || m[u(w)]; + }; + }, { "../internals/classof": 231, "../internals/iterators": 268, "../internals/well-known-symbol": 314 }], 251: [function(e, x, _) { + (function(u) { + var m = function(g) { + return g && g.Math == Math && g; + }; + x.exports = // eslint-disable-next-line no-undef + m(typeof globalThis == "object" && globalThis) || m(typeof window == "object" && window) || m(typeof self == "object" && self) || m(typeof u == "object" && u) || // eslint-disable-next-line no-new-func + Function("return this")(); + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 252: [function(e, x, _) { + var u = {}.hasOwnProperty; + x.exports = function(m, g) { + return u.call(m, g); + }; + }, {}], 253: [function(e, x, _) { + x.exports = {}; + }, {}], 254: [function(e, x, _) { + var u = e("../internals/global"); + x.exports = function(m, g) { + var b = u.console; + b && b.error && (arguments.length === 1 ? b.error(m) : b.error(m, g)); + }; + }, { "../internals/global": 251 }], 255: [function(e, x, _) { + var u = e("../internals/get-built-in"); + x.exports = u("document", "documentElement"); + }, { "../internals/get-built-in": 249 }], 256: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/document-create-element"); + x.exports = !u && !m(function() { + return Object.defineProperty(g("div"), "a", { + get: function() { + return 7; + } + }).a != 7; + }); + }, { "../internals/descriptors": 240, "../internals/document-create-element": 241, "../internals/fails": 247 }], 257: [function(e, x, _) { + var u = e("../internals/fails"), m = e("../internals/classof-raw"), g = "".split; + x.exports = u(function() { + return !Object("z").propertyIsEnumerable(0); + }) ? function(b) { + return m(b) == "String" ? g.call(b, "") : Object(b); + } : Object; + }, { "../internals/classof-raw": 230, "../internals/fails": 247 }], 258: [function(e, x, _) { + var u = e("../internals/shared-store"), m = Function.toString; + typeof u.inspectSource != "function" && (u.inspectSource = function(g) { + return m.call(g); + }), x.exports = u.inspectSource; + }, { "../internals/shared-store": 300 }], 259: [function(e, x, _) { + var u = e("../internals/native-weak-map"), m = e("../internals/global"), g = e("../internals/is-object"), b = e("../internals/create-non-enumerable-property"), w = e("../internals/has"), f = e("../internals/shared-key"), y = e("../internals/hidden-keys"), h = m.WeakMap, l, d, s, v = function(o) { + return s(o) ? d(o) : l(o, {}); + }, c = function(o) { + return function(p) { + var O; + if (!g(p) || (O = d(p)).type !== o) + throw TypeError("Incompatible receiver, " + o + " required"); + return O; + }; + }; + if (u) { + var a = new h(), r = a.get, t = a.has, i = a.set; + l = function(o, p) { + return i.call(a, o, p), p; + }, d = function(o) { + return r.call(a, o) || {}; + }, s = function(o) { + return t.call(a, o); + }; + } else { + var n = f("state"); + y[n] = !0, l = function(o, p) { + return b(o, n, p), p; + }, d = function(o) { + return w(o, n) ? o[n] : {}; + }, s = function(o) { + return w(o, n); + }; + } + x.exports = { + set: l, + get: d, + has: s, + enforce: v, + getterFor: c + }; + }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/is-object": 263, "../internals/native-weak-map": 272, "../internals/shared-key": 299 }], 260: [function(e, x, _) { + var u = e("../internals/well-known-symbol"), m = e("../internals/iterators"), g = u("iterator"), b = Array.prototype; + x.exports = function(w) { + return w !== void 0 && (m.Array === w || b[g] === w); + }; + }, { "../internals/iterators": 268, "../internals/well-known-symbol": 314 }], 261: [function(e, x, _) { + var u = e("../internals/classof-raw"); + x.exports = Array.isArray || function(g) { + return u(g) == "Array"; + }; + }, { "../internals/classof-raw": 230 }], 262: [function(e, x, _) { + var u = e("../internals/fails"), m = /#|\.prototype\./, g = function(h, l) { + var d = w[b(h)]; + return d == y ? !0 : d == f ? !1 : typeof l == "function" ? u(l) : !!l; + }, b = g.normalize = function(h) { + return String(h).replace(m, ".").toLowerCase(); + }, w = g.data = {}, f = g.NATIVE = "N", y = g.POLYFILL = "P"; + x.exports = g; + }, { "../internals/fails": 247 }], 263: [function(e, x, _) { + x.exports = function(u) { + return typeof u == "object" ? u !== null : typeof u == "function"; + }; + }, {}], 264: [function(e, x, _) { + x.exports = !1; + }, {}], 265: [function(e, x, _) { + var u = e("../internals/is-object"), m = e("../internals/classof-raw"), g = e("../internals/well-known-symbol"), b = g("match"); + x.exports = function(w) { + var f; + return u(w) && ((f = w[b]) !== void 0 ? !!f : m(w) == "RegExp"); + }; + }, { "../internals/classof-raw": 230, "../internals/is-object": 263, "../internals/well-known-symbol": 314 }], 266: [function(e, x, _) { + var u = e("../internals/an-object"), m = e("../internals/is-array-iterator-method"), g = e("../internals/to-length"), b = e("../internals/function-bind-context"), w = e("../internals/get-iterator-method"), f = e("../internals/call-with-safe-iteration-closing"), y = function(l, d) { + this.stopped = l, this.result = d; + }, h = x.exports = function(l, d, s, v, c) { + var a = b(d, s, v ? 2 : 1), r, t, i, n, o, p, O; + if (c) + r = l; + else { + if (t = w(l), typeof t != "function") + throw TypeError("Target is not iterable"); + if (m(t)) { + for (i = 0, n = g(l.length); n > i; i++) + if (o = v ? a(u(O = l[i])[0], O[1]) : a(l[i]), o && o instanceof y) + return o; + return new y(!1); + } + r = t.call(l); + } + for (p = r.next; !(O = p.call(r)).done; ) + if (o = f(r, a, O.value, v), typeof o == "object" && o && o instanceof y) + return o; + return new y(!1); + }; + h.stop = function(l) { + return new y(!0, l); + }; + }, { "../internals/an-object": 223, "../internals/call-with-safe-iteration-closing": 228, "../internals/function-bind-context": 248, "../internals/get-iterator-method": 250, "../internals/is-array-iterator-method": 260, "../internals/to-length": 307 }], 267: [function(e, x, _) { + var u = e("../internals/object-get-prototype-of"), m = e("../internals/create-non-enumerable-property"), g = e("../internals/has"), b = e("../internals/well-known-symbol"), w = e("../internals/is-pure"), f = b("iterator"), y = !1, h = function() { + return this; + }, l, d, s; + [].keys && (s = [].keys(), "next" in s ? (d = u(u(s)), d !== Object.prototype && (l = d)) : y = !0), l == null && (l = {}), !w && !g(l, f) && m(l, f, h), x.exports = { + IteratorPrototype: l, + BUGGY_SAFARI_ITERATORS: y + }; + }, { "../internals/create-non-enumerable-property": 236, "../internals/has": 252, "../internals/is-pure": 264, "../internals/object-get-prototype-of": 283, "../internals/well-known-symbol": 314 }], 268: [function(e, x, _) { + arguments[4][253][0].apply(_, arguments); + }, { dup: 253 }], 269: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/object-get-own-property-descriptor").f, g = e("../internals/classof-raw"), b = e("../internals/task").set, w = e("../internals/engine-is-ios"), f = u.MutationObserver || u.WebKitMutationObserver, y = u.process, h = u.Promise, l = g(y) == "process", d = m(u, "queueMicrotask"), s = d && d.value, v, c, a, r, t, i, n, o; + s || (v = function() { + var p, O; + for (l && (p = y.domain) && p.exit(); c; ) { + O = c.fn, c = c.next; + try { + O(); + } catch (P) { + throw c ? r() : a = void 0, P; + } + } + a = void 0, p && p.enter(); + }, l ? r = function() { + y.nextTick(v); + } : f && !w ? (t = !0, i = document.createTextNode(""), new f(v).observe(i, { characterData: !0 }), r = function() { + i.data = t = !t; + }) : h && h.resolve ? (n = h.resolve(void 0), o = n.then, r = function() { + o.call(n, v); + }) : r = function() { + b.call(u, v); + }), x.exports = s || function(p) { + var O = { fn: p, next: void 0 }; + a && (a.next = O), c || (c = O, r()), a = O; + }; + }, { "../internals/classof-raw": 230, "../internals/engine-is-ios": 242, "../internals/global": 251, "../internals/object-get-own-property-descriptor": 279, "../internals/task": 303 }], 270: [function(e, x, _) { + var u = e("../internals/global"); + x.exports = u.Promise; + }, { "../internals/global": 251 }], 271: [function(e, x, _) { + var u = e("../internals/fails"); + x.exports = !!Object.getOwnPropertySymbols && !u(function() { + return !String(Symbol()); + }); + }, { "../internals/fails": 247 }], 272: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/inspect-source"), g = u.WeakMap; + x.exports = typeof g == "function" && /native code/.test(m(g)); + }, { "../internals/global": 251, "../internals/inspect-source": 258 }], 273: [function(e, x, _) { + var u = e("../internals/a-function"), m = function(g) { + var b, w; + this.promise = new g(function(f, y) { + if (b !== void 0 || w !== void 0) + throw TypeError("Bad Promise constructor"); + b = f, w = y; + }), this.resolve = u(b), this.reject = u(w); + }; + x.exports.f = function(g) { + return new m(g); + }; + }, { "../internals/a-function": 219 }], 274: [function(e, x, _) { + var u = e("../internals/is-regexp"); + x.exports = function(m) { + if (u(m)) + throw TypeError("The method doesn't accept regular expressions"); + return m; + }; + }, { "../internals/is-regexp": 265 }], 275: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/fails"), g = e("../internals/object-keys"), b = e("../internals/object-get-own-property-symbols"), w = e("../internals/object-property-is-enumerable"), f = e("../internals/to-object"), y = e("../internals/indexed-object"), h = Object.assign, l = Object.defineProperty; + x.exports = !h || m(function() { + if (u && h({ b: 1 }, h(l({}, "a", { + enumerable: !0, + get: function() { + l(this, "b", { + value: 3, + enumerable: !1 + }); + } + }), { b: 2 })).b !== 1) + return !0; + var d = {}, s = {}, v = Symbol(), c = "abcdefghijklmnopqrst"; + return d[v] = 7, c.split("").forEach(function(a) { + s[a] = a; + }), h({}, d)[v] != 7 || g(h({}, s)).join("") != c; + }) ? function(s, v) { + for (var c = f(s), a = arguments.length, r = 1, t = b.f, i = w.f; a > r; ) + for (var n = y(arguments[r++]), o = t ? g(n).concat(t(n)) : g(n), p = o.length, O = 0, P; p > O; ) + P = o[O++], (!u || i.call(n, P)) && (c[P] = n[P]); + return c; + } : h; + }, { "../internals/descriptors": 240, "../internals/fails": 247, "../internals/indexed-object": 257, "../internals/object-get-own-property-symbols": 282, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/to-object": 308 }], 276: [function(e, x, _) { + var u = e("../internals/an-object"), m = e("../internals/object-define-properties"), g = e("../internals/enum-bug-keys"), b = e("../internals/hidden-keys"), w = e("../internals/html"), f = e("../internals/document-create-element"), y = e("../internals/shared-key"), h = ">", l = "<", d = "prototype", s = "script", v = y("IE_PROTO"), c = function() { + }, a = function(o) { + return l + s + h + o + l + "/" + s + h; + }, r = function(o) { + o.write(a("")), o.close(); + var p = o.parentWindow.Object; + return o = null, p; + }, t = function() { + var o = f("iframe"), p = "java" + s + ":", O; + return o.style.display = "none", w.appendChild(o), o.src = String(p), O = o.contentWindow.document, O.open(), O.write(a("document.F=Object")), O.close(), O.F; + }, i, n = function() { + try { + i = document.domain && new ActiveXObject("htmlfile"); + } catch (p) { + } + n = i ? r(i) : t(); + for (var o = g.length; o--; ) + delete n[d][g[o]]; + return n(); + }; + b[v] = !0, x.exports = Object.create || function(p, O) { + var P; + return p !== null ? (c[d] = u(p), P = new c(), c[d] = null, P[v] = p) : P = n(), O === void 0 ? P : m(P, O); + }; + }, { "../internals/an-object": 223, "../internals/document-create-element": 241, "../internals/enum-bug-keys": 245, "../internals/hidden-keys": 253, "../internals/html": 255, "../internals/object-define-properties": 277, "../internals/shared-key": 299 }], 277: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/object-define-property"), g = e("../internals/an-object"), b = e("../internals/object-keys"); + x.exports = u ? Object.defineProperties : function(f, y) { + g(f); + for (var h = b(y), l = h.length, d = 0, s; l > d; ) + m.f(f, s = h[d++], y[s]); + return f; + }; + }, { "../internals/an-object": 223, "../internals/descriptors": 240, "../internals/object-define-property": 278, "../internals/object-keys": 285 }], 278: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/ie8-dom-define"), g = e("../internals/an-object"), b = e("../internals/to-primitive"), w = Object.defineProperty; + _.f = u ? w : function(y, h, l) { + if (g(y), h = b(h, !0), g(l), m) + try { + return w(y, h, l); + } catch (d) { + } + if ("get" in l || "set" in l) + throw TypeError("Accessors not supported"); + return "value" in l && (y[h] = l.value), y; + }; + }, { "../internals/an-object": 223, "../internals/descriptors": 240, "../internals/ie8-dom-define": 256, "../internals/to-primitive": 309 }], 279: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/object-property-is-enumerable"), g = e("../internals/create-property-descriptor"), b = e("../internals/to-indexed-object"), w = e("../internals/to-primitive"), f = e("../internals/has"), y = e("../internals/ie8-dom-define"), h = Object.getOwnPropertyDescriptor; + _.f = u ? h : function(d, s) { + if (d = b(d), s = w(s, !0), y) + try { + return h(d, s); + } catch (v) { + } + if (f(d, s)) + return g(!m.f.call(d, s), d[s]); + }; + }, { "../internals/create-property-descriptor": 237, "../internals/descriptors": 240, "../internals/has": 252, "../internals/ie8-dom-define": 256, "../internals/object-property-is-enumerable": 286, "../internals/to-indexed-object": 305, "../internals/to-primitive": 309 }], 280: [function(e, x, _) { + var u = e("../internals/to-indexed-object"), m = e("../internals/object-get-own-property-names").f, g = {}.toString, b = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], w = function(f) { + try { + return m(f); + } catch (y) { + return b.slice(); + } + }; + x.exports.f = function(y) { + return b && g.call(y) == "[object Window]" ? w(y) : m(u(y)); + }; + }, { "../internals/object-get-own-property-names": 281, "../internals/to-indexed-object": 305 }], 281: [function(e, x, _) { + var u = e("../internals/object-keys-internal"), m = e("../internals/enum-bug-keys"), g = m.concat("length", "prototype"); + _.f = Object.getOwnPropertyNames || function(w) { + return u(w, g); + }; + }, { "../internals/enum-bug-keys": 245, "../internals/object-keys-internal": 284 }], 282: [function(e, x, _) { + _.f = Object.getOwnPropertySymbols; + }, {}], 283: [function(e, x, _) { + var u = e("../internals/has"), m = e("../internals/to-object"), g = e("../internals/shared-key"), b = e("../internals/correct-prototype-getter"), w = g("IE_PROTO"), f = Object.prototype; + x.exports = b ? Object.getPrototypeOf : function(y) { + return y = m(y), u(y, w) ? y[w] : typeof y.constructor == "function" && y instanceof y.constructor ? y.constructor.prototype : y instanceof Object ? f : null; + }; + }, { "../internals/correct-prototype-getter": 234, "../internals/has": 252, "../internals/shared-key": 299, "../internals/to-object": 308 }], 284: [function(e, x, _) { + var u = e("../internals/has"), m = e("../internals/to-indexed-object"), g = e("../internals/array-includes").indexOf, b = e("../internals/hidden-keys"); + x.exports = function(w, f) { + var y = m(w), h = 0, l = [], d; + for (d in y) + !u(b, d) && u(y, d) && l.push(d); + for (; f.length > h; ) + u(y, d = f[h++]) && (~g(l, d) || l.push(d)); + return l; + }; + }, { "../internals/array-includes": 224, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/to-indexed-object": 305 }], 285: [function(e, x, _) { + var u = e("../internals/object-keys-internal"), m = e("../internals/enum-bug-keys"); + x.exports = Object.keys || function(b) { + return u(b, m); + }; + }, { "../internals/enum-bug-keys": 245, "../internals/object-keys-internal": 284 }], 286: [function(e, x, _) { + var u = {}.propertyIsEnumerable, m = Object.getOwnPropertyDescriptor, g = m && !u.call({ 1: 2 }, 1); + _.f = g ? function(w) { + var f = m(this, w); + return !!f && f.enumerable; + } : u; + }, {}], 287: [function(e, x, _) { + var u = e("../internals/an-object"), m = e("../internals/a-possible-prototype"); + x.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() { + var g = !1, b = {}, w; + try { + w = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set, w.call(b, []), g = b instanceof Array; + } catch (f) { + } + return function(y, h) { + return u(y), m(h), g ? w.call(y, h) : y.__proto__ = h, y; + }; + }() : void 0); + }, { "../internals/a-possible-prototype": 220, "../internals/an-object": 223 }], 288: [function(e, x, _) { + var u = e("../internals/descriptors"), m = e("../internals/object-keys"), g = e("../internals/to-indexed-object"), b = e("../internals/object-property-is-enumerable").f, w = function(f) { + return function(y) { + for (var h = g(y), l = m(h), d = l.length, s = 0, v = [], c; d > s; ) + c = l[s++], (!u || b.call(h, c)) && v.push(f ? [c, h[c]] : h[c]); + return v; + }; + }; + x.exports = { + // `Object.entries` method + // https://tc39.github.io/ecma262/#sec-object.entries + entries: w(!0), + // `Object.values` method + // https://tc39.github.io/ecma262/#sec-object.values + values: w(!1) + }; + }, { "../internals/descriptors": 240, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/to-indexed-object": 305 }], 289: [function(e, x, _) { + var u = e("../internals/get-built-in"), m = e("../internals/object-get-own-property-names"), g = e("../internals/object-get-own-property-symbols"), b = e("../internals/an-object"); + x.exports = u("Reflect", "ownKeys") || function(f) { + var y = m.f(b(f)), h = g.f; + return h ? y.concat(h(f)) : y; + }; + }, { "../internals/an-object": 223, "../internals/get-built-in": 249, "../internals/object-get-own-property-names": 281, "../internals/object-get-own-property-symbols": 282 }], 290: [function(e, x, _) { + var u = e("../internals/global"); + x.exports = u; + }, { "../internals/global": 251 }], 291: [function(e, x, _) { + x.exports = function(u) { + try { + return { error: !1, value: u() }; + } catch (m) { + return { error: !0, value: m }; + } + }; + }, {}], 292: [function(e, x, _) { + var u = e("../internals/an-object"), m = e("../internals/is-object"), g = e("../internals/new-promise-capability"); + x.exports = function(b, w) { + if (u(b), m(w) && w.constructor === b) + return w; + var f = g.f(b), y = f.resolve; + return y(w), f.promise; + }; + }, { "../internals/an-object": 223, "../internals/is-object": 263, "../internals/new-promise-capability": 273 }], 293: [function(e, x, _) { + var u = e("../internals/redefine"); + x.exports = function(m, g, b) { + for (var w in g) + u(m, w, g[w], b); + return m; + }; + }, { "../internals/redefine": 294 }], 294: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/create-non-enumerable-property"), g = e("../internals/has"), b = e("../internals/set-global"), w = e("../internals/inspect-source"), f = e("../internals/internal-state"), y = f.get, h = f.enforce, l = String(String).split("String"); + (x.exports = function(d, s, v, c) { + var a = c ? !!c.unsafe : !1, r = c ? !!c.enumerable : !1, t = c ? !!c.noTargetGet : !1; + if (typeof v == "function" && (typeof s == "string" && !g(v, "name") && m(v, "name", s), h(v).source = l.join(typeof s == "string" ? s : "")), d === u) { + r ? d[s] = v : b(s, v); + return; + } else + a ? !t && d[s] && (r = !0) : delete d[s]; + r ? d[s] = v : m(d, s, v); + })(Function.prototype, "toString", function() { + return typeof this == "function" && y(this).source || w(this); + }); + }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251, "../internals/has": 252, "../internals/inspect-source": 258, "../internals/internal-state": 259, "../internals/set-global": 296 }], 295: [function(e, x, _) { + x.exports = function(u) { + if (u == null) + throw TypeError("Can't call method on " + u); + return u; + }; + }, {}], 296: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/create-non-enumerable-property"); + x.exports = function(g, b) { + try { + m(u, g, b); + } catch (w) { + u[g] = b; + } + return b; + }; + }, { "../internals/create-non-enumerable-property": 236, "../internals/global": 251 }], 297: [function(e, x, _) { + var u = e("../internals/get-built-in"), m = e("../internals/object-define-property"), g = e("../internals/well-known-symbol"), b = e("../internals/descriptors"), w = g("species"); + x.exports = function(f) { + var y = u(f), h = m.f; + b && y && !y[w] && h(y, w, { + configurable: !0, + get: function() { + return this; + } + }); + }; + }, { "../internals/descriptors": 240, "../internals/get-built-in": 249, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 298: [function(e, x, _) { + var u = e("../internals/object-define-property").f, m = e("../internals/has"), g = e("../internals/well-known-symbol"), b = g("toStringTag"); + x.exports = function(w, f, y) { + w && !m(w = y ? w : w.prototype, b) && u(w, b, { configurable: !0, value: f }); + }; + }, { "../internals/has": 252, "../internals/object-define-property": 278, "../internals/well-known-symbol": 314 }], 299: [function(e, x, _) { + var u = e("../internals/shared"), m = e("../internals/uid"), g = u("keys"); + x.exports = function(b) { + return g[b] || (g[b] = m(b)); + }; + }, { "../internals/shared": 301, "../internals/uid": 311 }], 300: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/set-global"), g = "__core-js_shared__", b = u[g] || m(g, {}); + x.exports = b; + }, { "../internals/global": 251, "../internals/set-global": 296 }], 301: [function(e, x, _) { + var u = e("../internals/is-pure"), m = e("../internals/shared-store"); + (x.exports = function(g, b) { + return m[g] || (m[g] = b !== void 0 ? b : {}); + })("versions", []).push({ + version: "3.6.5", + mode: u ? "pure" : "global", + copyright: "© 2020 Denis Pushkarev (zloirock.ru)" + }); + }, { "../internals/is-pure": 264, "../internals/shared-store": 300 }], 302: [function(e, x, _) { + var u = e("../internals/an-object"), m = e("../internals/a-function"), g = e("../internals/well-known-symbol"), b = g("species"); + x.exports = function(w, f) { + var y = u(w).constructor, h; + return y === void 0 || (h = u(y)[b]) == null ? f : m(h); + }; + }, { "../internals/a-function": 219, "../internals/an-object": 223, "../internals/well-known-symbol": 314 }], 303: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/fails"), g = e("../internals/classof-raw"), b = e("../internals/function-bind-context"), w = e("../internals/html"), f = e("../internals/document-create-element"), y = e("../internals/engine-is-ios"), h = u.location, l = u.setImmediate, d = u.clearImmediate, s = u.process, v = u.MessageChannel, c = u.Dispatch, a = 0, r = {}, t = "onreadystatechange", i, n, o, p = function(z) { + if (r.hasOwnProperty(z)) { + var N = r[z]; + delete r[z], N(); + } + }, O = function(z) { + return function() { + p(z); + }; + }, P = function(z) { + p(z.data); + }, F = function(z) { + u.postMessage(z + "", h.protocol + "//" + h.host); + }; + (!l || !d) && (l = function(N) { + for (var M = [], I = 1; arguments.length > I; ) + M.push(arguments[I++]); + return r[++a] = function() { + (typeof N == "function" ? N : Function(N)).apply(void 0, M); + }, i(a), a; + }, d = function(N) { + delete r[N]; + }, g(s) == "process" ? i = function(z) { + s.nextTick(O(z)); + } : c && c.now ? i = function(z) { + c.now(O(z)); + } : v && !y ? (n = new v(), o = n.port2, n.port1.onmessage = P, i = b(o.postMessage, o, 1)) : u.addEventListener && typeof postMessage == "function" && !u.importScripts && !m(F) && h.protocol !== "file:" ? (i = F, u.addEventListener("message", P, !1)) : t in f("script") ? i = function(z) { + w.appendChild(f("script"))[t] = function() { + w.removeChild(this), p(z); + }; + } : i = function(z) { + setTimeout(O(z), 0); + }), x.exports = { + set: l, + clear: d + }; + }, { "../internals/classof-raw": 230, "../internals/document-create-element": 241, "../internals/engine-is-ios": 242, "../internals/fails": 247, "../internals/function-bind-context": 248, "../internals/global": 251, "../internals/html": 255 }], 304: [function(e, x, _) { + var u = e("../internals/to-integer"), m = Math.max, g = Math.min; + x.exports = function(b, w) { + var f = u(b); + return f < 0 ? m(f + w, 0) : g(f, w); + }; + }, { "../internals/to-integer": 306 }], 305: [function(e, x, _) { + var u = e("../internals/indexed-object"), m = e("../internals/require-object-coercible"); + x.exports = function(g) { + return u(m(g)); + }; + }, { "../internals/indexed-object": 257, "../internals/require-object-coercible": 295 }], 306: [function(e, x, _) { + var u = Math.ceil, m = Math.floor; + x.exports = function(g) { + return isNaN(g = +g) ? 0 : (g > 0 ? m : u)(g); + }; + }, {}], 307: [function(e, x, _) { + var u = e("../internals/to-integer"), m = Math.min; + x.exports = function(g) { + return g > 0 ? m(u(g), 9007199254740991) : 0; + }; + }, { "../internals/to-integer": 306 }], 308: [function(e, x, _) { + var u = e("../internals/require-object-coercible"); + x.exports = function(m) { + return Object(u(m)); + }; + }, { "../internals/require-object-coercible": 295 }], 309: [function(e, x, _) { + var u = e("../internals/is-object"); + x.exports = function(m, g) { + if (!u(m)) + return m; + var b, w; + if (g && typeof (b = m.toString) == "function" && !u(w = b.call(m)) || typeof (b = m.valueOf) == "function" && !u(w = b.call(m)) || !g && typeof (b = m.toString) == "function" && !u(w = b.call(m))) + return w; + throw TypeError("Can't convert object to primitive value"); + }; + }, { "../internals/is-object": 263 }], 310: [function(e, x, _) { + var u = e("../internals/well-known-symbol"), m = u("toStringTag"), g = {}; + g[m] = "z", x.exports = String(g) === "[object z]"; + }, { "../internals/well-known-symbol": 314 }], 311: [function(e, x, _) { + var u = 0, m = Math.random(); + x.exports = function(g) { + return "Symbol(" + String(g === void 0 ? "" : g) + ")_" + (++u + m).toString(36); + }; + }, {}], 312: [function(e, x, _) { + var u = e("../internals/native-symbol"); + x.exports = u && !Symbol.sham && typeof Symbol.iterator == "symbol"; + }, { "../internals/native-symbol": 271 }], 313: [function(e, x, _) { + var u = e("../internals/well-known-symbol"); + _.f = u; + }, { "../internals/well-known-symbol": 314 }], 314: [function(e, x, _) { + var u = e("../internals/global"), m = e("../internals/shared"), g = e("../internals/has"), b = e("../internals/uid"), w = e("../internals/native-symbol"), f = e("../internals/use-symbol-as-uid"), y = m("wks"), h = u.Symbol, l = f ? h : h && h.withoutSetter || b; + x.exports = function(d) { + return g(y, d) || (w && g(h, d) ? y[d] = h[d] : y[d] = l("Symbol." + d)), y[d]; + }; + }, { "../internals/global": 251, "../internals/has": 252, "../internals/native-symbol": 271, "../internals/shared": 301, "../internals/uid": 311, "../internals/use-symbol-as-uid": 312 }], 315: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/array-iteration").findIndex, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = "findIndex", f = !0, y = b(w); + w in [] && Array(1)[w](function() { + f = !1; + }), u({ target: "Array", proto: !0, forced: f || !y }, { + findIndex: function(l) { + return m(this, l, arguments.length > 1 ? arguments[1] : void 0); + } + }), g(w); + }, { "../internals/add-to-unscopables": 221, "../internals/array-iteration": 225, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 316: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/array-iteration").find, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = "find", f = !0, y = b(w); + w in [] && Array(1)[w](function() { + f = !1; + }), u({ target: "Array", proto: !0, forced: f || !y }, { + find: function(l) { + return m(this, l, arguments.length > 1 ? arguments[1] : void 0); + } + }), g(w); + }, { "../internals/add-to-unscopables": 221, "../internals/array-iteration": 225, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 317: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/array-includes").includes, g = e("../internals/add-to-unscopables"), b = e("../internals/array-method-uses-to-length"), w = b("indexOf", { ACCESSORS: !0, 1: 0 }); + u({ target: "Array", proto: !0, forced: !w }, { + includes: function(y) { + return m(this, y, arguments.length > 1 ? arguments[1] : void 0); + } + }), g("includes"); + }, { "../internals/add-to-unscopables": 221, "../internals/array-includes": 224, "../internals/array-method-uses-to-length": 226, "../internals/export": 246 }], 318: [function(e, x, _) { + var u = e("../internals/to-indexed-object"), m = e("../internals/add-to-unscopables"), g = e("../internals/iterators"), b = e("../internals/internal-state"), w = e("../internals/define-iterator"), f = "Array Iterator", y = b.set, h = b.getterFor(f); + x.exports = w(Array, "Array", function(l, d) { + y(this, { + type: f, + target: u(l), + // target + index: 0, + // next index + kind: d + // kind + }); + }, function() { + var l = h(this), d = l.target, s = l.kind, v = l.index++; + return !d || v >= d.length ? (l.target = void 0, { value: void 0, done: !0 }) : s == "keys" ? { value: v, done: !1 } : s == "values" ? { value: d[v], done: !1 } : { value: [v, d[v]], done: !1 }; + }, "values"), g.Arguments = g.Array, m("keys"), m("values"), m("entries"); + }, { "../internals/add-to-unscopables": 221, "../internals/define-iterator": 238, "../internals/internal-state": 259, "../internals/iterators": 268, "../internals/to-indexed-object": 305 }], 319: [function(e, x, _) { + var u = e("../internals/export"); + u({ target: "Number", stat: !0 }, { + isNaN: function(g) { + return g != g; + } + }); + }, { "../internals/export": 246 }], 320: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/object-assign"); + u({ target: "Object", stat: !0, forced: Object.assign !== m }, { + assign: m + }); + }, { "../internals/export": 246, "../internals/object-assign": 275 }], 321: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/to-object"), g = e("../internals/object-keys"), b = e("../internals/fails"), w = b(function() { + g(1); + }); + u({ target: "Object", stat: !0, forced: w }, { + keys: function(y) { + return g(m(y)); + } + }); + }, { "../internals/export": 246, "../internals/fails": 247, "../internals/object-keys": 285, "../internals/to-object": 308 }], 322: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/object-to-array").values; + u({ target: "Object", stat: !0 }, { + values: function(b) { + return m(b); + } + }); + }, { "../internals/export": 246, "../internals/object-to-array": 288 }], 323: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/is-pure"), g = e("../internals/global"), b = e("../internals/get-built-in"), w = e("../internals/native-promise-constructor"), f = e("../internals/redefine"), y = e("../internals/redefine-all"), h = e("../internals/set-to-string-tag"), l = e("../internals/set-species"), d = e("../internals/is-object"), s = e("../internals/a-function"), v = e("../internals/an-instance"), c = e("../internals/classof-raw"), a = e("../internals/inspect-source"), r = e("../internals/iterate"), t = e("../internals/check-correctness-of-iteration"), i = e("../internals/species-constructor"), n = e("../internals/task").set, o = e("../internals/microtask"), p = e("../internals/promise-resolve"), O = e("../internals/host-report-errors"), P = e("../internals/new-promise-capability"), F = e("../internals/perform"), z = e("../internals/internal-state"), N = e("../internals/is-forced"), M = e("../internals/well-known-symbol"), I = e("../internals/engine-v8-version"), R = M("species"), C = "Promise", E = z.get, A = z.set, L = z.getterFor(C), $ = w, W = g.TypeError, U = g.document, D = g.process, B = b("fetch"), j = P.f, V = j, re = c(D) == "process", ee = !!(U && U.createEvent && g.dispatchEvent), ce = "unhandledrejection", ve = "rejectionhandled", ge = 0, oe = 1, J = 2, Q = 1, he = 2, ke, ne, se, Ce, q = N(C, function() { + var Ue = a($) !== String($); + if (!Ue && (I === 66 || !re && typeof PromiseRejectionEvent != "function") || m && !$.prototype.finally) + return !0; + if (I >= 51 && /native code/.test($)) + return !1; + var Ve = $.resolve(1), Qe = function(ae) { + ae(function() { + }, function() { + }); + }, tt = Ve.constructor = {}; + return tt[R] = Qe, !(Ve.then(function() { + }) instanceof Qe); + }), G = q || !t(function(Ue) { + $.all(Ue).catch(function() { + }); + }), Y = function(Ue) { + var Ve; + return d(Ue) && typeof (Ve = Ue.then) == "function" ? Ve : !1; + }, fe = function(Ue, Ve, Qe) { + if (!Ve.notified) { + Ve.notified = !0; + var tt = Ve.reactions; + o(function() { + for (var ae = Ve.value, Re = Ve.state == oe, be = 0; tt.length > be; ) { + var Ee = tt[be++], pe = Re ? Ee.ok : Ee.fail, Pe = Ee.resolve, te = Ee.reject, He = Ee.domain, it, K, Me; + try { + pe ? (Re || (Ve.rejection === he && Ye(Ue, Ve), Ve.rejection = Q), pe === !0 ? it = ae : (He && He.enter(), it = pe(ae), He && (He.exit(), Me = !0)), it === Ee.promise ? te(W("Promise-chain cycle")) : (K = Y(it)) ? K.call(it, Pe, te) : Pe(it)) : te(ae); + } catch (Le) { + He && !Me && He.exit(), te(Le); + } + } + Ve.reactions = [], Ve.notified = !1, Qe && !Ve.rejection && _e(Ue, Ve); + }); + } + }, we = function(Ue, Ve, Qe) { + var tt, ae; + ee ? (tt = U.createEvent("Event"), tt.promise = Ve, tt.reason = Qe, tt.initEvent(Ue, !1, !0), g.dispatchEvent(tt)) : tt = { promise: Ve, reason: Qe }, (ae = g["on" + Ue]) ? ae(tt) : Ue === ce && O("Unhandled promise rejection", Qe); + }, _e = function(Ue, Ve) { + n.call(g, function() { + var Qe = Ve.value, tt = je(Ve), ae; + if (tt && (ae = F(function() { + re ? D.emit("unhandledRejection", Qe, Ue) : we(ce, Ue, Qe); + }), Ve.rejection = re || je(Ve) ? he : Q, ae.error)) + throw ae.value; + }); + }, je = function(Ue) { + return Ue.rejection !== Q && !Ue.parent; + }, Ye = function(Ue, Ve) { + n.call(g, function() { + re ? D.emit("rejectionHandled", Ue) : we(ve, Ue, Ve.value); + }); + }, nt = function(Ue, Ve, Qe, tt) { + return function(ae) { + Ue(Ve, Qe, ae, tt); + }; + }, ut = function(Ue, Ve, Qe, tt) { + Ve.done || (Ve.done = !0, tt && (Ve = tt), Ve.value = Qe, Ve.state = J, fe(Ue, Ve, !0)); + }, ot = function(Ue, Ve, Qe, tt) { + if (!Ve.done) { + Ve.done = !0, tt && (Ve = tt); + try { + if (Ue === Qe) + throw W("Promise can't be resolved itself"); + var ae = Y(Qe); + ae ? o(function() { + var Re = { done: !1 }; + try { + ae.call( + Qe, + nt(ot, Ue, Re, Ve), + nt(ut, Ue, Re, Ve) + ); + } catch (be) { + ut(Ue, Re, be, Ve); + } + }) : (Ve.value = Qe, Ve.state = oe, fe(Ue, Ve, !1)); + } catch (Re) { + ut(Ue, { done: !1 }, Re, Ve); + } + } + }; + q && ($ = function(Ve) { + v(this, $, C), s(Ve), ke.call(this); + var Qe = E(this); + try { + Ve(nt(ot, this, Qe), nt(ut, this, Qe)); + } catch (tt) { + ut(this, Qe, tt); + } + }, ke = function(Ve) { + A(this, { + type: C, + done: !1, + notified: !1, + parent: !1, + reactions: [], + rejection: !1, + state: ge, + value: void 0 + }); + }, ke.prototype = y($.prototype, { + // `Promise.prototype.then` method + // https://tc39.github.io/ecma262/#sec-promise.prototype.then + then: function(Ve, Qe) { + var tt = L(this), ae = j(i(this, $)); + return ae.ok = typeof Ve == "function" ? Ve : !0, ae.fail = typeof Qe == "function" && Qe, ae.domain = re ? D.domain : void 0, tt.parent = !0, tt.reactions.push(ae), tt.state != ge && fe(this, tt, !1), ae.promise; + }, + // `Promise.prototype.catch` method + // https://tc39.github.io/ecma262/#sec-promise.prototype.catch + catch: function(Ue) { + return this.then(void 0, Ue); + } + }), ne = function() { + var Ue = new ke(), Ve = E(Ue); + this.promise = Ue, this.resolve = nt(ot, Ue, Ve), this.reject = nt(ut, Ue, Ve); + }, P.f = j = function(Ue) { + return Ue === $ || Ue === se ? new ne(Ue) : V(Ue); + }, !m && typeof w == "function" && (Ce = w.prototype.then, f(w.prototype, "then", function(Ve, Qe) { + var tt = this; + return new $(function(ae, Re) { + Ce.call(tt, ae, Re); + }).then(Ve, Qe); + }, { unsafe: !0 }), typeof B == "function" && u({ global: !0, enumerable: !0, forced: !0 }, { + // eslint-disable-next-line no-unused-vars + fetch: function(Ve) { + return p($, B.apply(g, arguments)); + } + }))), u({ global: !0, wrap: !0, forced: q }, { + Promise: $ + }), h($, C, !1, !0), l(C), se = b(C), u({ target: C, stat: !0, forced: q }, { + // `Promise.reject` method + // https://tc39.github.io/ecma262/#sec-promise.reject + reject: function(Ve) { + var Qe = j(this); + return Qe.reject.call(void 0, Ve), Qe.promise; + } + }), u({ target: C, stat: !0, forced: m || q }, { + // `Promise.resolve` method + // https://tc39.github.io/ecma262/#sec-promise.resolve + resolve: function(Ve) { + return p(m && this === se ? $ : this, Ve); + } + }), u({ target: C, stat: !0, forced: G }, { + // `Promise.all` method + // https://tc39.github.io/ecma262/#sec-promise.all + all: function(Ve) { + var Qe = this, tt = j(Qe), ae = tt.resolve, Re = tt.reject, be = F(function() { + var Ee = s(Qe.resolve), pe = [], Pe = 0, te = 1; + r(Ve, function(He) { + var it = Pe++, K = !1; + pe.push(void 0), te++, Ee.call(Qe, He).then(function(Me) { + K || (K = !0, pe[it] = Me, --te || ae(pe)); + }, Re); + }), --te || ae(pe); + }); + return be.error && Re(be.value), tt.promise; + }, + // `Promise.race` method + // https://tc39.github.io/ecma262/#sec-promise.race + race: function(Ve) { + var Qe = this, tt = j(Qe), ae = tt.reject, Re = F(function() { + var be = s(Qe.resolve); + r(Ve, function(Ee) { + be.call(Qe, Ee).then(tt.resolve, ae); + }); + }); + return Re.error && ae(Re.value), tt.promise; + } + }); + }, { "../internals/a-function": 219, "../internals/an-instance": 222, "../internals/check-correctness-of-iteration": 229, "../internals/classof-raw": 230, "../internals/engine-v8-version": 244, "../internals/export": 246, "../internals/get-built-in": 249, "../internals/global": 251, "../internals/host-report-errors": 254, "../internals/inspect-source": 258, "../internals/internal-state": 259, "../internals/is-forced": 262, "../internals/is-object": 263, "../internals/is-pure": 264, "../internals/iterate": 266, "../internals/microtask": 269, "../internals/native-promise-constructor": 270, "../internals/new-promise-capability": 273, "../internals/perform": 291, "../internals/promise-resolve": 292, "../internals/redefine": 294, "../internals/redefine-all": 293, "../internals/set-species": 297, "../internals/set-to-string-tag": 298, "../internals/species-constructor": 302, "../internals/task": 303, "../internals/well-known-symbol": 314 }], 324: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/to-absolute-index"), g = String.fromCharCode, b = String.fromCodePoint, w = !!b && b.length != 1; + u({ target: "String", stat: !0, forced: w }, { + fromCodePoint: function(y) { + for (var h = [], l = arguments.length, d = 0, s; l > d; ) { + if (s = +arguments[d++], m(s, 1114111) !== s) + throw RangeError(s + " is not a valid code point"); + h.push( + s < 65536 ? g(s) : g(((s -= 65536) >> 10) + 55296, s % 1024 + 56320) + ); + } + return h.join(""); + } + }); + }, { "../internals/export": 246, "../internals/to-absolute-index": 304 }], 325: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/not-a-regexp"), g = e("../internals/require-object-coercible"), b = e("../internals/correct-is-regexp-logic"); + u({ target: "String", proto: !0, forced: !b("includes") }, { + includes: function(f) { + return !!~String(g(this)).indexOf(m(f), arguments.length > 1 ? arguments[1] : void 0); + } + }); + }, { "../internals/correct-is-regexp-logic": 233, "../internals/export": 246, "../internals/not-a-regexp": 274, "../internals/require-object-coercible": 295 }], 326: [function(e, x, _) { + var u = e("../internals/define-well-known-symbol"); + u("asyncIterator"); + }, { "../internals/define-well-known-symbol": 239 }], 327: [function(e, x, _) { + var u = e("../internals/export"), m = e("../internals/global"), g = e("../internals/get-built-in"), b = e("../internals/is-pure"), w = e("../internals/descriptors"), f = e("../internals/native-symbol"), y = e("../internals/use-symbol-as-uid"), h = e("../internals/fails"), l = e("../internals/has"), d = e("../internals/is-array"), s = e("../internals/is-object"), v = e("../internals/an-object"), c = e("../internals/to-object"), a = e("../internals/to-indexed-object"), r = e("../internals/to-primitive"), t = e("../internals/create-property-descriptor"), i = e("../internals/object-create"), n = e("../internals/object-keys"), o = e("../internals/object-get-own-property-names"), p = e("../internals/object-get-own-property-names-external"), O = e("../internals/object-get-own-property-symbols"), P = e("../internals/object-get-own-property-descriptor"), F = e("../internals/object-define-property"), z = e("../internals/object-property-is-enumerable"), N = e("../internals/create-non-enumerable-property"), M = e("../internals/redefine"), I = e("../internals/shared"), R = e("../internals/shared-key"), C = e("../internals/hidden-keys"), E = e("../internals/uid"), A = e("../internals/well-known-symbol"), L = e("../internals/well-known-symbol-wrapped"), $ = e("../internals/define-well-known-symbol"), W = e("../internals/set-to-string-tag"), U = e("../internals/internal-state"), D = e("../internals/array-iteration").forEach, B = R("hidden"), j = "Symbol", V = "prototype", re = A("toPrimitive"), ee = U.set, ce = U.getterFor(j), ve = Object[V], ge = m.Symbol, oe = g("JSON", "stringify"), J = P.f, Q = F.f, he = p.f, ke = z.f, ne = I("symbols"), se = I("op-symbols"), Ce = I("string-to-symbol-registry"), q = I("symbol-to-string-registry"), G = I("wks"), Y = m.QObject, fe = !Y || !Y[V] || !Y[V].findChild, we = w && h(function() { + return i(Q({}, "a", { + get: function() { + return Q(this, "a", { value: 7 }).a; + } + })).a != 7; + }) ? function(ae, Re, be) { + var Ee = J(ve, Re); + Ee && delete ve[Re], Q(ae, Re, be), Ee && ae !== ve && Q(ve, Re, Ee); + } : Q, _e = function(ae, Re) { + var be = ne[ae] = i(ge[V]); + return ee(be, { + type: j, + tag: ae, + description: Re + }), w || (be.description = Re), be; + }, je = y ? function(ae) { + return typeof ae == "symbol"; + } : function(ae) { + return Object(ae) instanceof ge; + }, Ye = function(Re, be, Ee) { + Re === ve && Ye(se, be, Ee), v(Re); + var pe = r(be, !0); + return v(Ee), l(ne, pe) ? (Ee.enumerable ? (l(Re, B) && Re[B][pe] && (Re[B][pe] = !1), Ee = i(Ee, { enumerable: t(0, !1) })) : (l(Re, B) || Q(Re, B, t(1, {})), Re[B][pe] = !0), we(Re, pe, Ee)) : Q(Re, pe, Ee); + }, nt = function(Re, be) { + v(Re); + var Ee = a(be), pe = n(Ee).concat(Qe(Ee)); + return D(pe, function(Pe) { + (!w || ot.call(Ee, Pe)) && Ye(Re, Pe, Ee[Pe]); + }), Re; + }, ut = function(Re, be) { + return be === void 0 ? i(Re) : nt(i(Re), be); + }, ot = function(Re) { + var be = r(Re, !0), Ee = ke.call(this, be); + return this === ve && l(ne, be) && !l(se, be) ? !1 : Ee || !l(this, be) || !l(ne, be) || l(this, B) && this[B][be] ? Ee : !0; + }, Ue = function(Re, be) { + var Ee = a(Re), pe = r(be, !0); + if (!(Ee === ve && l(ne, pe) && !l(se, pe))) { + var Pe = J(Ee, pe); + return Pe && l(ne, pe) && !(l(Ee, B) && Ee[B][pe]) && (Pe.enumerable = !0), Pe; + } + }, Ve = function(Re) { + var be = he(a(Re)), Ee = []; + return D(be, function(pe) { + !l(ne, pe) && !l(C, pe) && Ee.push(pe); + }), Ee; + }, Qe = function(Re) { + var be = Re === ve, Ee = he(be ? se : a(Re)), pe = []; + return D(Ee, function(Pe) { + l(ne, Pe) && (!be || l(ve, Pe)) && pe.push(ne[Pe]); + }), pe; + }; + if (f || (ge = function() { + if (this instanceof ge) + throw TypeError("Symbol is not a constructor"); + var Re = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), be = E(Re), Ee = function(pe) { + this === ve && Ee.call(se, pe), l(this, B) && l(this[B], be) && (this[B][be] = !1), we(this, be, t(1, pe)); + }; + return w && fe && we(ve, be, { configurable: !0, set: Ee }), _e(be, Re); + }, M(ge[V], "toString", function() { + return ce(this).tag; + }), M(ge, "withoutSetter", function(ae) { + return _e(E(ae), ae); + }), z.f = ot, F.f = Ye, P.f = Ue, o.f = p.f = Ve, O.f = Qe, L.f = function(ae) { + return _e(A(ae), ae); + }, w && (Q(ge[V], "description", { + configurable: !0, + get: function() { + return ce(this).description; + } + }), b || M(ve, "propertyIsEnumerable", ot, { unsafe: !0 }))), u({ global: !0, wrap: !0, forced: !f, sham: !f }, { + Symbol: ge + }), D(n(G), function(ae) { + $(ae); + }), u({ target: j, stat: !0, forced: !f }, { + // `Symbol.for` method + // https://tc39.github.io/ecma262/#sec-symbol.for + for: function(ae) { + var Re = String(ae); + if (l(Ce, Re)) + return Ce[Re]; + var be = ge(Re); + return Ce[Re] = be, q[be] = Re, be; + }, + // `Symbol.keyFor` method + // https://tc39.github.io/ecma262/#sec-symbol.keyfor + keyFor: function(Re) { + if (!je(Re)) + throw TypeError(Re + " is not a symbol"); + if (l(q, Re)) + return q[Re]; + }, + useSetter: function() { + fe = !0; + }, + useSimple: function() { + fe = !1; + } + }), u({ target: "Object", stat: !0, forced: !f, sham: !w }, { + // `Object.create` method + // https://tc39.github.io/ecma262/#sec-object.create + create: ut, + // `Object.defineProperty` method + // https://tc39.github.io/ecma262/#sec-object.defineproperty + defineProperty: Ye, + // `Object.defineProperties` method + // https://tc39.github.io/ecma262/#sec-object.defineproperties + defineProperties: nt, + // `Object.getOwnPropertyDescriptor` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors + getOwnPropertyDescriptor: Ue + }), u({ target: "Object", stat: !0, forced: !f }, { + // `Object.getOwnPropertyNames` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertynames + getOwnPropertyNames: Ve, + // `Object.getOwnPropertySymbols` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols + getOwnPropertySymbols: Qe + }), u({ target: "Object", stat: !0, forced: h(function() { + O.f(1); + }) }, { + getOwnPropertySymbols: function(Re) { + return O.f(c(Re)); + } + }), oe) { + var tt = !f || h(function() { + var ae = ge(); + return oe([ae]) != "[null]" || oe({ a: ae }) != "{}" || oe(Object(ae)) != "{}"; + }); + u({ target: "JSON", stat: !0, forced: tt }, { + // eslint-disable-next-line no-unused-vars + stringify: function(Re, be, Ee) { + for (var pe = [Re], Pe = 1, te; arguments.length > Pe; ) + pe.push(arguments[Pe++]); + if (te = be, !(!s(be) && Re === void 0 || je(Re))) + return d(be) || (be = function(He, it) { + if (typeof te == "function" && (it = te.call(this, He, it)), !je(it)) + return it; + }), pe[1] = be, oe.apply(null, pe); + } + }); + } + ge[V][re] || N(ge[V], re, ge[V].valueOf), W(ge, j), C[B] = !0; + }, { "../internals/an-object": 223, "../internals/array-iteration": 225, "../internals/create-non-enumerable-property": 236, "../internals/create-property-descriptor": 237, "../internals/define-well-known-symbol": 239, "../internals/descriptors": 240, "../internals/export": 246, "../internals/fails": 247, "../internals/get-built-in": 249, "../internals/global": 251, "../internals/has": 252, "../internals/hidden-keys": 253, "../internals/internal-state": 259, "../internals/is-array": 261, "../internals/is-object": 263, "../internals/is-pure": 264, "../internals/native-symbol": 271, "../internals/object-create": 276, "../internals/object-define-property": 278, "../internals/object-get-own-property-descriptor": 279, "../internals/object-get-own-property-names": 281, "../internals/object-get-own-property-names-external": 280, "../internals/object-get-own-property-symbols": 282, "../internals/object-keys": 285, "../internals/object-property-is-enumerable": 286, "../internals/redefine": 294, "../internals/set-to-string-tag": 298, "../internals/shared": 301, "../internals/shared-key": 299, "../internals/to-indexed-object": 305, "../internals/to-object": 308, "../internals/to-primitive": 309, "../internals/uid": 311, "../internals/use-symbol-as-uid": 312, "../internals/well-known-symbol": 314, "../internals/well-known-symbol-wrapped": 313 }], 328: [function(e, x, _) { + (function(u) { + function m(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(p) { + return typeof p; + } : m = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, m(n); + } + function g(n) { + return Array.isArray ? Array.isArray(n) : i(n) === "[object Array]"; + } + _.isArray = g; + function b(n) { + return typeof n == "boolean"; + } + _.isBoolean = b; + function w(n) { + return n === null; + } + _.isNull = w; + function f(n) { + return n == null; + } + _.isNullOrUndefined = f; + function y(n) { + return typeof n == "number"; + } + _.isNumber = y; + function h(n) { + return typeof n == "string"; + } + _.isString = h; + function l(n) { + return m(n) === "symbol"; + } + _.isSymbol = l; + function d(n) { + return n === void 0; + } + _.isUndefined = d; + function s(n) { + return i(n) === "[object RegExp]"; + } + _.isRegExp = s; + function v(n) { + return m(n) === "object" && n !== null; + } + _.isObject = v; + function c(n) { + return i(n) === "[object Date]"; + } + _.isDate = c; + function a(n) { + return i(n) === "[object Error]" || n instanceof Error; + } + _.isError = a; + function r(n) { + return typeof n == "function"; + } + _.isFunction = r; + function t(n) { + return n === null || typeof n == "boolean" || typeof n == "number" || typeof n == "string" || m(n) === "symbol" || // ES6 symbol + typeof n == "undefined"; + } + _.isPrimitive = t, _.isBuffer = u.isBuffer; + function i(n) { + return Object.prototype.toString.call(n); + } + }).call(this, { isBuffer: e("../../is-buffer/index.js") }); + }, { "../../is-buffer/index.js": 388 }], 329: [function(e, x, _) { + (function(u) { + var m = e("elliptic"), g = e("bn.js"); + x.exports = function(h) { + return new w(h); + }; + var b = { + secp256k1: { + name: "secp256k1", + byteLength: 32 + }, + secp224r1: { + name: "p224", + byteLength: 28 + }, + prime256v1: { + name: "p256", + byteLength: 32 + }, + prime192v1: { + name: "p192", + byteLength: 24 + }, + ed25519: { + name: "ed25519", + byteLength: 32 + }, + secp384r1: { + name: "p384", + byteLength: 48 + }, + secp521r1: { + name: "p521", + byteLength: 66 + } + }; + b.p224 = b.secp224r1, b.p256 = b.secp256r1 = b.prime256v1, b.p192 = b.secp192r1 = b.prime192v1, b.p384 = b.secp384r1, b.p521 = b.secp521r1; + function w(y) { + this.curveType = b[y], this.curveType || (this.curveType = { + name: y + }), this.curve = new m.ec(this.curveType.name), this.keys = void 0; + } + w.prototype.generateKeys = function(y, h) { + return this.keys = this.curve.genKeyPair(), this.getPublicKey(y, h); + }, w.prototype.computeSecret = function(y, h, l) { + h = h || "utf8", u.isBuffer(y) || (y = new u(y, h)); + var d = this.curve.keyFromPublic(y).getPublic(), s = d.mul(this.keys.getPrivate()).getX(); + return f(s, l, this.curveType.byteLength); + }, w.prototype.getPublicKey = function(y, h) { + var l = this.keys.getPublic(h === "compressed", !0); + return h === "hybrid" && (l[l.length - 1] % 2 ? l[0] = 7 : l[0] = 6), f(l, y); + }, w.prototype.getPrivateKey = function(y) { + return f(this.keys.getPrivate(), y); + }, w.prototype.setPublicKey = function(y, h) { + return h = h || "utf8", u.isBuffer(y) || (y = new u(y, h)), this.keys._importPublic(y), this; + }, w.prototype.setPrivateKey = function(y, h) { + h = h || "utf8", u.isBuffer(y) || (y = new u(y, h)); + var l = new g(y); + return l = l.toString(16), this.keys = this.curve.genKeyPair(), this.keys._importPrivate(l), this; + }; + function f(y, h, l) { + Array.isArray(y) || (y = y.toArray()); + var d = new u(y); + if (l && d.length < l) { + var s = new u(l - d.length); + s.fill(0), d = u.concat([s, d]); + } + return h ? d.toString(h) : d; + } + }).call(this, e("buffer").Buffer); + }, { "bn.js": 330, buffer: 216, elliptic: 350 }], 330: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 331: [function(e, x, _) { + var u = e("inherits"), m = e("md5.js"), g = e("ripemd160"), b = e("sha.js"), w = e("cipher-base"); + function f(y) { + w.call(this, "digest"), this._hash = y; + } + u(f, w), f.prototype._update = function(y) { + this._hash.update(y); + }, f.prototype._final = function() { + return this._hash.digest(); + }, x.exports = function(h) { + return h = h.toLowerCase(), h === "md5" ? new m() : h === "rmd160" || h === "ripemd160" ? new g() : new f(b(h)); + }; + }, { "cipher-base": 218, inherits: 387, "md5.js": 434, ripemd160: 493, "sha.js": 499 }], 332: [function(e, x, _) { + var u = e("md5.js"); + x.exports = function(m) { + return new u().update(m).digest(); + }; + }, { "md5.js": 434 }], 333: [function(e, x, _) { + var u = e("inherits"), m = e("./legacy"), g = e("cipher-base"), b = e("safe-buffer").Buffer, w = e("create-hash/md5"), f = e("ripemd160"), y = e("sha.js"), h = b.alloc(128); + function l(d, s) { + g.call(this, "digest"), typeof s == "string" && (s = b.from(s)); + var v = d === "sha512" || d === "sha384" ? 128 : 64; + if (this._alg = d, this._key = s, s.length > v) { + var c = d === "rmd160" ? new f() : y(d); + s = c.update(s).digest(); + } else + s.length < v && (s = b.concat([s, h], v)); + for (var a = this._ipad = b.allocUnsafe(v), r = this._opad = b.allocUnsafe(v), t = 0; t < v; t++) + a[t] = s[t] ^ 54, r[t] = s[t] ^ 92; + this._hash = d === "rmd160" ? new f() : y(d), this._hash.update(a); + } + u(l, g), l.prototype._update = function(d) { + this._hash.update(d); + }, l.prototype._final = function() { + var d = this._hash.digest(), s = this._alg === "rmd160" ? new f() : y(this._alg); + return s.update(this._opad).update(d).digest(); + }, x.exports = function(s, v) { + return s = s.toLowerCase(), s === "rmd160" || s === "ripemd160" ? new l("rmd160", v) : s === "md5" ? new m(w, v) : new l(s, v); + }; + }, { "./legacy": 334, "cipher-base": 218, "create-hash/md5": 332, inherits: 387, ripemd160: 493, "safe-buffer": 494, "sha.js": 499 }], 334: [function(e, x, _) { + var u = e("inherits"), m = e("safe-buffer").Buffer, g = e("cipher-base"), b = m.alloc(128), w = 64; + function f(y, h) { + g.call(this, "digest"), typeof h == "string" && (h = m.from(h)), this._alg = y, this._key = h, h.length > w ? h = y(h) : h.length < w && (h = m.concat([h, b], w)); + for (var l = this._ipad = m.allocUnsafe(w), d = this._opad = m.allocUnsafe(w), s = 0; s < w; s++) + l[s] = h[s] ^ 54, d[s] = h[s] ^ 92; + this._hash = [l]; + } + u(f, g), f.prototype._update = function(y) { + this._hash.push(y); + }, f.prototype._final = function() { + var y = this._alg(m.concat(this._hash)); + return this._alg(m.concat([this._opad, y])); + }, x.exports = f; + }, { "cipher-base": 218, inherits: 387, "safe-buffer": 494 }], 335: [function(e, x, _) { + _.randomBytes = _.rng = _.pseudoRandomBytes = _.prng = e("randombytes"), _.createHash = _.Hash = e("create-hash"), _.createHmac = _.Hmac = e("create-hmac"); + var u = e("browserify-sign/algos"), m = Object.keys(u), g = ["sha1", "sha224", "sha256", "sha384", "sha512", "md5", "rmd160"].concat(m); + _.getHashes = function() { + return g; + }; + var b = e("pbkdf2"); + _.pbkdf2 = b.pbkdf2, _.pbkdf2Sync = b.pbkdf2Sync; + var w = e("browserify-cipher"); + _.Cipher = w.Cipher, _.createCipher = w.createCipher, _.Cipheriv = w.Cipheriv, _.createCipheriv = w.createCipheriv, _.Decipher = w.Decipher, _.createDecipher = w.createDecipher, _.Decipheriv = w.Decipheriv, _.createDecipheriv = w.createDecipheriv, _.getCiphers = w.getCiphers, _.listCiphers = w.listCiphers; + var f = e("diffie-hellman"); + _.DiffieHellmanGroup = f.DiffieHellmanGroup, _.createDiffieHellmanGroup = f.createDiffieHellmanGroup, _.getDiffieHellman = f.getDiffieHellman, _.createDiffieHellman = f.createDiffieHellman, _.DiffieHellman = f.DiffieHellman; + var y = e("browserify-sign"); + _.createSign = y.createSign, _.Sign = y.Sign, _.createVerify = y.createVerify, _.Verify = y.Verify, _.createECDH = e("create-ecdh"); + var h = e("public-encrypt"); + _.publicEncrypt = h.publicEncrypt, _.privateEncrypt = h.privateEncrypt, _.publicDecrypt = h.publicDecrypt, _.privateDecrypt = h.privateDecrypt; + var l = e("randomfill"); + _.randomFill = l.randomFill, _.randomFillSync = l.randomFillSync, _.createCredentials = function() { + throw new Error(["sorry, createCredentials is not implemented yet", "we accept pull requests", "https://github.com/crypto-browserify/crypto-browserify"].join(` +`)); + }, _.constants = { + DH_CHECK_P_NOT_SAFE_PRIME: 2, + DH_CHECK_P_NOT_PRIME: 1, + DH_UNABLE_TO_CHECK_GENERATOR: 4, + DH_NOT_SUITABLE_GENERATOR: 8, + NPN_ENABLED: 1, + ALPN_ENABLED: 1, + RSA_PKCS1_PADDING: 1, + RSA_SSLV23_PADDING: 2, + RSA_NO_PADDING: 3, + RSA_PKCS1_OAEP_PADDING: 4, + RSA_X931_PADDING: 5, + RSA_PKCS1_PSS_PADDING: 6, + POINT_CONVERSION_COMPRESSED: 2, + POINT_CONVERSION_UNCOMPRESSED: 4, + POINT_CONVERSION_HYBRID: 6 + }; + }, { "browserify-cipher": 203, "browserify-sign": 211, "browserify-sign/algos": 208, "create-ecdh": 329, "create-hash": 331, "create-hmac": 333, "diffie-hellman": 345, pbkdf2: 460, "public-encrypt": 468, randombytes: 475, randomfill: 476 }], 336: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + (function(m, g) { + (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs = g(); + })(void 0, function() { + var m = "millisecond", g = "second", b = "minute", w = "hour", f = "day", y = "week", h = "month", l = "quarter", d = "year", s = "date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/, c = /\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, a = function(M, I, R) { + var C = String(M); + return !C || C.length >= I ? M : "" + Array(I + 1 - C.length).join(R) + M; + }, r = { + s: a, + z: function(M) { + var I = -M.utcOffset(), R = Math.abs(I), C = Math.floor(R / 60), E = R % 60; + return (I <= 0 ? "+" : "-") + a(C, 2, "0") + ":" + a(E, 2, "0"); + }, + m: function N(M, I) { + if (M.date() < I.date()) + return -N(I, M); + var R = 12 * (I.year() - M.year()) + (I.month() - M.month()), C = M.add(R, h), E = I - C < 0, A = M.add(R + (E ? -1 : 1), h); + return +(-(R + (I - C) / (E ? C - A : A - C)) || 0); + }, + a: function(M) { + return M < 0 ? Math.ceil(M) || 0 : Math.floor(M); + }, + p: function(M) { + return { + M: h, + y: d, + w: y, + d: f, + D: s, + h: w, + m: b, + s: g, + ms: m, + Q: l + }[M] || String(M || "").toLowerCase().replace(/s$/, ""); + }, + u: function(M) { + return M === void 0; + } + }, t = { + name: "en", + weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), + months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") + }, i = "en", n = {}; + n[i] = t; + var o = function(M) { + return M instanceof F; + }, p = function(M, I, R) { + var C; + if (!M) + return i; + if (typeof M == "string") + n[M] && (C = M), I && (n[M] = I, C = M); + else { + var E = M.name; + n[E] = M, C = E; + } + return !R && C && (i = C), C || !R && i; + }, O = function(M, I) { + if (o(M)) + return M.clone(); + var R = u(I) == "object" ? I : {}; + return R.date = M, R.args = arguments, new F(R); + }, P = r; + P.l = p, P.i = o, P.w = function(N, M) { + return O(N, { + locale: M.$L, + utc: M.$u, + $offset: M.$offset + }); + }; + var F = function() { + function N(I) { + this.$L = this.$L || p(I.locale, null, !0), this.parse(I); + } + var M = N.prototype; + return M.parse = function(I) { + this.$d = function(R) { + var C = R.date, E = R.utc; + if (C === null) + return /* @__PURE__ */ new Date(NaN); + if (P.u(C)) + return /* @__PURE__ */ new Date(); + if (C instanceof Date) + return new Date(C); + if (typeof C == "string" && !/Z$/i.test(C)) { + var A = C.match(v); + if (A) { + var L = A[2] - 1 || 0, $ = (A[7] || "0").substring(0, 3); + return E ? new Date(Date.UTC(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $)) : new Date(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $); + } + } + return new Date(C); + }(I), this.init(); + }, M.init = function() { + var I = this.$d; + this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds(); + }, M.$utils = function() { + return P; + }, M.isValid = function() { + return this.$d.toString() !== "Invalid Date"; + }, M.isSame = function(I, R) { + var C = O(I); + return this.startOf(R) <= C && C <= this.endOf(R); + }, M.isAfter = function(I, R) { + return O(I) < this.startOf(R); + }, M.isBefore = function(I, R) { + return this.endOf(R) < O(I); + }, M.$g = function(I, R, C) { + return P.u(I) ? this[R] : this.set(C, I); + }, M.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, M.valueOf = function() { + return this.$d.getTime(); + }, M.startOf = function(I, R) { + var C = this, E = !!P.u(R) || R, A = P.p(I), L = function(ee, ce) { + var ve = P.w(C.$u ? Date.UTC(C.$y, ce, ee) : new Date(C.$y, ce, ee), C); + return E ? ve : ve.endOf(f); + }, $ = function(ee, ce) { + return P.w(C.toDate()[ee].apply(C.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), C); + }, W = this.$W, U = this.$M, D = this.$D, B = "set" + (this.$u ? "UTC" : ""); + switch (A) { + case d: + return E ? L(1, 0) : L(31, 11); + case h: + return E ? L(1, U) : L(0, U + 1); + case y: + var j = this.$locale().weekStart || 0, V = (W < j ? W + 7 : W) - j; + return L(E ? D - V : D + (6 - V), U); + case f: + case s: + return $(B + "Hours", 0); + case w: + return $(B + "Minutes", 1); + case b: + return $(B + "Seconds", 2); + case g: + return $(B + "Milliseconds", 3); + default: + return this.clone(); + } + }, M.endOf = function(I) { + return this.startOf(I, !1); + }, M.$set = function(I, R) { + var C, E = P.p(I), A = "set" + (this.$u ? "UTC" : ""), L = (C = {}, C[f] = A + "Date", C[s] = A + "Date", C[h] = A + "Month", C[d] = A + "FullYear", C[w] = A + "Hours", C[b] = A + "Minutes", C[g] = A + "Seconds", C[m] = A + "Milliseconds", C)[E], $ = E === f ? this.$D + (R - this.$W) : R; + if (E === h || E === d) { + var W = this.clone().set(s, 1); + W.$d[L]($), W.init(), this.$d = W.set(s, Math.min(this.$D, W.daysInMonth())).$d; + } else + L && this.$d[L]($); + return this.init(), this; + }, M.set = function(I, R) { + return this.clone().$set(I, R); + }, M.get = function(I) { + return this[P.p(I)](); + }, M.add = function(I, R) { + var C, E = this; + I = Number(I); + var A = P.p(R), L = function(D) { + var B = O(E); + return P.w(B.date(B.date() + Math.round(D * I)), E); + }; + if (A === h) + return this.set(h, this.$M + I); + if (A === d) + return this.set(d, this.$y + I); + if (A === f) + return L(1); + if (A === y) + return L(7); + var $ = (C = {}, C[b] = 6e4, C[w] = 36e5, C[g] = 1e3, C)[A] || 1, W = this.$d.getTime() + I * $; + return P.w(W, this); + }, M.subtract = function(I, R) { + return this.add(-1 * I, R); + }, M.format = function(I) { + var R = this; + if (!this.isValid()) + return "Invalid Date"; + var C = I || "YYYY-MM-DDTHH:mm:ssZ", E = P.z(this), A = this.$locale(), L = this.$H, $ = this.$m, W = this.$M, U = A.weekdays, D = A.months, B = function(ce, ve, ge, oe) { + return ce && (ce[ve] || ce(R, C)) || ge[ve].substr(0, oe); + }, j = function(ce) { + return P.s(L % 12 || 12, ce, "0"); + }, V = A.meridiem || function(ee, ce, ve) { + var ge = ee < 12 ? "AM" : "PM"; + return ve ? ge.toLowerCase() : ge; + }, re = { + YY: String(this.$y).slice(-2), + YYYY: this.$y, + M: W + 1, + MM: P.s(W + 1, 2, "0"), + MMM: B(A.monthsShort, W, D, 3), + MMMM: B(D, W), + D: this.$D, + DD: P.s(this.$D, 2, "0"), + d: String(this.$W), + dd: B(A.weekdaysMin, this.$W, U, 2), + ddd: B(A.weekdaysShort, this.$W, U, 3), + dddd: U[this.$W], + H: String(L), + HH: P.s(L, 2, "0"), + h: j(1), + hh: j(2), + a: V(L, $, !0), + A: V(L, $, !1), + m: String($), + mm: P.s($, 2, "0"), + s: String(this.$s), + ss: P.s(this.$s, 2, "0"), + SSS: P.s(this.$ms, 3, "0"), + Z: E + }; + return C.replace(c, function(ee, ce) { + return ce || re[ee] || E.replace(":", ""); + }); + }, M.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, M.diff = function(I, R, C) { + var E, A = P.p(R), L = O(I), $ = 6e4 * (L.utcOffset() - this.utcOffset()), W = this - L, U = P.m(this, L); + return U = (E = {}, E[d] = U / 12, E[h] = U, E[l] = U / 3, E[y] = (W - $) / 6048e5, E[f] = (W - $) / 864e5, E[w] = W / 36e5, E[b] = W / 6e4, E[g] = W / 1e3, E)[A] || W, C ? U : P.a(U); + }, M.daysInMonth = function() { + return this.endOf(h).$D; + }, M.$locale = function() { + return n[this.$L]; + }, M.locale = function(I, R) { + if (!I) + return this.$L; + var C = this.clone(), E = p(I, R, !0); + return E && (C.$L = E), C; + }, M.clone = function() { + return P.w(this.$d, this); + }, M.toDate = function() { + return new Date(this.valueOf()); + }, M.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, M.toISOString = function() { + return this.$d.toISOString(); + }, M.toString = function() { + return this.$d.toUTCString(); + }, N; + }(), z = F.prototype; + return O.prototype = z, [["$ms", m], ["$s", g], ["$m", b], ["$H", w], ["$W", f], ["$M", h], ["$y", d], ["$D", s]].forEach(function(N) { + z[N[1]] = function(M) { + return this.$g(M, N[0], N[1]); + }; + }), O.extend = function(N, M) { + return N(M, F, O), O; + }, O.locale = p, O.isDayjs = o, O.unix = function(N) { + return O(1e3 * N); + }, O.en = n[i], O.Ls = n, O; + }); + }, {}], 337: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + (function(m, g) { + (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs_plugin_customParseFormat = g(); + })(void 0, function() { + var m, g = /(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, b = /\d\d/, w = /\d\d?/, f = /\d*[^\s\d-:/()]+/, y = function(c) { + return function(a) { + this[c] = +a; + }; + }, h = [/[+-]\d\d:?\d\d/, function(v) { + var c, a; + (this.zone || (this.zone = {})).offset = (c = v.match(/([+-]|\d\d)/g), (a = 60 * c[1] + +c[2]) === 0 ? 0 : c[0] === "+" ? -a : a); + }], l = function(c) { + var a = m[c]; + return a && (a.indexOf ? a : a.s.concat(a.f)); + }, d = { + A: [/[AP]M/, function(v) { + this.afternoon = v === "PM"; + }], + a: [/[ap]m/, function(v) { + this.afternoon = v === "pm"; + }], + S: [/\d/, function(v) { + this.milliseconds = 100 * +v; + }], + SS: [b, function(v) { + this.milliseconds = 10 * +v; + }], + SSS: [/\d{3}/, function(v) { + this.milliseconds = +v; + }], + s: [w, y("seconds")], + ss: [w, y("seconds")], + m: [w, y("minutes")], + mm: [w, y("minutes")], + H: [w, y("hours")], + h: [w, y("hours")], + HH: [w, y("hours")], + hh: [w, y("hours")], + D: [w, y("day")], + DD: [b, y("day")], + Do: [f, function(v) { + var c = m.ordinal, a = v.match(/\d+/); + if (this.day = a[0], c) + for (var r = 1; r <= 31; r += 1) + c(r).replace(/\[|\]/g, "") === v && (this.day = r); + }], + M: [w, y("month")], + MM: [b, y("month")], + MMM: [f, function(v) { + var c = l("months"), a = (l("monthsShort") || c.map(function(r) { + return r.substr(0, 3); + })).indexOf(v) + 1; + if (a < 1) + throw new Error(); + this.month = a % 12 || a; + }], + MMMM: [f, function(v) { + var c = l("months").indexOf(v) + 1; + if (c < 1) + throw new Error(); + this.month = c % 12 || c; + }], + Y: [/[+-]?\d+/, y("year")], + YY: [b, function(v) { + v = +v, this.year = v + (v > 68 ? 1900 : 2e3); + }], + YYYY: [/\d{4}/, y("year")], + Z: h, + ZZ: h + }, s = function(c, a, r) { + try { + var t = function($) { + for (var W = $.match(g), U = W.length, D = 0; D < U; D += 1) { + var B = W[D], j = d[B], V = j && j[0], re = j && j[1]; + W[D] = re ? { + regex: V, + parser: re + } : B.replace(/^\[|\]$/g, ""); + } + return function(ee) { + for (var ce = {}, ve = 0, ge = 0; ve < U; ve += 1) { + var oe = W[ve]; + if (typeof oe == "string") + ge += oe.length; + else { + var J = oe.regex, Q = oe.parser, he = ee.substr(ge), ke = J.exec(he)[0]; + Q.call(ce, ke), ee = ee.replace(ke, ""); + } + } + return function(ne) { + var se = ne.afternoon; + if (se !== void 0) { + var Ce = ne.hours; + se ? Ce < 12 && (ne.hours += 12) : Ce === 12 && (ne.hours = 0), delete ne.afternoon; + } + }(ce), ce; + }; + }(a)(c), i = t.year, n = t.month, o = t.day, p = t.hours, O = t.minutes, P = t.seconds, F = t.milliseconds, z = t.zone, N = /* @__PURE__ */ new Date(), M = o || (i || n ? 1 : N.getDate()), I = i || N.getFullYear(), R = 0; + i && !n || (R = n > 0 ? n - 1 : N.getMonth()); + var C = p || 0, E = O || 0, A = P || 0, L = F || 0; + return z ? new Date(Date.UTC(I, R, M, C, E, A, L + 60 * z.offset * 1e3)) : r ? new Date(Date.UTC(I, R, M, C, E, A, L)) : new Date(I, R, M, C, E, A, L); + } catch ($) { + return /* @__PURE__ */ new Date(""); + } + }; + return function(v, c, a) { + var r = c.prototype, t = r.parse; + r.parse = function(i) { + var n = i.date, o = i.utc, p = i.args; + this.$u = o; + var O = p[1]; + if (typeof O == "string") { + var P = p[2] === !0, F = p[3] === !0, z = P || F, N = p[2]; + F && (N = p[2]), P || (m = N ? a.Ls[N] : this.$locale()), this.$d = s(n, O, o), this.init(), N && N !== !0 && (this.$L = this.locale(N).$L), z && n !== this.format(O) && (this.$d = /* @__PURE__ */ new Date("")); + } else if (O instanceof Array) + for (var M = O.length, I = 1; I <= M; I += 1) { + p[1] = O[I - 1]; + var R = a.apply(this, p); + if (R.isValid()) { + this.$d = R.$d, this.$L = R.$L, this.init(); + break; + } + I === M && (this.$d = /* @__PURE__ */ new Date("")); + } + else + t.call(this, i); + }; + }; + }); + }, {}], 338: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + (function(m, g) { + (typeof _ == "undefined" ? "undefined" : u(_)) == "object" && typeof x != "undefined" ? x.exports = g() : m.dayjs_plugin_utc = g(); + })(void 0, function() { + return function(m, g, b) { + var w = (/* @__PURE__ */ new Date()).getTimezoneOffset(), f = g.prototype; + b.utc = function(c) { + return new g({ + date: c, + utc: !0, + args: arguments + }); + }, f.utc = function() { + return b(this.toDate(), { + locale: this.$L, + utc: !0 + }); + }, f.local = function() { + return b(this.toDate(), { + locale: this.$L, + utc: !1 + }); + }; + var y = f.parse; + f.parse = function(c) { + c.utc && (this.$u = !0), this.$utils().u(c.$offset) || (this.$offset = c.$offset), y.call(this, c); + }; + var h = f.init; + f.init = function() { + if (this.$u) { + var c = this.$d; + this.$y = c.getUTCFullYear(), this.$M = c.getUTCMonth(), this.$D = c.getUTCDate(), this.$W = c.getUTCDay(), this.$H = c.getUTCHours(), this.$m = c.getUTCMinutes(), this.$s = c.getUTCSeconds(), this.$ms = c.getUTCMilliseconds(); + } else + h.call(this); + }; + var l = f.utcOffset; + f.utcOffset = function(c, a) { + var r = this.$utils().u; + if (r(c)) + return this.$u ? 0 : r(this.$offset) ? l.call(this) : this.$offset; + var t = Math.abs(c) <= 16 ? 60 * c : c, i = this; + return a ? (i.$offset = t, i.$u = c === 0, i) : (c !== 0 ? (i = this.local().add(t + w, "minute")).$offset = t : i = this.utc(), i); + }; + var d = f.format; + f.format = function(c) { + var a = c || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : ""); + return d.call(this, a); + }, f.valueOf = function() { + var c = this.$utils().u(this.$offset) ? 0 : this.$offset + w; + return this.$d.valueOf() - 6e4 * c; + }, f.isUTC = function() { + return !!this.$u; + }, f.toISOString = function() { + return this.toDate().toISOString(); + }, f.toString = function() { + return this.toDate().toUTCString(); + }; + var s = f.toDate; + f.toDate = function(c) { + return c === "s" && this.$offset ? b(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : s.call(this); + }; + var v = f.diff; + f.diff = function(c, a, r) { + var t = this.local(), i = b(c).local(); + return v.call(t, i, a, r); + }; + }; + }); + }, {}], 339: [function(e, x, _) { + _.utils = e("./des/utils"), _.Cipher = e("./des/cipher"), _.DES = e("./des/des"), _.CBC = e("./des/cbc"), _.EDE = e("./des/ede"); + }, { "./des/cbc": 340, "./des/cipher": 341, "./des/des": 342, "./des/ede": 343, "./des/utils": 344 }], 340: [function(e, x, _) { + var u = e("minimalistic-assert"), m = e("inherits"), g = {}; + function b(f) { + u.equal(f.length, 8, "Invalid IV length"), this.iv = new Array(8); + for (var y = 0; y < this.iv.length; y++) + this.iv[y] = f[y]; + } + function w(f) { + function y(s) { + f.call(this, s), this._cbcInit(); + } + m(y, f); + for (var h = Object.keys(g), l = 0; l < h.length; l++) { + var d = h[l]; + y.prototype[d] = g[d]; + } + return y.create = function(v) { + return new y(v); + }, y; + } + _.instantiate = w, g._cbcInit = function() { + var y = new b(this.options.iv); + this._cbcState = y; + }, g._update = function(y, h, l, d) { + var s = this._cbcState, v = this.constructor.super_.prototype, c = s.iv; + if (this.type === "encrypt") { + for (var a = 0; a < this.blockSize; a++) + c[a] ^= y[h + a]; + v._update.call(this, c, 0, l, d); + for (var a = 0; a < this.blockSize; a++) + c[a] = l[d + a]; + } else { + v._update.call(this, y, h, l, d); + for (var a = 0; a < this.blockSize; a++) + l[d + a] ^= c[a]; + for (var a = 0; a < this.blockSize; a++) + c[a] = y[h + a]; + } + }; + }, { inherits: 387, "minimalistic-assert": 437 }], 341: [function(e, x, _) { + var u = e("minimalistic-assert"); + function m(g) { + this.options = g, this.type = this.options.type, this.blockSize = 8, this._init(), this.buffer = new Array(this.blockSize), this.bufferOff = 0; + } + x.exports = m, m.prototype._init = function() { + }, m.prototype.update = function(b) { + return b.length === 0 ? [] : this.type === "decrypt" ? this._updateDecrypt(b) : this._updateEncrypt(b); + }, m.prototype._buffer = function(b, w) { + for (var f = Math.min(this.buffer.length - this.bufferOff, b.length - w), y = 0; y < f; y++) + this.buffer[this.bufferOff + y] = b[w + y]; + return this.bufferOff += f, f; + }, m.prototype._flushBuffer = function(b, w) { + return this._update(this.buffer, 0, b, w), this.bufferOff = 0, this.blockSize; + }, m.prototype._updateEncrypt = function(b) { + var w = 0, f = 0, y = (this.bufferOff + b.length) / this.blockSize | 0, h = new Array(y * this.blockSize); + this.bufferOff !== 0 && (w += this._buffer(b, w), this.bufferOff === this.buffer.length && (f += this._flushBuffer(h, f))); + for (var l = b.length - (b.length - w) % this.blockSize; w < l; w += this.blockSize) + this._update(b, w, h, f), f += this.blockSize; + for (; w < b.length; w++, this.bufferOff++) + this.buffer[this.bufferOff] = b[w]; + return h; + }, m.prototype._updateDecrypt = function(b) { + for (var w = 0, f = 0, y = Math.ceil((this.bufferOff + b.length) / this.blockSize) - 1, h = new Array(y * this.blockSize); y > 0; y--) + w += this._buffer(b, w), f += this._flushBuffer(h, f); + return w += this._buffer(b, w), h; + }, m.prototype.final = function(b) { + var w; + b && (w = this.update(b)); + var f; + return this.type === "encrypt" ? f = this._finalEncrypt() : f = this._finalDecrypt(), w ? w.concat(f) : f; + }, m.prototype._pad = function(b, w) { + if (w === 0) + return !1; + for (; w < b.length; ) + b[w++] = 0; + return !0; + }, m.prototype._finalEncrypt = function() { + if (!this._pad(this.buffer, this.bufferOff)) + return []; + var b = new Array(this.blockSize); + return this._update(this.buffer, 0, b, 0), b; + }, m.prototype._unpad = function(b) { + return b; + }, m.prototype._finalDecrypt = function() { + u.equal(this.bufferOff, this.blockSize, "Not enough data to decrypt"); + var b = new Array(this.blockSize); + return this._flushBuffer(b, 0), this._unpad(b); + }; + }, { "minimalistic-assert": 437 }], 342: [function(e, x, _) { + var u = e("minimalistic-assert"), m = e("inherits"), g = e("./utils"), b = e("./cipher"); + function w() { + this.tmp = new Array(2), this.keys = null; + } + function f(h) { + b.call(this, h); + var l = new w(); + this._desState = l, this.deriveKeys(l, h.key); + } + m(f, b), x.exports = f, f.create = function(l) { + return new f(l); + }; + var y = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]; + f.prototype.deriveKeys = function(l, d) { + l.keys = new Array(16 * 2), u.equal(d.length, this.blockSize, "Invalid key length"); + var s = g.readUInt32BE(d, 0), v = g.readUInt32BE(d, 4); + g.pc1(s, v, l.tmp, 0), s = l.tmp[0], v = l.tmp[1]; + for (var c = 0; c < l.keys.length; c += 2) { + var a = y[c >>> 1]; + s = g.r28shl(s, a), v = g.r28shl(v, a), g.pc2(s, v, l.keys, c); + } + }, f.prototype._update = function(l, d, s, v) { + var c = this._desState, a = g.readUInt32BE(l, d), r = g.readUInt32BE(l, d + 4); + g.ip(a, r, c.tmp, 0), a = c.tmp[0], r = c.tmp[1], this.type === "encrypt" ? this._encrypt(c, a, r, c.tmp, 0) : this._decrypt(c, a, r, c.tmp, 0), a = c.tmp[0], r = c.tmp[1], g.writeUInt32BE(s, a, v), g.writeUInt32BE(s, r, v + 4); + }, f.prototype._pad = function(l, d) { + for (var s = l.length - d, v = d; v < l.length; v++) + l[v] = s; + return !0; + }, f.prototype._unpad = function(l) { + for (var d = l[l.length - 1], s = l.length - d; s < l.length; s++) + u.equal(l[s], d); + return l.slice(0, l.length - d); + }, f.prototype._encrypt = function(l, d, s, v, c) { + for (var a = d, r = s, t = 0; t < l.keys.length; t += 2) { + var i = l.keys[t], n = l.keys[t + 1]; + g.expand(r, l.tmp, 0), i ^= l.tmp[0], n ^= l.tmp[1]; + var o = g.substitute(i, n), p = g.permute(o), O = r; + r = (a ^ p) >>> 0, a = O; + } + g.rip(r, a, v, c); + }, f.prototype._decrypt = function(l, d, s, v, c) { + for (var a = s, r = d, t = l.keys.length - 2; t >= 0; t -= 2) { + var i = l.keys[t], n = l.keys[t + 1]; + g.expand(a, l.tmp, 0), i ^= l.tmp[0], n ^= l.tmp[1]; + var o = g.substitute(i, n), p = g.permute(o), O = a; + a = (r ^ p) >>> 0, r = O; + } + g.rip(a, r, v, c); + }; + }, { "./cipher": 341, "./utils": 344, inherits: 387, "minimalistic-assert": 437 }], 343: [function(e, x, _) { + var u = e("minimalistic-assert"), m = e("inherits"), g = e("./cipher"), b = e("./des"); + function w(y, h) { + u.equal(h.length, 24, "Invalid key length"); + var l = h.slice(0, 8), d = h.slice(8, 16), s = h.slice(16, 24); + y === "encrypt" ? this.ciphers = [b.create({ + type: "encrypt", + key: l + }), b.create({ + type: "decrypt", + key: d + }), b.create({ + type: "encrypt", + key: s + })] : this.ciphers = [b.create({ + type: "decrypt", + key: s + }), b.create({ + type: "encrypt", + key: d + }), b.create({ + type: "decrypt", + key: l + })]; + } + function f(y) { + g.call(this, y); + var h = new w(this.type, this.options.key); + this._edeState = h; + } + m(f, g), x.exports = f, f.create = function(h) { + return new f(h); + }, f.prototype._update = function(h, l, d, s) { + var v = this._edeState; + v.ciphers[0]._update(h, l, d, s), v.ciphers[1]._update(d, s, d, s), v.ciphers[2]._update(d, s, d, s); + }, f.prototype._pad = b.prototype._pad, f.prototype._unpad = b.prototype._unpad; + }, { "./cipher": 341, "./des": 342, inherits: 387, "minimalistic-assert": 437 }], 344: [function(e, x, _) { + _.readUInt32BE = function(w, f) { + var y = w[0 + f] << 24 | w[1 + f] << 16 | w[2 + f] << 8 | w[3 + f]; + return y >>> 0; + }, _.writeUInt32BE = function(w, f, y) { + w[0 + y] = f >>> 24, w[1 + y] = f >>> 16 & 255, w[2 + y] = f >>> 8 & 255, w[3 + y] = f & 255; + }, _.ip = function(w, f, y, h) { + for (var l = 0, d = 0, s = 6; s >= 0; s -= 2) { + for (var v = 0; v <= 24; v += 8) + l <<= 1, l |= f >>> v + s & 1; + for (var v = 0; v <= 24; v += 8) + l <<= 1, l |= w >>> v + s & 1; + } + for (var s = 6; s >= 0; s -= 2) { + for (var v = 1; v <= 25; v += 8) + d <<= 1, d |= f >>> v + s & 1; + for (var v = 1; v <= 25; v += 8) + d <<= 1, d |= w >>> v + s & 1; + } + y[h + 0] = l >>> 0, y[h + 1] = d >>> 0; + }, _.rip = function(w, f, y, h) { + for (var l = 0, d = 0, s = 0; s < 4; s++) + for (var v = 24; v >= 0; v -= 8) + l <<= 1, l |= f >>> v + s & 1, l <<= 1, l |= w >>> v + s & 1; + for (var s = 4; s < 8; s++) + for (var v = 24; v >= 0; v -= 8) + d <<= 1, d |= f >>> v + s & 1, d <<= 1, d |= w >>> v + s & 1; + y[h + 0] = l >>> 0, y[h + 1] = d >>> 0; + }, _.pc1 = function(w, f, y, h) { + for (var l = 0, d = 0, s = 7; s >= 5; s--) { + for (var v = 0; v <= 24; v += 8) + l <<= 1, l |= f >> v + s & 1; + for (var v = 0; v <= 24; v += 8) + l <<= 1, l |= w >> v + s & 1; + } + for (var v = 0; v <= 24; v += 8) + l <<= 1, l |= f >> v + s & 1; + for (var s = 1; s <= 3; s++) { + for (var v = 0; v <= 24; v += 8) + d <<= 1, d |= f >> v + s & 1; + for (var v = 0; v <= 24; v += 8) + d <<= 1, d |= w >> v + s & 1; + } + for (var v = 0; v <= 24; v += 8) + d <<= 1, d |= w >> v + s & 1; + y[h + 0] = l >>> 0, y[h + 1] = d >>> 0; + }, _.r28shl = function(w, f) { + return w << f & 268435455 | w >>> 28 - f; + }; + var u = [ + // inL => outL + 14, + 11, + 17, + 4, + 27, + 23, + 25, + 0, + 13, + 22, + 7, + 18, + 5, + 9, + 16, + 24, + 2, + 20, + 12, + 21, + 1, + 8, + 15, + 26, + // inR => outR + 15, + 4, + 25, + 19, + 9, + 1, + 26, + 16, + 5, + 11, + 23, + 8, + 12, + 7, + 17, + 0, + 22, + 3, + 10, + 14, + 6, + 20, + 27, + 24 + ]; + _.pc2 = function(w, f, y, h) { + for (var l = 0, d = 0, s = u.length >>> 1, v = 0; v < s; v++) + l <<= 1, l |= w >>> u[v] & 1; + for (var v = s; v < u.length; v++) + d <<= 1, d |= f >>> u[v] & 1; + y[h + 0] = l >>> 0, y[h + 1] = d >>> 0; + }, _.expand = function(w, f, y) { + var h = 0, l = 0; + h = (w & 1) << 5 | w >>> 27; + for (var d = 23; d >= 15; d -= 4) + h <<= 6, h |= w >>> d & 63; + for (var d = 11; d >= 3; d -= 4) + l |= w >>> d & 63, l <<= 6; + l |= (w & 31) << 1 | w >>> 31, f[y + 0] = h >>> 0, f[y + 1] = l >>> 0; + }; + var m = [14, 0, 4, 15, 13, 7, 1, 4, 2, 14, 15, 2, 11, 13, 8, 1, 3, 10, 10, 6, 6, 12, 12, 11, 5, 9, 9, 5, 0, 3, 7, 8, 4, 15, 1, 12, 14, 8, 8, 2, 13, 4, 6, 9, 2, 1, 11, 7, 15, 5, 12, 11, 9, 3, 7, 14, 3, 10, 10, 0, 5, 6, 0, 13, 15, 3, 1, 13, 8, 4, 14, 7, 6, 15, 11, 2, 3, 8, 4, 14, 9, 12, 7, 0, 2, 1, 13, 10, 12, 6, 0, 9, 5, 11, 10, 5, 0, 13, 14, 8, 7, 10, 11, 1, 10, 3, 4, 15, 13, 4, 1, 2, 5, 11, 8, 6, 12, 7, 6, 12, 9, 0, 3, 5, 2, 14, 15, 9, 10, 13, 0, 7, 9, 0, 14, 9, 6, 3, 3, 4, 15, 6, 5, 10, 1, 2, 13, 8, 12, 5, 7, 14, 11, 12, 4, 11, 2, 15, 8, 1, 13, 1, 6, 10, 4, 13, 9, 0, 8, 6, 15, 9, 3, 8, 0, 7, 11, 4, 1, 15, 2, 14, 12, 3, 5, 11, 10, 5, 14, 2, 7, 12, 7, 13, 13, 8, 14, 11, 3, 5, 0, 6, 6, 15, 9, 0, 10, 3, 1, 4, 2, 7, 8, 2, 5, 12, 11, 1, 12, 10, 4, 14, 15, 9, 10, 3, 6, 15, 9, 0, 0, 6, 12, 10, 11, 1, 7, 13, 13, 8, 15, 9, 1, 4, 3, 5, 14, 11, 5, 12, 2, 7, 8, 2, 4, 14, 2, 14, 12, 11, 4, 2, 1, 12, 7, 4, 10, 7, 11, 13, 6, 1, 8, 5, 5, 0, 3, 15, 15, 10, 13, 3, 0, 9, 14, 8, 9, 6, 4, 11, 2, 8, 1, 12, 11, 7, 10, 1, 13, 14, 7, 2, 8, 13, 15, 6, 9, 15, 12, 0, 5, 9, 6, 10, 3, 4, 0, 5, 14, 3, 12, 10, 1, 15, 10, 4, 15, 2, 9, 7, 2, 12, 6, 9, 8, 5, 0, 6, 13, 1, 3, 13, 4, 14, 14, 0, 7, 11, 5, 3, 11, 8, 9, 4, 14, 3, 15, 2, 5, 12, 2, 9, 8, 5, 12, 15, 3, 10, 7, 11, 0, 14, 4, 1, 10, 7, 1, 6, 13, 0, 11, 8, 6, 13, 4, 13, 11, 0, 2, 11, 14, 7, 15, 4, 0, 9, 8, 1, 13, 10, 3, 14, 12, 3, 9, 5, 7, 12, 5, 2, 10, 15, 6, 8, 1, 6, 1, 6, 4, 11, 11, 13, 13, 8, 12, 1, 3, 4, 7, 10, 14, 7, 10, 9, 15, 5, 6, 0, 8, 15, 0, 14, 5, 2, 9, 3, 2, 12, 13, 1, 2, 15, 8, 13, 4, 8, 6, 10, 15, 3, 11, 7, 1, 4, 10, 12, 9, 5, 3, 6, 14, 11, 5, 0, 0, 14, 12, 9, 7, 2, 7, 2, 11, 1, 4, 14, 1, 7, 9, 4, 12, 10, 14, 8, 2, 13, 0, 15, 6, 12, 10, 9, 13, 0, 15, 3, 3, 5, 5, 6, 8, 11]; + _.substitute = function(w, f) { + for (var y = 0, h = 0; h < 4; h++) { + var l = w >>> 18 - h * 6 & 63, d = m[h * 64 + l]; + y <<= 4, y |= d; + } + for (var h = 0; h < 4; h++) { + var l = f >>> 18 - h * 6 & 63, d = m[4 * 64 + h * 64 + l]; + y <<= 4, y |= d; + } + return y >>> 0; + }; + var g = [16, 25, 12, 11, 3, 20, 4, 15, 31, 17, 9, 6, 27, 14, 1, 22, 30, 24, 8, 18, 0, 5, 29, 23, 13, 19, 2, 26, 10, 21, 28, 7]; + _.permute = function(w) { + for (var f = 0, y = 0; y < g.length; y++) + f <<= 1, f |= w >>> g[y] & 1; + return f >>> 0; + }, _.padSplit = function(w, f, y) { + for (var h = w.toString(2); h.length < f; ) + h = "0" + h; + for (var l = [], d = 0; d < f; d += y) + l.push(h.slice(d, d + y)); + return l.join(" "); + }; + }, {}], 345: [function(e, x, _) { + (function(u) { + var m = e("./lib/generatePrime"), g = e("./lib/primes.json"), b = e("./lib/dh"); + function w(h) { + var l = new u(g[h].prime, "hex"), d = new u(g[h].gen, "hex"); + return new b(l, d); + } + var f = { + binary: !0, + hex: !0, + base64: !0 + }; + function y(h, l, d, s) { + return u.isBuffer(l) || f[l] === void 0 ? y(h, "binary", l, d) : (l = l || "binary", s = s || "binary", d = d || new u([2]), u.isBuffer(d) || (d = new u(d, s)), typeof h == "number" ? new b(m(h, d), d, !0) : (u.isBuffer(h) || (h = new u(h, l)), new b(h, d, !0))); + } + _.DiffieHellmanGroup = _.createDiffieHellmanGroup = _.getDiffieHellman = w, _.createDiffieHellman = _.DiffieHellman = y; + }).call(this, e("buffer").Buffer); + }, { "./lib/dh": 346, "./lib/generatePrime": 347, "./lib/primes.json": 348, buffer: 216 }], 346: [function(e, x, _) { + (function(u) { + var m = e("bn.js"), g = e("miller-rabin"), b = new g(), w = new m(24), f = new m(11), y = new m(10), h = new m(3), l = new m(7), d = e("./generatePrime"), s = e("randombytes"); + x.exports = t; + function v(n, o) { + return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this._pub = new m(n), this; + } + function c(n, o) { + return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this._priv = new m(n), this; + } + var a = {}; + function r(n, o) { + var p = o.toString("hex"), O = [p, n.toString(16)].join("_"); + if (O in a) + return a[O]; + var P = 0; + if (n.isEven() || !d.simpleSieve || !d.fermatTest(n) || !b.test(n)) + return P += 1, p === "02" || p === "05" ? P += 8 : P += 4, a[O] = P, P; + b.test(n.shrn(1)) || (P += 2); + var F; + switch (p) { + case "02": + n.mod(w).cmp(f) && (P += 8); + break; + case "05": + F = n.mod(y), F.cmp(h) && F.cmp(l) && (P += 8); + break; + default: + P += 4; + } + return a[O] = P, P; + } + function t(n, o, p) { + this.setGenerator(o), this.__prime = new m(n), this._prime = m.mont(this.__prime), this._primeLen = n.length, this._pub = void 0, this._priv = void 0, this._primeCode = void 0, p ? (this.setPublicKey = v, this.setPrivateKey = c) : this._primeCode = 8; + } + Object.defineProperty(t.prototype, "verifyError", { + enumerable: !0, + get: function() { + return typeof this._primeCode != "number" && (this._primeCode = r(this.__prime, this.__gen)), this._primeCode; + } + }), t.prototype.generateKeys = function() { + return this._priv || (this._priv = new m(s(this._primeLen))), this._pub = this._gen.toRed(this._prime).redPow(this._priv).fromRed(), this.getPublicKey(); + }, t.prototype.computeSecret = function(n) { + n = new m(n), n = n.toRed(this._prime); + var o = n.redPow(this._priv).fromRed(), p = new u(o.toArray()), O = this.getPrime(); + if (p.length < O.length) { + var P = new u(O.length - p.length); + P.fill(0), p = u.concat([P, p]); + } + return p; + }, t.prototype.getPublicKey = function(o) { + return i(this._pub, o); + }, t.prototype.getPrivateKey = function(o) { + return i(this._priv, o); + }, t.prototype.getPrime = function(n) { + return i(this.__prime, n); + }, t.prototype.getGenerator = function(n) { + return i(this._gen, n); + }, t.prototype.setGenerator = function(n, o) { + return o = o || "utf8", u.isBuffer(n) || (n = new u(n, o)), this.__gen = n, this._gen = new m(n), this; + }; + function i(n, o) { + var p = new u(n.toArray()); + return o ? p.toString(o) : p; + } + }).call(this, e("buffer").Buffer); + }, { "./generatePrime": 347, "bn.js": 349, buffer: 216, "miller-rabin": 435, randombytes: 475 }], 347: [function(e, x, _) { + var u = e("randombytes"); + x.exports = i, i.simpleSieve = r, i.fermatTest = t; + var m = e("bn.js"), g = new m(24), b = e("miller-rabin"), w = new b(), f = new m(1), y = new m(2), h = new m(5); + new m(16), new m(8); + var l = new m(10), d = new m(3); + new m(7); + var s = new m(11), v = new m(4); + new m(12); + var c = null; + function a() { + if (c !== null) + return c; + var n = 1048576, o = []; + o[0] = 2; + for (var p = 1, O = 3; O < n; O += 2) { + for (var P = Math.ceil(Math.sqrt(O)), F = 0; F < p && o[F] <= P && O % o[F] !== 0; F++) + ; + p !== F && o[F] <= P || (o[p++] = O); + } + return c = o, o; + } + function r(n) { + for (var o = a(), p = 0; p < o.length; p++) + if (n.modn(o[p]) === 0) + return n.cmpn(o[p]) === 0; + return !0; + } + function t(n) { + var o = m.mont(n); + return y.toRed(o).redPow(n.subn(1)).fromRed().cmpn(1) === 0; + } + function i(n, o) { + if (n < 16) + return o === 2 || o === 5 ? new m([140, 123]) : new m([140, 39]); + o = new m(o); + for (var p, O; ; ) { + for (p = new m(u(Math.ceil(n / 8))); p.bitLength() > n; ) + p.ishrn(1); + if (p.isEven() && p.iadd(f), p.testn(1) || p.iadd(y), o.cmp(y)) { + if (!o.cmp(h)) + for (; p.mod(l).cmp(d); ) + p.iadd(v); + } else + for (; p.mod(g).cmp(s); ) + p.iadd(v); + if (O = p.shrn(1), r(O) && r(p) && t(O) && t(p) && w.test(O) && w.test(p)) + return p; + } + } + }, { "bn.js": 349, "miller-rabin": 435, randombytes: 475 }], 348: [function(e, x, _) { + x.exports = { + modp1: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff" + }, + modp2: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff" + }, + modp5: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff" + }, + modp14: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff" + }, + modp15: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff" + }, + modp16: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff" + }, + modp17: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff" + }, + modp18: { + gen: "02", + prime: "ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff" + } + }; + }, {}], 349: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 350: [function(e, x, _) { + var u = _; + u.version = e("../package.json").version, u.utils = e("./elliptic/utils"), u.rand = e("brorand"), u.curve = e("./elliptic/curve"), u.curves = e("./elliptic/curves"), u.ec = e("./elliptic/ec"), u.eddsa = e("./elliptic/eddsa"); + }, { "../package.json": 366, "./elliptic/curve": 353, "./elliptic/curves": 356, "./elliptic/ec": 357, "./elliptic/eddsa": 360, "./elliptic/utils": 364, brorand: 184 }], 351: [function(e, x, _) { + var u = e("bn.js"), m = e("../utils"), g = m.getNAF, b = m.getJSF, w = m.assert; + function f(h, l) { + this.type = h, this.p = new u(l.p, 16), this.red = l.prime ? u.red(l.prime) : u.mont(this.p), this.zero = new u(0).toRed(this.red), this.one = new u(1).toRed(this.red), this.two = new u(2).toRed(this.red), this.n = l.n && new u(l.n, 16), this.g = l.g && this.pointFromJSON(l.g, l.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0; + var d = this.n && this.p.div(this.n); + !d || d.cmpn(100) > 0 ? this.redN = null : (this._maxwellTrick = !0, this.redN = this.n.toRed(this.red)); + } + x.exports = f, f.prototype.point = function() { + throw new Error("Not implemented"); + }, f.prototype.validate = function() { + throw new Error("Not implemented"); + }, f.prototype._fixedNafMul = function(l, d) { + w(l.precomputed); + var s = l._getDoubles(), v = g(d, 1, this._bitLength), c = (1 << s.step + 1) - (s.step % 2 === 0 ? 2 : 1); + c /= 3; + for (var a = [], r = 0; r < v.length; r += s.step) { + for (var t = 0, d = r + s.step - 1; d >= r; d--) + t = (t << 1) + v[d]; + a.push(t); + } + for (var i = this.jpoint(null, null, null), n = this.jpoint(null, null, null), o = c; o > 0; o--) { + for (var r = 0; r < a.length; r++) { + var t = a[r]; + t === o ? n = n.mixedAdd(s.points[r]) : t === -o && (n = n.mixedAdd(s.points[r].neg())); + } + i = i.add(n); + } + return i.toP(); + }, f.prototype._wnafMul = function(l, d) { + var s = 4, v = l._getNAFPoints(s); + s = v.wnd; + for (var c = v.points, a = g(d, s, this._bitLength), r = this.jpoint(null, null, null), t = a.length - 1; t >= 0; t--) { + for (var d = 0; t >= 0 && a[t] === 0; t--) + d++; + if (t >= 0 && d++, r = r.dblp(d), t < 0) + break; + var i = a[t]; + w(i !== 0), l.type === "affine" ? i > 0 ? r = r.mixedAdd(c[i - 1 >> 1]) : r = r.mixedAdd(c[-i - 1 >> 1].neg()) : i > 0 ? r = r.add(c[i - 1 >> 1]) : r = r.add(c[-i - 1 >> 1].neg()); + } + return l.type === "affine" ? r.toP() : r; + }, f.prototype._wnafMulAdd = function(l, d, s, v, c) { + for (var a = this._wnafT1, r = this._wnafT2, t = this._wnafT3, i = 0, n = 0; n < v; n++) { + var o = d[n], p = o._getNAFPoints(l); + a[n] = p.wnd, r[n] = p.points; + } + for (var n = v - 1; n >= 1; n -= 2) { + var O = n - 1, P = n; + if (a[O] !== 1 || a[P] !== 1) { + t[O] = g(s[O], a[O], this._bitLength), t[P] = g(s[P], a[P], this._bitLength), i = Math.max(t[O].length, i), i = Math.max(t[P].length, i); + continue; + } + var F = [ + d[O], + /* 1 */ + null, + /* 3 */ + null, + /* 5 */ + d[P] + /* 7 */ + ]; + d[O].y.cmp(d[P].y) === 0 ? (F[1] = d[O].add(d[P]), F[2] = d[O].toJ().mixedAdd(d[P].neg())) : d[O].y.cmp(d[P].y.redNeg()) === 0 ? (F[1] = d[O].toJ().mixedAdd(d[P]), F[2] = d[O].add(d[P].neg())) : (F[1] = d[O].toJ().mixedAdd(d[P]), F[2] = d[O].toJ().mixedAdd(d[P].neg())); + var z = [ + -3, + /* -1 -1 */ + -1, + /* -1 0 */ + -5, + /* -1 1 */ + -7, + /* 0 -1 */ + 0, + /* 0 0 */ + 7, + /* 0 1 */ + 5, + /* 1 -1 */ + 1, + /* 1 0 */ + 3 + /* 1 1 */ + ], N = b(s[O], s[P]); + i = Math.max(N[0].length, i), t[O] = new Array(i), t[P] = new Array(i); + for (var M = 0; M < i; M++) { + var I = N[0][M] | 0, R = N[1][M] | 0; + t[O][M] = z[(I + 1) * 3 + (R + 1)], t[P][M] = 0, r[O] = F; + } + } + for (var C = this.jpoint(null, null, null), E = this._wnafT4, n = i; n >= 0; n--) { + for (var A = 0; n >= 0; ) { + for (var L = !0, M = 0; M < v; M++) + E[M] = t[M][n] | 0, E[M] !== 0 && (L = !1); + if (!L) + break; + A++, n--; + } + if (n >= 0 && A++, C = C.dblp(A), n < 0) + break; + for (var M = 0; M < v; M++) { + var $ = E[M], o; + $ !== 0 && ($ > 0 ? o = r[M][$ - 1 >> 1] : $ < 0 && (o = r[M][-$ - 1 >> 1].neg()), o.type === "affine" ? C = C.mixedAdd(o) : C = C.add(o)); + } + } + for (var n = 0; n < v; n++) + r[n] = null; + return c ? C : C.toP(); + }; + function y(h, l) { + this.curve = h, this.type = l, this.precomputed = null; + } + f.BasePoint = y, y.prototype.eq = function() { + throw new Error("Not implemented"); + }, y.prototype.validate = function() { + return this.curve.validate(this); + }, f.prototype.decodePoint = function(l, d) { + l = m.toArray(l, d); + var s = this.p.byteLength(); + if ((l[0] === 4 || l[0] === 6 || l[0] === 7) && l.length - 1 === 2 * s) { + l[0] === 6 ? w(l[l.length - 1] % 2 === 0) : l[0] === 7 && w(l[l.length - 1] % 2 === 1); + var v = this.point(l.slice(1, 1 + s), l.slice(1 + s, 1 + 2 * s)); + return v; + } else if ((l[0] === 2 || l[0] === 3) && l.length - 1 === s) + return this.pointFromX(l.slice(1, 1 + s), l[0] === 3); + throw new Error("Unknown point format"); + }, y.prototype.encodeCompressed = function(l) { + return this.encode(l, !0); + }, y.prototype._encode = function(l) { + var d = this.curve.p.byteLength(), s = this.getX().toArray("be", d); + return l ? [this.getY().isEven() ? 2 : 3].concat(s) : [4].concat(s, this.getY().toArray("be", d)); + }, y.prototype.encode = function(l, d) { + return m.encode(this._encode(d), l); + }, y.prototype.precompute = function(l) { + if (this.precomputed) + return this; + var d = { + doubles: null, + naf: null, + beta: null + }; + return d.naf = this._getNAFPoints(8), d.doubles = this._getDoubles(4, l), d.beta = this._getBeta(), this.precomputed = d, this; + }, y.prototype._hasDoubles = function(l) { + if (!this.precomputed) + return !1; + var d = this.precomputed.doubles; + return d ? d.points.length >= Math.ceil((l.bitLength() + 1) / d.step) : !1; + }, y.prototype._getDoubles = function(l, d) { + if (this.precomputed && this.precomputed.doubles) + return this.precomputed.doubles; + for (var s = [this], v = this, c = 0; c < d; c += l) { + for (var a = 0; a < l; a++) + v = v.dbl(); + s.push(v); + } + return { + step: l, + points: s + }; + }, y.prototype._getNAFPoints = function(l) { + if (this.precomputed && this.precomputed.naf) + return this.precomputed.naf; + for (var d = [this], s = (1 << l) - 1, v = s === 1 ? null : this.dbl(), c = 1; c < s; c++) + d[c] = d[c - 1].add(v); + return { + wnd: l, + points: d + }; + }, y.prototype._getBeta = function() { + return null; + }, y.prototype.dblp = function(l) { + for (var d = this, s = 0; s < l; s++) + d = d.dbl(); + return d; + }; + }, { "../utils": 364, "bn.js": 365 }], 352: [function(e, x, _) { + var u = e("../utils"), m = e("bn.js"), g = e("inherits"), b = e("./base"), w = u.assert; + function f(h) { + this.twisted = (h.a | 0) !== 1, this.mOneA = this.twisted && (h.a | 0) === -1, this.extended = this.mOneA, b.call(this, "edwards", h), this.a = new m(h.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new m(h.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new m(h.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), w(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (h.c | 0) === 1; + } + g(f, b), x.exports = f, f.prototype._mulA = function(l) { + return this.mOneA ? l.redNeg() : this.a.redMul(l); + }, f.prototype._mulC = function(l) { + return this.oneC ? l : this.c.redMul(l); + }, f.prototype.jpoint = function(l, d, s, v) { + return this.point(l, d, s, v); + }, f.prototype.pointFromX = function(l, d) { + l = new m(l, 16), l.red || (l = l.toRed(this.red)); + var s = l.redSqr(), v = this.c2.redSub(this.a.redMul(s)), c = this.one.redSub(this.c2.redMul(this.d).redMul(s)), a = v.redMul(c.redInvm()), r = a.redSqrt(); + if (r.redSqr().redSub(a).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var t = r.fromRed().isOdd(); + return (d && !t || !d && t) && (r = r.redNeg()), this.point(l, r); + }, f.prototype.pointFromY = function(l, d) { + l = new m(l, 16), l.red || (l = l.toRed(this.red)); + var s = l.redSqr(), v = s.redSub(this.c2), c = s.redMul(this.d).redMul(this.c2).redSub(this.a), a = v.redMul(c.redInvm()); + if (a.cmp(this.zero) === 0) { + if (d) + throw new Error("invalid point"); + return this.point(this.zero, l); + } + var r = a.redSqrt(); + if (r.redSqr().redSub(a).cmp(this.zero) !== 0) + throw new Error("invalid point"); + return r.fromRed().isOdd() !== d && (r = r.redNeg()), this.point(r, l); + }, f.prototype.validate = function(l) { + if (l.isInfinity()) + return !0; + l.normalize(); + var d = l.x.redSqr(), s = l.y.redSqr(), v = d.redMul(this.a).redAdd(s), c = this.c2.redMul(this.one.redAdd(this.d.redMul(d).redMul(s))); + return v.cmp(c) === 0; + }; + function y(h, l, d, s, v) { + b.BasePoint.call(this, h, "projective"), l === null && d === null && s === null ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new m(l, 16), this.y = new m(d, 16), this.z = s ? new m(s, 16) : this.curve.one, this.t = v && new m(v, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm())))); + } + g(y, b.BasePoint), f.prototype.pointFromJSON = function(l) { + return y.fromJSON(this, l); + }, f.prototype.point = function(l, d, s, v) { + return new y(this, l, d, s, v); + }, y.fromJSON = function(l, d) { + return new y(l, d[0], d[1], d[2]); + }, y.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, y.prototype.isInfinity = function() { + return this.x.cmpn(0) === 0 && (this.y.cmp(this.z) === 0 || this.zOne && this.y.cmp(this.curve.c) === 0); + }, y.prototype._extDbl = function() { + var l = this.x.redSqr(), d = this.y.redSqr(), s = this.z.redSqr(); + s = s.redIAdd(s); + var v = this.curve._mulA(l), c = this.x.redAdd(this.y).redSqr().redISub(l).redISub(d), a = v.redAdd(d), r = a.redSub(s), t = v.redSub(d), i = c.redMul(r), n = a.redMul(t), o = c.redMul(t), p = r.redMul(a); + return this.curve.point(i, n, p, o); + }, y.prototype._projDbl = function() { + var l = this.x.redAdd(this.y).redSqr(), d = this.x.redSqr(), s = this.y.redSqr(), v, c, a; + if (this.curve.twisted) { + var r = this.curve._mulA(d), t = r.redAdd(s); + if (this.zOne) + v = l.redSub(d).redSub(s).redMul(t.redSub(this.curve.two)), c = t.redMul(r.redSub(s)), a = t.redSqr().redSub(t).redSub(t); + else { + var i = this.z.redSqr(), n = t.redSub(i).redISub(i); + v = l.redSub(d).redISub(s).redMul(n), c = t.redMul(r.redSub(s)), a = t.redMul(n); + } + } else { + var r = d.redAdd(s), i = this.curve._mulC(this.z).redSqr(), n = r.redSub(i).redSub(i); + v = this.curve._mulC(l.redISub(r)).redMul(n), c = this.curve._mulC(r).redMul(d.redISub(s)), a = r.redMul(n); + } + return this.curve.point(v, c, a); + }, y.prototype.dbl = function() { + return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl(); + }, y.prototype._extAdd = function(l) { + var d = this.y.redSub(this.x).redMul(l.y.redSub(l.x)), s = this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)), v = this.t.redMul(this.curve.dd).redMul(l.t), c = this.z.redMul(l.z.redAdd(l.z)), a = s.redSub(d), r = c.redSub(v), t = c.redAdd(v), i = s.redAdd(d), n = a.redMul(r), o = t.redMul(i), p = a.redMul(i), O = r.redMul(t); + return this.curve.point(n, o, O, p); + }, y.prototype._projAdd = function(l) { + var d = this.z.redMul(l.z), s = d.redSqr(), v = this.x.redMul(l.x), c = this.y.redMul(l.y), a = this.curve.d.redMul(v).redMul(c), r = s.redSub(a), t = s.redAdd(a), i = this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(v).redISub(c), n = d.redMul(r).redMul(i), o, p; + return this.curve.twisted ? (o = d.redMul(t).redMul(c.redSub(this.curve._mulA(v))), p = r.redMul(t)) : (o = d.redMul(t).redMul(c.redSub(v)), p = this.curve._mulC(r).redMul(t)), this.curve.point(n, o, p); + }, y.prototype.add = function(l) { + return this.isInfinity() ? l : l.isInfinity() ? this : this.curve.extended ? this._extAdd(l) : this._projAdd(l); + }, y.prototype.mul = function(l) { + return this._hasDoubles(l) ? this.curve._fixedNafMul(this, l) : this.curve._wnafMul(this, l); + }, y.prototype.mulAdd = function(l, d, s) { + return this.curve._wnafMulAdd(1, [this, d], [l, s], 2, !1); + }, y.prototype.jmulAdd = function(l, d, s) { + return this.curve._wnafMulAdd(1, [this, d], [l, s], 2, !0); + }, y.prototype.normalize = function() { + if (this.zOne) + return this; + var l = this.z.redInvm(); + return this.x = this.x.redMul(l), this.y = this.y.redMul(l), this.t && (this.t = this.t.redMul(l)), this.z = this.curve.one, this.zOne = !0, this; + }, y.prototype.neg = function() { + return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg()); + }, y.prototype.getX = function() { + return this.normalize(), this.x.fromRed(); + }, y.prototype.getY = function() { + return this.normalize(), this.y.fromRed(); + }, y.prototype.eq = function(l) { + return this === l || this.getX().cmp(l.getX()) === 0 && this.getY().cmp(l.getY()) === 0; + }, y.prototype.eqXToP = function(l) { + var d = l.toRed(this.curve.red).redMul(this.z); + if (this.x.cmp(d) === 0) + return !0; + for (var s = l.clone(), v = this.curve.redN.redMul(this.z); ; ) { + if (s.iadd(this.curve.n), s.cmp(this.curve.p) >= 0) + return !1; + if (d.redIAdd(v), this.x.cmp(d) === 0) + return !0; + } + }, y.prototype.toP = y.prototype.normalize, y.prototype.mixedAdd = y.prototype.add; + }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 353: [function(e, x, _) { + var u = _; + u.base = e("./base"), u.short = e("./short"), u.mont = e("./mont"), u.edwards = e("./edwards"); + }, { "./base": 351, "./edwards": 352, "./mont": 354, "./short": 355 }], 354: [function(e, x, _) { + var u = e("bn.js"), m = e("inherits"), g = e("./base"), b = e("../utils"); + function w(y) { + g.call(this, "mont", y), this.a = new u(y.a, 16).toRed(this.red), this.b = new u(y.b, 16).toRed(this.red), this.i4 = new u(4).toRed(this.red).redInvm(), this.two = new u(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two)); + } + m(w, g), x.exports = w, w.prototype.validate = function(h) { + var l = h.normalize().x, d = l.redSqr(), s = d.redMul(l).redAdd(d.redMul(this.a)).redAdd(l), v = s.redSqrt(); + return v.redSqr().cmp(s) === 0; + }; + function f(y, h, l) { + g.BasePoint.call(this, y, "projective"), h === null && l === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new u(h, 16), this.z = new u(l, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red))); + } + m(f, g.BasePoint), w.prototype.decodePoint = function(h, l) { + return this.point(b.toArray(h, l), 1); + }, w.prototype.point = function(h, l) { + return new f(this, h, l); + }, w.prototype.pointFromJSON = function(h) { + return f.fromJSON(this, h); + }, f.prototype.precompute = function() { + }, f.prototype._encode = function() { + return this.getX().toArray("be", this.curve.p.byteLength()); + }, f.fromJSON = function(h, l) { + return new f(h, l[0], l[1] || h.one); + }, f.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, f.prototype.isInfinity = function() { + return this.z.cmpn(0) === 0; + }, f.prototype.dbl = function() { + var h = this.x.redAdd(this.z), l = h.redSqr(), d = this.x.redSub(this.z), s = d.redSqr(), v = l.redSub(s), c = l.redMul(s), a = v.redMul(s.redAdd(this.curve.a24.redMul(v))); + return this.curve.point(c, a); + }, f.prototype.add = function() { + throw new Error("Not supported on Montgomery curve"); + }, f.prototype.diffAdd = function(h, l) { + var d = this.x.redAdd(this.z), s = this.x.redSub(this.z), v = h.x.redAdd(h.z), c = h.x.redSub(h.z), a = c.redMul(d), r = v.redMul(s), t = l.z.redMul(a.redAdd(r).redSqr()), i = l.x.redMul(a.redISub(r).redSqr()); + return this.curve.point(t, i); + }, f.prototype.mul = function(h) { + for (var l = h.clone(), d = this, s = this.curve.point(null, null), v = this, c = []; l.cmpn(0) !== 0; l.iushrn(1)) + c.push(l.andln(1)); + for (var a = c.length - 1; a >= 0; a--) + c[a] === 0 ? (d = d.diffAdd(s, v), s = s.dbl()) : (s = d.diffAdd(s, v), d = d.dbl()); + return s; + }, f.prototype.mulAdd = function() { + throw new Error("Not supported on Montgomery curve"); + }, f.prototype.jumlAdd = function() { + throw new Error("Not supported on Montgomery curve"); + }, f.prototype.eq = function(h) { + return this.getX().cmp(h.getX()) === 0; + }, f.prototype.normalize = function() { + return this.x = this.x.redMul(this.z.redInvm()), this.z = this.curve.one, this; + }, f.prototype.getX = function() { + return this.normalize(), this.x.fromRed(); + }; + }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 355: [function(e, x, _) { + var u = e("../utils"), m = e("bn.js"), g = e("inherits"), b = e("./base"), w = u.assert; + function f(l) { + b.call(this, "short", l), this.a = new m(l.a, 16).toRed(this.red), this.b = new m(l.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(l), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4); + } + g(f, b), x.exports = f, f.prototype._getEndomorphism = function(d) { + if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) { + var s, v; + if (d.beta) + s = new m(d.beta, 16).toRed(this.red); + else { + var c = this._getEndoRoots(this.p); + s = c[0].cmp(c[1]) < 0 ? c[0] : c[1], s = s.toRed(this.red); + } + if (d.lambda) + v = new m(d.lambda, 16); + else { + var a = this._getEndoRoots(this.n); + this.g.mul(a[0]).x.cmp(this.g.x.redMul(s)) === 0 ? v = a[0] : (v = a[1], w(this.g.mul(v).x.cmp(this.g.x.redMul(s)) === 0)); + } + var r; + return d.basis ? r = d.basis.map(function(t) { + return { + a: new m(t.a, 16), + b: new m(t.b, 16) + }; + }) : r = this._getEndoBasis(v), { + beta: s, + lambda: v, + basis: r + }; + } + }, f.prototype._getEndoRoots = function(d) { + var s = d === this.p ? this.red : m.mont(d), v = new m(2).toRed(s).redInvm(), c = v.redNeg(), a = new m(3).toRed(s).redNeg().redSqrt().redMul(v), r = c.redAdd(a).fromRed(), t = c.redSub(a).fromRed(); + return [r, t]; + }, f.prototype._getEndoBasis = function(d) { + for (var s = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), v = d, c = this.n.clone(), a = new m(1), r = new m(0), t = new m(0), i = new m(1), n, o, p, O, P, F, z, N = 0, M, I; v.cmpn(0) !== 0; ) { + var R = c.div(v); + M = c.sub(R.mul(v)), I = t.sub(R.mul(a)); + var C = i.sub(R.mul(r)); + if (!p && M.cmp(s) < 0) + n = z.neg(), o = a, p = M.neg(), O = I; + else if (p && ++N === 2) + break; + z = M, c = v, v = M, t = a, a = I, i = r, r = C; + } + P = M.neg(), F = I; + var E = p.sqr().add(O.sqr()), A = P.sqr().add(F.sqr()); + return A.cmp(E) >= 0 && (P = n, F = o), p.negative && (p = p.neg(), O = O.neg()), P.negative && (P = P.neg(), F = F.neg()), [{ + a: p, + b: O + }, { + a: P, + b: F + }]; + }, f.prototype._endoSplit = function(d) { + var s = this.endo.basis, v = s[0], c = s[1], a = c.b.mul(d).divRound(this.n), r = v.b.neg().mul(d).divRound(this.n), t = a.mul(v.a), i = r.mul(c.a), n = a.mul(v.b), o = r.mul(c.b), p = d.sub(t).sub(i), O = n.add(o).neg(); + return { + k1: p, + k2: O + }; + }, f.prototype.pointFromX = function(d, s) { + d = new m(d, 16), d.red || (d = d.toRed(this.red)); + var v = d.redSqr().redMul(d).redIAdd(d.redMul(this.a)).redIAdd(this.b), c = v.redSqrt(); + if (c.redSqr().redSub(v).cmp(this.zero) !== 0) + throw new Error("invalid point"); + var a = c.fromRed().isOdd(); + return (s && !a || !s && a) && (c = c.redNeg()), this.point(d, c); + }, f.prototype.validate = function(d) { + if (d.inf) + return !0; + var s = d.x, v = d.y, c = this.a.redMul(s), a = s.redSqr().redMul(s).redIAdd(c).redIAdd(this.b); + return v.redSqr().redISub(a).cmpn(0) === 0; + }, f.prototype._endoWnafMulAdd = function(d, s, v) { + for (var c = this._endoWnafT1, a = this._endoWnafT2, r = 0; r < d.length; r++) { + var t = this._endoSplit(s[r]), i = d[r], n = i._getBeta(); + t.k1.negative && (t.k1.ineg(), i = i.neg(!0)), t.k2.negative && (t.k2.ineg(), n = n.neg(!0)), c[r * 2] = i, c[r * 2 + 1] = n, a[r * 2] = t.k1, a[r * 2 + 1] = t.k2; + } + for (var o = this._wnafMulAdd(1, c, a, r * 2, v), p = 0; p < r * 2; p++) + c[p] = null, a[p] = null; + return o; + }; + function y(l, d, s, v) { + b.BasePoint.call(this, l, "affine"), d === null && s === null ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new m(d, 16), this.y = new m(s, 16), v && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = !1); + } + g(y, b.BasePoint), f.prototype.point = function(d, s, v) { + return new y(this, d, s, v); + }, f.prototype.pointFromJSON = function(d, s) { + return y.fromJSON(this, d, s); + }, y.prototype._getBeta = function() { + if (this.curve.endo) { + var d = this.precomputed; + if (d && d.beta) + return d.beta; + var s = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y); + if (d) { + var v = this.curve, c = function(r) { + return v.point(r.x.redMul(v.endo.beta), r.y); + }; + d.beta = s, s.precomputed = { + beta: null, + naf: d.naf && { + wnd: d.naf.wnd, + points: d.naf.points.map(c) + }, + doubles: d.doubles && { + step: d.doubles.step, + points: d.doubles.points.map(c) + } + }; + } + return s; + } + }, y.prototype.toJSON = function() { + return this.precomputed ? [this.x, this.y, this.precomputed && { + doubles: this.precomputed.doubles && { + step: this.precomputed.doubles.step, + points: this.precomputed.doubles.points.slice(1) + }, + naf: this.precomputed.naf && { + wnd: this.precomputed.naf.wnd, + points: this.precomputed.naf.points.slice(1) + } + }] : [this.x, this.y]; + }, y.fromJSON = function(d, s, v) { + typeof s == "string" && (s = JSON.parse(s)); + var c = d.point(s[0], s[1], v); + if (!s[2]) + return c; + function a(t) { + return d.point(t[0], t[1], v); + } + var r = s[2]; + return c.precomputed = { + beta: null, + doubles: r.doubles && { + step: r.doubles.step, + points: [c].concat(r.doubles.points.map(a)) + }, + naf: r.naf && { + wnd: r.naf.wnd, + points: [c].concat(r.naf.points.map(a)) + } + }, c; + }, y.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, y.prototype.isInfinity = function() { + return this.inf; + }, y.prototype.add = function(d) { + if (this.inf) + return d; + if (d.inf) + return this; + if (this.eq(d)) + return this.dbl(); + if (this.neg().eq(d)) + return this.curve.point(null, null); + if (this.x.cmp(d.x) === 0) + return this.curve.point(null, null); + var s = this.y.redSub(d.y); + s.cmpn(0) !== 0 && (s = s.redMul(this.x.redSub(d.x).redInvm())); + var v = s.redSqr().redISub(this.x).redISub(d.x), c = s.redMul(this.x.redSub(v)).redISub(this.y); + return this.curve.point(v, c); + }, y.prototype.dbl = function() { + if (this.inf) + return this; + var d = this.y.redAdd(this.y); + if (d.cmpn(0) === 0) + return this.curve.point(null, null); + var s = this.curve.a, v = this.x.redSqr(), c = d.redInvm(), a = v.redAdd(v).redIAdd(v).redIAdd(s).redMul(c), r = a.redSqr().redISub(this.x.redAdd(this.x)), t = a.redMul(this.x.redSub(r)).redISub(this.y); + return this.curve.point(r, t); + }, y.prototype.getX = function() { + return this.x.fromRed(); + }, y.prototype.getY = function() { + return this.y.fromRed(); + }, y.prototype.mul = function(d) { + return d = new m(d, 16), this.isInfinity() ? this : this._hasDoubles(d) ? this.curve._fixedNafMul(this, d) : this.curve.endo ? this.curve._endoWnafMulAdd([this], [d]) : this.curve._wnafMul(this, d); + }, y.prototype.mulAdd = function(d, s, v) { + var c = [this, s], a = [d, v]; + return this.curve.endo ? this.curve._endoWnafMulAdd(c, a) : this.curve._wnafMulAdd(1, c, a, 2); + }, y.prototype.jmulAdd = function(d, s, v) { + var c = [this, s], a = [d, v]; + return this.curve.endo ? this.curve._endoWnafMulAdd(c, a, !0) : this.curve._wnafMulAdd(1, c, a, 2, !0); + }, y.prototype.eq = function(d) { + return this === d || this.inf === d.inf && (this.inf || this.x.cmp(d.x) === 0 && this.y.cmp(d.y) === 0); + }, y.prototype.neg = function(d) { + if (this.inf) + return this; + var s = this.curve.point(this.x, this.y.redNeg()); + if (d && this.precomputed) { + var v = this.precomputed, c = function(r) { + return r.neg(); + }; + s.precomputed = { + naf: v.naf && { + wnd: v.naf.wnd, + points: v.naf.points.map(c) + }, + doubles: v.doubles && { + step: v.doubles.step, + points: v.doubles.points.map(c) + } + }; + } + return s; + }, y.prototype.toJ = function() { + if (this.inf) + return this.curve.jpoint(null, null, null); + var d = this.curve.jpoint(this.x, this.y, this.curve.one); + return d; + }; + function h(l, d, s, v) { + b.BasePoint.call(this, l, "jacobian"), d === null && s === null && v === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new m(0)) : (this.x = new m(d, 16), this.y = new m(s, 16), this.z = new m(v, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one; + } + g(h, b.BasePoint), f.prototype.jpoint = function(d, s, v) { + return new h(this, d, s, v); + }, h.prototype.toP = function() { + if (this.isInfinity()) + return this.curve.point(null, null); + var d = this.z.redInvm(), s = d.redSqr(), v = this.x.redMul(s), c = this.y.redMul(s).redMul(d); + return this.curve.point(v, c); + }, h.prototype.neg = function() { + return this.curve.jpoint(this.x, this.y.redNeg(), this.z); + }, h.prototype.add = function(d) { + if (this.isInfinity()) + return d; + if (d.isInfinity()) + return this; + var s = d.z.redSqr(), v = this.z.redSqr(), c = this.x.redMul(s), a = d.x.redMul(v), r = this.y.redMul(s.redMul(d.z)), t = d.y.redMul(v.redMul(this.z)), i = c.redSub(a), n = r.redSub(t); + if (i.cmpn(0) === 0) + return n.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); + var o = i.redSqr(), p = o.redMul(i), O = c.redMul(o), P = n.redSqr().redIAdd(p).redISub(O).redISub(O), F = n.redMul(O.redISub(P)).redISub(r.redMul(p)), z = this.z.redMul(d.z).redMul(i); + return this.curve.jpoint(P, F, z); + }, h.prototype.mixedAdd = function(d) { + if (this.isInfinity()) + return d.toJ(); + if (d.isInfinity()) + return this; + var s = this.z.redSqr(), v = this.x, c = d.x.redMul(s), a = this.y, r = d.y.redMul(s).redMul(this.z), t = v.redSub(c), i = a.redSub(r); + if (t.cmpn(0) === 0) + return i.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); + var n = t.redSqr(), o = n.redMul(t), p = v.redMul(n), O = i.redSqr().redIAdd(o).redISub(p).redISub(p), P = i.redMul(p.redISub(O)).redISub(a.redMul(o)), F = this.z.redMul(t); + return this.curve.jpoint(O, P, F); + }, h.prototype.dblp = function(d) { + if (d === 0) + return this; + if (this.isInfinity()) + return this; + if (!d) + return this.dbl(); + if (this.curve.zeroA || this.curve.threeA) { + for (var s = this, v = 0; v < d; v++) + s = s.dbl(); + return s; + } + for (var c = this.curve.a, a = this.curve.tinv, r = this.x, t = this.y, i = this.z, n = i.redSqr().redSqr(), o = t.redAdd(t), v = 0; v < d; v++) { + var p = r.redSqr(), O = o.redSqr(), P = O.redSqr(), F = p.redAdd(p).redIAdd(p).redIAdd(c.redMul(n)), z = r.redMul(O), N = F.redSqr().redISub(z.redAdd(z)), M = z.redISub(N), I = F.redMul(M); + I = I.redIAdd(I).redISub(P); + var R = o.redMul(i); + v + 1 < d && (n = n.redMul(P)), r = N, i = R, o = I; + } + return this.curve.jpoint(r, o.redMul(a), i); + }, h.prototype.dbl = function() { + return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl(); + }, h.prototype._zeroDbl = function() { + var d, s, v; + if (this.zOne) { + var c = this.x.redSqr(), a = this.y.redSqr(), r = a.redSqr(), t = this.x.redAdd(a).redSqr().redISub(c).redISub(r); + t = t.redIAdd(t); + var i = c.redAdd(c).redIAdd(c), n = i.redSqr().redISub(t).redISub(t), o = r.redIAdd(r); + o = o.redIAdd(o), o = o.redIAdd(o), d = n, s = i.redMul(t.redISub(n)).redISub(o), v = this.y.redAdd(this.y); + } else { + var p = this.x.redSqr(), O = this.y.redSqr(), P = O.redSqr(), F = this.x.redAdd(O).redSqr().redISub(p).redISub(P); + F = F.redIAdd(F); + var z = p.redAdd(p).redIAdd(p), N = z.redSqr(), M = P.redIAdd(P); + M = M.redIAdd(M), M = M.redIAdd(M), d = N.redISub(F).redISub(F), s = z.redMul(F.redISub(d)).redISub(M), v = this.y.redMul(this.z), v = v.redIAdd(v); + } + return this.curve.jpoint(d, s, v); + }, h.prototype._threeDbl = function() { + var d, s, v; + if (this.zOne) { + var c = this.x.redSqr(), a = this.y.redSqr(), r = a.redSqr(), t = this.x.redAdd(a).redSqr().redISub(c).redISub(r); + t = t.redIAdd(t); + var i = c.redAdd(c).redIAdd(c).redIAdd(this.curve.a), n = i.redSqr().redISub(t).redISub(t); + d = n; + var o = r.redIAdd(r); + o = o.redIAdd(o), o = o.redIAdd(o), s = i.redMul(t.redISub(n)).redISub(o), v = this.y.redAdd(this.y); + } else { + var p = this.z.redSqr(), O = this.y.redSqr(), P = this.x.redMul(O), F = this.x.redSub(p).redMul(this.x.redAdd(p)); + F = F.redAdd(F).redIAdd(F); + var z = P.redIAdd(P); + z = z.redIAdd(z); + var N = z.redAdd(z); + d = F.redSqr().redISub(N), v = this.y.redAdd(this.z).redSqr().redISub(O).redISub(p); + var M = O.redSqr(); + M = M.redIAdd(M), M = M.redIAdd(M), M = M.redIAdd(M), s = F.redMul(z.redISub(d)).redISub(M); + } + return this.curve.jpoint(d, s, v); + }, h.prototype._dbl = function() { + var d = this.curve.a, s = this.x, v = this.y, c = this.z, a = c.redSqr().redSqr(), r = s.redSqr(), t = v.redSqr(), i = r.redAdd(r).redIAdd(r).redIAdd(d.redMul(a)), n = s.redAdd(s); + n = n.redIAdd(n); + var o = n.redMul(t), p = i.redSqr().redISub(o.redAdd(o)), O = o.redISub(p), P = t.redSqr(); + P = P.redIAdd(P), P = P.redIAdd(P), P = P.redIAdd(P); + var F = i.redMul(O).redISub(P), z = v.redAdd(v).redMul(c); + return this.curve.jpoint(p, F, z); + }, h.prototype.trpl = function() { + if (!this.curve.zeroA) + return this.dbl().add(this); + var d = this.x.redSqr(), s = this.y.redSqr(), v = this.z.redSqr(), c = s.redSqr(), a = d.redAdd(d).redIAdd(d), r = a.redSqr(), t = this.x.redAdd(s).redSqr().redISub(d).redISub(c); + t = t.redIAdd(t), t = t.redAdd(t).redIAdd(t), t = t.redISub(r); + var i = t.redSqr(), n = c.redIAdd(c); + n = n.redIAdd(n), n = n.redIAdd(n), n = n.redIAdd(n); + var o = a.redIAdd(t).redSqr().redISub(r).redISub(i).redISub(n), p = s.redMul(o); + p = p.redIAdd(p), p = p.redIAdd(p); + var O = this.x.redMul(i).redISub(p); + O = O.redIAdd(O), O = O.redIAdd(O); + var P = this.y.redMul(o.redMul(n.redISub(o)).redISub(t.redMul(i))); + P = P.redIAdd(P), P = P.redIAdd(P), P = P.redIAdd(P); + var F = this.z.redAdd(t).redSqr().redISub(v).redISub(i); + return this.curve.jpoint(O, P, F); + }, h.prototype.mul = function(d, s) { + return d = new m(d, s), this.curve._wnafMul(this, d); + }, h.prototype.eq = function(d) { + if (d.type === "affine") + return this.eq(d.toJ()); + if (this === d) + return !0; + var s = this.z.redSqr(), v = d.z.redSqr(); + if (this.x.redMul(v).redISub(d.x.redMul(s)).cmpn(0) !== 0) + return !1; + var c = s.redMul(this.z), a = v.redMul(d.z); + return this.y.redMul(a).redISub(d.y.redMul(c)).cmpn(0) === 0; + }, h.prototype.eqXToP = function(d) { + var s = this.z.redSqr(), v = d.toRed(this.curve.red).redMul(s); + if (this.x.cmp(v) === 0) + return !0; + for (var c = d.clone(), a = this.curve.redN.redMul(s); ; ) { + if (c.iadd(this.curve.n), c.cmp(this.curve.p) >= 0) + return !1; + if (v.redIAdd(a), this.x.cmp(v) === 0) + return !0; + } + }, h.prototype.inspect = function() { + return this.isInfinity() ? "" : ""; + }, h.prototype.isInfinity = function() { + return this.z.cmpn(0) === 0; + }; + }, { "../utils": 364, "./base": 351, "bn.js": 365, inherits: 387 }], 356: [function(e, x, _) { + var u = _, m = e("hash.js"), g = e("./curve"), b = e("./utils"), w = b.assert; + function f(l) { + l.type === "short" ? this.curve = new g.short(l) : l.type === "edwards" ? this.curve = new g.edwards(l) : this.curve = new g.mont(l), this.g = this.curve.g, this.n = this.curve.n, this.hash = l.hash, w(this.g.validate(), "Invalid curve"), w(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); + } + u.PresetCurve = f; + function y(l, d) { + Object.defineProperty(u, l, { + configurable: !0, + enumerable: !0, + get: function() { + var v = new f(d); + return Object.defineProperty(u, l, { + configurable: !0, + enumerable: !0, + value: v + }), v; + } + }); + } + y("p192", { + type: "short", + prime: "p192", + p: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff", + a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc", + b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1", + n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831", + hash: m.sha256, + gRed: !1, + g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] + }), y("p224", { + type: "short", + prime: "p224", + p: "ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", + a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe", + b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4", + n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d", + hash: m.sha256, + gRed: !1, + g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] + }), y("p256", { + type: "short", + prime: null, + p: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff", + a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", + b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b", + n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551", + hash: m.sha256, + gRed: !1, + g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] + }), y("p384", { + type: "short", + prime: null, + p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff", + a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", + b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef", + n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973", + hash: m.sha384, + gRed: !1, + g: ["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7", "3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"] + }), y("p521", { + type: "short", + prime: null, + p: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff", + a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc", + b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00", + n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", + hash: m.sha512, + gRed: !1, + g: ["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66", "00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"] + }), y("curve25519", { + type: "mont", + prime: "p25519", + p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", + a: "76d06", + b: "1", + n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", + hash: m.sha256, + gRed: !1, + g: ["9"] + }), y("ed25519", { + type: "edwards", + prime: "p25519", + p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", + a: "-1", + c: "1", + // -121665 * (121666^(-1)) (mod P) + d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3", + n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", + hash: m.sha256, + gRed: !1, + g: [ + "216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", + // 4/5 + "6666666666666666666666666666666666666666666666666666666666666658" + ] + }); + var h; + try { + h = e("./precomputed/secp256k1"); + } catch (l) { + h = void 0; + } + y("secp256k1", { + type: "short", + prime: "k256", + p: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f", + a: "0", + b: "7", + n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141", + h: "1", + hash: m.sha256, + // Precomputed endomorphism + beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", + lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", + basis: [{ + a: "3086d221a7d46bcde86c90e49284eb15", + b: "-e4437ed6010e88286f547fa90abfe4c3" + }, { + a: "114ca50f7a8e2f3f657c1108d9d44cfd8", + b: "3086d221a7d46bcde86c90e49284eb15" + }], + gRed: !1, + g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", h] + }); + }, { "./curve": 353, "./precomputed/secp256k1": 363, "./utils": 364, "hash.js": 372 }], 357: [function(e, x, _) { + function u(s) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(c) { + return typeof c; + } : u = function(c) { + return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c; + }, u(s); + } + var m = e("bn.js"), g = e("hmac-drbg"), b = e("../utils"), w = e("../curves"), f = e("brorand"), y = b.assert, h = e("./key"), l = e("./signature"); + function d(s) { + if (!(this instanceof d)) + return new d(s); + typeof s == "string" && (y(w.hasOwnProperty(s), "Unknown curve " + s), s = w[s]), s instanceof w.PresetCurve && (s = { + curve: s + }), this.curve = s.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = s.curve.g, this.g.precompute(s.curve.n.bitLength() + 1), this.hash = s.hash || s.curve.hash; + } + x.exports = d, d.prototype.keyPair = function(v) { + return new h(this, v); + }, d.prototype.keyFromPrivate = function(v, c) { + return h.fromPrivate(this, v, c); + }, d.prototype.keyFromPublic = function(v, c) { + return h.fromPublic(this, v, c); + }, d.prototype.genKeyPair = function(v) { + v || (v = {}); + var c = new g({ + hash: this.hash, + pers: v.pers, + persEnc: v.persEnc || "utf8", + entropy: v.entropy || f(this.hash.hmacStrength), + entropyEnc: v.entropy && v.entropyEnc || "utf8", + nonce: this.n.toArray() + }), a = this.n.byteLength(), r = this.n.sub(new m(2)); + do { + var t = new m(c.generate(a)); + if (!(t.cmp(r) > 0)) + return t.iaddn(1), this.keyFromPrivate(t); + } while (!0); + }, d.prototype._truncateToN = function(v, c) { + var a = v.byteLength() * 8 - this.n.bitLength(); + return a > 0 && (v = v.ushrn(a)), !c && v.cmp(this.n) >= 0 ? v.sub(this.n) : v; + }, d.prototype.sign = function(v, c, a, r) { + u(a) === "object" && (r = a, a = null), r || (r = {}), c = this.keyFromPrivate(c, a), v = this._truncateToN(new m(v, 16)); + for (var t = this.n.byteLength(), i = c.getPrivate().toArray("be", t), n = v.toArray("be", t), o = new g({ + hash: this.hash, + entropy: i, + nonce: n, + pers: r.pers, + persEnc: r.persEnc || "utf8" + }), p = this.n.sub(new m(1)), O = 0; ; O++) { + var P = r.k ? r.k(O) : new m(o.generate(this.n.byteLength())); + if (P = this._truncateToN(P, !0), !(P.cmpn(1) <= 0 || P.cmp(p) >= 0)) { + var F = this.g.mul(P); + if (!F.isInfinity()) { + var z = F.getX(), N = z.umod(this.n); + if (N.cmpn(0) !== 0) { + var M = P.invm(this.n).mul(N.mul(c.getPrivate()).iadd(v)); + if (M = M.umod(this.n), M.cmpn(0) !== 0) { + var I = (F.getY().isOdd() ? 1 : 0) | (z.cmp(N) !== 0 ? 2 : 0); + return r.canonical && M.cmp(this.nh) > 0 && (M = this.n.sub(M), I ^= 1), new l({ + r: N, + s: M, + recoveryParam: I + }); + } + } + } + } + } + }, d.prototype.verify = function(v, c, a, r) { + v = this._truncateToN(new m(v, 16)), a = this.keyFromPublic(a, r), c = new l(c, "hex"); + var t = c.r, i = c.s; + if (t.cmpn(1) < 0 || t.cmp(this.n) >= 0 || i.cmpn(1) < 0 || i.cmp(this.n) >= 0) + return !1; + var n = i.invm(this.n), o = n.mul(v).umod(this.n), p = n.mul(t).umod(this.n); + if (!this.curve._maxwellTrick) { + var O = this.g.mulAdd(o, a.getPublic(), p); + return O.isInfinity() ? !1 : O.getX().umod(this.n).cmp(t) === 0; + } + var O = this.g.jmulAdd(o, a.getPublic(), p); + return O.isInfinity() ? !1 : O.eqXToP(t); + }, d.prototype.recoverPubKey = function(s, v, c, a) { + y((3 & c) === c, "The recovery param is more than two bits"), v = new l(v, a); + var r = this.n, t = new m(s), i = v.r, n = v.s, o = c & 1, p = c >> 1; + if (i.cmp(this.curve.p.umod(this.curve.n)) >= 0 && p) + throw new Error("Unable to find sencond key candinate"); + p ? i = this.curve.pointFromX(i.add(this.curve.n), o) : i = this.curve.pointFromX(i, o); + var O = v.r.invm(r), P = r.sub(t).mul(O).umod(r), F = n.mul(O).umod(r); + return this.g.mulAdd(P, i, F); + }, d.prototype.getKeyRecoveryParam = function(s, v, c, a) { + if (v = new l(v, a), v.recoveryParam !== null) + return v.recoveryParam; + for (var r = 0; r < 4; r++) { + var t; + try { + t = this.recoverPubKey(s, v, r); + } catch (i) { + continue; + } + if (t.eq(c)) + return r; + } + throw new Error("Unable to find valid recovery factor"); + }; + }, { "../curves": 356, "../utils": 364, "./key": 358, "./signature": 359, "bn.js": 365, brorand: 184, "hmac-drbg": 384 }], 358: [function(e, x, _) { + var u = e("bn.js"), m = e("../utils"), g = m.assert; + function b(w, f) { + this.ec = w, this.priv = null, this.pub = null, f.priv && this._importPrivate(f.priv, f.privEnc), f.pub && this._importPublic(f.pub, f.pubEnc); + } + x.exports = b, b.fromPublic = function(f, y, h) { + return y instanceof b ? y : new b(f, { + pub: y, + pubEnc: h + }); + }, b.fromPrivate = function(f, y, h) { + return y instanceof b ? y : new b(f, { + priv: y, + privEnc: h + }); + }, b.prototype.validate = function() { + var f = this.getPublic(); + return f.isInfinity() ? { + result: !1, + reason: "Invalid public key" + } : f.validate() ? f.mul(this.ec.curve.n).isInfinity() ? { + result: !0, + reason: null + } : { + result: !1, + reason: "Public key * N != O" + } : { + result: !1, + reason: "Public key is not a point" + }; + }, b.prototype.getPublic = function(f, y) { + return typeof f == "string" && (y = f, f = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), y ? this.pub.encode(y, f) : this.pub; + }, b.prototype.getPrivate = function(f) { + return f === "hex" ? this.priv.toString(16, 2) : this.priv; + }, b.prototype._importPrivate = function(f, y) { + this.priv = new u(f, y || 16), this.priv = this.priv.umod(this.ec.curve.n); + }, b.prototype._importPublic = function(f, y) { + if (f.x || f.y) { + this.ec.curve.type === "mont" ? g(f.x, "Need x coordinate") : (this.ec.curve.type === "short" || this.ec.curve.type === "edwards") && g(f.x && f.y, "Need both x and y coordinate"), this.pub = this.ec.curve.point(f.x, f.y); + return; + } + this.pub = this.ec.curve.decodePoint(f, y); + }, b.prototype.derive = function(f) { + return f.mul(this.priv).getX(); + }, b.prototype.sign = function(f, y, h) { + return this.ec.sign(f, this, y, h); + }, b.prototype.verify = function(f, y) { + return this.ec.verify(f, y, this); + }, b.prototype.inspect = function() { + return ""; + }; + }, { "../utils": 364, "bn.js": 365 }], 359: [function(e, x, _) { + var u = e("bn.js"), m = e("../utils"), g = m.assert; + function b(l, d) { + if (l instanceof b) + return l; + this._importDER(l, d) || (g(l.r && l.s, "Signature without r or s"), this.r = new u(l.r, 16), this.s = new u(l.s, 16), l.recoveryParam === void 0 ? this.recoveryParam = null : this.recoveryParam = l.recoveryParam); + } + x.exports = b; + function w() { + this.place = 0; + } + function f(l, d) { + var s = l[d.place++]; + if (!(s & 128)) + return s; + var v = s & 15; + if (v === 0 || v > 4) + return !1; + for (var c = 0, a = 0, r = d.place; a < v; a++, r++) + c <<= 8, c |= l[r], c >>>= 0; + return c <= 127 ? !1 : (d.place = r, c); + } + function y(l) { + for (var d = 0, s = l.length - 1; !l[d] && !(l[d + 1] & 128) && d < s; ) + d++; + return d === 0 ? l : l.slice(d); + } + b.prototype._importDER = function(d, s) { + d = m.toArray(d, s); + var v = new w(); + if (d[v.place++] !== 48) + return !1; + var c = f(d, v); + if (c === !1 || c + v.place !== d.length || d[v.place++] !== 2) + return !1; + var a = f(d, v); + if (a === !1) + return !1; + var r = d.slice(v.place, a + v.place); + if (v.place += a, d[v.place++] !== 2) + return !1; + var t = f(d, v); + if (t === !1 || d.length !== t + v.place) + return !1; + var i = d.slice(v.place, t + v.place); + if (r[0] === 0) + if (r[1] & 128) + r = r.slice(1); + else + return !1; + if (i[0] === 0) + if (i[1] & 128) + i = i.slice(1); + else + return !1; + return this.r = new u(r), this.s = new u(i), this.recoveryParam = null, !0; + }; + function h(l, d) { + if (d < 128) { + l.push(d); + return; + } + var s = 1 + (Math.log(d) / Math.LN2 >>> 3); + for (l.push(s | 128); --s; ) + l.push(d >>> (s << 3) & 255); + l.push(d); + } + b.prototype.toDER = function(d) { + var s = this.r.toArray(), v = this.s.toArray(); + for (s[0] & 128 && (s = [0].concat(s)), v[0] & 128 && (v = [0].concat(v)), s = y(s), v = y(v); !v[0] && !(v[1] & 128); ) + v = v.slice(1); + var c = [2]; + h(c, s.length), c = c.concat(s), c.push(2), h(c, v.length); + var a = c.concat(v), r = [48]; + return h(r, a.length), r = r.concat(a), m.encode(r, d); + }; + }, { "../utils": 364, "bn.js": 365 }], 360: [function(e, x, _) { + var u = e("hash.js"), m = e("../curves"), g = e("../utils"), b = g.assert, w = g.parseBytes, f = e("./key"), y = e("./signature"); + function h(d) { + if (b(d === "ed25519", "only tested with ed25519 so far"), !(this instanceof h)) + return new h(d); + var d = m[d].curve; + this.curve = d, this.g = d.g, this.g.precompute(d.n.bitLength() + 1), this.pointClass = d.point().constructor, this.encodingLength = Math.ceil(d.n.bitLength() / 8), this.hash = u.sha512; + } + x.exports = h, h.prototype.sign = function(d, s) { + d = w(d); + var v = this.keyFromSecret(s), c = this.hashInt(v.messagePrefix(), d), a = this.g.mul(c), r = this.encodePoint(a), t = this.hashInt(r, v.pubBytes(), d).mul(v.priv()), i = c.add(t).umod(this.curve.n); + return this.makeSignature({ + R: a, + S: i, + Rencoded: r + }); + }, h.prototype.verify = function(d, s, v) { + d = w(d), s = this.makeSignature(s); + var c = this.keyFromPublic(v), a = this.hashInt(s.Rencoded(), c.pubBytes(), d), r = this.g.mul(s.S()), t = s.R().add(c.pub().mul(a)); + return t.eq(r); + }, h.prototype.hashInt = function() { + for (var d = this.hash(), s = 0; s < arguments.length; s++) + d.update(arguments[s]); + return g.intFromLE(d.digest()).umod(this.curve.n); + }, h.prototype.keyFromPublic = function(d) { + return f.fromPublic(this, d); + }, h.prototype.keyFromSecret = function(d) { + return f.fromSecret(this, d); + }, h.prototype.makeSignature = function(d) { + return d instanceof y ? d : new y(this, d); + }, h.prototype.encodePoint = function(d) { + var s = d.getY().toArray("le", this.encodingLength); + return s[this.encodingLength - 1] |= d.getX().isOdd() ? 128 : 0, s; + }, h.prototype.decodePoint = function(d) { + d = g.parseBytes(d); + var s = d.length - 1, v = d.slice(0, s).concat(d[s] & -129), c = (d[s] & 128) !== 0, a = g.intFromLE(v); + return this.curve.pointFromY(a, c); + }, h.prototype.encodeInt = function(d) { + return d.toArray("le", this.encodingLength); + }, h.prototype.decodeInt = function(d) { + return g.intFromLE(d); + }, h.prototype.isPoint = function(d) { + return d instanceof this.pointClass; + }; + }, { "../curves": 356, "../utils": 364, "./key": 361, "./signature": 362, "hash.js": 372 }], 361: [function(e, x, _) { + var u = e("../utils"), m = u.assert, g = u.parseBytes, b = u.cachedProperty; + function w(f, y) { + this.eddsa = f, this._secret = g(y.secret), f.isPoint(y.pub) ? this._pub = y.pub : this._pubBytes = g(y.pub); + } + w.fromPublic = function(y, h) { + return h instanceof w ? h : new w(y, { + pub: h + }); + }, w.fromSecret = function(y, h) { + return h instanceof w ? h : new w(y, { + secret: h + }); + }, w.prototype.secret = function() { + return this._secret; + }, b(w, "pubBytes", function() { + return this.eddsa.encodePoint(this.pub()); + }), b(w, "pub", function() { + return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv()); + }), b(w, "privBytes", function() { + var y = this.eddsa, h = this.hash(), l = y.encodingLength - 1, d = h.slice(0, y.encodingLength); + return d[0] &= 248, d[l] &= 127, d[l] |= 64, d; + }), b(w, "priv", function() { + return this.eddsa.decodeInt(this.privBytes()); + }), b(w, "hash", function() { + return this.eddsa.hash().update(this.secret()).digest(); + }), b(w, "messagePrefix", function() { + return this.hash().slice(this.eddsa.encodingLength); + }), w.prototype.sign = function(y) { + return m(this._secret, "KeyPair can only verify"), this.eddsa.sign(y, this); + }, w.prototype.verify = function(y, h) { + return this.eddsa.verify(y, h, this); + }, w.prototype.getSecret = function(y) { + return m(this._secret, "KeyPair is public only"), u.encode(this.secret(), y); + }, w.prototype.getPublic = function(y) { + return u.encode(this.pubBytes(), y); + }, x.exports = w; + }, { "../utils": 364 }], 362: [function(e, x, _) { + function u(h) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(d) { + return typeof d; + } : u = function(d) { + return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d; + }, u(h); + } + var m = e("bn.js"), g = e("../utils"), b = g.assert, w = g.cachedProperty, f = g.parseBytes; + function y(h, l) { + this.eddsa = h, u(l) !== "object" && (l = f(l)), Array.isArray(l) && (l = { + R: l.slice(0, h.encodingLength), + S: l.slice(h.encodingLength) + }), b(l.R && l.S, "Signature without R or S"), h.isPoint(l.R) && (this._R = l.R), l.S instanceof m && (this._S = l.S), this._Rencoded = Array.isArray(l.R) ? l.R : l.Rencoded, this._Sencoded = Array.isArray(l.S) ? l.S : l.Sencoded; + } + w(y, "S", function() { + return this.eddsa.decodeInt(this.Sencoded()); + }), w(y, "R", function() { + return this.eddsa.decodePoint(this.Rencoded()); + }), w(y, "Rencoded", function() { + return this.eddsa.encodePoint(this.R()); + }), w(y, "Sencoded", function() { + return this.eddsa.encodeInt(this.S()); + }), y.prototype.toBytes = function() { + return this.Rencoded().concat(this.Sencoded()); + }, y.prototype.toHex = function() { + return g.encode(this.toBytes(), "hex").toUpperCase(); + }, x.exports = y; + }, { "../utils": 364, "bn.js": 365 }], 363: [function(e, x, _) { + x.exports = { + doubles: { + step: 4, + points: [["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a", "f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"], ["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508", "11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"], ["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739", "d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"], ["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640", "4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"], ["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c", "4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"], ["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda", "96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"], ["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa", "5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"], ["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0", "cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"], ["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d", "9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"], ["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d", "e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"], ["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1", "9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"], ["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0", "5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"], ["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047", "10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"], ["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862", "283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"], ["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7", "7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"], ["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd", "56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"], ["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83", "7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"], ["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a", "53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"], ["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8", "bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"], ["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d", "4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"], ["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725", "7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"], ["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754", "4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"], ["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c", "17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"], ["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6", "6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"], ["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39", "c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"], ["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891", "893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"], ["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b", "febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"], ["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03", "2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"], ["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d", "eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"], ["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070", "7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"], ["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4", "e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"], ["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da", "662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"], ["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11", "1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"], ["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e", "efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"], ["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41", "2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"], ["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef", "67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"], ["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8", "db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"], ["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d", "648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"], ["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96", "35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"], ["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd", "ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"], ["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5", "9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"], ["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266", "40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"], ["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71", "34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"], ["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac", "c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"], ["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751", "1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"], ["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e", "493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"], ["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241", "c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"], ["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3", "be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"], ["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f", "4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"], ["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19", "aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"], ["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be", "b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"], ["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9", "6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"], ["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2", "8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"], ["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13", "7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"], ["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c", "ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"], ["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba", "2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"], ["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151", "e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"], ["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073", "d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"], ["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458", "38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"], ["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b", "69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"], ["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366", "d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"], ["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa", "40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"], ["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0", "620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"], ["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787", "7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"], ["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e", "ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]] + }, + naf: { + wnd: 7, + points: [["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9", "388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"], ["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4", "d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"], ["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc", "6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"], ["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe", "cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"], ["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb", "d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"], ["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8", "ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"], ["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e", "581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"], ["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34", "4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"], ["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c", "85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"], ["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5", "321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"], ["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f", "2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"], ["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714", "73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"], ["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729", "a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"], ["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db", "2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"], ["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4", "e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"], ["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5", "b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"], ["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479", "2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"], ["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d", "80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"], ["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f", "1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"], ["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb", "d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"], ["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9", "eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"], ["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963", "758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"], ["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74", "958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"], ["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530", "e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"], ["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b", "5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"], ["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247", "cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"], ["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1", "cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"], ["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120", "4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"], ["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435", "91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"], ["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18", "673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"], ["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8", "59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"], ["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb", "3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"], ["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f", "55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"], ["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143", "efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"], ["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba", "e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"], ["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45", "f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"], ["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a", "744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"], ["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e", "c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"], ["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8", "e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"], ["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c", "30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"], ["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519", "e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"], ["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab", "100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"], ["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca", "ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"], ["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf", "8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"], ["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610", "68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"], ["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4", "f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"], ["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c", "d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"], ["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940", "edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"], ["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980", "a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"], ["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3", "66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"], ["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf", "9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"], ["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63", "4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"], ["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448", "fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"], ["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf", "5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"], ["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5", "8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"], ["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6", "8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"], ["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5", "5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"], ["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99", "f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"], ["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51", "f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"], ["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5", "42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"], ["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5", "204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"], ["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997", "4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"], ["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881", "73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"], ["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5", "39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"], ["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66", "d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"], ["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726", "ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"], ["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede", "6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"], ["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94", "60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"], ["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31", "3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"], ["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51", "b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"], ["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252", "ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"], ["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5", "cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"], ["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b", "6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"], ["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4", "322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"], ["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f", "6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"], ["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889", "2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"], ["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246", "b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"], ["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984", "998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"], ["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a", "b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"], ["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030", "bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"], ["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197", "6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"], ["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593", "c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"], ["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef", "21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"], ["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38", "60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"], ["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a", "49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"], ["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111", "5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"], ["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502", "7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"], ["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea", "be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"], ["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26", "8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"], ["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986", "39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"], ["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e", "62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"], ["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4", "25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"], ["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda", "ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"], ["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859", "cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"], ["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f", "f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"], ["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c", "6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"], ["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942", "fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"], ["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a", "1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"], ["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80", "5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"], ["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d", "438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"], ["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1", "cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"], ["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63", "c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"], ["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352", "6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"], ["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193", "ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"], ["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00", "9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"], ["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58", "ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"], ["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7", "d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"], ["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8", "c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"], ["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e", "67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"], ["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d", "cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"], ["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b", "299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"], ["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f", "f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"], ["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6", "462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"], ["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297", "62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"], ["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a", "7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"], ["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c", "ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"], ["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52", "4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"], ["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb", "bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"], ["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065", "bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"], ["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917", "603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"], ["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9", "cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"], ["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3", "553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"], ["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57", "712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"], ["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66", "ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"], ["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8", "9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"], ["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721", "9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"], ["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180", "4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]] + } + }; + }, {}], 364: [function(e, x, _) { + var u = _, m = e("bn.js"), g = e("minimalistic-assert"), b = e("minimalistic-crypto-utils"); + u.assert = g, u.toArray = b.toArray, u.zero2 = b.zero2, u.toHex = b.toHex, u.encode = b.encode; + function w(d, s, v) { + var c = new Array(Math.max(d.bitLength(), v) + 1); + c.fill(0); + for (var a = 1 << s + 1, r = d.clone(), t = 0; t < c.length; t++) { + var i, n = r.andln(a - 1); + r.isOdd() ? (n > (a >> 1) - 1 ? i = (a >> 1) - n : i = n, r.isubn(i)) : i = 0, c[t] = i, r.iushrn(1); + } + return c; + } + u.getNAF = w; + function f(d, s) { + var v = [[], []]; + d = d.clone(), s = s.clone(); + for (var c = 0, a = 0; d.cmpn(-c) > 0 || s.cmpn(-a) > 0; ) { + var r = d.andln(3) + c & 3, t = s.andln(3) + a & 3; + r === 3 && (r = -1), t === 3 && (t = -1); + var i; + if (!(r & 1)) + i = 0; + else { + var n = d.andln(7) + c & 7; + (n === 3 || n === 5) && t === 2 ? i = -r : i = r; + } + v[0].push(i); + var o; + if (!(t & 1)) + o = 0; + else { + var n = s.andln(7) + a & 7; + (n === 3 || n === 5) && r === 2 ? o = -t : o = t; + } + v[1].push(o), 2 * c === i + 1 && (c = 1 - c), 2 * a === o + 1 && (a = 1 - a), d.iushrn(1), s.iushrn(1); + } + return v; + } + u.getJSF = f; + function y(d, s, v) { + var c = "_" + s; + d.prototype[s] = function() { + return this[c] !== void 0 ? this[c] : this[c] = v.call(this); + }; + } + u.cachedProperty = y; + function h(d) { + return typeof d == "string" ? u.toArray(d, "hex") : d; + } + u.parseBytes = h; + function l(d) { + return new m(d, "hex", "le"); + } + u.intFromLE = l; + }, { "bn.js": 365, "minimalistic-assert": 437, "minimalistic-crypto-utils": 438 }], 365: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 366: [function(e, x, _) { + x.exports = { + _from: "elliptic@^6.5.3", + _id: "elliptic@6.5.3", + _inBundle: !1, + _integrity: "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", + _location: "/elliptic", + _phantomChildren: {}, + _requested: { + type: "range", + registry: !0, + raw: "elliptic@^6.5.3", + name: "elliptic", + escapedName: "elliptic", + rawSpec: "^6.5.3", + saveSpec: null, + fetchSpec: "^6.5.3" + }, + _requiredBy: [ + "/browserify-sign", + "/create-ecdh" + ], + _resolved: "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", + _shasum: "cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6", + _spec: "elliptic@^6.5.3", + _where: "/mnt/d/dev/git/exceljs/node_modules/browserify-sign", + author: { + name: "Fedor Indutny", + email: "fedor@indutny.com" + }, + bugs: { + url: "https://github.com/indutny/elliptic/issues" + }, + bundleDependencies: !1, + dependencies: { + "bn.js": "^4.4.0", + brorand: "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + inherits: "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" + }, + deprecated: !1, + description: "EC cryptography", + devDependencies: { + brfs: "^1.4.3", + coveralls: "^3.0.8", + grunt: "^1.0.4", + "grunt-browserify": "^5.0.0", + "grunt-cli": "^1.2.0", + "grunt-contrib-connect": "^1.0.0", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-uglify": "^1.0.1", + "grunt-mocha-istanbul": "^3.0.1", + "grunt-saucelabs": "^9.0.1", + istanbul: "^0.4.2", + jscs: "^3.0.7", + jshint: "^2.10.3", + mocha: "^6.2.2" + }, + files: [ + "lib" + ], + homepage: "https://github.com/indutny/elliptic", + keywords: [ + "EC", + "Elliptic", + "curve", + "Cryptography" + ], + license: "MIT", + main: "lib/elliptic.js", + name: "elliptic", + repository: { + type: "git", + url: "git+ssh://git@github.com/indutny/elliptic.git" + }, + scripts: { + jscs: "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js", + jshint: "jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js", + lint: "npm run jscs && npm run jshint", + test: "npm run lint && npm run unit", + unit: "istanbul test _mocha --reporter=spec test/index.js", + version: "grunt dist && git add dist/" + }, + version: "6.5.3" + }; + }, {}], 367: [function(e, x, _) { + function u(M) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(R) { + return typeof R; + } : u = function(R) { + return R && typeof Symbol == "function" && R.constructor === Symbol && R !== Symbol.prototype ? "symbol" : typeof R; + }, u(M); + } + var m = Object.create || F, g = Object.keys || z, b = Function.prototype.bind || N; + function w() { + (!this._events || !Object.prototype.hasOwnProperty.call(this, "_events")) && (this._events = m(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; + } + x.exports = w, w.EventEmitter = w, w.prototype._events = void 0, w.prototype._maxListeners = void 0; + var f = 10, y; + try { + var h = {}; + Object.defineProperty && Object.defineProperty(h, "x", { + value: 0 + }), y = h.x === 0; + } catch (M) { + y = !1; + } + y ? Object.defineProperty(w, "defaultMaxListeners", { + enumerable: !0, + get: function() { + return f; + }, + set: function(I) { + if (typeof I != "number" || I < 0 || I !== I) + throw new TypeError('"defaultMaxListeners" must be a positive number'); + f = I; + } + }) : w.defaultMaxListeners = f, w.prototype.setMaxListeners = function(I) { + if (typeof I != "number" || I < 0 || isNaN(I)) + throw new TypeError('"n" argument must be a positive number'); + return this._maxListeners = I, this; + }; + function l(M) { + return M._maxListeners === void 0 ? w.defaultMaxListeners : M._maxListeners; + } + w.prototype.getMaxListeners = function() { + return l(this); + }; + function d(M, I, R) { + if (I) + M.call(R); + else + for (var C = M.length, E = O(M, C), A = 0; A < C; ++A) + E[A].call(R); + } + function s(M, I, R, C) { + if (I) + M.call(R, C); + else + for (var E = M.length, A = O(M, E), L = 0; L < E; ++L) + A[L].call(R, C); + } + function v(M, I, R, C, E) { + if (I) + M.call(R, C, E); + else + for (var A = M.length, L = O(M, A), $ = 0; $ < A; ++$) + L[$].call(R, C, E); + } + function c(M, I, R, C, E, A) { + if (I) + M.call(R, C, E, A); + else + for (var L = M.length, $ = O(M, L), W = 0; W < L; ++W) + $[W].call(R, C, E, A); + } + function a(M, I, R, C) { + if (I) + M.apply(R, C); + else + for (var E = M.length, A = O(M, E), L = 0; L < E; ++L) + A[L].apply(R, C); + } + w.prototype.emit = function(I) { + var R, C, E, A, L, $, W = I === "error"; + if ($ = this._events, $) + W = W && $.error == null; + else if (!W) + return !1; + if (W) { + if (arguments.length > 1 && (R = arguments[1]), R instanceof Error) + throw R; + var U = new Error('Unhandled "error" event. (' + R + ")"); + throw U.context = R, U; + } + if (C = $[I], !C) + return !1; + var D = typeof C == "function"; + switch (E = arguments.length, E) { + case 1: + d(C, D, this); + break; + case 2: + s(C, D, this, arguments[1]); + break; + case 3: + v(C, D, this, arguments[1], arguments[2]); + break; + case 4: + c(C, D, this, arguments[1], arguments[2], arguments[3]); + break; + default: + for (A = new Array(E - 1), L = 1; L < E; L++) + A[L - 1] = arguments[L]; + a(C, D, this, A); + } + return !0; + }; + function r(M, I, R, C) { + var E, A, L; + if (typeof R != "function") + throw new TypeError('"listener" argument must be a function'); + if (A = M._events, A ? (A.newListener && (M.emit("newListener", I, R.listener ? R.listener : R), A = M._events), L = A[I]) : (A = M._events = m(null), M._eventsCount = 0), !L) + L = A[I] = R, ++M._eventsCount; + else if (typeof L == "function" ? L = A[I] = C ? [R, L] : [L, R] : C ? L.unshift(R) : L.push(R), !L.warned && (E = l(M), E && E > 0 && L.length > E)) { + L.warned = !0; + var $ = new Error("Possible EventEmitter memory leak detected. " + L.length + ' "' + String(I) + '" listeners added. Use emitter.setMaxListeners() to increase limit.'); + $.name = "MaxListenersExceededWarning", $.emitter = M, $.type = I, $.count = L.length, (typeof console == "undefined" ? "undefined" : u(console)) === "object" && console.warn && console.warn("%s: %s", $.name, $.message); + } + return M; + } + w.prototype.addListener = function(I, R) { + return r(this, I, R, !1); + }, w.prototype.on = w.prototype.addListener, w.prototype.prependListener = function(I, R) { + return r(this, I, R, !0); + }; + function t() { + if (!this.fired) + switch (this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length) { + case 0: + return this.listener.call(this.target); + case 1: + return this.listener.call(this.target, arguments[0]); + case 2: + return this.listener.call(this.target, arguments[0], arguments[1]); + case 3: + return this.listener.call(this.target, arguments[0], arguments[1], arguments[2]); + default: + for (var M = new Array(arguments.length), I = 0; I < M.length; ++I) + M[I] = arguments[I]; + this.listener.apply(this.target, M); + } + } + function i(M, I, R) { + var C = { + fired: !1, + wrapFn: void 0, + target: M, + type: I, + listener: R + }, E = b.call(t, C); + return E.listener = R, C.wrapFn = E, E; + } + w.prototype.once = function(I, R) { + if (typeof R != "function") + throw new TypeError('"listener" argument must be a function'); + return this.on(I, i(this, I, R)), this; + }, w.prototype.prependOnceListener = function(I, R) { + if (typeof R != "function") + throw new TypeError('"listener" argument must be a function'); + return this.prependListener(I, i(this, I, R)), this; + }, w.prototype.removeListener = function(I, R) { + var C, E, A, L, $; + if (typeof R != "function") + throw new TypeError('"listener" argument must be a function'); + if (E = this._events, !E) + return this; + if (C = E[I], !C) + return this; + if (C === R || C.listener === R) + --this._eventsCount === 0 ? this._events = m(null) : (delete E[I], E.removeListener && this.emit("removeListener", I, C.listener || R)); + else if (typeof C != "function") { + for (A = -1, L = C.length - 1; L >= 0; L--) + if (C[L] === R || C[L].listener === R) { + $ = C[L].listener, A = L; + break; + } + if (A < 0) + return this; + A === 0 ? C.shift() : p(C, A), C.length === 1 && (E[I] = C[0]), E.removeListener && this.emit("removeListener", I, $ || R); + } + return this; + }, w.prototype.removeAllListeners = function(I) { + var R, C, E; + if (C = this._events, !C) + return this; + if (!C.removeListener) + return arguments.length === 0 ? (this._events = m(null), this._eventsCount = 0) : C[I] && (--this._eventsCount === 0 ? this._events = m(null) : delete C[I]), this; + if (arguments.length === 0) { + var A = g(C), L; + for (E = 0; E < A.length; ++E) + L = A[E], L !== "removeListener" && this.removeAllListeners(L); + return this.removeAllListeners("removeListener"), this._events = m(null), this._eventsCount = 0, this; + } + if (R = C[I], typeof R == "function") + this.removeListener(I, R); + else if (R) + for (E = R.length - 1; E >= 0; E--) + this.removeListener(I, R[E]); + return this; + }; + function n(M, I, R) { + var C = M._events; + if (!C) + return []; + var E = C[I]; + return E ? typeof E == "function" ? R ? [E.listener || E] : [E] : R ? P(E) : O(E, E.length) : []; + } + w.prototype.listeners = function(I) { + return n(this, I, !0); + }, w.prototype.rawListeners = function(I) { + return n(this, I, !1); + }, w.listenerCount = function(M, I) { + return typeof M.listenerCount == "function" ? M.listenerCount(I) : o.call(M, I); + }, w.prototype.listenerCount = o; + function o(M) { + var I = this._events; + if (I) { + var R = I[M]; + if (typeof R == "function") + return 1; + if (R) + return R.length; + } + return 0; + } + w.prototype.eventNames = function() { + return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : []; + }; + function p(M, I) { + for (var R = I, C = R + 1, E = M.length; C < E; R += 1, C += 1) + M[R] = M[C]; + M.pop(); + } + function O(M, I) { + for (var R = new Array(I), C = 0; C < I; ++C) + R[C] = M[C]; + return R; + } + function P(M) { + for (var I = new Array(M.length), R = 0; R < I.length; ++R) + I[R] = M[R].listener || M[R]; + return I; + } + function F(M) { + var I = function() { + }; + return I.prototype = M, new I(); + } + function z(M) { + for (var I in M) + Object.prototype.hasOwnProperty.call(M, I); + return I; + } + function N(M) { + var I = this; + return function() { + return I.apply(M, arguments); + }; + } + }, {}], 368: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("md5.js"); + function g(b, w, f, y) { + if (u.isBuffer(b) || (b = u.from(b, "binary")), w && (u.isBuffer(w) || (w = u.from(w, "binary")), w.length !== 8)) + throw new RangeError("salt should be Buffer with 8 byte length"); + for (var h = f / 8, l = u.alloc(h), d = u.alloc(y || 0), s = u.alloc(0); h > 0 || y > 0; ) { + var v = new m(); + v.update(s), v.update(b), w && v.update(w), s = v.digest(); + var c = 0; + if (h > 0) { + var a = l.length - h; + c = Math.min(h, s.length), s.copy(l, a, 0, c), h -= c; + } + if (c < s.length && y > 0) { + var r = d.length - y, t = Math.min(y, s.length - c); + s.copy(d, r, c, c + t), y -= t; + } + } + return s.fill(0), { + key: l, + iv: d + }; + } + x.exports = g; + }, { "md5.js": 434, "safe-buffer": 494 }], 369: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var u = e("@fast-csv/format"); + Object.defineProperty(_, "format", { + enumerable: !0, + get: function() { + return u.format; + } + }), Object.defineProperty(_, "write", { + enumerable: !0, + get: function() { + return u.write; + } + }), Object.defineProperty(_, "writeToStream", { + enumerable: !0, + get: function() { + return u.writeToStream; + } + }), Object.defineProperty(_, "writeToBuffer", { + enumerable: !0, + get: function() { + return u.writeToBuffer; + } + }), Object.defineProperty(_, "writeToString", { + enumerable: !0, + get: function() { + return u.writeToString; + } + }), Object.defineProperty(_, "writeToPath", { + enumerable: !0, + get: function() { + return u.writeToPath; + } + }), Object.defineProperty(_, "CsvFormatterStream", { + enumerable: !0, + get: function() { + return u.CsvFormatterStream; + } + }), Object.defineProperty(_, "FormatterOptions", { + enumerable: !0, + get: function() { + return u.FormatterOptions; + } + }); + var m = e("@fast-csv/parse"); + Object.defineProperty(_, "parse", { + enumerable: !0, + get: function() { + return m.parse; + } + }), Object.defineProperty(_, "parseString", { + enumerable: !0, + get: function() { + return m.parseString; + } + }), Object.defineProperty(_, "parseStream", { + enumerable: !0, + get: function() { + return m.parseStream; + } + }), Object.defineProperty(_, "parseFile", { + enumerable: !0, + get: function() { + return m.parseFile; + } + }), Object.defineProperty(_, "ParserOptions", { + enumerable: !0, + get: function() { + return m.ParserOptions; + } + }), Object.defineProperty(_, "CsvParserStream", { + enumerable: !0, + get: function() { + return m.CsvParserStream; + } + }); + }, { "@fast-csv/format": 148, "@fast-csv/parse": 152 }], 370: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = e("readable-stream").Transform, g = e("inherits"); + function b(f, y) { + if (!u.isBuffer(f) && typeof f != "string") + throw new TypeError(y + " must be a string or a buffer"); + } + function w(f) { + m.call(this), this._block = u.allocUnsafe(f), this._blockSize = f, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1; + } + g(w, m), w.prototype._transform = function(f, y, h) { + var l = null; + try { + this.update(f, y); + } catch (d) { + l = d; + } + h(l); + }, w.prototype._flush = function(f) { + var y = null; + try { + this.push(this.digest()); + } catch (h) { + y = h; + } + f(y); + }, w.prototype.update = function(f, y) { + if (b(f, "Data"), this._finalized) + throw new Error("Digest already called"); + u.isBuffer(f) || (f = u.from(f, y)); + for (var h = this._block, l = 0; this._blockOffset + f.length - l >= this._blockSize; ) { + for (var d = this._blockOffset; d < this._blockSize; ) + h[d++] = f[l++]; + this._update(), this._blockOffset = 0; + } + for (; l < f.length; ) + h[this._blockOffset++] = f[l++]; + for (var s = 0, v = f.length * 8; v > 0; ++s) + this._length[s] += v, v = this._length[s] / 4294967296 | 0, v > 0 && (this._length[s] -= 4294967296 * v); + return this; + }, w.prototype._update = function() { + throw new Error("_update is not implemented"); + }, w.prototype.digest = function(f) { + if (this._finalized) + throw new Error("Digest already called"); + this._finalized = !0; + var y = this._digest(); + f !== void 0 && (y = y.toString(f)), this._block.fill(0), this._blockOffset = 0; + for (var h = 0; h < 4; ++h) + this._length[h] = 0; + return y; + }, w.prototype._digest = function() { + throw new Error("_digest is not implemented"); + }, x.exports = w; + }, { inherits: 387, "readable-stream": 491, "safe-buffer": 371 }], 371: [function(e, x, _) { + arguments[4][214][0].apply(_, arguments); + }, { buffer: 216, dup: 214 }], 372: [function(e, x, _) { + var u = _; + u.utils = e("./hash/utils"), u.common = e("./hash/common"), u.sha = e("./hash/sha"), u.ripemd = e("./hash/ripemd"), u.hmac = e("./hash/hmac"), u.sha1 = u.sha.sha1, u.sha256 = u.sha.sha256, u.sha224 = u.sha.sha224, u.sha384 = u.sha.sha384, u.sha512 = u.sha.sha512, u.ripemd160 = u.ripemd.ripemd160; + }, { "./hash/common": 373, "./hash/hmac": 374, "./hash/ripemd": 375, "./hash/sha": 376, "./hash/utils": 383 }], 373: [function(e, x, _) { + var u = e("./utils"), m = e("minimalistic-assert"); + function g() { + this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32; + } + _.BlockHash = g, g.prototype.update = function(w, f) { + if (w = u.toArray(w, f), this.pending ? this.pending = this.pending.concat(w) : this.pending = w, this.pendingTotal += w.length, this.pending.length >= this._delta8) { + w = this.pending; + var y = w.length % this._delta8; + this.pending = w.slice(w.length - y, w.length), this.pending.length === 0 && (this.pending = null), w = u.join32(w, 0, w.length - y, this.endian); + for (var h = 0; h < w.length; h += this._delta32) + this._update(w, h, h + this._delta32); + } + return this; + }, g.prototype.digest = function(w) { + return this.update(this._pad()), m(this.pending === null), this._digest(w); + }, g.prototype._pad = function() { + var w = this.pendingTotal, f = this._delta8, y = f - (w + this.padLength) % f, h = new Array(y + this.padLength); + h[0] = 128; + for (var l = 1; l < y; l++) + h[l] = 0; + if (w <<= 3, this.endian === "big") { + for (var d = 8; d < this.padLength; d++) + h[l++] = 0; + h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = w >>> 24 & 255, h[l++] = w >>> 16 & 255, h[l++] = w >>> 8 & 255, h[l++] = w & 255; + } else + for (h[l++] = w & 255, h[l++] = w >>> 8 & 255, h[l++] = w >>> 16 & 255, h[l++] = w >>> 24 & 255, h[l++] = 0, h[l++] = 0, h[l++] = 0, h[l++] = 0, d = 8; d < this.padLength; d++) + h[l++] = 0; + return h; + }; + }, { "./utils": 383, "minimalistic-assert": 437 }], 374: [function(e, x, _) { + var u = e("./utils"), m = e("minimalistic-assert"); + function g(b, w, f) { + if (!(this instanceof g)) + return new g(b, w, f); + this.Hash = b, this.blockSize = b.blockSize / 8, this.outSize = b.outSize / 8, this.inner = null, this.outer = null, this._init(u.toArray(w, f)); + } + x.exports = g, g.prototype._init = function(w) { + w.length > this.blockSize && (w = new this.Hash().update(w).digest()), m(w.length <= this.blockSize); + for (var f = w.length; f < this.blockSize; f++) + w.push(0); + for (f = 0; f < w.length; f++) + w[f] ^= 54; + for (this.inner = new this.Hash().update(w), f = 0; f < w.length; f++) + w[f] ^= 106; + this.outer = new this.Hash().update(w); + }, g.prototype.update = function(w, f) { + return this.inner.update(w, f), this; + }, g.prototype.digest = function(w) { + return this.outer.update(this.inner.digest()), this.outer.digest(w); + }; + }, { "./utils": 383, "minimalistic-assert": 437 }], 375: [function(e, x, _) { + var u = e("./utils"), m = e("./common"), g = u.rotl32, b = u.sum32, w = u.sum32_3, f = u.sum32_4, y = m.BlockHash; + function h() { + if (!(this instanceof h)) + return new h(); + y.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"; + } + u.inherits(h, y), _.ripemd160 = h, h.blockSize = 512, h.outSize = 160, h.hmacStrength = 192, h.padLength = 64, h.prototype._update = function(i, n) { + for (var o = this.h[0], p = this.h[1], O = this.h[2], P = this.h[3], F = this.h[4], z = o, N = p, M = O, I = P, R = F, C = 0; C < 80; C++) { + var E = b(g(f(o, l(C, p, O, P), i[v[C] + n], d(C)), a[C]), F); + o = F, F = P, P = g(O, 10), O = p, p = E, E = b(g(f(z, l(79 - C, N, M, I), i[c[C] + n], s(C)), r[C]), R), z = R, R = I, I = g(M, 10), M = N, N = E; + } + E = w(this.h[1], O, I), this.h[1] = w(this.h[2], P, R), this.h[2] = w(this.h[3], F, z), this.h[3] = w(this.h[4], o, N), this.h[4] = w(this.h[0], p, M), this.h[0] = E; + }, h.prototype._digest = function(i) { + return i === "hex" ? u.toHex32(this.h, "little") : u.split32(this.h, "little"); + }; + function l(t, i, n, o) { + return t <= 15 ? i ^ n ^ o : t <= 31 ? i & n | ~i & o : t <= 47 ? (i | ~n) ^ o : t <= 63 ? i & o | n & ~o : i ^ (n | ~o); + } + function d(t) { + return t <= 15 ? 0 : t <= 31 ? 1518500249 : t <= 47 ? 1859775393 : t <= 63 ? 2400959708 : 2840853838; + } + function s(t) { + return t <= 15 ? 1352829926 : t <= 31 ? 1548603684 : t <= 47 ? 1836072691 : t <= 63 ? 2053994217 : 0; + } + var v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], c = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], a = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], r = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]; + }, { "./common": 373, "./utils": 383 }], 376: [function(e, x, _) { + _.sha1 = e("./sha/1"), _.sha224 = e("./sha/224"), _.sha256 = e("./sha/256"), _.sha384 = e("./sha/384"), _.sha512 = e("./sha/512"); + }, { "./sha/1": 377, "./sha/224": 378, "./sha/256": 379, "./sha/384": 380, "./sha/512": 381 }], 377: [function(e, x, _) { + var u = e("../utils"), m = e("../common"), g = e("./common"), b = u.rotl32, w = u.sum32, f = u.sum32_5, y = g.ft_1, h = m.BlockHash, l = [1518500249, 1859775393, 2400959708, 3395469782]; + function d() { + if (!(this instanceof d)) + return new d(); + h.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.W = new Array(80); + } + u.inherits(d, h), x.exports = d, d.blockSize = 512, d.outSize = 160, d.hmacStrength = 80, d.padLength = 64, d.prototype._update = function(v, c) { + for (var a = this.W, r = 0; r < 16; r++) + a[r] = v[c + r]; + for (; r < a.length; r++) + a[r] = b(a[r - 3] ^ a[r - 8] ^ a[r - 14] ^ a[r - 16], 1); + var t = this.h[0], i = this.h[1], n = this.h[2], o = this.h[3], p = this.h[4]; + for (r = 0; r < a.length; r++) { + var O = ~~(r / 20), P = f(b(t, 5), y(O, i, n, o), p, a[r], l[O]); + p = o, o = n, n = b(i, 30), i = t, t = P; + } + this.h[0] = w(this.h[0], t), this.h[1] = w(this.h[1], i), this.h[2] = w(this.h[2], n), this.h[3] = w(this.h[3], o), this.h[4] = w(this.h[4], p); + }, d.prototype._digest = function(v) { + return v === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big"); + }; + }, { "../common": 373, "../utils": 383, "./common": 382 }], 378: [function(e, x, _) { + var u = e("../utils"), m = e("./256"); + function g() { + if (!(this instanceof g)) + return new g(); + m.call(this), this.h = [3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]; + } + u.inherits(g, m), x.exports = g, g.blockSize = 512, g.outSize = 224, g.hmacStrength = 192, g.padLength = 64, g.prototype._digest = function(w) { + return w === "hex" ? u.toHex32(this.h.slice(0, 7), "big") : u.split32(this.h.slice(0, 7), "big"); + }; + }, { "../utils": 383, "./256": 379 }], 379: [function(e, x, _) { + var u = e("../utils"), m = e("../common"), g = e("./common"), b = e("minimalistic-assert"), w = u.sum32, f = u.sum32_4, y = u.sum32_5, h = g.ch32, l = g.maj32, d = g.s0_256, s = g.s1_256, v = g.g0_256, c = g.g1_256, a = m.BlockHash, r = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298]; + function t() { + if (!(this instanceof t)) + return new t(); + a.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = r, this.W = new Array(64); + } + u.inherits(t, a), x.exports = t, t.blockSize = 512, t.outSize = 256, t.hmacStrength = 192, t.padLength = 64, t.prototype._update = function(n, o) { + for (var p = this.W, O = 0; O < 16; O++) + p[O] = n[o + O]; + for (; O < p.length; O++) + p[O] = f(c(p[O - 2]), p[O - 7], v(p[O - 15]), p[O - 16]); + var P = this.h[0], F = this.h[1], z = this.h[2], N = this.h[3], M = this.h[4], I = this.h[5], R = this.h[6], C = this.h[7]; + for (b(this.k.length === p.length), O = 0; O < p.length; O++) { + var E = y(C, s(M), h(M, I, R), this.k[O], p[O]), A = w(d(P), l(P, F, z)); + C = R, R = I, I = M, M = w(N, E), N = z, z = F, F = P, P = w(E, A); + } + this.h[0] = w(this.h[0], P), this.h[1] = w(this.h[1], F), this.h[2] = w(this.h[2], z), this.h[3] = w(this.h[3], N), this.h[4] = w(this.h[4], M), this.h[5] = w(this.h[5], I), this.h[6] = w(this.h[6], R), this.h[7] = w(this.h[7], C); + }, t.prototype._digest = function(n) { + return n === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big"); + }; + }, { "../common": 373, "../utils": 383, "./common": 382, "minimalistic-assert": 437 }], 380: [function(e, x, _) { + var u = e("../utils"), m = e("./512"); + function g() { + if (!(this instanceof g)) + return new g(); + m.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428]; + } + u.inherits(g, m), x.exports = g, g.blockSize = 1024, g.outSize = 384, g.hmacStrength = 192, g.padLength = 128, g.prototype._digest = function(w) { + return w === "hex" ? u.toHex32(this.h.slice(0, 12), "big") : u.split32(this.h.slice(0, 12), "big"); + }; + }, { "../utils": 383, "./512": 381 }], 381: [function(e, x, _) { + var u = e("../utils"), m = e("../common"), g = e("minimalistic-assert"), b = u.rotr64_hi, w = u.rotr64_lo, f = u.shr64_hi, y = u.shr64_lo, h = u.sum64, l = u.sum64_hi, d = u.sum64_lo, s = u.sum64_4_hi, v = u.sum64_4_lo, c = u.sum64_5_hi, a = u.sum64_5_lo, r = m.BlockHash, t = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591]; + function i() { + if (!(this instanceof i)) + return new i(); + r.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = t, this.W = new Array(160); + } + u.inherits(i, r), x.exports = i, i.blockSize = 1024, i.outSize = 512, i.hmacStrength = 192, i.padLength = 128, i.prototype._prepareBlock = function(A, L) { + for (var $ = this.W, W = 0; W < 32; W++) + $[W] = A[L + W]; + for (; W < $.length; W += 2) { + var U = R($[W - 4], $[W - 3]), D = C($[W - 4], $[W - 3]), B = $[W - 14], j = $[W - 13], V = M($[W - 30], $[W - 29]), re = I($[W - 30], $[W - 29]), ee = $[W - 32], ce = $[W - 31]; + $[W] = s(U, D, B, j, V, re, ee, ce), $[W + 1] = v(U, D, B, j, V, re, ee, ce); + } + }, i.prototype._update = function(A, L) { + this._prepareBlock(A, L); + var $ = this.W, W = this.h[0], U = this.h[1], D = this.h[2], B = this.h[3], j = this.h[4], V = this.h[5], re = this.h[6], ee = this.h[7], ce = this.h[8], ve = this.h[9], ge = this.h[10], oe = this.h[11], J = this.h[12], Q = this.h[13], he = this.h[14], ke = this.h[15]; + g(this.k.length === $.length); + for (var ne = 0; ne < $.length; ne += 2) { + var se = he, Ce = ke, q = z(ce, ve), G = N(ce, ve), Y = n(ce, ve, ge, oe, J), fe = o(ce, ve, ge, oe, J, Q), we = this.k[ne], _e = this.k[ne + 1], je = $[ne], Ye = $[ne + 1], nt = c(se, Ce, q, G, Y, fe, we, _e, je, Ye), ut = a(se, Ce, q, G, Y, fe, we, _e, je, Ye); + se = P(W, U), Ce = F(W, U), q = p(W, U, D, B, j), G = O(W, U, D, B, j, V); + var ot = l(se, Ce, q, G), Ue = d(se, Ce, q, G); + he = J, ke = Q, J = ge, Q = oe, ge = ce, oe = ve, ce = l(re, ee, nt, ut), ve = d(ee, ee, nt, ut), re = j, ee = V, j = D, V = B, D = W, B = U, W = l(nt, ut, ot, Ue), U = d(nt, ut, ot, Ue); + } + h(this.h, 0, W, U), h(this.h, 2, D, B), h(this.h, 4, j, V), h(this.h, 6, re, ee), h(this.h, 8, ce, ve), h(this.h, 10, ge, oe), h(this.h, 12, J, Q), h(this.h, 14, he, ke); + }, i.prototype._digest = function(A) { + return A === "hex" ? u.toHex32(this.h, "big") : u.split32(this.h, "big"); + }; + function n(E, A, L, $, W) { + var U = E & L ^ ~E & W; + return U < 0 && (U += 4294967296), U; + } + function o(E, A, L, $, W, U) { + var D = A & $ ^ ~A & U; + return D < 0 && (D += 4294967296), D; + } + function p(E, A, L, $, W) { + var U = E & L ^ E & W ^ L & W; + return U < 0 && (U += 4294967296), U; + } + function O(E, A, L, $, W, U) { + var D = A & $ ^ A & U ^ $ & U; + return D < 0 && (D += 4294967296), D; + } + function P(E, A) { + var L = b(E, A, 28), $ = b(A, E, 2), W = b(A, E, 7), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function F(E, A) { + var L = w(E, A, 28), $ = w(A, E, 2), W = w(A, E, 7), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function z(E, A) { + var L = b(E, A, 14), $ = b(E, A, 18), W = b(A, E, 9), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function N(E, A) { + var L = w(E, A, 14), $ = w(E, A, 18), W = w(A, E, 9), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function M(E, A) { + var L = b(E, A, 1), $ = b(E, A, 8), W = f(E, A, 7), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function I(E, A) { + var L = w(E, A, 1), $ = w(E, A, 8), W = y(E, A, 7), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function R(E, A) { + var L = b(E, A, 19), $ = b(A, E, 29), W = f(E, A, 6), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + function C(E, A) { + var L = w(E, A, 19), $ = w(A, E, 29), W = y(E, A, 6), U = L ^ $ ^ W; + return U < 0 && (U += 4294967296), U; + } + }, { "../common": 373, "../utils": 383, "minimalistic-assert": 437 }], 382: [function(e, x, _) { + var u = e("../utils"), m = u.rotr32; + function g(s, v, c, a) { + if (s === 0) + return b(v, c, a); + if (s === 1 || s === 3) + return f(v, c, a); + if (s === 2) + return w(v, c, a); + } + _.ft_1 = g; + function b(s, v, c) { + return s & v ^ ~s & c; + } + _.ch32 = b; + function w(s, v, c) { + return s & v ^ s & c ^ v & c; + } + _.maj32 = w; + function f(s, v, c) { + return s ^ v ^ c; + } + _.p32 = f; + function y(s) { + return m(s, 2) ^ m(s, 13) ^ m(s, 22); + } + _.s0_256 = y; + function h(s) { + return m(s, 6) ^ m(s, 11) ^ m(s, 25); + } + _.s1_256 = h; + function l(s) { + return m(s, 7) ^ m(s, 18) ^ s >>> 3; + } + _.g0_256 = l; + function d(s) { + return m(s, 17) ^ m(s, 19) ^ s >>> 10; + } + _.g1_256 = d; + }, { "../utils": 383 }], 383: [function(e, x, _) { + var u = e("minimalistic-assert"), m = e("inherits"); + _.inherits = m; + function g(C, E) { + return (C.charCodeAt(E) & 64512) !== 55296 || E < 0 || E + 1 >= C.length ? !1 : (C.charCodeAt(E + 1) & 64512) === 56320; + } + function b(C, E) { + if (Array.isArray(C)) + return C.slice(); + if (!C) + return []; + var A = []; + if (typeof C == "string") + if (E) { + if (E === "hex") + for (C = C.replace(/[^a-z0-9]+/ig, ""), C.length % 2 !== 0 && (C = "0" + C), $ = 0; $ < C.length; $ += 2) + A.push(parseInt(C[$] + C[$ + 1], 16)); + } else + for (var L = 0, $ = 0; $ < C.length; $++) { + var W = C.charCodeAt($); + W < 128 ? A[L++] = W : W < 2048 ? (A[L++] = W >> 6 | 192, A[L++] = W & 63 | 128) : g(C, $) ? (W = 65536 + ((W & 1023) << 10) + (C.charCodeAt(++$) & 1023), A[L++] = W >> 18 | 240, A[L++] = W >> 12 & 63 | 128, A[L++] = W >> 6 & 63 | 128, A[L++] = W & 63 | 128) : (A[L++] = W >> 12 | 224, A[L++] = W >> 6 & 63 | 128, A[L++] = W & 63 | 128); + } + else + for ($ = 0; $ < C.length; $++) + A[$] = C[$] | 0; + return A; + } + _.toArray = b; + function w(C) { + for (var E = "", A = 0; A < C.length; A++) + E += h(C[A].toString(16)); + return E; + } + _.toHex = w; + function f(C) { + var E = C >>> 24 | C >>> 8 & 65280 | C << 8 & 16711680 | (C & 255) << 24; + return E >>> 0; + } + _.htonl = f; + function y(C, E) { + for (var A = "", L = 0; L < C.length; L++) { + var $ = C[L]; + E === "little" && ($ = f($)), A += l($.toString(16)); + } + return A; + } + _.toHex32 = y; + function h(C) { + return C.length === 1 ? "0" + C : C; + } + _.zero2 = h; + function l(C) { + return C.length === 7 ? "0" + C : C.length === 6 ? "00" + C : C.length === 5 ? "000" + C : C.length === 4 ? "0000" + C : C.length === 3 ? "00000" + C : C.length === 2 ? "000000" + C : C.length === 1 ? "0000000" + C : C; + } + _.zero8 = l; + function d(C, E, A, L) { + var $ = A - E; + u($ % 4 === 0); + for (var W = new Array($ / 4), U = 0, D = E; U < W.length; U++, D += 4) { + var B; + L === "big" ? B = C[D] << 24 | C[D + 1] << 16 | C[D + 2] << 8 | C[D + 3] : B = C[D + 3] << 24 | C[D + 2] << 16 | C[D + 1] << 8 | C[D], W[U] = B >>> 0; + } + return W; + } + _.join32 = d; + function s(C, E) { + for (var A = new Array(C.length * 4), L = 0, $ = 0; L < C.length; L++, $ += 4) { + var W = C[L]; + E === "big" ? (A[$] = W >>> 24, A[$ + 1] = W >>> 16 & 255, A[$ + 2] = W >>> 8 & 255, A[$ + 3] = W & 255) : (A[$ + 3] = W >>> 24, A[$ + 2] = W >>> 16 & 255, A[$ + 1] = W >>> 8 & 255, A[$] = W & 255); + } + return A; + } + _.split32 = s; + function v(C, E) { + return C >>> E | C << 32 - E; + } + _.rotr32 = v; + function c(C, E) { + return C << E | C >>> 32 - E; + } + _.rotl32 = c; + function a(C, E) { + return C + E >>> 0; + } + _.sum32 = a; + function r(C, E, A) { + return C + E + A >>> 0; + } + _.sum32_3 = r; + function t(C, E, A, L) { + return C + E + A + L >>> 0; + } + _.sum32_4 = t; + function i(C, E, A, L, $) { + return C + E + A + L + $ >>> 0; + } + _.sum32_5 = i; + function n(C, E, A, L) { + var $ = C[E], W = C[E + 1], U = L + W >>> 0, D = (U < L ? 1 : 0) + A + $; + C[E] = D >>> 0, C[E + 1] = U; + } + _.sum64 = n; + function o(C, E, A, L) { + var $ = E + L >>> 0, W = ($ < E ? 1 : 0) + C + A; + return W >>> 0; + } + _.sum64_hi = o; + function p(C, E, A, L) { + var $ = E + L; + return $ >>> 0; + } + _.sum64_lo = p; + function O(C, E, A, L, $, W, U, D) { + var B = 0, j = E; + j = j + L >>> 0, B += j < E ? 1 : 0, j = j + W >>> 0, B += j < W ? 1 : 0, j = j + D >>> 0, B += j < D ? 1 : 0; + var V = C + A + $ + U + B; + return V >>> 0; + } + _.sum64_4_hi = O; + function P(C, E, A, L, $, W, U, D) { + var B = E + L + W + D; + return B >>> 0; + } + _.sum64_4_lo = P; + function F(C, E, A, L, $, W, U, D, B, j) { + var V = 0, re = E; + re = re + L >>> 0, V += re < E ? 1 : 0, re = re + W >>> 0, V += re < W ? 1 : 0, re = re + D >>> 0, V += re < D ? 1 : 0, re = re + j >>> 0, V += re < j ? 1 : 0; + var ee = C + A + $ + U + B + V; + return ee >>> 0; + } + _.sum64_5_hi = F; + function z(C, E, A, L, $, W, U, D, B, j) { + var V = E + L + W + D + j; + return V >>> 0; + } + _.sum64_5_lo = z; + function N(C, E, A) { + var L = E << 32 - A | C >>> A; + return L >>> 0; + } + _.rotr64_hi = N; + function M(C, E, A) { + var L = C << 32 - A | E >>> A; + return L >>> 0; + } + _.rotr64_lo = M; + function I(C, E, A) { + return C >>> A; + } + _.shr64_hi = I; + function R(C, E, A) { + var L = C << 32 - A | E >>> A; + return L >>> 0; + } + _.shr64_lo = R; + }, { inherits: 387, "minimalistic-assert": 437 }], 384: [function(e, x, _) { + var u = e("hash.js"), m = e("minimalistic-crypto-utils"), g = e("minimalistic-assert"); + function b(w) { + if (!(this instanceof b)) + return new b(w); + this.hash = w.hash, this.predResist = !!w.predResist, this.outLen = this.hash.outSize, this.minEntropy = w.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null; + var f = m.toArray(w.entropy, w.entropyEnc || "hex"), y = m.toArray(w.nonce, w.nonceEnc || "hex"), h = m.toArray(w.pers, w.persEnc || "hex"); + g(f.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._init(f, y, h); + } + x.exports = b, b.prototype._init = function(f, y, h) { + var l = f.concat(y).concat(h); + this.K = new Array(this.outLen / 8), this.V = new Array(this.outLen / 8); + for (var d = 0; d < this.V.length; d++) + this.K[d] = 0, this.V[d] = 1; + this._update(l), this._reseed = 1, this.reseedInterval = 281474976710656; + }, b.prototype._hmac = function() { + return new u.hmac(this.hash, this.K); + }, b.prototype._update = function(f) { + var y = this._hmac().update(this.V).update([0]); + f && (y = y.update(f)), this.K = y.digest(), this.V = this._hmac().update(this.V).digest(), f && (this.K = this._hmac().update(this.V).update([1]).update(f).digest(), this.V = this._hmac().update(this.V).digest()); + }, b.prototype.reseed = function(f, y, h, l) { + typeof y != "string" && (l = h, h = y, y = null), f = m.toArray(f, y), h = m.toArray(h, l), g(f.length >= this.minEntropy / 8, "Not enough entropy. Minimum is: " + this.minEntropy + " bits"), this._update(f.concat(h || [])), this._reseed = 1; + }, b.prototype.generate = function(f, y, h, l) { + if (this._reseed > this.reseedInterval) + throw new Error("Reseed is required"); + typeof y != "string" && (l = h, h = y, y = null), h && (h = m.toArray(h, l || "hex"), this._update(h)); + for (var d = []; d.length < f; ) + this.V = this._hmac().update(this.V).digest(), d = d.concat(this.V); + var s = d.slice(0, f); + return this._update(h), this._reseed++, m.encode(s, y); + }; + }, { "hash.js": 372, "minimalistic-assert": 437, "minimalistic-crypto-utils": 438 }], 385: [function(e, x, _) { + _.read = function(u, m, g, b, w) { + var f, y, h = w * 8 - b - 1, l = (1 << h) - 1, d = l >> 1, s = -7, v = g ? w - 1 : 0, c = g ? -1 : 1, a = u[m + v]; + for (v += c, f = a & (1 << -s) - 1, a >>= -s, s += h; s > 0; f = f * 256 + u[m + v], v += c, s -= 8) + ; + for (y = f & (1 << -s) - 1, f >>= -s, s += b; s > 0; y = y * 256 + u[m + v], v += c, s -= 8) + ; + if (f === 0) + f = 1 - d; + else { + if (f === l) + return y ? NaN : (a ? -1 : 1) * (1 / 0); + y = y + Math.pow(2, b), f = f - d; + } + return (a ? -1 : 1) * y * Math.pow(2, f - b); + }, _.write = function(u, m, g, b, w, f) { + var y, h, l, d = f * 8 - w - 1, s = (1 << d) - 1, v = s >> 1, c = w === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, a = b ? 0 : f - 1, r = b ? 1 : -1, t = m < 0 || m === 0 && 1 / m < 0 ? 1 : 0; + for (m = Math.abs(m), isNaN(m) || m === 1 / 0 ? (h = isNaN(m) ? 1 : 0, y = s) : (y = Math.floor(Math.log(m) / Math.LN2), m * (l = Math.pow(2, -y)) < 1 && (y--, l *= 2), y + v >= 1 ? m += c / l : m += c * Math.pow(2, 1 - v), m * l >= 2 && (y++, l /= 2), y + v >= s ? (h = 0, y = s) : y + v >= 1 ? (h = (m * l - 1) * Math.pow(2, w), y = y + v) : (h = m * Math.pow(2, v - 1) * Math.pow(2, w), y = 0)); w >= 8; u[g + a] = h & 255, a += r, h /= 256, w -= 8) + ; + for (y = y << w | h, d += w; d > 0; u[g + a] = y & 255, a += r, y /= 256, d -= 8) + ; + u[g + a - r] |= t * 128; + }; + }, {}], 386: [function(e, x, _) { + (function(u) { + var m = u.MutationObserver || u.WebKitMutationObserver, g; + if (m) { + var b = 0, w = new m(d), f = u.document.createTextNode(""); + w.observe(f, { + characterData: !0 + }), g = function() { + f.data = b = ++b % 2; + }; + } else if (!u.setImmediate && typeof u.MessageChannel != "undefined") { + var y = new u.MessageChannel(); + y.port1.onmessage = d, g = function() { + y.port2.postMessage(0); + }; + } else + "document" in u && "onreadystatechange" in u.document.createElement("script") ? g = function() { + var c = u.document.createElement("script"); + c.onreadystatechange = function() { + d(), c.onreadystatechange = null, c.parentNode.removeChild(c), c = null; + }, u.document.documentElement.appendChild(c); + } : g = function() { + setTimeout(d, 0); + }; + var h, l = []; + function d() { + h = !0; + for (var v, c, a = l.length; a; ) { + for (c = l, l = [], v = -1; ++v < a; ) + c[v](); + a = l.length; + } + h = !1; + } + x.exports = s; + function s(v) { + l.push(v) === 1 && !h && g(); + } + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 387: [function(e, x, _) { + typeof Object.create == "function" ? x.exports = function(m, g) { + g && (m.super_ = g, m.prototype = Object.create(g.prototype, { + constructor: { + value: m, + enumerable: !1, + writable: !0, + configurable: !0 + } + })); + } : x.exports = function(m, g) { + if (g) { + m.super_ = g; + var b = function() { + }; + b.prototype = g.prototype, m.prototype = new b(), m.prototype.constructor = m; + } + }; + }, {}], 388: [function(e, x, _) { + /*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + x.exports = function(g) { + return g != null && (u(g) || m(g) || !!g._isBuffer); + }; + function u(g) { + return !!g.constructor && typeof g.constructor.isBuffer == "function" && g.constructor.isBuffer(g); + } + function m(g) { + return typeof g.readFloatLE == "function" && typeof g.slice == "function" && u(g.slice(0, 0)); + } + }, {}], 389: [function(e, x, _) { + var u = {}.toString; + x.exports = Array.isArray || function(m) { + return u.call(m) == "[object Array]"; + }; + }, {}], 390: [function(e, x, _) { + var u = e("./utils"), m = e("./support"), g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + _.encode = function(b) { + for (var w = [], f, y, h, l, d, s, v, c = 0, a = b.length, r = a, t = u.getTypeOf(b) !== "string"; c < b.length; ) + r = a - c, t ? (f = b[c++], y = c < a ? b[c++] : 0, h = c < a ? b[c++] : 0) : (f = b.charCodeAt(c++), y = c < a ? b.charCodeAt(c++) : 0, h = c < a ? b.charCodeAt(c++) : 0), l = f >> 2, d = (f & 3) << 4 | y >> 4, s = r > 1 ? (y & 15) << 2 | h >> 6 : 64, v = r > 2 ? h & 63 : 64, w.push(g.charAt(l) + g.charAt(d) + g.charAt(s) + g.charAt(v)); + return w.join(""); + }, _.decode = function(b) { + var w, f, y, h, l, d, s, v = 0, c = 0, a = "data:"; + if (b.substr(0, a.length) === a) + throw new Error("Invalid base64 input, it looks like a data url."); + b = b.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + var r = b.length * 3 / 4; + if (b.charAt(b.length - 1) === g.charAt(64) && r--, b.charAt(b.length - 2) === g.charAt(64) && r--, r % 1 !== 0) + throw new Error("Invalid base64 input, bad content length."); + var t; + for (m.uint8array ? t = new Uint8Array(r | 0) : t = new Array(r | 0); v < b.length; ) + h = g.indexOf(b.charAt(v++)), l = g.indexOf(b.charAt(v++)), d = g.indexOf(b.charAt(v++)), s = g.indexOf(b.charAt(v++)), w = h << 2 | l >> 4, f = (l & 15) << 4 | d >> 2, y = (d & 3) << 6 | s, t[c++] = w, d !== 64 && (t[c++] = f), s !== 64 && (t[c++] = y); + return t; + }; + }, { "./support": 419, "./utils": 421 }], 391: [function(e, x, _) { + var u = e("./external"), m = e("./stream/DataWorker"), b = e("./stream/DataLengthProbe"), g = e("./stream/Crc32Probe"), b = e("./stream/DataLengthProbe"); + function w(f, y, h, l, d) { + this.compressedSize = f, this.uncompressedSize = y, this.crc32 = h, this.compression = l, this.compressedContent = d; + } + w.prototype = { + /** + * Create a worker to get the uncompressed content. + * @return {GenericWorker} the worker. + */ + getContentWorker: function() { + var y = new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")), h = this; + return y.on("end", function() { + if (this.streamInfo.data_length !== h.uncompressedSize) + throw new Error("Bug : uncompressed data size mismatch"); + }), y; + }, + /** + * Create a worker to get the compressed content. + * @return {GenericWorker} the worker. + */ + getCompressedWorker: function() { + return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression); + } + }, w.createWorkerFrom = function(f, y, h) { + return f.pipe(new g()).pipe(new b("uncompressedSize")).pipe(y.compressWorker(h)).pipe(new b("compressedSize")).withStreamInfo("compression", y); + }, x.exports = w; + }, { "./external": 395, "./stream/Crc32Probe": 414, "./stream/DataLengthProbe": 415, "./stream/DataWorker": 416 }], 392: [function(e, x, _) { + var u = e("./stream/GenericWorker"); + _.STORE = { + magic: "\0\0", + compressWorker: function(g) { + return new u("STORE compression"); + }, + uncompressWorker: function() { + return new u("STORE decompression"); + } + }, _.DEFLATE = e("./flate"); + }, { "./flate": 396, "./stream/GenericWorker": 417 }], 393: [function(e, x, _) { + var u = e("./utils"); + function m() { + for (var f, y = [], h = 0; h < 256; h++) { + f = h; + for (var l = 0; l < 8; l++) + f = f & 1 ? 3988292384 ^ f >>> 1 : f >>> 1; + y[h] = f; + } + return y; + } + var g = m(); + function b(f, y, h, l) { + var d = g, s = l + h; + f = f ^ -1; + for (var v = l; v < s; v++) + f = f >>> 8 ^ d[(f ^ y[v]) & 255]; + return f ^ -1; + } + function w(f, y, h, l) { + var d = g, s = l + h; + f = f ^ -1; + for (var v = l; v < s; v++) + f = f >>> 8 ^ d[(f ^ y.charCodeAt(v)) & 255]; + return f ^ -1; + } + x.exports = function(y, h) { + if (typeof y == "undefined" || !y.length) + return 0; + var l = u.getTypeOf(y) !== "string"; + return l ? b(h | 0, y, y.length, 0) : w(h | 0, y, y.length, 0); + }; + }, { "./utils": 421 }], 394: [function(e, x, _) { + _.base64 = !1, _.binary = !1, _.dir = !1, _.createFolders = !0, _.date = null, _.compression = null, _.compressionOptions = null, _.comment = null, _.unixPermissions = null, _.dosPermissions = null; + }, {}], 395: [function(e, x, _) { + var u = null; + typeof Promise != "undefined" ? u = Promise : u = e("lie"), x.exports = { + Promise: u + }; + }, { lie: 425 }], 396: [function(e, x, _) { + var u = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Uint32Array != "undefined", m = e("pako"), g = e("./utils"), b = e("./stream/GenericWorker"), w = u ? "uint8array" : "array"; + _.magic = "\b\0"; + function f(y, h) { + b.call(this, "FlateWorker/" + y), this._pako = null, this._pakoAction = y, this._pakoOptions = h, this.meta = {}; + } + g.inherits(f, b), f.prototype.processChunk = function(y) { + this.meta = y.meta, this._pako === null && this._createPako(), this._pako.push(g.transformTo(w, y.data), !1); + }, f.prototype.flush = function() { + b.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0); + }, f.prototype.cleanUp = function() { + b.prototype.cleanUp.call(this), this._pako = null; + }, f.prototype._createPako = function() { + this._pako = new m[this._pakoAction]({ + raw: !0, + level: this._pakoOptions.level || -1 + // default compression + }); + var y = this; + this._pako.onData = function(h) { + y.push({ + data: h, + meta: y.meta + }); + }; + }, _.compressWorker = function(y) { + return new f("Deflate", y); + }, _.uncompressWorker = function() { + return new f("Inflate", {}); + }; + }, { "./stream/GenericWorker": 417, "./utils": 421, pako: 439 }], 397: [function(e, x, _) { + var u = e("../utils"), m = e("../stream/GenericWorker"), g = e("../utf8"), b = e("../crc32"), w = e("../signature"), f = function(a, r) { + var t = "", i; + for (i = 0; i < r; i++) + t += String.fromCharCode(a & 255), a = a >>> 8; + return t; + }, y = function(a, r) { + var t = a; + return a || (t = r ? 16893 : 33204), (t & 65535) << 16; + }, h = function(a, r) { + return (a || 0) & 63; + }, l = function(a, r, t, i, n, o) { + var p = a.file, O = a.compression, P = o !== g.utf8encode, F = u.transformTo("string", o(p.name)), z = u.transformTo("string", g.utf8encode(p.name)), N = p.comment, M = u.transformTo("string", o(N)), I = u.transformTo("string", g.utf8encode(N)), R = z.length !== p.name.length, C = I.length !== N.length, E, A, L = "", $ = "", W = "", U = p.dir, D = p.date, B = { + crc32: 0, + compressedSize: 0, + uncompressedSize: 0 + }; + (!r || t) && (B.crc32 = a.crc32, B.compressedSize = a.compressedSize, B.uncompressedSize = a.uncompressedSize); + var j = 0; + r && (j |= 8), !P && (R || C) && (j |= 2048); + var V = 0, re = 0; + U && (V |= 16), n === "UNIX" ? (re = 798, V |= y(p.unixPermissions, U)) : (re = 20, V |= h(p.dosPermissions)), E = D.getUTCHours(), E = E << 6, E = E | D.getUTCMinutes(), E = E << 5, E = E | D.getUTCSeconds() / 2, A = D.getUTCFullYear() - 1980, A = A << 4, A = A | D.getUTCMonth() + 1, A = A << 5, A = A | D.getUTCDate(), R && ($ = // Version + f(1, 1) + // NameCRC32 + f(b(F), 4) + // UnicodeName + z, L += // Info-ZIP Unicode Path Extra Field + "up" + // size + f($.length, 2) + // content + $), C && (W = // Version + f(1, 1) + // CommentCRC32 + f(b(M), 4) + // UnicodeName + I, L += // Info-ZIP Unicode Path Extra Field + "uc" + // size + f(W.length, 2) + // content + W); + var ee = ""; + ee += ` +\0`, ee += f(j, 2), ee += O.magic, ee += f(E, 2), ee += f(A, 2), ee += f(B.crc32, 4), ee += f(B.compressedSize, 4), ee += f(B.uncompressedSize, 4), ee += f(F.length, 2), ee += f(L.length, 2); + var ce = w.LOCAL_FILE_HEADER + ee + F + L, ve = w.CENTRAL_FILE_HEADER + // version made by (00: DOS) + f(re, 2) + // file header (common to file and central directory) + ee + // file comment length + f(M.length, 2) + // disk number start + "\0\0\0\0" + // external file attributes + f(V, 4) + // relative offset of local header + f(i, 4) + // file name + F + // extra field + L + // file comment + M; + return { + fileRecord: ce, + dirRecord: ve + }; + }, d = function(a, r, t, i, n) { + var o = "", p = u.transformTo("string", n(i)); + return o = w.CENTRAL_DIRECTORY_END + // number of this disk + "\0\0\0\0" + // total number of entries in the central directory on this disk + f(a, 2) + // total number of entries in the central directory + f(a, 2) + // size of the central directory 4 bytes + f(r, 4) + // offset of start of central directory with respect to the starting disk number + f(t, 4) + // .ZIP file comment length + f(p.length, 2) + // .ZIP file comment + p, o; + }, s = function(a) { + var r = ""; + return r = w.DATA_DESCRIPTOR + // crc-32 4 bytes + f(a.crc32, 4) + // compressed size 4 bytes + f(a.compressedSize, 4) + // uncompressed size 4 bytes + f(a.uncompressedSize, 4), r; + }; + function v(c, a, r, t) { + m.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = a, this.zipPlatform = r, this.encodeFileName = t, this.streamFiles = c, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = []; + } + u.inherits(v, m), v.prototype.push = function(c) { + var a = c.meta.percent || 0, r = this.entriesCount, t = this._sources.length; + this.accumulate ? this.contentBuffer.push(c) : (this.bytesWritten += c.data.length, m.prototype.push.call(this, { + data: c.data, + meta: { + currentFile: this.currentFile, + percent: r ? (a + 100 * (r - t - 1)) / r : 100 + } + })); + }, v.prototype.openedSource = function(c) { + this.currentSourceOffset = this.bytesWritten, this.currentFile = c.file.name; + var a = this.streamFiles && !c.file.dir; + if (a) { + var r = l(c, a, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + this.push({ + data: r.fileRecord, + meta: { + percent: 0 + } + }); + } else + this.accumulate = !0; + }, v.prototype.closedSource = function(c) { + this.accumulate = !1; + var a = this.streamFiles && !c.file.dir, r = l(c, a, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + if (this.dirRecords.push(r.dirRecord), a) + this.push({ + data: s(c), + meta: { + percent: 100 + } + }); + else + for (this.push({ + data: r.fileRecord, + meta: { + percent: 0 + } + }); this.contentBuffer.length; ) + this.push(this.contentBuffer.shift()); + this.currentFile = null; + }, v.prototype.flush = function() { + for (var c = this.bytesWritten, a = 0; a < this.dirRecords.length; a++) + this.push({ + data: this.dirRecords[a], + meta: { + percent: 100 + } + }); + var r = this.bytesWritten - c, t = d(this.dirRecords.length, r, c, this.zipComment, this.encodeFileName); + this.push({ + data: t, + meta: { + percent: 100 + } + }); + }, v.prototype.prepareNextSource = function() { + this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume(); + }, v.prototype.registerPrevious = function(c) { + this._sources.push(c); + var a = this; + return c.on("data", function(r) { + a.processChunk(r); + }), c.on("end", function() { + a.closedSource(a.previous.streamInfo), a._sources.length ? a.prepareNextSource() : a.end(); + }), c.on("error", function(r) { + a.error(r); + }), this; + }, v.prototype.resume = function() { + if (!m.prototype.resume.call(this)) + return !1; + if (!this.previous && this._sources.length) + return this.prepareNextSource(), !0; + if (!this.previous && !this._sources.length && !this.generatedError) + return this.end(), !0; + }, v.prototype.error = function(c) { + var a = this._sources; + if (!m.prototype.error.call(this, c)) + return !1; + for (var r = 0; r < a.length; r++) + try { + a[r].error(c); + } catch (t) { + } + return !0; + }, v.prototype.lock = function() { + m.prototype.lock.call(this); + for (var c = this._sources, a = 0; a < c.length; a++) + c[a].lock(); + }, x.exports = v; + }, { "../crc32": 393, "../signature": 412, "../stream/GenericWorker": 417, "../utf8": 420, "../utils": 421 }], 398: [function(e, x, _) { + var u = e("../compressions"), m = e("./ZipFileWorker"), g = function(w, f) { + var y = w || f, h = u[y]; + if (!h) + throw new Error(y + " is not a valid compression method !"); + return h; + }; + _.generateWorker = function(b, w, f) { + var y = new m(w.streamFiles, f, w.platform, w.encodeFileName), h = 0; + try { + b.forEach(function(l, d) { + h++; + var s = g(d.options.compression, w.compression), v = d.options.compressionOptions || w.compressionOptions || {}, c = d.dir, a = d.date; + d._compressWorker(s, v).withStreamInfo("file", { + name: l, + dir: c, + date: a, + comment: d.comment || "", + unixPermissions: d.unixPermissions, + dosPermissions: d.dosPermissions + }).pipe(y); + }), y.entriesCount = h; + } catch (l) { + y.error(l); + } + return y; + }; + }, { "../compressions": 392, "./ZipFileWorker": 397 }], 399: [function(e, x, _) { + function u() { + if (!(this instanceof u)) + return new u(); + if (arguments.length) + throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); + this.files = {}, this.comment = null, this.root = "", this.clone = function() { + var m = new u(); + for (var g in this) + typeof this[g] != "function" && (m[g] = this[g]); + return m; + }; + } + u.prototype = e("./object"), u.prototype.loadAsync = e("./load"), u.support = e("./support"), u.defaults = e("./defaults"), u.version = "3.5.0", u.loadAsync = function(m, g) { + return new u().loadAsync(m, g); + }, u.external = e("./external"), x.exports = u; + }, { "./defaults": 394, "./external": 395, "./load": 400, "./object": 404, "./support": 419 }], 400: [function(e, x, _) { + var g = e("./utils"), u = e("./external"), m = e("./utf8"), g = e("./utils"), b = e("./zipEntries"), w = e("./stream/Crc32Probe"), f = e("./nodejsUtils"); + function y(h) { + return new u.Promise(function(l, d) { + var s = h.decompressed.getContentWorker().pipe(new w()); + s.on("error", function(v) { + d(v); + }).on("end", function() { + s.streamInfo.crc32 !== h.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : l(); + }).resume(); + }); + } + x.exports = function(h, l) { + var d = this; + return l = g.extend(l || {}, { + base64: !1, + checkCRC32: !1, + optimizedBinaryString: !1, + createFolders: !1, + decodeFileName: m.utf8decode + }), f.isNode && f.isStream(h) ? u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : g.prepareContent("the loaded zip file", h, !0, l.optimizedBinaryString, l.base64).then(function(s) { + var v = new b(l); + return v.load(s), v; + }).then(function(v) { + var c = [u.Promise.resolve(v)], a = v.files; + if (l.checkCRC32) + for (var r = 0; r < a.length; r++) + c.push(y(a[r])); + return u.Promise.all(c); + }).then(function(v) { + for (var c = v.shift(), a = c.files, r = 0; r < a.length; r++) { + var t = a[r]; + d.file(t.fileNameStr, t.decompressed, { + binary: !0, + optimizedBinaryString: !0, + date: t.date, + dir: t.dir, + comment: t.fileCommentStr.length ? t.fileCommentStr : null, + unixPermissions: t.unixPermissions, + dosPermissions: t.dosPermissions, + createFolders: l.createFolders + }); + } + return c.zipComment.length && (d.comment = c.zipComment), d; + }); + }; + }, { "./external": 395, "./nodejsUtils": 403, "./stream/Crc32Probe": 414, "./utf8": 420, "./utils": 421, "./zipEntries": 422 }], 401: [function(e, x, _) { + var u = e("../utils"), m = e("../stream/GenericWorker"); + function g(b, w) { + m.call(this, "Nodejs stream input adapter for " + b), this._upstreamEnded = !1, this._bindStream(w); + } + u.inherits(g, m), g.prototype._bindStream = function(b) { + var w = this; + this._stream = b, b.pause(), b.on("data", function(f) { + w.push({ + data: f, + meta: { + percent: 0 + } + }); + }).on("error", function(f) { + w.isPaused ? this.generatedError = f : w.error(f); + }).on("end", function() { + w.isPaused ? w._upstreamEnded = !0 : w.end(); + }); + }, g.prototype.pause = function() { + return m.prototype.pause.call(this) ? (this._stream.pause(), !0) : !1; + }, g.prototype.resume = function() { + return m.prototype.resume.call(this) ? (this._upstreamEnded ? this.end() : this._stream.resume(), !0) : !1; + }, x.exports = g; + }, { "../stream/GenericWorker": 417, "../utils": 421 }], 402: [function(e, x, _) { + var u = e("readable-stream").Readable, m = e("../utils"); + m.inherits(g, u); + function g(b, w, f) { + u.call(this, w), this._helper = b; + var y = this; + b.on("data", function(h, l) { + y.push(h) || y._helper.pause(), f && f(l); + }).on("error", function(h) { + y.emit("error", h); + }).on("end", function() { + y.push(null); + }); + } + g.prototype._read = function() { + this._helper.resume(); + }, x.exports = g; + }, { "../utils": 421, "readable-stream": 405 }], 403: [function(e, x, _) { + (function(u) { + x.exports = { + /** + * True if this is running in Nodejs, will be undefined in a browser. + * In a browser, browserify won't include this file and the whole module + * will be resolved an empty object. + */ + isNode: typeof u != "undefined", + /** + * Create a new nodejs Buffer from an existing content. + * @param {Object} data the data to pass to the constructor. + * @param {String} encoding the encoding to use. + * @return {Buffer} a new Buffer. + */ + newBufferFrom: function(g, b) { + if (u.from && u.from !== Uint8Array.from) + return u.from(g, b); + if (typeof g == "number") + throw new Error('The "data" argument must not be a number'); + return new u(g, b); + }, + /** + * Create a new nodejs Buffer with the specified size. + * @param {Integer} size the size of the buffer. + * @return {Buffer} a new Buffer. + */ + allocBuffer: function(g) { + if (u.alloc) + return u.alloc(g); + var b = new u(g); + return b.fill(0), b; + }, + /** + * Find out if an object is a Buffer. + * @param {Object} b the object to test. + * @return {Boolean} true if the object is a Buffer, false otherwise. + */ + isBuffer: function(g) { + return u.isBuffer(g); + }, + isStream: function(g) { + return g && typeof g.on == "function" && typeof g.pause == "function" && typeof g.resume == "function"; + } + }; + }).call(this, e("buffer").Buffer); + }, { buffer: 216 }], 404: [function(e, x, _) { + var u = e("./utf8"), m = e("./utils"), g = e("./stream/GenericWorker"), b = e("./stream/StreamHelper"), w = e("./defaults"), f = e("./compressedObject"), y = e("./zipObject"), h = e("./generate"), l = e("./nodejsUtils"), d = e("./nodejs/NodejsStreamInputAdapter"), s = function(n, o, p) { + var O = m.getTypeOf(o), P, F = m.extend(p || {}, w); + F.date = F.date || /* @__PURE__ */ new Date(), F.compression !== null && (F.compression = F.compression.toUpperCase()), typeof F.unixPermissions == "string" && (F.unixPermissions = parseInt(F.unixPermissions, 8)), F.unixPermissions && F.unixPermissions & 16384 && (F.dir = !0), F.dosPermissions && F.dosPermissions & 16 && (F.dir = !0), F.dir && (n = c(n)), F.createFolders && (P = v(n)) && a.call(this, P, !0); + var z = O === "string" && F.binary === !1 && F.base64 === !1; + (!p || typeof p.binary == "undefined") && (F.binary = !z); + var N = o instanceof f && o.uncompressedSize === 0; + (N || F.dir || !o || o.length === 0) && (F.base64 = !1, F.binary = !0, o = "", F.compression = "STORE", O = "string"); + var M = null; + o instanceof f || o instanceof g ? M = o : l.isNode && l.isStream(o) ? M = new d(n, o) : M = m.prepareContent(n, o, F.binary, F.optimizedBinaryString, F.base64); + var I = new y(n, M, F); + this.files[n] = I; + }, v = function(n) { + n.slice(-1) === "/" && (n = n.substring(0, n.length - 1)); + var o = n.lastIndexOf("/"); + return o > 0 ? n.substring(0, o) : ""; + }, c = function(n) { + return n.slice(-1) !== "/" && (n += "/"), n; + }, a = function(n, o) { + return o = typeof o != "undefined" ? o : w.createFolders, n = c(n), this.files[n] || s.call(this, n, null, { + dir: !0, + createFolders: o + }), this.files[n]; + }; + function r(i) { + return Object.prototype.toString.call(i) === "[object RegExp]"; + } + var t = { + /** + * @see loadAsync + */ + load: function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, + /** + * Call a callback function for each entry at this folder level. + * @param {Function} cb the callback function: + * function (relativePath, file) {...} + * It takes 2 arguments : the relative path and the file. + */ + forEach: function(n) { + var o, p, O; + for (o in this.files) + this.files.hasOwnProperty(o) && (O = this.files[o], p = o.slice(this.root.length, o.length), p && o.slice(0, this.root.length) === this.root && n(p, O)); + }, + /** + * Filter nested files/folders with the specified function. + * @param {Function} search the predicate to use : + * function (relativePath, file) {...} + * It takes 2 arguments : the relative path and the file. + * @return {Array} An array of matching elements. + */ + filter: function(n) { + var o = []; + return this.forEach(function(p, O) { + n(p, O) && o.push(O); + }), o; + }, + /** + * Add a file to the zip file, or search a file. + * @param {string|RegExp} name The name of the file to add (if data is defined), + * the name of the file to find (if no data) or a regex to match files. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded + * @param {Object} o File options + * @return {JSZip|Object|Array} this JSZip object (when adding a file), + * a file (when searching by string) or an array of files (when searching by regex). + */ + file: function(n, o, p) { + if (arguments.length === 1) + if (r(n)) { + var O = n; + return this.filter(function(F, z) { + return !z.dir && O.test(F); + }); + } else { + var P = this.files[this.root + n]; + return P && !P.dir ? P : null; + } + else + n = this.root + n, s.call(this, n, o, p); + return this; + }, + /** + * Add a directory to the zip file, or search. + * @param {String|RegExp} arg The name of the directory to add, or a regex to search folders. + * @return {JSZip} an object with the new directory as the root, or an array containing matching folders. + */ + folder: function(n) { + if (!n) + return this; + if (r(n)) + return this.filter(function(P, F) { + return F.dir && n.test(P); + }); + var o = this.root + n, p = a.call(this, o), O = this.clone(); + return O.root = p.name, O; + }, + /** + * Delete a file, or a directory and all sub-files, from the zip + * @param {string} name the name of the file to delete + * @return {JSZip} this JSZip object + */ + remove: function(n) { + n = this.root + n; + var o = this.files[n]; + if (o || (n.slice(-1) !== "/" && (n += "/"), o = this.files[n]), o && !o.dir) + delete this.files[n]; + else + for (var p = this.filter(function(P, F) { + return F.name.slice(0, n.length) === n; + }), O = 0; O < p.length; O++) + delete this.files[p[O].name]; + return this; + }, + /** + * Generate the complete zip file + * @param {Object} options the options to generate the zip file : + * - compression, "STORE" by default. + * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. + * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file + */ + generate: function(n) { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, + /** + * Generate the complete zip file as an internal stream. + * @param {Object} options the options to generate the zip file : + * - compression, "STORE" by default. + * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. + * @return {StreamHelper} the streamed zip file. + */ + generateInternalStream: function(n) { + var o, p = {}; + try { + if (p = m.extend(n || {}, { + streamFiles: !1, + compression: "STORE", + compressionOptions: null, + type: "", + platform: "DOS", + comment: null, + mimeType: "application/zip", + encodeFileName: u.utf8encode + }), p.type = p.type.toLowerCase(), p.compression = p.compression.toUpperCase(), p.type === "binarystring" && (p.type = "string"), !p.type) + throw new Error("No output type specified."); + m.checkSupport(p.type), (p.platform === "darwin" || p.platform === "freebsd" || p.platform === "linux" || p.platform === "sunos") && (p.platform = "UNIX"), p.platform === "win32" && (p.platform = "DOS"); + var O = p.comment || this.comment || ""; + o = h.generateWorker(this, p, O); + } catch (P) { + o = new g("error"), o.error(P); + } + return new b(o, p.type || "string", p.mimeType); + }, + /** + * Generate the complete zip file asynchronously. + * @see generateInternalStream + */ + generateAsync: function(n, o) { + return this.generateInternalStream(n).accumulate(o); + }, + /** + * Generate the complete zip file asynchronously. + * @see generateInternalStream + */ + generateNodeStream: function(n, o) { + return n = n || {}, n.type || (n.type = "nodebuffer"), this.generateInternalStream(n).toNodejsStream(o); + } + }; + x.exports = t; + }, { "./compressedObject": 391, "./defaults": 394, "./generate": 398, "./nodejs/NodejsStreamInputAdapter": 401, "./nodejsUtils": 403, "./stream/GenericWorker": 417, "./stream/StreamHelper": 418, "./utf8": 420, "./utils": 421, "./zipObject": 424 }], 405: [function(e, x, _) { + x.exports = e("stream"); + }, { stream: 506 }], 406: [function(e, x, _) { + var u = e("./DataReader"), m = e("../utils"); + function g(b) { + u.call(this, b); + for (var w = 0; w < this.data.length; w++) + b[w] = b[w] & 255; + } + m.inherits(g, u), g.prototype.byteAt = function(b) { + return this.data[this.zero + b]; + }, g.prototype.lastIndexOfSignature = function(b) { + for (var w = b.charCodeAt(0), f = b.charCodeAt(1), y = b.charCodeAt(2), h = b.charCodeAt(3), l = this.length - 4; l >= 0; --l) + if (this.data[l] === w && this.data[l + 1] === f && this.data[l + 2] === y && this.data[l + 3] === h) + return l - this.zero; + return -1; + }, g.prototype.readAndCheckSignature = function(b) { + var w = b.charCodeAt(0), f = b.charCodeAt(1), y = b.charCodeAt(2), h = b.charCodeAt(3), l = this.readData(4); + return w === l[0] && f === l[1] && y === l[2] && h === l[3]; + }, g.prototype.readData = function(b) { + if (this.checkOffset(b), b === 0) + return []; + var w = this.data.slice(this.zero + this.index, this.zero + this.index + b); + return this.index += b, w; + }, x.exports = g; + }, { "../utils": 421, "./DataReader": 407 }], 407: [function(e, x, _) { + var u = e("../utils"); + function m(g) { + this.data = g, this.length = g.length, this.index = 0, this.zero = 0; + } + m.prototype = { + /** + * Check that the offset will not go too far. + * @param {string} offset the additional offset to check. + * @throws {Error} an Error if the offset is out of bounds. + */ + checkOffset: function(b) { + this.checkIndex(this.index + b); + }, + /** + * Check that the specified index will not be too far. + * @param {string} newIndex the index to check. + * @throws {Error} an Error if the index is out of bounds. + */ + checkIndex: function(b) { + if (this.length < this.zero + b || b < 0) + throw new Error("End of data reached (data length = " + this.length + ", asked index = " + b + "). Corrupted zip ?"); + }, + /** + * Change the index. + * @param {number} newIndex The new index. + * @throws {Error} if the new index is out of the data. + */ + setIndex: function(b) { + this.checkIndex(b), this.index = b; + }, + /** + * Skip the next n bytes. + * @param {number} n the number of bytes to skip. + * @throws {Error} if the new index is out of the data. + */ + skip: function(b) { + this.setIndex(this.index + b); + }, + /** + * Get the byte at the specified index. + * @param {number} i the index to use. + * @return {number} a byte. + */ + byteAt: function(b) { + }, + /** + * Get the next number with a given byte size. + * @param {number} size the number of bytes to read. + * @return {number} the corresponding number. + */ + readInt: function(b) { + var w = 0, f; + for (this.checkOffset(b), f = this.index + b - 1; f >= this.index; f--) + w = (w << 8) + this.byteAt(f); + return this.index += b, w; + }, + /** + * Get the next string with a given byte size. + * @param {number} size the number of bytes to read. + * @return {string} the corresponding string. + */ + readString: function(b) { + return u.transformTo("string", this.readData(b)); + }, + /** + * Get raw data without conversion, bytes. + * @param {number} size the number of bytes to read. + * @return {Object} the raw data, implementation specific. + */ + readData: function(b) { + }, + /** + * Find the last occurrence of a zip signature (4 bytes). + * @param {string} sig the signature to find. + * @return {number} the index of the last occurrence, -1 if not found. + */ + lastIndexOfSignature: function(b) { + }, + /** + * Read the signature (4 bytes) at the current position and compare it with sig. + * @param {string} sig the expected signature + * @return {boolean} true if the signature matches, false otherwise. + */ + readAndCheckSignature: function(b) { + }, + /** + * Get the next date. + * @return {Date} the date. + */ + readDate: function() { + var b = this.readInt(4); + return new Date(Date.UTC( + (b >> 25 & 127) + 1980, + // year + (b >> 21 & 15) - 1, + // month + b >> 16 & 31, + // day + b >> 11 & 31, + // hour + b >> 5 & 63, + // minute + (b & 31) << 1 + )); + } + }, x.exports = m; + }, { "../utils": 421 }], 408: [function(e, x, _) { + var u = e("./Uint8ArrayReader"), m = e("../utils"); + function g(b) { + u.call(this, b); + } + m.inherits(g, u), g.prototype.readData = function(b) { + this.checkOffset(b); + var w = this.data.slice(this.zero + this.index, this.zero + this.index + b); + return this.index += b, w; + }, x.exports = g; + }, { "../utils": 421, "./Uint8ArrayReader": 410 }], 409: [function(e, x, _) { + var u = e("./DataReader"), m = e("../utils"); + function g(b) { + u.call(this, b); + } + m.inherits(g, u), g.prototype.byteAt = function(b) { + return this.data.charCodeAt(this.zero + b); + }, g.prototype.lastIndexOfSignature = function(b) { + return this.data.lastIndexOf(b) - this.zero; + }, g.prototype.readAndCheckSignature = function(b) { + var w = this.readData(4); + return b === w; + }, g.prototype.readData = function(b) { + this.checkOffset(b); + var w = this.data.slice(this.zero + this.index, this.zero + this.index + b); + return this.index += b, w; + }, x.exports = g; + }, { "../utils": 421, "./DataReader": 407 }], 410: [function(e, x, _) { + var u = e("./ArrayReader"), m = e("../utils"); + function g(b) { + u.call(this, b); + } + m.inherits(g, u), g.prototype.readData = function(b) { + if (this.checkOffset(b), b === 0) + return new Uint8Array(0); + var w = this.data.subarray(this.zero + this.index, this.zero + this.index + b); + return this.index += b, w; + }, x.exports = g; + }, { "../utils": 421, "./ArrayReader": 406 }], 411: [function(e, x, _) { + var u = e("../utils"), m = e("../support"), g = e("./ArrayReader"), b = e("./StringReader"), w = e("./NodeBufferReader"), f = e("./Uint8ArrayReader"); + x.exports = function(y) { + var h = u.getTypeOf(y); + return u.checkSupport(h), h === "string" && !m.uint8array ? new b(y) : h === "nodebuffer" ? new w(y) : m.uint8array ? new f(u.transformTo("uint8array", y)) : new g(u.transformTo("array", y)); + }; + }, { "../support": 419, "../utils": 421, "./ArrayReader": 406, "./NodeBufferReader": 408, "./StringReader": 409, "./Uint8ArrayReader": 410 }], 412: [function(e, x, _) { + _.LOCAL_FILE_HEADER = "PK", _.CENTRAL_FILE_HEADER = "PK", _.CENTRAL_DIRECTORY_END = "PK", _.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", _.ZIP64_CENTRAL_DIRECTORY_END = "PK", _.DATA_DESCRIPTOR = "PK\x07\b"; + }, {}], 413: [function(e, x, _) { + var u = e("./GenericWorker"), m = e("../utils"); + function g(b) { + u.call(this, "ConvertWorker to " + b), this.destType = b; + } + m.inherits(g, u), g.prototype.processChunk = function(b) { + this.push({ + data: m.transformTo(this.destType, b.data), + meta: b.meta + }); + }, x.exports = g; + }, { "../utils": 421, "./GenericWorker": 417 }], 414: [function(e, x, _) { + var u = e("./GenericWorker"), m = e("../crc32"), g = e("../utils"); + function b() { + u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0); + } + g.inherits(b, u), b.prototype.processChunk = function(w) { + this.streamInfo.crc32 = m(w.data, this.streamInfo.crc32 || 0), this.push(w); + }, x.exports = b; + }, { "../crc32": 393, "../utils": 421, "./GenericWorker": 417 }], 415: [function(e, x, _) { + var u = e("../utils"), m = e("./GenericWorker"); + function g(b) { + m.call(this, "DataLengthProbe for " + b), this.propName = b, this.withStreamInfo(b, 0); + } + u.inherits(g, m), g.prototype.processChunk = function(b) { + if (b) { + var w = this.streamInfo[this.propName] || 0; + this.streamInfo[this.propName] = w + b.data.length; + } + m.prototype.processChunk.call(this, b); + }, x.exports = g; + }, { "../utils": 421, "./GenericWorker": 417 }], 416: [function(e, x, _) { + var u = e("../utils"), m = e("./GenericWorker"), g = 16 * 1024; + function b(w) { + m.call(this, "DataWorker"); + var f = this; + this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, w.then(function(y) { + f.dataIsReady = !0, f.data = y, f.max = y && y.length || 0, f.type = u.getTypeOf(y), f.isPaused || f._tickAndRepeat(); + }, function(y) { + f.error(y); + }); + } + u.inherits(b, m), b.prototype.cleanUp = function() { + m.prototype.cleanUp.call(this), this.data = null; + }, b.prototype.resume = function() { + return m.prototype.resume.call(this) ? (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0) : !1; + }, b.prototype._tickAndRepeat = function() { + this._tickScheduled = !1, !(this.isPaused || this.isFinished) && (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0)); + }, b.prototype._tick = function() { + if (this.isPaused || this.isFinished) + return !1; + var w = g, f = null, y = Math.min(this.max, this.index + w); + if (this.index >= this.max) + return this.end(); + switch (this.type) { + case "string": + f = this.data.substring(this.index, y); + break; + case "uint8array": + f = this.data.subarray(this.index, y); + break; + case "array": + case "nodebuffer": + f = this.data.slice(this.index, y); + break; + } + return this.index = y, this.push({ + data: f, + meta: { + percent: this.max ? this.index / this.max * 100 : 0 + } + }); + }, x.exports = b; + }, { "../utils": 421, "./GenericWorker": 417 }], 417: [function(e, x, _) { + function u(m) { + this.name = m || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { + data: [], + end: [], + error: [] + }, this.previous = null; + } + u.prototype = { + /** + * Push a chunk to the next workers. + * @param {Object} chunk the chunk to push + */ + push: function(g) { + this.emit("data", g); + }, + /** + * End the stream. + * @return {Boolean} true if this call ended the worker, false otherwise. + */ + end: function() { + if (this.isFinished) + return !1; + this.flush(); + try { + this.emit("end"), this.cleanUp(), this.isFinished = !0; + } catch (g) { + this.emit("error", g); + } + return !0; + }, + /** + * End the stream with an error. + * @param {Error} e the error which caused the premature end. + * @return {Boolean} true if this call ended the worker with an error, false otherwise. + */ + error: function(g) { + return this.isFinished ? !1 : (this.isPaused ? this.generatedError = g : (this.isFinished = !0, this.emit("error", g), this.previous && this.previous.error(g), this.cleanUp()), !0); + }, + /** + * Add a callback on an event. + * @param {String} name the name of the event (data, end, error) + * @param {Function} listener the function to call when the event is triggered + * @return {GenericWorker} the current object for chainability + */ + on: function(g, b) { + return this._listeners[g].push(b), this; + }, + /** + * Clean any references when a worker is ending. + */ + cleanUp: function() { + this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = []; + }, + /** + * Trigger an event. This will call registered callback with the provided arg. + * @param {String} name the name of the event (data, end, error) + * @param {Object} arg the argument to call the callback with. + */ + emit: function(g, b) { + if (this._listeners[g]) + for (var w = 0; w < this._listeners[g].length; w++) + this._listeners[g][w].call(this, b); + }, + /** + * Chain a worker with an other. + * @param {Worker} next the worker receiving events from the current one. + * @return {worker} the next worker for chainability + */ + pipe: function(g) { + return g.registerPrevious(this); + }, + /** + * Same as `pipe` in the other direction. + * Using an API with `pipe(next)` is very easy. + * Implementing the API with the point of view of the next one registering + * a source is easier, see the ZipFileWorker. + * @param {Worker} previous the previous worker, sending events to this one + * @return {Worker} the current worker for chainability + */ + registerPrevious: function(g) { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.streamInfo = g.streamInfo, this.mergeStreamInfo(), this.previous = g; + var b = this; + return g.on("data", function(w) { + b.processChunk(w); + }), g.on("end", function() { + b.end(); + }), g.on("error", function(w) { + b.error(w); + }), this; + }, + /** + * Pause the stream so it doesn't send events anymore. + * @return {Boolean} true if this call paused the worker, false otherwise. + */ + pause: function() { + return this.isPaused || this.isFinished ? !1 : (this.isPaused = !0, this.previous && this.previous.pause(), !0); + }, + /** + * Resume a paused stream. + * @return {Boolean} true if this call resumed the worker, false otherwise. + */ + resume: function() { + if (!this.isPaused || this.isFinished) + return !1; + this.isPaused = !1; + var g = !1; + return this.generatedError && (this.error(this.generatedError), g = !0), this.previous && this.previous.resume(), !g; + }, + /** + * Flush any remaining bytes as the stream is ending. + */ + flush: function() { + }, + /** + * Process a chunk. This is usually the method overridden. + * @param {Object} chunk the chunk to process. + */ + processChunk: function(g) { + this.push(g); + }, + /** + * Add a key/value to be added in the workers chain streamInfo once activated. + * @param {String} key the key to use + * @param {Object} value the associated value + * @return {Worker} the current worker for chainability + */ + withStreamInfo: function(g, b) { + return this.extraStreamInfo[g] = b, this.mergeStreamInfo(), this; + }, + /** + * Merge this worker's streamInfo into the chain's streamInfo. + */ + mergeStreamInfo: function() { + for (var g in this.extraStreamInfo) + this.extraStreamInfo.hasOwnProperty(g) && (this.streamInfo[g] = this.extraStreamInfo[g]); + }, + /** + * Lock the stream to prevent further updates on the workers chain. + * After calling this method, all calls to pipe will fail. + */ + lock: function() { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.isLocked = !0, this.previous && this.previous.lock(); + }, + /** + * + * Pretty print the workers chain. + */ + toString: function() { + var g = "Worker " + this.name; + return this.previous ? this.previous + " -> " + g : g; + } + }, x.exports = u; + }, {}], 418: [function(e, x, _) { + (function(u) { + var m = e("../utils"), g = e("./ConvertWorker"), b = e("./GenericWorker"), w = e("../base64"), f = e("../support"), y = e("../external"), h = null; + if (f.nodestream) + try { + h = e("../nodejs/NodejsStreamOutputAdapter"); + } catch (c) { + } + function l(c, a, r) { + switch (c) { + case "blob": + return m.newBlob(m.transformTo("arraybuffer", a), r); + case "base64": + return w.encode(a); + default: + return m.transformTo(c, a); + } + } + function d(c, a) { + var r, t = 0, i = null, n = 0; + for (r = 0; r < a.length; r++) + n += a[r].length; + switch (c) { + case "string": + return a.join(""); + case "array": + return Array.prototype.concat.apply([], a); + case "uint8array": + for (i = new Uint8Array(n), r = 0; r < a.length; r++) + i.set(a[r], t), t += a[r].length; + return i; + case "nodebuffer": + return u.concat(a); + default: + throw new Error("concat : unsupported type '" + c + "'"); + } + } + function s(c, a) { + return new y.Promise(function(r, t) { + var i = [], n = c._internalType, o = c._outputType, p = c._mimeType; + c.on("data", function(O, P) { + i.push(O), a && a(P); + }).on("error", function(O) { + i = [], t(O); + }).on("end", function() { + try { + var O = l(o, d(n, i), p); + r(O); + } catch (P) { + t(P); + } + i = []; + }).resume(); + }); + } + function v(c, a, r) { + var t = a; + switch (a) { + case "blob": + case "arraybuffer": + t = "uint8array"; + break; + case "base64": + t = "string"; + break; + } + try { + this._internalType = t, this._outputType = a, this._mimeType = r, m.checkSupport(t), this._worker = c.pipe(new g(t)), c.lock(); + } catch (i) { + this._worker = new b("error"), this._worker.error(i); + } + } + v.prototype = { + /** + * Listen a StreamHelper, accumulate its content and concatenate it into a + * complete block. + * @param {Function} updateCb the update callback. + * @return Promise the promise for the accumulation. + */ + accumulate: function(a) { + return s(this, a); + }, + /** + * Add a listener on an event triggered on a stream. + * @param {String} evt the name of the event + * @param {Function} fn the listener + * @return {StreamHelper} the current helper. + */ + on: function(a, r) { + var t = this; + return a === "data" ? this._worker.on(a, function(i) { + r.call(t, i.data, i.meta); + }) : this._worker.on(a, function() { + m.delay(r, arguments, t); + }), this; + }, + /** + * Resume the flow of chunks. + * @return {StreamHelper} the current helper. + */ + resume: function() { + return m.delay(this._worker.resume, [], this._worker), this; + }, + /** + * Pause the flow of chunks. + * @return {StreamHelper} the current helper. + */ + pause: function() { + return this._worker.pause(), this; + }, + /** + * Return a nodejs stream for this helper. + * @param {Function} updateCb the update callback. + * @return {NodejsStreamOutputAdapter} the nodejs stream. + */ + toNodejsStream: function(a) { + if (m.checkSupport("nodestream"), this._outputType !== "nodebuffer") + throw new Error(this._outputType + " is not supported by this method"); + return new h(this, { + objectMode: this._outputType !== "nodebuffer" + }, a); + } + }, x.exports = v; + }).call(this, e("buffer").Buffer); + }, { "../base64": 390, "../external": 395, "../nodejs/NodejsStreamOutputAdapter": 402, "../support": 419, "../utils": 421, "./ConvertWorker": 413, "./GenericWorker": 417, buffer: 216 }], 419: [function(e, x, _) { + (function(u) { + if (_.base64 = !0, _.array = !0, _.string = !0, _.arraybuffer = typeof ArrayBuffer != "undefined" && typeof Uint8Array != "undefined", _.nodebuffer = typeof u != "undefined", _.uint8array = typeof Uint8Array != "undefined", typeof ArrayBuffer == "undefined") + _.blob = !1; + else { + var m = new ArrayBuffer(0); + try { + _.blob = new Blob([m], { + type: "application/zip" + }).size === 0; + } catch (w) { + try { + var g = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, b = new g(); + b.append(m), _.blob = b.getBlob("application/zip").size === 0; + } catch (f) { + _.blob = !1; + } + } + } + try { + _.nodestream = !!e("readable-stream").Readable; + } catch (w) { + _.nodestream = !1; + } + }).call(this, e("buffer").Buffer); + }, { buffer: 216, "readable-stream": 405 }], 420: [function(e, x, _) { + for (var u = e("./utils"), m = e("./support"), g = e("./nodejsUtils"), b = e("./stream/GenericWorker"), w = new Array(256), f = 0; f < 256; f++) + w[f] = f >= 252 ? 6 : f >= 248 ? 5 : f >= 240 ? 4 : f >= 224 ? 3 : f >= 192 ? 2 : 1; + w[254] = w[254] = 1; + var y = function(c) { + var a, r, t, i, n, o = c.length, p = 0; + for (i = 0; i < o; i++) + r = c.charCodeAt(i), (r & 64512) === 55296 && i + 1 < o && (t = c.charCodeAt(i + 1), (t & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (t - 56320), i++)), p += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4; + for (m.uint8array ? a = new Uint8Array(p) : a = new Array(p), n = 0, i = 0; n < p; i++) + r = c.charCodeAt(i), (r & 64512) === 55296 && i + 1 < o && (t = c.charCodeAt(i + 1), (t & 64512) === 56320 && (r = 65536 + (r - 55296 << 10) + (t - 56320), i++)), r < 128 ? a[n++] = r : r < 2048 ? (a[n++] = 192 | r >>> 6, a[n++] = 128 | r & 63) : r < 65536 ? (a[n++] = 224 | r >>> 12, a[n++] = 128 | r >>> 6 & 63, a[n++] = 128 | r & 63) : (a[n++] = 240 | r >>> 18, a[n++] = 128 | r >>> 12 & 63, a[n++] = 128 | r >>> 6 & 63, a[n++] = 128 | r & 63); + return a; + }, h = function(c, a) { + var r; + for (a = a || c.length, a > c.length && (a = c.length), r = a - 1; r >= 0 && (c[r] & 192) === 128; ) + r--; + return r < 0 || r === 0 ? a : r + w[c[r]] > a ? r : a; + }, l = function(c) { + var a, r, t, i, n = c.length, o = new Array(n * 2); + for (r = 0, a = 0; a < n; ) { + if (t = c[a++], t < 128) { + o[r++] = t; + continue; + } + if (i = w[t], i > 4) { + o[r++] = 65533, a += i - 1; + continue; + } + for (t &= i === 2 ? 31 : i === 3 ? 15 : 7; i > 1 && a < n; ) + t = t << 6 | c[a++] & 63, i--; + if (i > 1) { + o[r++] = 65533; + continue; + } + t < 65536 ? o[r++] = t : (t -= 65536, o[r++] = 55296 | t >> 10 & 1023, o[r++] = 56320 | t & 1023); + } + return o.length !== r && (o.subarray ? o = o.subarray(0, r) : o.length = r), u.applyFromCharCode(o); + }; + _.utf8encode = function(c) { + return m.nodebuffer ? g.newBufferFrom(c, "utf-8") : y(c); + }, _.utf8decode = function(c) { + return m.nodebuffer ? u.transformTo("nodebuffer", c).toString("utf-8") : (c = u.transformTo(m.uint8array ? "uint8array" : "array", c), l(c)); + }; + function d() { + b.call(this, "utf-8 decode"), this.leftOver = null; + } + u.inherits(d, b), d.prototype.processChunk = function(v) { + var c = u.transformTo(m.uint8array ? "uint8array" : "array", v.data); + if (this.leftOver && this.leftOver.length) { + if (m.uint8array) { + var a = c; + c = new Uint8Array(a.length + this.leftOver.length), c.set(this.leftOver, 0), c.set(a, this.leftOver.length); + } else + c = this.leftOver.concat(c); + this.leftOver = null; + } + var r = h(c), t = c; + r !== c.length && (m.uint8array ? (t = c.subarray(0, r), this.leftOver = c.subarray(r, c.length)) : (t = c.slice(0, r), this.leftOver = c.slice(r, c.length))), this.push({ + data: _.utf8decode(t), + meta: v.meta + }); + }, d.prototype.flush = function() { + this.leftOver && this.leftOver.length && (this.push({ + data: _.utf8decode(this.leftOver), + meta: {} + }), this.leftOver = null); + }, _.Utf8DecodeWorker = d; + function s() { + b.call(this, "utf-8 encode"); + } + u.inherits(s, b), s.prototype.processChunk = function(v) { + this.push({ + data: _.utf8encode(v.data), + meta: v.meta + }); + }, _.Utf8EncodeWorker = s; + }, { "./nodejsUtils": 403, "./stream/GenericWorker": 417, "./support": 419, "./utils": 421 }], 421: [function(e, x, _) { + var u = e("./support"), m = e("./base64"), g = e("./nodejsUtils"), b = e("set-immediate-shim"), w = e("./external"); + function f(c) { + var a = null; + return u.uint8array ? a = new Uint8Array(c.length) : a = new Array(c.length), h(c, a); + } + _.newBlob = function(c, a) { + _.checkSupport("blob"); + try { + return new Blob([c], { + type: a + }); + } catch (i) { + try { + var r = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, t = new r(); + return t.append(c), t.getBlob(a); + } catch (n) { + throw new Error("Bug : can't construct the Blob."); + } + } + }; + function y(c) { + return c; + } + function h(c, a) { + for (var r = 0; r < c.length; ++r) + a[r] = c.charCodeAt(r) & 255; + return a; + } + var l = { + /** + * Transform an array of int into a string, chunk by chunk. + * See the performances notes on arrayLikeToString. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. + * @param {String} type the type of the array. + * @param {Integer} chunk the chunk size. + * @return {String} the resulting string. + * @throws Error if the chunk is too big for the stack. + */ + stringifyByChunk: function(a, r, t) { + var i = [], n = 0, o = a.length; + if (o <= t) + return String.fromCharCode.apply(null, a); + for (; n < o; ) + r === "array" || r === "nodebuffer" ? i.push(String.fromCharCode.apply(null, a.slice(n, Math.min(n + t, o)))) : i.push(String.fromCharCode.apply(null, a.subarray(n, Math.min(n + t, o)))), n += t; + return i.join(""); + }, + /** + * Call String.fromCharCode on every item in the array. + * This is the naive implementation, which generate A LOT of intermediate string. + * This should be used when everything else fail. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. + * @return {String} the result. + */ + stringifyByChar: function(a) { + for (var r = "", t = 0; t < a.length; t++) + r += String.fromCharCode(a[t]); + return r; + }, + applyCanBeUsed: { + /** + * true if the browser accepts to use String.fromCharCode on Uint8Array + */ + uint8array: function() { + try { + return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1; + } catch (c) { + return !1; + } + }(), + /** + * true if the browser accepts to use String.fromCharCode on nodejs Buffer. + */ + nodebuffer: function() { + try { + return u.nodebuffer && String.fromCharCode.apply(null, g.allocBuffer(1)).length === 1; + } catch (c) { + return !1; + } + }() + } + }; + function d(c) { + var a = 65536, r = _.getTypeOf(c), t = !0; + if (r === "uint8array" ? t = l.applyCanBeUsed.uint8array : r === "nodebuffer" && (t = l.applyCanBeUsed.nodebuffer), t) + for (; a > 1; ) + try { + return l.stringifyByChunk(c, r, a); + } catch (i) { + a = Math.floor(a / 2); + } + return l.stringifyByChar(c); + } + _.applyFromCharCode = d; + function s(c, a) { + for (var r = 0; r < c.length; r++) + a[r] = c[r]; + return a; + } + var v = {}; + v.string = { + string: y, + array: function(a) { + return h(a, new Array(a.length)); + }, + arraybuffer: function(a) { + return v.string.uint8array(a).buffer; + }, + uint8array: function(a) { + return h(a, new Uint8Array(a.length)); + }, + nodebuffer: function(a) { + return h(a, g.allocBuffer(a.length)); + } + }, v.array = { + string: d, + array: y, + arraybuffer: function(a) { + return new Uint8Array(a).buffer; + }, + uint8array: function(a) { + return new Uint8Array(a); + }, + nodebuffer: function(a) { + return g.newBufferFrom(a); + } + }, v.arraybuffer = { + string: function(a) { + return d(new Uint8Array(a)); + }, + array: function(a) { + return s(new Uint8Array(a), new Array(a.byteLength)); + }, + arraybuffer: y, + uint8array: function(a) { + return new Uint8Array(a); + }, + nodebuffer: function(a) { + return g.newBufferFrom(new Uint8Array(a)); + } + }, v.uint8array = { + string: d, + array: function(a) { + return s(a, new Array(a.length)); + }, + arraybuffer: function(a) { + return a.buffer; + }, + uint8array: y, + nodebuffer: function(a) { + return g.newBufferFrom(a); + } + }, v.nodebuffer = { + string: d, + array: function(a) { + return s(a, new Array(a.length)); + }, + arraybuffer: function(a) { + return v.nodebuffer.uint8array(a).buffer; + }, + uint8array: function(a) { + return s(a, new Uint8Array(a.length)); + }, + nodebuffer: y + }, _.transformTo = function(c, a) { + if (a || (a = ""), !c) + return a; + _.checkSupport(c); + var r = _.getTypeOf(a), t = v[r][c](a); + return t; + }, _.getTypeOf = function(c) { + if (typeof c == "string") + return "string"; + if (Object.prototype.toString.call(c) === "[object Array]") + return "array"; + if (u.nodebuffer && g.isBuffer(c)) + return "nodebuffer"; + if (u.uint8array && c instanceof Uint8Array) + return "uint8array"; + if (u.arraybuffer && c instanceof ArrayBuffer) + return "arraybuffer"; + }, _.checkSupport = function(c) { + var a = u[c.toLowerCase()]; + if (!a) + throw new Error(c + " is not supported by this platform"); + }, _.MAX_VALUE_16BITS = 65535, _.MAX_VALUE_32BITS = -1, _.pretty = function(c) { + var a = "", r, t; + for (t = 0; t < (c || "").length; t++) + r = c.charCodeAt(t), a += "\\x" + (r < 16 ? "0" : "") + r.toString(16).toUpperCase(); + return a; + }, _.delay = function(c, a, r) { + b(function() { + c.apply(r || null, a || []); + }); + }, _.inherits = function(c, a) { + var r = function() { + }; + r.prototype = a.prototype, c.prototype = new r(); + }, _.extend = function() { + var c = {}, a, r; + for (a = 0; a < arguments.length; a++) + for (r in arguments[a]) + arguments[a].hasOwnProperty(r) && typeof c[r] == "undefined" && (c[r] = arguments[a][r]); + return c; + }, _.prepareContent = function(c, a, r, t, i) { + var n = w.Promise.resolve(a).then(function(o) { + var p = u.blob && (o instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(o)) !== -1); + return p && typeof FileReader != "undefined" ? new w.Promise(function(O, P) { + var F = new FileReader(); + F.onload = function(z) { + O(z.target.result); + }, F.onerror = function(z) { + P(z.target.error); + }, F.readAsArrayBuffer(o); + }) : o; + }); + return n.then(function(o) { + var p = _.getTypeOf(o); + return p ? (p === "arraybuffer" ? o = _.transformTo("uint8array", o) : p === "string" && (i ? o = m.decode(o) : r && t !== !0 && (o = f(o))), o) : w.Promise.reject(new Error("Can't read the data of '" + c + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?")); + }); + }; + }, { "./base64": 390, "./external": 395, "./nodejsUtils": 403, "./support": 419, "set-immediate-shim": 497 }], 422: [function(e, x, _) { + var u = e("./reader/readerFor"), m = e("./utils"), g = e("./signature"), b = e("./zipEntry"); + e("./utf8"); + var w = e("./support"); + function f(y) { + this.files = [], this.loadOptions = y; + } + f.prototype = { + /** + * Check that the reader is on the specified signature. + * @param {string} expectedSignature the expected signature. + * @throws {Error} if it is an other signature. + */ + checkSignature: function(h) { + if (!this.reader.readAndCheckSignature(h)) { + this.reader.index -= 4; + var l = this.reader.readString(4); + throw new Error("Corrupted zip or bug: unexpected signature (" + m.pretty(l) + ", expected " + m.pretty(h) + ")"); + } + }, + /** + * Check if the given signature is at the given index. + * @param {number} askedIndex the index to check. + * @param {string} expectedSignature the signature to expect. + * @return {boolean} true if the signature is here, false otherwise. + */ + isSignature: function(h, l) { + var d = this.reader.index; + this.reader.setIndex(h); + var s = this.reader.readString(4), v = s === l; + return this.reader.setIndex(d), v; + }, + /** + * Read the end of the central directory. + */ + readBlockEndOfCentral: function() { + this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2); + var h = this.reader.readData(this.zipCommentLength), l = w.uint8array ? "uint8array" : "array", d = m.transformTo(l, h); + this.zipComment = this.loadOptions.decodeFileName(d); + }, + /** + * Read the end of the Zip 64 central directory. + * Not merged with the method readEndOfCentral : + * The end of central can coexist with its Zip64 brother, + * I don't want to read the wrong number of bytes ! + */ + readBlockZip64EndOfCentral: function() { + this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {}; + for (var h = this.zip64EndOfCentralSize - 44, l = 0, d, s, v; l < h; ) + d = this.reader.readInt(2), s = this.reader.readInt(4), v = this.reader.readData(s), this.zip64ExtensibleData[d] = { + id: d, + length: s, + value: v + }; + }, + /** + * Read the end of the Zip 64 central directory locator. + */ + readBlockZip64EndOfCentralLocator: function() { + if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), this.disksCount > 1) + throw new Error("Multi-volumes zip are not supported"); + }, + /** + * Read the local files, based on the offset read in the central part. + */ + readLocalFiles: function() { + var h, l; + for (h = 0; h < this.files.length; h++) + l = this.files[h], this.reader.setIndex(l.localHeaderOffset), this.checkSignature(g.LOCAL_FILE_HEADER), l.readLocalPart(this.reader), l.handleUTF8(), l.processAttributes(); + }, + /** + * Read the central directory. + */ + readCentralDir: function() { + var h; + for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER); ) + h = new b({ + zip64: this.zip64 + }, this.loadOptions), h.readCentralPart(this.reader), this.files.push(h); + if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) + throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length); + }, + /** + * Read the end of central directory. + */ + readEndOfCentral: function() { + var h = this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END); + if (h < 0) { + var l = !this.isSignature(0, g.LOCAL_FILE_HEADER); + throw l ? new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : new Error("Corrupted zip: can't find end of central directory"); + } + this.reader.setIndex(h); + var d = h; + if (this.checkSignature(g.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === m.MAX_VALUE_16BITS || this.diskWithCentralDirStart === m.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === m.MAX_VALUE_16BITS || this.centralDirRecords === m.MAX_VALUE_16BITS || this.centralDirSize === m.MAX_VALUE_32BITS || this.centralDirOffset === m.MAX_VALUE_32BITS) { + if (this.zip64 = !0, h = this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR), h < 0) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); + if (this.reader.setIndex(h), this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, g.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); + this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral(); + } + var s = this.centralDirOffset + this.centralDirSize; + this.zip64 && (s += 20, s += 12 + this.zip64EndOfCentralSize); + var v = d - s; + if (v > 0) + this.isSignature(d, g.CENTRAL_FILE_HEADER) || (this.reader.zero = v); + else if (v < 0) + throw new Error("Corrupted zip: missing " + Math.abs(v) + " bytes."); + }, + prepareReader: function(h) { + this.reader = u(h); + }, + /** + * Read a zip file and create ZipEntries. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file. + */ + load: function(h) { + this.prepareReader(h), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles(); + } + }, x.exports = f; + }, { "./reader/readerFor": 411, "./signature": 412, "./support": 419, "./utf8": 420, "./utils": 421, "./zipEntry": 423 }], 423: [function(e, x, _) { + var u = e("./reader/readerFor"), m = e("./utils"), g = e("./compressedObject"), b = e("./crc32"), w = e("./utf8"), f = e("./compressions"), y = e("./support"), h = 0, l = 3, d = function(c) { + for (var a in f) + if (f.hasOwnProperty(a) && f[a].magic === c) + return f[a]; + return null; + }; + function s(v, c) { + this.options = v, this.loadOptions = c; + } + s.prototype = { + /** + * say if the file is encrypted. + * @return {boolean} true if the file is encrypted, false otherwise. + */ + isEncrypted: function() { + return (this.bitFlag & 1) === 1; + }, + /** + * say if the file has utf-8 filename/comment. + * @return {boolean} true if the filename/comment is in utf-8, false otherwise. + */ + useUTF8: function() { + return (this.bitFlag & 2048) === 2048; + }, + /** + * Read the local part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readLocalPart: function(c) { + var a, r; + if (c.skip(22), this.fileNameLength = c.readInt(2), r = c.readInt(2), this.fileName = c.readData(this.fileNameLength), c.skip(r), this.compressedSize === -1 || this.uncompressedSize === -1) + throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)"); + if (a = d(this.compressionMethod), a === null) + throw new Error("Corrupted zip : compression " + m.pretty(this.compressionMethod) + " unknown (inner file : " + m.transformTo("string", this.fileName) + ")"); + this.decompressed = new g(this.compressedSize, this.uncompressedSize, this.crc32, a, c.readData(this.compressedSize)); + }, + /** + * Read the central part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readCentralPart: function(c) { + this.versionMadeBy = c.readInt(2), c.skip(2), this.bitFlag = c.readInt(2), this.compressionMethod = c.readString(2), this.date = c.readDate(), this.crc32 = c.readInt(4), this.compressedSize = c.readInt(4), this.uncompressedSize = c.readInt(4); + var a = c.readInt(2); + if (this.extraFieldsLength = c.readInt(2), this.fileCommentLength = c.readInt(2), this.diskNumberStart = c.readInt(2), this.internalFileAttributes = c.readInt(2), this.externalFileAttributes = c.readInt(4), this.localHeaderOffset = c.readInt(4), this.isEncrypted()) + throw new Error("Encrypted zip are not supported"); + c.skip(a), this.readExtraFields(c), this.parseZIP64ExtraField(c), this.fileComment = c.readData(this.fileCommentLength); + }, + /** + * Parse the external file attributes and get the unix/dos permissions. + */ + processAttributes: function() { + this.unixPermissions = null, this.dosPermissions = null; + var c = this.versionMadeBy >> 8; + this.dir = !!(this.externalFileAttributes & 16), c === h && (this.dosPermissions = this.externalFileAttributes & 63), c === l && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), !this.dir && this.fileNameStr.slice(-1) === "/" && (this.dir = !0); + }, + /** + * Parse the ZIP64 extra field and merge the info in the current ZipEntry. + * @param {DataReader} reader the reader to use. + */ + parseZIP64ExtraField: function(c) { + if (this.extraFields[1]) { + var a = u(this.extraFields[1].value); + this.uncompressedSize === m.MAX_VALUE_32BITS && (this.uncompressedSize = a.readInt(8)), this.compressedSize === m.MAX_VALUE_32BITS && (this.compressedSize = a.readInt(8)), this.localHeaderOffset === m.MAX_VALUE_32BITS && (this.localHeaderOffset = a.readInt(8)), this.diskNumberStart === m.MAX_VALUE_32BITS && (this.diskNumberStart = a.readInt(4)); + } + }, + /** + * Read the central part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readExtraFields: function(c) { + var a = c.index + this.extraFieldsLength, r, t, i; + for (this.extraFields || (this.extraFields = {}); c.index + 4 < a; ) + r = c.readInt(2), t = c.readInt(2), i = c.readData(t), this.extraFields[r] = { + id: r, + length: t, + value: i + }; + c.setIndex(a); + }, + /** + * Apply an UTF8 transformation if needed. + */ + handleUTF8: function() { + var c = y.uint8array ? "uint8array" : "array"; + if (this.useUTF8()) + this.fileNameStr = w.utf8decode(this.fileName), this.fileCommentStr = w.utf8decode(this.fileComment); + else { + var a = this.findExtraFieldUnicodePath(); + if (a !== null) + this.fileNameStr = a; + else { + var r = m.transformTo(c, this.fileName); + this.fileNameStr = this.loadOptions.decodeFileName(r); + } + var t = this.findExtraFieldUnicodeComment(); + if (t !== null) + this.fileCommentStr = t; + else { + var i = m.transformTo(c, this.fileComment); + this.fileCommentStr = this.loadOptions.decodeFileName(i); + } + } + }, + /** + * Find the unicode path declared in the extra field, if any. + * @return {String} the unicode path, null otherwise. + */ + findExtraFieldUnicodePath: function() { + var c = this.extraFields[28789]; + if (c) { + var a = u(c.value); + return a.readInt(1) !== 1 || b(this.fileName) !== a.readInt(4) ? null : w.utf8decode(a.readData(c.length - 5)); + } + return null; + }, + /** + * Find the unicode comment declared in the extra field, if any. + * @return {String} the unicode comment, null otherwise. + */ + findExtraFieldUnicodeComment: function() { + var c = this.extraFields[25461]; + if (c) { + var a = u(c.value); + return a.readInt(1) !== 1 || b(this.fileComment) !== a.readInt(4) ? null : w.utf8decode(a.readData(c.length - 5)); + } + return null; + } + }, x.exports = s; + }, { "./compressedObject": 391, "./compressions": 392, "./crc32": 393, "./reader/readerFor": 411, "./support": 419, "./utf8": 420, "./utils": 421 }], 424: [function(e, x, _) { + var u = e("./stream/StreamHelper"), m = e("./stream/DataWorker"), g = e("./utf8"), b = e("./compressedObject"), w = e("./stream/GenericWorker"), f = function(s, v, c) { + this.name = s, this.dir = c.dir, this.date = c.date, this.comment = c.comment, this.unixPermissions = c.unixPermissions, this.dosPermissions = c.dosPermissions, this._data = v, this._dataBinary = c.binary, this.options = { + compression: c.compression, + compressionOptions: c.compressionOptions + }; + }; + f.prototype = { + /** + * Create an internal stream for the content of this object. + * @param {String} type the type of each chunk. + * @return StreamHelper the stream. + */ + internalStream: function(s) { + var v = null, c = "string"; + try { + if (!s) + throw new Error("No output type specified."); + c = s.toLowerCase(); + var a = c === "string" || c === "text"; + (c === "binarystring" || c === "text") && (c = "string"), v = this._decompressWorker(); + var r = !this._dataBinary; + r && !a && (v = v.pipe(new g.Utf8EncodeWorker())), !r && a && (v = v.pipe(new g.Utf8DecodeWorker())); + } catch (t) { + v = new w("error"), v.error(t); + } + return new u(v, c, ""); + }, + /** + * Prepare the content in the asked type. + * @param {String} type the type of the result. + * @param {Function} onUpdate a function to call on each internal update. + * @return Promise the promise of the result. + */ + async: function(s, v) { + return this.internalStream(s).accumulate(v); + }, + /** + * Prepare the content as a nodejs stream. + * @param {String} type the type of each chunk. + * @param {Function} onUpdate a function to call on each internal update. + * @return Stream the stream. + */ + nodeStream: function(s, v) { + return this.internalStream(s || "nodebuffer").toNodejsStream(v); + }, + /** + * Return a worker for the compressed content. + * @private + * @param {Object} compression the compression object to use. + * @param {Object} compressionOptions the options to use when compressing. + * @return Worker the worker. + */ + _compressWorker: function(s, v) { + if (this._data instanceof b && this._data.compression.magic === s.magic) + return this._data.getCompressedWorker(); + var c = this._decompressWorker(); + return this._dataBinary || (c = c.pipe(new g.Utf8EncodeWorker())), b.createWorkerFrom(c, s, v); + }, + /** + * Return a worker for the decompressed content. + * @private + * @return Worker the worker. + */ + _decompressWorker: function() { + return this._data instanceof b ? this._data.getContentWorker() : this._data instanceof w ? this._data : new m(this._data); + } + }; + for (var y = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], h = function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, l = 0; l < y.length; l++) + f.prototype[y[l]] = h; + x.exports = f; + }, { "./compressedObject": 391, "./stream/DataWorker": 416, "./stream/GenericWorker": 417, "./stream/StreamHelper": 418, "./utf8": 420 }], 425: [function(e, x, _) { + function u(n) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(p) { + return typeof p; + } : u = function(p) { + return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p; + }, u(n); + } + var m = e("immediate"); + function g() { + } + var b = {}, w = ["REJECTED"], f = ["FULFILLED"], y = ["PENDING"]; + x.exports = h; + function h(n) { + if (typeof n != "function") + throw new TypeError("resolver must be a function"); + this.state = y, this.queue = [], this.outcome = void 0, n !== g && v(this, n); + } + h.prototype.finally = function(n) { + if (typeof n != "function") + return this; + var o = this.constructor; + return this.then(p, O); + function p(P) { + function F() { + return P; + } + return o.resolve(n()).then(F); + } + function O(P) { + function F() { + throw P; + } + return o.resolve(n()).then(F); + } + }, h.prototype.catch = function(n) { + return this.then(null, n); + }, h.prototype.then = function(n, o) { + if (typeof n != "function" && this.state === f || typeof o != "function" && this.state === w) + return this; + var p = new this.constructor(g); + if (this.state !== y) { + var O = this.state === f ? n : o; + d(p, O, this.outcome); + } else + this.queue.push(new l(p, n, o)); + return p; + }; + function l(n, o, p) { + this.promise = n, typeof o == "function" && (this.onFulfilled = o, this.callFulfilled = this.otherCallFulfilled), typeof p == "function" && (this.onRejected = p, this.callRejected = this.otherCallRejected); + } + l.prototype.callFulfilled = function(n) { + b.resolve(this.promise, n); + }, l.prototype.otherCallFulfilled = function(n) { + d(this.promise, this.onFulfilled, n); + }, l.prototype.callRejected = function(n) { + b.reject(this.promise, n); + }, l.prototype.otherCallRejected = function(n) { + d(this.promise, this.onRejected, n); + }; + function d(n, o, p) { + m(function() { + var O; + try { + O = o(p); + } catch (P) { + return b.reject(n, P); + } + O === n ? b.reject(n, new TypeError("Cannot resolve promise with itself")) : b.resolve(n, O); + }); + } + b.resolve = function(n, o) { + var p = c(s, o); + if (p.status === "error") + return b.reject(n, p.value); + var O = p.value; + if (O) + v(n, O); + else { + n.state = f, n.outcome = o; + for (var P = -1, F = n.queue.length; ++P < F; ) + n.queue[P].callFulfilled(o); + } + return n; + }, b.reject = function(n, o) { + n.state = w, n.outcome = o; + for (var p = -1, O = n.queue.length; ++p < O; ) + n.queue[p].callRejected(o); + return n; + }; + function s(n) { + var o = n && n.then; + if (n && (u(n) === "object" || typeof n == "function") && typeof o == "function") + return function() { + o.apply(n, arguments); + }; + } + function v(n, o) { + var p = !1; + function O(N) { + p || (p = !0, b.reject(n, N)); + } + function P(N) { + p || (p = !0, b.resolve(n, N)); + } + function F() { + o(P, O); + } + var z = c(F); + z.status === "error" && O(z.value); + } + function c(n, o) { + var p = {}; + try { + p.value = n(o), p.status = "success"; + } catch (O) { + p.status = "error", p.value = O; + } + return p; + } + h.resolve = a; + function a(n) { + return n instanceof this ? n : b.resolve(new this(g), n); + } + h.reject = r; + function r(n) { + var o = new this(g); + return b.reject(o, n); + } + h.all = t; + function t(n) { + var o = this; + if (Object.prototype.toString.call(n) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var p = n.length, O = !1; + if (!p) + return this.resolve([]); + for (var P = new Array(p), F = 0, z = -1, N = new this(g); ++z < p; ) + M(n[z], z); + return N; + function M(I, R) { + o.resolve(I).then(C, function(E) { + O || (O = !0, b.reject(N, E)); + }); + function C(E) { + P[R] = E, ++F === p && !O && (O = !0, b.resolve(N, P)); + } + } + } + h.race = i; + function i(n) { + var o = this; + if (Object.prototype.toString.call(n) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var p = n.length, O = !1; + if (!p) + return this.resolve([]); + for (var P = -1, F = new this(g); ++P < p; ) + z(n[P]); + return F; + function z(N) { + o.resolve(N).then(function(M) { + O || (O = !0, b.resolve(F, M)); + }, function(M) { + O || (O = !0, b.reject(F, M)); + }); + } + } + }, { immediate: 386 }], 426: [function(e, x, _) { + (function(u) { + function m(p) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(P) { + return typeof P; + } : m = function(P) { + return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; + }, m(p); + } + var g = 1 / 0, b = "[object Symbol]", w = /[\\^$.*+?()[\]{}|]/g, f = RegExp(w.source), y = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, h = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, l = y || h || Function("return this")(), d = Object.prototype, s = d.toString, v = l.Symbol, c = v ? v.prototype : void 0, a = c ? c.toString : void 0; + function r(p) { + if (typeof p == "string") + return p; + if (i(p)) + return a ? a.call(p) : ""; + var O = p + ""; + return O == "0" && 1 / p == -g ? "-0" : O; + } + function t(p) { + return !!p && m(p) == "object"; + } + function i(p) { + return m(p) == "symbol" || t(p) && s.call(p) == b; + } + function n(p) { + return p == null ? "" : r(p); + } + function o(p) { + return p = n(p), p && f.test(p) ? p.replace(w, "\\$&") : p; + } + x.exports = o; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 427: [function(e, x, _) { + (function(u) { + function m(le) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Xe) { + return typeof Xe; + } : m = function(Xe) { + return Xe && typeof Symbol == "function" && Xe.constructor === Symbol && Xe !== Symbol.prototype ? "symbol" : typeof Xe; + }, m(le); + } + var g = 200, b = "Expected a function", w = "__lodash_hash_undefined__", f = 1, y = 2, h = 1 / 0, l = 9007199254740991, d = "[object Arguments]", s = "[object Array]", v = "[object Boolean]", c = "[object Date]", a = "[object Error]", r = "[object Function]", t = "[object GeneratorFunction]", i = "[object Map]", n = "[object Number]", o = "[object Object]", p = "[object Promise]", O = "[object RegExp]", P = "[object Set]", F = "[object String]", z = "[object Symbol]", N = "[object WeakMap]", M = "[object ArrayBuffer]", I = "[object DataView]", R = "[object Float32Array]", C = "[object Float64Array]", E = "[object Int8Array]", A = "[object Int16Array]", L = "[object Int32Array]", $ = "[object Uint8Array]", W = "[object Uint8ClampedArray]", U = "[object Uint16Array]", D = "[object Uint32Array]", B = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, V = /^\./, re = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ee = /[\\^$.*+?()[\]{}|]/g, ce = /\\(\\)?/g, ve = /^\[object .+?Constructor\]$/, ge = /^(?:0|[1-9]\d*)$/, oe = {}; + oe[R] = oe[C] = oe[E] = oe[A] = oe[L] = oe[$] = oe[W] = oe[U] = oe[D] = !0, oe[d] = oe[s] = oe[M] = oe[v] = oe[I] = oe[c] = oe[a] = oe[r] = oe[i] = oe[n] = oe[o] = oe[O] = oe[P] = oe[F] = oe[N] = !1; + var J = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, Q = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, he = J || Q || Function("return this")(), ke = (typeof _ == "undefined" ? "undefined" : m(_)) == "object" && _ && !_.nodeType && _, ne = ke && (typeof x == "undefined" ? "undefined" : m(x)) == "object" && x && !x.nodeType && x, se = ne && ne.exports === ke, Ce = se && J.process, q = function() { + try { + return Ce && Ce.binding("util"); + } catch (le) { + } + }(), G = q && q.isTypedArray; + function Y(le, Oe, Xe, ft) { + for (var Tt = -1, mt = le ? le.length : 0; ++Tt < mt; ) { + var Xt = le[Tt]; + Oe(ft, Xt, Xe(Xt), le); + } + return ft; + } + function fe(le, Oe) { + for (var Xe = -1, ft = le ? le.length : 0; ++Xe < ft; ) + if (Oe(le[Xe], Xe, le)) + return !0; + return !1; + } + function we(le) { + return function(Oe) { + return Oe == null ? void 0 : Oe[le]; + }; + } + function _e(le, Oe) { + for (var Xe = -1, ft = Array(le); ++Xe < le; ) + ft[Xe] = Oe(Xe); + return ft; + } + function je(le) { + return function(Oe) { + return le(Oe); + }; + } + function Ye(le, Oe) { + return le == null ? void 0 : le[Oe]; + } + function nt(le) { + var Oe = !1; + if (le != null && typeof le.toString != "function") + try { + Oe = !!(le + ""); + } catch (Xe) { + } + return Oe; + } + function ut(le) { + var Oe = -1, Xe = Array(le.size); + return le.forEach(function(ft, Tt) { + Xe[++Oe] = [Tt, ft]; + }), Xe; + } + function ot(le, Oe) { + return function(Xe) { + return le(Oe(Xe)); + }; + } + function Ue(le) { + var Oe = -1, Xe = Array(le.size); + return le.forEach(function(ft) { + Xe[++Oe] = ft; + }), Xe; + } + var Ve = Array.prototype, Qe = Function.prototype, tt = Object.prototype, ae = he["__core-js_shared__"], Re = function() { + var le = /[^.]+$/.exec(ae && ae.keys && ae.keys.IE_PROTO || ""); + return le ? "Symbol(src)_1." + le : ""; + }(), be = Qe.toString, Ee = tt.hasOwnProperty, pe = tt.toString, Pe = RegExp("^" + be.call(Ee).replace(ee, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), te = he.Symbol, He = he.Uint8Array, it = tt.propertyIsEnumerable, K = Ve.splice, Me = ot(Object.keys, Object), Le = kn(he, "DataView"), ue = kn(he, "Map"), Se = kn(he, "Promise"), Ie = kn(he, "Set"), st = kn(he, "WeakMap"), Ge = kn(Object, "create"), rt = Je(Le), _t = Je(ue), wt = Je(Se), Ot = Je(Ie), pt = Je(st), ct = te ? te.prototype : void 0, At = ct ? ct.valueOf : void 0, Pt = ct ? ct.toString : void 0; + function bt(le) { + var Oe = -1, Xe = le ? le.length : 0; + for (this.clear(); ++Oe < Xe; ) { + var ft = le[Oe]; + this.set(ft[0], ft[1]); + } + } + function Kt() { + this.__data__ = Ge ? Ge(null) : {}; + } + function Ct(le) { + return this.has(le) && delete this.__data__[le]; + } + function xt(le) { + var Oe = this.__data__; + if (Ge) { + var Xe = Oe[le]; + return Xe === w ? void 0 : Xe; + } + return Ee.call(Oe, le) ? Oe[le] : void 0; + } + function Ft(le) { + var Oe = this.__data__; + return Ge ? Oe[le] !== void 0 : Ee.call(Oe, le); + } + function Lt(le, Oe) { + var Xe = this.__data__; + return Xe[le] = Ge && Oe === void 0 ? w : Oe, this; + } + bt.prototype.clear = Kt, bt.prototype.delete = Ct, bt.prototype.get = xt, bt.prototype.has = Ft, bt.prototype.set = Lt; + function Et(le) { + var Oe = -1, Xe = le ? le.length : 0; + for (this.clear(); ++Oe < Xe; ) { + var ft = le[Oe]; + this.set(ft[0], ft[1]); + } + } + function Dr() { + this.__data__ = []; + } + function Or(le) { + var Oe = this.__data__, Xe = zr(Oe, le); + if (Xe < 0) + return !1; + var ft = Oe.length - 1; + return Xe == ft ? Oe.pop() : K.call(Oe, Xe, 1), !0; + } + function Gr(le) { + var Oe = this.__data__, Xe = zr(Oe, le); + return Xe < 0 ? void 0 : Oe[Xe][1]; + } + function Nr(le) { + return zr(this.__data__, le) > -1; + } + function Yr(le, Oe) { + var Xe = this.__data__, ft = zr(Xe, le); + return ft < 0 ? Xe.push([le, Oe]) : Xe[ft][1] = Oe, this; + } + Et.prototype.clear = Dr, Et.prototype.delete = Or, Et.prototype.get = Gr, Et.prototype.has = Nr, Et.prototype.set = Yr; + function Qt(le) { + var Oe = -1, Xe = le ? le.length : 0; + for (this.clear(); ++Oe < Xe; ) { + var ft = le[Oe]; + this.set(ft[0], ft[1]); + } + } + function Xr() { + this.__data__ = { + hash: new bt(), + map: new (ue || Et)(), + string: new bt() + }; + } + function Fr(le) { + return jn(this, le).delete(le); + } + function Lr(le) { + return jn(this, le).get(le); + } + function Ur(le) { + return jn(this, le).has(le); + } + function vt(le, Oe) { + return jn(this, le).set(le, Oe), this; + } + Qt.prototype.clear = Xr, Qt.prototype.delete = Fr, Qt.prototype.get = Lr, Qt.prototype.has = Ur, Qt.prototype.set = vt; + function Ke(le) { + var Oe = -1, Xe = le ? le.length : 0; + for (this.__data__ = new Qt(); ++Oe < Xe; ) + this.add(le[Oe]); + } + function me(le) { + return this.__data__.set(le, w), this; + } + function Fe(le) { + return this.__data__.has(le); + } + Ke.prototype.add = Ke.prototype.push = me, Ke.prototype.has = Fe; + function Be(le) { + this.__data__ = new Et(le); + } + function dt() { + this.__data__ = new Et(); + } + function St(le) { + return this.__data__.delete(le); + } + function Ht(le) { + return this.__data__.get(le); + } + function lr(le) { + return this.__data__.has(le); + } + function gr(le, Oe) { + var Xe = this.__data__; + if (Xe instanceof Et) { + var ft = Xe.__data__; + if (!ue || ft.length < g - 1) + return ft.push([le, Oe]), this; + Xe = this.__data__ = new Qt(ft); + } + return Xe.set(le, Oe), this; + } + Be.prototype.clear = dt, Be.prototype.delete = St, Be.prototype.get = Ht, Be.prototype.has = lr, Be.prototype.set = gr; + function rn(le, Oe) { + var Xe = nr(le) || fr(le) ? _e(le.length, String) : [], ft = Xe.length, Tt = !!ft; + for (var mt in le) + (Oe || Ee.call(le, mt)) && !(Tt && (mt == "length" || rr(mt, ft))) && Xe.push(mt); + return Xe; + } + function zr(le, Oe) { + for (var Xe = le.length; Xe--; ) + if (Mt(le[Xe][0], Oe)) + return Xe; + return -1; + } + function pi(le, Oe, Xe, ft) { + return $r(le, function(Tt, mt, Xt) { + Oe(ft, Tt, Xe(Tt), Xt); + }), ft; + } + var $r = xa(cn), Dn = Sa(); + function cn(le, Oe) { + return le && Dn(le, Oe, En); + } + function yi(le, Oe) { + Oe = er(Oe, le) ? [Oe] : Ki(Oe); + for (var Xe = 0, ft = Oe.length; le != null && Xe < ft; ) + le = le[De(Oe[Xe++])]; + return Xe && Xe == ft ? le : void 0; + } + function hn(le) { + return pe.call(le); + } + function dn(le, Oe) { + return le != null && Oe in Object(le); + } + function Nn(le, Oe, Xe, ft, Tt) { + return le === Oe ? !0 : le == null || Oe == null || !dr(le) && !Er(Oe) ? le !== le && Oe !== Oe : Fn(le, Oe, Nn, Xe, ft, Tt); + } + function Fn(le, Oe, Xe, ft, Tt, mt) { + var Xt = nr(le), ir = nr(Oe), hr = s, _r = s; + Xt || (hr = On(le), hr = hr == d ? o : hr), ir || (_r = On(Oe), _r = _r == d ? o : _r); + var Tr = hr == o && !nt(le), wr = _r == o && !nt(Oe), Rr = hr == _r; + if (Rr && !Tr) + return mt || (mt = new Be()), Xt || pr(le) ? Sn(le, Oe, Xe, ft, Tt, mt) : Yi(le, Oe, hr, Xe, ft, Tt, mt); + if (!(Tt & y)) { + var Jr = Tr && Ee.call(le, "__wrapped__"), Qr = wr && Ee.call(Oe, "__wrapped__"); + if (Jr || Qr) { + var Tn = Jr ? le.value() : le, yn = Qr ? Oe.value() : Oe; + return mt || (mt = new Be()), Xe(Tn, yn, ft, Tt, mt); + } + } + return Rr ? (mt || (mt = new Be()), Ri(le, Oe, Xe, ft, Tt, mt)) : !1; + } + function Xi(le, Oe, Xe, ft) { + var Tt = Xe.length, mt = Tt, Xt = !ft; + if (le == null) + return !mt; + for (le = Object(le); Tt--; ) { + var ir = Xe[Tt]; + if (Xt && ir[2] ? ir[1] !== le[ir[0]] : !(ir[0] in le)) + return !1; + } + for (; ++Tt < mt; ) { + ir = Xe[Tt]; + var hr = ir[0], _r = le[hr], Tr = ir[1]; + if (Xt && ir[2]) { + if (_r === void 0 && !(hr in le)) + return !1; + } else { + var wr = new Be(); + if (ft) + var Rr = ft(_r, Tr, hr, le, Oe, wr); + if (!(Rr === void 0 ? Nn(Tr, _r, ft, f | y, wr) : Rr)) + return !1; + } + } + return !0; + } + function Ui(le) { + if (!dr(le) || Ji(le)) + return !1; + var Oe = Pr(le) || nt(le) ? Pe : ve; + return Oe.test(Je(le)); + } + function $i(le) { + return Er(le) && Br(le.length) && !!oe[pe.call(le)]; + } + function ei(le) { + return typeof le == "function" ? le : le == null ? Zr : m(le) == "object" ? nr(le) ? Vi(le[0], le[1]) : Wi(le) : ta(le); + } + function Bn(le) { + if (!Oa(le)) + return Me(le); + var Oe = []; + for (var Xe in Object(le)) + Ee.call(le, Xe) && Xe != "constructor" && Oe.push(Xe); + return Oe; + } + function Wi(le) { + var Oe = ka(le); + return Oe.length == 1 && Oe[0][2] ? qi(Oe[0][0], Oe[0][1]) : function(Xe) { + return Xe === le || Xi(Xe, le, Oe); + }; + } + function Vi(le, Oe) { + return er(le) && Qi(Oe) ? qi(De(le), Oe) : function(Xe) { + var ft = mr(Xe, le); + return ft === void 0 && ft === Oe ? ea(Xe, le) : Nn(Oe, ft, void 0, f | y); + }; + } + function xn(le) { + return function(Oe) { + return yi(Oe, le); + }; + } + function wa(le) { + if (typeof le == "string") + return le; + if (Ar(le)) + return Pt ? Pt.call(le) : ""; + var Oe = le + ""; + return Oe == "0" && 1 / le == -h ? "-0" : Oe; + } + function Ki(le) { + return nr(le) ? le : xe(le); + } + function Gi(le, Oe) { + return function(Xe, ft) { + var Tt = nr(Xe) ? Y : pi, mt = Oe ? Oe() : {}; + return Tt(Xe, le, ei(ft), mt); + }; + } + function xa(le, Oe) { + return function(Xe, ft) { + if (Xe == null) + return Xe; + if (!tr(Xe)) + return le(Xe, ft); + for (var Tt = Xe.length, mt = Oe ? Tt : -1, Xt = Object(Xe); (Oe ? mt-- : ++mt < Tt) && ft(Xt[mt], mt, Xt) !== !1; ) + ; + return Xe; + }; + } + function Sa(le) { + return function(Oe, Xe, ft) { + for (var Tt = -1, mt = Object(Oe), Xt = ft(Oe), ir = Xt.length; ir--; ) { + var hr = Xt[le ? ir : ++Tt]; + if (Xe(mt[hr], hr, mt) === !1) + break; + } + return Oe; + }; + } + function Sn(le, Oe, Xe, ft, Tt, mt) { + var Xt = Tt & y, ir = le.length, hr = Oe.length; + if (ir != hr && !(Xt && hr > ir)) + return !1; + var _r = mt.get(le); + if (_r && mt.get(Oe)) + return _r == Oe; + var Tr = -1, wr = !0, Rr = Tt & f ? new Ke() : void 0; + for (mt.set(le, Oe), mt.set(Oe, le); ++Tr < ir; ) { + var Jr = le[Tr], Qr = Oe[Tr]; + if (ft) + var Tn = Xt ? ft(Qr, Jr, Tr, Oe, le, mt) : ft(Jr, Qr, Tr, le, Oe, mt); + if (Tn !== void 0) { + if (Tn) + continue; + wr = !1; + break; + } + if (Rr) { + if (!fe(Oe, function(yn, Vn) { + if (!Rr.has(Vn) && (Jr === yn || Xe(Jr, yn, ft, Tt, mt))) + return Rr.add(Vn); + })) { + wr = !1; + break; + } + } else if (!(Jr === Qr || Xe(Jr, Qr, ft, Tt, mt))) { + wr = !1; + break; + } + } + return mt.delete(le), mt.delete(Oe), wr; + } + function Yi(le, Oe, Xe, ft, Tt, mt, Xt) { + switch (Xe) { + case I: + if (le.byteLength != Oe.byteLength || le.byteOffset != Oe.byteOffset) + return !1; + le = le.buffer, Oe = Oe.buffer; + case M: + return !(le.byteLength != Oe.byteLength || !ft(new He(le), new He(Oe))); + case v: + case c: + case n: + return Mt(+le, +Oe); + case a: + return le.name == Oe.name && le.message == Oe.message; + case O: + case F: + return le == Oe + ""; + case i: + var ir = ut; + case P: + var hr = mt & y; + if (ir || (ir = Ue), le.size != Oe.size && !hr) + return !1; + var _r = Xt.get(le); + if (_r) + return _r == Oe; + mt |= f, Xt.set(le, Oe); + var Tr = Sn(ir(le), ir(Oe), ft, Tt, mt, Xt); + return Xt.delete(le), Tr; + case z: + if (At) + return At.call(le) == At.call(Oe); + } + return !1; + } + function Ri(le, Oe, Xe, ft, Tt, mt) { + var Xt = Tt & y, ir = En(le), hr = ir.length, _r = En(Oe), Tr = _r.length; + if (hr != Tr && !Xt) + return !1; + for (var wr = hr; wr--; ) { + var Rr = ir[wr]; + if (!(Xt ? Rr in Oe : Ee.call(Oe, Rr))) + return !1; + } + var Jr = mt.get(le); + if (Jr && mt.get(Oe)) + return Jr == Oe; + var Qr = !0; + mt.set(le, Oe), mt.set(Oe, le); + for (var Tn = Xt; ++wr < hr; ) { + Rr = ir[wr]; + var yn = le[Rr], Vn = Oe[Rr]; + if (ft) + var Ya = Xt ? ft(Vn, yn, Rr, Oe, le, mt) : ft(yn, Vn, Rr, le, Oe, mt); + if (!(Ya === void 0 ? yn === Vn || Xe(yn, Vn, ft, Tt, mt) : Ya)) { + Qr = !1; + break; + } + Tn || (Tn = Rr == "constructor"); + } + if (Qr && !Tn) { + var vi = le.constructor, mi = Oe.constructor; + vi != mi && "constructor" in le && "constructor" in Oe && !(typeof vi == "function" && vi instanceof vi && typeof mi == "function" && mi instanceof mi) && (Qr = !1); + } + return mt.delete(le), mt.delete(Oe), Qr; + } + function jn(le, Oe) { + var Xe = le.__data__; + return ti(Oe) ? Xe[typeof Oe == "string" ? "string" : "hash"] : Xe.map; + } + function ka(le) { + for (var Oe = En(le), Xe = Oe.length; Xe--; ) { + var ft = Oe[Xe], Tt = le[ft]; + Oe[Xe] = [ft, Tt, Qi(Tt)]; + } + return Oe; + } + function kn(le, Oe) { + var Xe = Ye(le, Oe); + return Ui(Xe) ? Xe : void 0; + } + var On = hn; + (Le && On(new Le(new ArrayBuffer(1))) != I || ue && On(new ue()) != i || Se && On(Se.resolve()) != p || Ie && On(new Ie()) != P || st && On(new st()) != N) && (On = function(Oe) { + var Xe = pe.call(Oe), ft = Xe == o ? Oe.constructor : void 0, Tt = ft ? Je(ft) : void 0; + if (Tt) + switch (Tt) { + case rt: + return I; + case _t: + return i; + case wt: + return p; + case Ot: + return P; + case pt: + return N; + } + return Xe; + }); + function Zi(le, Oe, Xe) { + Oe = er(Oe, le) ? [Oe] : Ki(Oe); + for (var ft, Tt = -1, Xt = Oe.length; ++Tt < Xt; ) { + var mt = De(Oe[Tt]); + if (!(ft = le != null && Xe(le, mt))) + break; + le = le[mt]; + } + if (ft) + return ft; + var Xt = le ? le.length : 0; + return !!Xt && Br(Xt) && rr(mt, Xt) && (nr(le) || fr(le)); + } + function rr(le, Oe) { + return Oe = Oe == null ? l : Oe, !!Oe && (typeof le == "number" || ge.test(le)) && le > -1 && le % 1 == 0 && le < Oe; + } + function er(le, Oe) { + if (nr(le)) + return !1; + var Xe = m(le); + return Xe == "number" || Xe == "symbol" || Xe == "boolean" || le == null || Ar(le) ? !0 : j.test(le) || !B.test(le) || Oe != null && le in Object(Oe); + } + function ti(le) { + var Oe = m(le); + return Oe == "string" || Oe == "number" || Oe == "symbol" || Oe == "boolean" ? le !== "__proto__" : le === null; + } + function Ji(le) { + return !!Re && Re in le; + } + function Oa(le) { + var Oe = le && le.constructor, Xe = typeof Oe == "function" && Oe.prototype || tt; + return le === Xe; + } + function Qi(le) { + return le === le && !dr(le); + } + function qi(le, Oe) { + return function(Xe) { + return Xe == null ? !1 : Xe[le] === Oe && (Oe !== void 0 || le in Object(Xe)); + }; + } + var xe = Yt(function(le) { + le = pn(le); + var Oe = []; + return V.test(le) && Oe.push(""), le.replace(re, function(Xe, ft, Tt, mt) { + Oe.push(Tt ? mt.replace(ce, "$1") : ft || Xe); + }), Oe; + }); + function De(le) { + if (typeof le == "string" || Ar(le)) + return le; + var Oe = le + ""; + return Oe == "0" && 1 / le == -h ? "-0" : Oe; + } + function Je(le) { + if (le != null) { + try { + return be.call(le); + } catch (Oe) { + } + try { + return le + ""; + } catch (Oe) { + } + } + return ""; + } + var ht = Gi(function(le, Oe, Xe) { + Ee.call(le, Xe) ? le[Xe].push(Oe) : le[Xe] = [Oe]; + }); + function Yt(le, Oe) { + if (typeof le != "function" || Oe && typeof Oe != "function") + throw new TypeError(b); + var Xe = function ft() { + var Tt = arguments, mt = Oe ? Oe.apply(this, Tt) : Tt[0], Xt = ft.cache; + if (Xt.has(mt)) + return Xt.get(mt); + var ir = le.apply(this, Tt); + return ft.cache = Xt.set(mt, ir), ir; + }; + return Xe.cache = new (Yt.Cache || Qt)(), Xe; + } + Yt.Cache = Qt; + function Mt(le, Oe) { + return le === Oe || le !== le && Oe !== Oe; + } + function fr(le) { + return ur(le) && Ee.call(le, "callee") && (!it.call(le, "callee") || pe.call(le) == d); + } + var nr = Array.isArray; + function tr(le) { + return le != null && Br(le.length) && !Pr(le); + } + function ur(le) { + return Er(le) && tr(le); + } + function Pr(le) { + var Oe = dr(le) ? pe.call(le) : ""; + return Oe == r || Oe == t; + } + function Br(le) { + return typeof le == "number" && le > -1 && le % 1 == 0 && le <= l; + } + function dr(le) { + var Oe = m(le); + return !!le && (Oe == "object" || Oe == "function"); + } + function Er(le) { + return !!le && m(le) == "object"; + } + function Ar(le) { + return m(le) == "symbol" || Er(le) && pe.call(le) == z; + } + var pr = G ? je(G) : $i; + function pn(le) { + return le == null ? "" : wa(le); + } + function mr(le, Oe, Xe) { + var ft = le == null ? void 0 : yi(le, Oe); + return ft === void 0 ? Xe : ft; + } + function ea(le, Oe) { + return le != null && Zi(le, Oe, dn); + } + function En(le) { + return tr(le) ? rn(le) : Bn(le); + } + function Zr(le) { + return le; + } + function ta(le) { + return er(le) ? we(De(le)) : xn(le); + } + x.exports = ht; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 428: [function(e, x, _) { + function u(y) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(l) { + return typeof l; + } : u = function(l) { + return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l; + }, u(y); + } + var m = "[object Boolean]", g = Object.prototype, b = g.toString; + function w(y) { + return y === !0 || y === !1 || f(y) && b.call(y) == m; + } + function f(y) { + return !!y && u(y) == "object"; + } + x.exports = w; + }, {}], 429: [function(e, x, _) { + (function(u) { + function m(xe) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(Je) { + return typeof Je; + } : m = function(Je) { + return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je; + }, m(xe); + } + var g = 200, b = "__lodash_hash_undefined__", w = 1, f = 2, y = 9007199254740991, h = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", s = "[object Boolean]", v = "[object Date]", c = "[object Error]", a = "[object Function]", r = "[object GeneratorFunction]", t = "[object Map]", i = "[object Number]", n = "[object Null]", o = "[object Object]", p = "[object Promise]", O = "[object Proxy]", P = "[object RegExp]", F = "[object Set]", z = "[object String]", N = "[object Symbol]", M = "[object Undefined]", I = "[object WeakMap]", R = "[object ArrayBuffer]", C = "[object DataView]", E = "[object Float32Array]", A = "[object Float64Array]", L = "[object Int8Array]", $ = "[object Int16Array]", W = "[object Int32Array]", U = "[object Uint8Array]", D = "[object Uint8ClampedArray]", B = "[object Uint16Array]", j = "[object Uint32Array]", V = /[\\^$.*+?()[\]{}|]/g, re = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, ce = {}; + ce[E] = ce[A] = ce[L] = ce[$] = ce[W] = ce[U] = ce[D] = ce[B] = ce[j] = !0, ce[h] = ce[l] = ce[R] = ce[s] = ce[C] = ce[v] = ce[c] = ce[a] = ce[t] = ce[i] = ce[o] = ce[P] = ce[F] = ce[z] = ce[I] = !1; + var ve = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, ge = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, oe = ve || ge || Function("return this")(), J = (typeof _ == "undefined" ? "undefined" : m(_)) == "object" && _ && !_.nodeType && _, Q = J && (typeof x == "undefined" ? "undefined" : m(x)) == "object" && x && !x.nodeType && x, he = Q && Q.exports === J, ke = he && ve.process, ne = function() { + try { + return ke && ke.binding && ke.binding("util"); + } catch (xe) { + } + }(), se = ne && ne.isTypedArray; + function Ce(xe, De) { + for (var Je = -1, ht = xe == null ? 0 : xe.length, Yt = 0, Mt = []; ++Je < ht; ) { + var fr = xe[Je]; + De(fr, Je, xe) && (Mt[Yt++] = fr); + } + return Mt; + } + function q(xe, De) { + for (var Je = -1, ht = De.length, Yt = xe.length; ++Je < ht; ) + xe[Yt + Je] = De[Je]; + return xe; + } + function G(xe, De) { + for (var Je = -1, ht = xe == null ? 0 : xe.length; ++Je < ht; ) + if (De(xe[Je], Je, xe)) + return !0; + return !1; + } + function Y(xe, De) { + for (var Je = -1, ht = Array(xe); ++Je < xe; ) + ht[Je] = De(Je); + return ht; + } + function fe(xe) { + return function(De) { + return xe(De); + }; + } + function we(xe, De) { + return xe.has(De); + } + function _e(xe, De) { + return xe == null ? void 0 : xe[De]; + } + function je(xe) { + var De = -1, Je = Array(xe.size); + return xe.forEach(function(ht, Yt) { + Je[++De] = [Yt, ht]; + }), Je; + } + function Ye(xe, De) { + return function(Je) { + return xe(De(Je)); + }; + } + function nt(xe) { + var De = -1, Je = Array(xe.size); + return xe.forEach(function(ht) { + Je[++De] = ht; + }), Je; + } + var ut = Array.prototype, ot = Function.prototype, Ue = Object.prototype, Ve = oe["__core-js_shared__"], Qe = ot.toString, tt = Ue.hasOwnProperty, ae = function() { + var xe = /[^.]+$/.exec(Ve && Ve.keys && Ve.keys.IE_PROTO || ""); + return xe ? "Symbol(src)_1." + xe : ""; + }(), Re = Ue.toString, be = RegExp("^" + Qe.call(tt).replace(V, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Ee = he ? oe.Buffer : void 0, pe = oe.Symbol, Pe = oe.Uint8Array, te = Ue.propertyIsEnumerable, He = ut.splice, it = pe ? pe.toStringTag : void 0, K = Object.getOwnPropertySymbols, Me = Ee ? Ee.isBuffer : void 0, Le = Ye(Object.keys, Object), ue = Bn(oe, "DataView"), Se = Bn(oe, "Map"), Ie = Bn(oe, "Promise"), st = Bn(oe, "Set"), Ge = Bn(oe, "WeakMap"), rt = Bn(Object, "create"), _t = Sn(ue), wt = Sn(Se), Ot = Sn(Ie), pt = Sn(st), ct = Sn(Ge), At = pe ? pe.prototype : void 0, Pt = At ? At.valueOf : void 0; + function bt(xe) { + var De = -1, Je = xe == null ? 0 : xe.length; + for (this.clear(); ++De < Je; ) { + var ht = xe[De]; + this.set(ht[0], ht[1]); + } + } + function Kt() { + this.__data__ = rt ? rt(null) : {}, this.size = 0; + } + function Ct(xe) { + var De = this.has(xe) && delete this.__data__[xe]; + return this.size -= De ? 1 : 0, De; + } + function xt(xe) { + var De = this.__data__; + if (rt) { + var Je = De[xe]; + return Je === b ? void 0 : Je; + } + return tt.call(De, xe) ? De[xe] : void 0; + } + function Ft(xe) { + var De = this.__data__; + return rt ? De[xe] !== void 0 : tt.call(De, xe); + } + function Lt(xe, De) { + var Je = this.__data__; + return this.size += this.has(xe) ? 0 : 1, Je[xe] = rt && De === void 0 ? b : De, this; + } + bt.prototype.clear = Kt, bt.prototype.delete = Ct, bt.prototype.get = xt, bt.prototype.has = Ft, bt.prototype.set = Lt; + function Et(xe) { + var De = -1, Je = xe == null ? 0 : xe.length; + for (this.clear(); ++De < Je; ) { + var ht = xe[De]; + this.set(ht[0], ht[1]); + } + } + function Dr() { + this.__data__ = [], this.size = 0; + } + function Or(xe) { + var De = this.__data__, Je = zr(De, xe); + if (Je < 0) + return !1; + var ht = De.length - 1; + return Je == ht ? De.pop() : He.call(De, Je, 1), --this.size, !0; + } + function Gr(xe) { + var De = this.__data__, Je = zr(De, xe); + return Je < 0 ? void 0 : De[Je][1]; + } + function Nr(xe) { + return zr(this.__data__, xe) > -1; + } + function Yr(xe, De) { + var Je = this.__data__, ht = zr(Je, xe); + return ht < 0 ? (++this.size, Je.push([xe, De])) : Je[ht][1] = De, this; + } + Et.prototype.clear = Dr, Et.prototype.delete = Or, Et.prototype.get = Gr, Et.prototype.has = Nr, Et.prototype.set = Yr; + function Qt(xe) { + var De = -1, Je = xe == null ? 0 : xe.length; + for (this.clear(); ++De < Je; ) { + var ht = xe[De]; + this.set(ht[0], ht[1]); + } + } + function Xr() { + this.size = 0, this.__data__ = { + hash: new bt(), + map: new (Se || Et)(), + string: new bt() + }; + } + function Fr(xe) { + var De = ei(this, xe).delete(xe); + return this.size -= De ? 1 : 0, De; + } + function Lr(xe) { + return ei(this, xe).get(xe); + } + function Ur(xe) { + return ei(this, xe).has(xe); + } + function vt(xe, De) { + var Je = ei(this, xe), ht = Je.size; + return Je.set(xe, De), this.size += Je.size == ht ? 0 : 1, this; + } + Qt.prototype.clear = Xr, Qt.prototype.delete = Fr, Qt.prototype.get = Lr, Qt.prototype.has = Ur, Qt.prototype.set = vt; + function Ke(xe) { + var De = -1, Je = xe == null ? 0 : xe.length; + for (this.__data__ = new Qt(); ++De < Je; ) + this.add(xe[De]); + } + function me(xe) { + return this.__data__.set(xe, b), this; + } + function Fe(xe) { + return this.__data__.has(xe); + } + Ke.prototype.add = Ke.prototype.push = me, Ke.prototype.has = Fe; + function Be(xe) { + var De = this.__data__ = new Et(xe); + this.size = De.size; + } + function dt() { + this.__data__ = new Et(), this.size = 0; + } + function St(xe) { + var De = this.__data__, Je = De.delete(xe); + return this.size = De.size, Je; + } + function Ht(xe) { + return this.__data__.get(xe); + } + function lr(xe) { + return this.__data__.has(xe); + } + function gr(xe, De) { + var Je = this.__data__; + if (Je instanceof Et) { + var ht = Je.__data__; + if (!Se || ht.length < g - 1) + return ht.push([xe, De]), this.size = ++Je.size, this; + Je = this.__data__ = new Qt(ht); + } + return Je.set(xe, De), this.size = Je.size, this; + } + Be.prototype.clear = dt, Be.prototype.delete = St, Be.prototype.get = Ht, Be.prototype.has = lr, Be.prototype.set = gr; + function rn(xe, De) { + var Je = jn(xe), ht = !Je && Ri(xe), Yt = !Je && !ht && kn(xe), Mt = !Je && !ht && !Yt && Ji(xe), fr = Je || ht || Yt || Mt, nr = fr ? Y(xe.length, String) : [], tr = nr.length; + for (var ur in xe) + (De || tt.call(xe, ur)) && !(fr && // Safari 9 has enumerable `arguments.length` in strict mode. + (ur == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + Yt && (ur == "offset" || ur == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + Mt && (ur == "buffer" || ur == "byteLength" || ur == "byteOffset") || // Skip index properties. + wa(ur, tr))) && nr.push(ur); + return nr; + } + function zr(xe, De) { + for (var Je = xe.length; Je--; ) + if (Yi(xe[Je][0], De)) + return Je; + return -1; + } + function pi(xe, De, Je) { + var ht = De(xe); + return jn(xe) ? ht : q(ht, Je(xe)); + } + function $r(xe) { + return xe == null ? xe === void 0 ? M : n : it && it in Object(xe) ? Wi(xe) : Sa(xe); + } + function Dn(xe) { + return ti(xe) && $r(xe) == h; + } + function cn(xe, De, Je, ht, Yt) { + return xe === De ? !0 : xe == null || De == null || !ti(xe) && !ti(De) ? xe !== xe && De !== De : yi(xe, De, Je, ht, cn, Yt); + } + function yi(xe, De, Je, ht, Yt, Mt) { + var fr = jn(xe), nr = jn(De), tr = fr ? l : xn(xe), ur = nr ? l : xn(De); + tr = tr == h ? o : tr, ur = ur == h ? o : ur; + var Pr = tr == o, Br = ur == o, dr = tr == ur; + if (dr && kn(xe)) { + if (!kn(De)) + return !1; + fr = !0, Pr = !1; + } + if (dr && !Pr) + return Mt || (Mt = new Be()), fr || Ji(xe) ? Fn(xe, De, Je, ht, Yt, Mt) : Xi(xe, De, tr, Je, ht, Yt, Mt); + if (!(Je & w)) { + var Er = Pr && tt.call(xe, "__wrapped__"), Ar = Br && tt.call(De, "__wrapped__"); + if (Er || Ar) { + var pr = Er ? xe.value() : xe, pn = Ar ? De.value() : De; + return Mt || (Mt = new Be()), Yt(pr, pn, Je, ht, Mt); + } + } + return dr ? (Mt || (Mt = new Be()), Ui(xe, De, Je, ht, Yt, Mt)) : !1; + } + function hn(xe) { + if (!er(xe) || Gi(xe)) + return !1; + var De = Zi(xe) ? be : re; + return De.test(Sn(xe)); + } + function dn(xe) { + return ti(xe) && rr(xe.length) && !!ce[$r(xe)]; + } + function Nn(xe) { + if (!xa(xe)) + return Le(xe); + var De = []; + for (var Je in Object(xe)) + tt.call(xe, Je) && Je != "constructor" && De.push(Je); + return De; + } + function Fn(xe, De, Je, ht, Yt, Mt) { + var fr = Je & w, nr = xe.length, tr = De.length; + if (nr != tr && !(fr && tr > nr)) + return !1; + var ur = Mt.get(xe); + if (ur && Mt.get(De)) + return ur == De; + var Pr = -1, Br = !0, dr = Je & f ? new Ke() : void 0; + for (Mt.set(xe, De), Mt.set(De, xe); ++Pr < nr; ) { + var Er = xe[Pr], Ar = De[Pr]; + if (ht) + var pr = fr ? ht(Ar, Er, Pr, De, xe, Mt) : ht(Er, Ar, Pr, xe, De, Mt); + if (pr !== void 0) { + if (pr) + continue; + Br = !1; + break; + } + if (dr) { + if (!G(De, function(pn, mr) { + if (!we(dr, mr) && (Er === pn || Yt(Er, pn, Je, ht, Mt))) + return dr.push(mr); + })) { + Br = !1; + break; + } + } else if (!(Er === Ar || Yt(Er, Ar, Je, ht, Mt))) { + Br = !1; + break; + } + } + return Mt.delete(xe), Mt.delete(De), Br; + } + function Xi(xe, De, Je, ht, Yt, Mt, fr) { + switch (Je) { + case C: + if (xe.byteLength != De.byteLength || xe.byteOffset != De.byteOffset) + return !1; + xe = xe.buffer, De = De.buffer; + case R: + return !(xe.byteLength != De.byteLength || !Mt(new Pe(xe), new Pe(De))); + case s: + case v: + case i: + return Yi(+xe, +De); + case c: + return xe.name == De.name && xe.message == De.message; + case P: + case z: + return xe == De + ""; + case t: + var nr = je; + case F: + var tr = ht & w; + if (nr || (nr = nt), xe.size != De.size && !tr) + return !1; + var ur = fr.get(xe); + if (ur) + return ur == De; + ht |= f, fr.set(xe, De); + var Pr = Fn(nr(xe), nr(De), ht, Yt, Mt, fr); + return fr.delete(xe), Pr; + case N: + if (Pt) + return Pt.call(xe) == Pt.call(De); + } + return !1; + } + function Ui(xe, De, Je, ht, Yt, Mt) { + var fr = Je & w, nr = $i(xe), tr = nr.length, ur = $i(De), Pr = ur.length; + if (tr != Pr && !fr) + return !1; + for (var Br = tr; Br--; ) { + var dr = nr[Br]; + if (!(fr ? dr in De : tt.call(De, dr))) + return !1; + } + var Er = Mt.get(xe); + if (Er && Mt.get(De)) + return Er == De; + var Ar = !0; + Mt.set(xe, De), Mt.set(De, xe); + for (var pr = fr; ++Br < tr; ) { + dr = nr[Br]; + var pn = xe[dr], mr = De[dr]; + if (ht) + var ea = fr ? ht(mr, pn, dr, De, xe, Mt) : ht(pn, mr, dr, xe, De, Mt); + if (!(ea === void 0 ? pn === mr || Yt(pn, mr, Je, ht, Mt) : ea)) { + Ar = !1; + break; + } + pr || (pr = dr == "constructor"); + } + if (Ar && !pr) { + var En = xe.constructor, Zr = De.constructor; + En != Zr && "constructor" in xe && "constructor" in De && !(typeof En == "function" && En instanceof En && typeof Zr == "function" && Zr instanceof Zr) && (Ar = !1); + } + return Mt.delete(xe), Mt.delete(De), Ar; + } + function $i(xe) { + return pi(xe, Oa, Vi); + } + function ei(xe, De) { + var Je = xe.__data__; + return Ki(De) ? Je[typeof De == "string" ? "string" : "hash"] : Je.map; + } + function Bn(xe, De) { + var Je = _e(xe, De); + return hn(Je) ? Je : void 0; + } + function Wi(xe) { + var De = tt.call(xe, it), Je = xe[it]; + try { + xe[it] = void 0; + var ht = !0; + } catch (Mt) { + } + var Yt = Re.call(xe); + return ht && (De ? xe[it] = Je : delete xe[it]), Yt; + } + var Vi = K ? function(xe) { + return xe == null ? [] : (xe = Object(xe), Ce(K(xe), function(De) { + return te.call(xe, De); + })); + } : Qi, xn = $r; + (ue && xn(new ue(new ArrayBuffer(1))) != C || Se && xn(new Se()) != t || Ie && xn(Ie.resolve()) != p || st && xn(new st()) != F || Ge && xn(new Ge()) != I) && (xn = function(De) { + var Je = $r(De), ht = Je == o ? De.constructor : void 0, Yt = ht ? Sn(ht) : ""; + if (Yt) + switch (Yt) { + case _t: + return C; + case wt: + return t; + case Ot: + return p; + case pt: + return F; + case ct: + return I; + } + return Je; + }); + function wa(xe, De) { + return De = De == null ? y : De, !!De && (typeof xe == "number" || ee.test(xe)) && xe > -1 && xe % 1 == 0 && xe < De; + } + function Ki(xe) { + var De = m(xe); + return De == "string" || De == "number" || De == "symbol" || De == "boolean" ? xe !== "__proto__" : xe === null; + } + function Gi(xe) { + return !!ae && ae in xe; + } + function xa(xe) { + var De = xe && xe.constructor, Je = typeof De == "function" && De.prototype || Ue; + return xe === Je; + } + function Sa(xe) { + return Re.call(xe); + } + function Sn(xe) { + if (xe != null) { + try { + return Qe.call(xe); + } catch (De) { + } + try { + return xe + ""; + } catch (De) { + } + } + return ""; + } + function Yi(xe, De) { + return xe === De || xe !== xe && De !== De; + } + var Ri = Dn(function() { + return arguments; + }()) ? Dn : function(xe) { + return ti(xe) && tt.call(xe, "callee") && !te.call(xe, "callee"); + }, jn = Array.isArray; + function ka(xe) { + return xe != null && rr(xe.length) && !Zi(xe); + } + var kn = Me || qi; + function On(xe, De) { + return cn(xe, De); + } + function Zi(xe) { + if (!er(xe)) + return !1; + var De = $r(xe); + return De == a || De == r || De == d || De == O; + } + function rr(xe) { + return typeof xe == "number" && xe > -1 && xe % 1 == 0 && xe <= y; + } + function er(xe) { + var De = m(xe); + return xe != null && (De == "object" || De == "function"); + } + function ti(xe) { + return xe != null && m(xe) == "object"; + } + var Ji = se ? fe(se) : dn; + function Oa(xe) { + return ka(xe) ? rn(xe) : Nn(xe); + } + function Qi() { + return []; + } + function qi() { + return !1; + } + x.exports = On; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 430: [function(e, x, _) { + (function(u) { + function m(P) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(z) { + return typeof z; + } : m = function(z) { + return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z; + }, m(P); + } + var g = "[object AsyncFunction]", b = "[object Function]", w = "[object GeneratorFunction]", f = "[object Null]", y = "[object Proxy]", h = "[object Undefined]", l = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, d = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, s = l || d || Function("return this")(), v = Object.prototype, c = v.hasOwnProperty, a = v.toString, r = s.Symbol, t = r ? r.toStringTag : void 0; + function i(P) { + return P == null ? P === void 0 ? h : f : t && t in Object(P) ? n(P) : o(P); + } + function n(P) { + var F = c.call(P, t), z = P[t]; + try { + P[t] = void 0; + var N = !0; + } catch (I) { + } + var M = a.call(P); + return N && (F ? P[t] = z : delete P[t]), M; + } + function o(P) { + return a.call(P); + } + function p(P) { + if (!O(P)) + return !1; + var F = i(P); + return F == b || F == w || F == g || F == y; + } + function O(P) { + var F = m(P); + return P != null && (F == "object" || F == "function"); + } + x.exports = p; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 431: [function(e, x, _) { + function u(m) { + return m == null; + } + x.exports = u; + }, {}], 432: [function(e, x, _) { + function u(m) { + return m === void 0; + } + x.exports = u; + }, {}], 433: [function(e, x, _) { + (function(u) { + function m(be) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(pe) { + return typeof pe; + } : m = function(pe) { + return pe && typeof Symbol == "function" && pe.constructor === Symbol && pe !== Symbol.prototype ? "symbol" : typeof pe; + }, m(be); + } + var g = 200, b = "__lodash_hash_undefined__", w = 1 / 0, f = "[object Function]", y = "[object GeneratorFunction]", h = /[\\^$.*+?()[\]{}|]/g, l = /^\[object .+?Constructor\]$/, d = (typeof u == "undefined" ? "undefined" : m(u)) == "object" && u && u.Object === Object && u, s = (typeof self == "undefined" ? "undefined" : m(self)) == "object" && self && self.Object === Object && self, v = d || s || Function("return this")(); + function c(be, Ee) { + var pe = be ? be.length : 0; + return !!pe && t(be, Ee, 0) > -1; + } + function a(be, Ee, pe) { + for (var Pe = -1, te = be ? be.length : 0; ++Pe < te; ) + if (pe(Ee, be[Pe])) + return !0; + return !1; + } + function r(be, Ee, pe, Pe) { + for (var te = be.length, He = pe + (Pe ? 1 : -1); Pe ? He-- : ++He < te; ) + if (Ee(be[He], He, be)) + return He; + return -1; + } + function t(be, Ee, pe) { + if (Ee !== Ee) + return r(be, i, pe); + for (var Pe = pe - 1, te = be.length; ++Pe < te; ) + if (be[Pe] === Ee) + return Pe; + return -1; + } + function i(be) { + return be !== be; + } + function n(be, Ee) { + return be.has(Ee); + } + function o(be, Ee) { + return be == null ? void 0 : be[Ee]; + } + function p(be) { + var Ee = !1; + if (be != null && typeof be.toString != "function") + try { + Ee = !!(be + ""); + } catch (pe) { + } + return Ee; + } + function O(be) { + var Ee = -1, pe = Array(be.size); + return be.forEach(function(Pe) { + pe[++Ee] = Pe; + }), pe; + } + var P = Array.prototype, F = Function.prototype, z = Object.prototype, N = v["__core-js_shared__"], M = function() { + var be = /[^.]+$/.exec(N && N.keys && N.keys.IE_PROTO || ""); + return be ? "Symbol(src)_1." + be : ""; + }(), I = F.toString, R = z.hasOwnProperty, C = z.toString, E = RegExp("^" + I.call(R).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), A = P.splice, L = nt(v, "Map"), $ = nt(v, "Set"), W = nt(Object, "create"); + function U(be) { + var Ee = -1, pe = be ? be.length : 0; + for (this.clear(); ++Ee < pe; ) { + var Pe = be[Ee]; + this.set(Pe[0], Pe[1]); + } + } + function D() { + this.__data__ = W ? W(null) : {}; + } + function B(be) { + return this.has(be) && delete this.__data__[be]; + } + function j(be) { + var Ee = this.__data__; + if (W) { + var pe = Ee[be]; + return pe === b ? void 0 : pe; + } + return R.call(Ee, be) ? Ee[be] : void 0; + } + function V(be) { + var Ee = this.__data__; + return W ? Ee[be] !== void 0 : R.call(Ee, be); + } + function re(be, Ee) { + var pe = this.__data__; + return pe[be] = W && Ee === void 0 ? b : Ee, this; + } + U.prototype.clear = D, U.prototype.delete = B, U.prototype.get = j, U.prototype.has = V, U.prototype.set = re; + function ee(be) { + var Ee = -1, pe = be ? be.length : 0; + for (this.clear(); ++Ee < pe; ) { + var Pe = be[Ee]; + this.set(Pe[0], Pe[1]); + } + } + function ce() { + this.__data__ = []; + } + function ve(be) { + var Ee = this.__data__, pe = fe(Ee, be); + if (pe < 0) + return !1; + var Pe = Ee.length - 1; + return pe == Pe ? Ee.pop() : A.call(Ee, pe, 1), !0; + } + function ge(be) { + var Ee = this.__data__, pe = fe(Ee, be); + return pe < 0 ? void 0 : Ee[pe][1]; + } + function oe(be) { + return fe(this.__data__, be) > -1; + } + function J(be, Ee) { + var pe = this.__data__, Pe = fe(pe, be); + return Pe < 0 ? pe.push([be, Ee]) : pe[Pe][1] = Ee, this; + } + ee.prototype.clear = ce, ee.prototype.delete = ve, ee.prototype.get = ge, ee.prototype.has = oe, ee.prototype.set = J; + function Q(be) { + var Ee = -1, pe = be ? be.length : 0; + for (this.clear(); ++Ee < pe; ) { + var Pe = be[Ee]; + this.set(Pe[0], Pe[1]); + } + } + function he() { + this.__data__ = { + hash: new U(), + map: new (L || ee)(), + string: new U() + }; + } + function ke(be) { + return Ye(this, be).delete(be); + } + function ne(be) { + return Ye(this, be).get(be); + } + function se(be) { + return Ye(this, be).has(be); + } + function Ce(be, Ee) { + return Ye(this, be).set(be, Ee), this; + } + Q.prototype.clear = he, Q.prototype.delete = ke, Q.prototype.get = ne, Q.prototype.has = se, Q.prototype.set = Ce; + function q(be) { + var Ee = -1, pe = be ? be.length : 0; + for (this.__data__ = new Q(); ++Ee < pe; ) + this.add(be[Ee]); + } + function G(be) { + return this.__data__.set(be, b), this; + } + function Y(be) { + return this.__data__.has(be); + } + q.prototype.add = q.prototype.push = G, q.prototype.has = Y; + function fe(be, Ee) { + for (var pe = be.length; pe--; ) + if (Qe(be[pe][0], Ee)) + return pe; + return -1; + } + function we(be) { + if (!ae(be) || ot(be)) + return !1; + var Ee = tt(be) || p(be) ? E : l; + return Ee.test(Ue(be)); + } + function _e(be, Ee, pe) { + var Pe = -1, te = c, He = be.length, it = !0, K = [], Me = K; + if (pe) + it = !1, te = a; + else if (He >= g) { + var Le = Ee ? null : je(be); + if (Le) + return O(Le); + it = !1, te = n, Me = new q(); + } else + Me = Ee ? [] : K; + e: + for (; ++Pe < He; ) { + var ue = be[Pe], Se = Ee ? Ee(ue) : ue; + if (ue = pe || ue !== 0 ? ue : 0, it && Se === Se) { + for (var Ie = Me.length; Ie--; ) + if (Me[Ie] === Se) + continue e; + Ee && Me.push(Se), K.push(ue); + } else + te(Me, Se, pe) || (Me !== K && Me.push(Se), K.push(ue)); + } + return K; + } + var je = $ && 1 / O(new $([, -0]))[1] == w ? function(be) { + return new $(be); + } : Re; + function Ye(be, Ee) { + var pe = be.__data__; + return ut(Ee) ? pe[typeof Ee == "string" ? "string" : "hash"] : pe.map; + } + function nt(be, Ee) { + var pe = o(be, Ee); + return we(pe) ? pe : void 0; + } + function ut(be) { + var Ee = m(be); + return Ee == "string" || Ee == "number" || Ee == "symbol" || Ee == "boolean" ? be !== "__proto__" : be === null; + } + function ot(be) { + return !!M && M in be; + } + function Ue(be) { + if (be != null) { + try { + return I.call(be); + } catch (Ee) { + } + try { + return be + ""; + } catch (Ee) { + } + } + return ""; + } + function Ve(be) { + return be && be.length ? _e(be) : []; + } + function Qe(be, Ee) { + return be === Ee || be !== be && Ee !== Ee; + } + function tt(be) { + var Ee = ae(be) ? C.call(be) : ""; + return Ee == f || Ee == y; + } + function ae(be) { + var Ee = m(be); + return !!be && (Ee == "object" || Ee == "function"); + } + function Re() { + } + x.exports = Ve; + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 434: [function(e, x, _) { + var u = e("inherits"), m = e("hash-base"), g = e("safe-buffer").Buffer, b = new Array(16); + function w() { + m.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878; + } + u(w, m), w.prototype._update = function() { + for (var s = b, v = 0; v < 16; ++v) + s[v] = this._block.readInt32LE(v * 4); + var c = this._a, a = this._b, r = this._c, t = this._d; + c = y(c, a, r, t, s[0], 3614090360, 7), t = y(t, c, a, r, s[1], 3905402710, 12), r = y(r, t, c, a, s[2], 606105819, 17), a = y(a, r, t, c, s[3], 3250441966, 22), c = y(c, a, r, t, s[4], 4118548399, 7), t = y(t, c, a, r, s[5], 1200080426, 12), r = y(r, t, c, a, s[6], 2821735955, 17), a = y(a, r, t, c, s[7], 4249261313, 22), c = y(c, a, r, t, s[8], 1770035416, 7), t = y(t, c, a, r, s[9], 2336552879, 12), r = y(r, t, c, a, s[10], 4294925233, 17), a = y(a, r, t, c, s[11], 2304563134, 22), c = y(c, a, r, t, s[12], 1804603682, 7), t = y(t, c, a, r, s[13], 4254626195, 12), r = y(r, t, c, a, s[14], 2792965006, 17), a = y(a, r, t, c, s[15], 1236535329, 22), c = h(c, a, r, t, s[1], 4129170786, 5), t = h(t, c, a, r, s[6], 3225465664, 9), r = h(r, t, c, a, s[11], 643717713, 14), a = h(a, r, t, c, s[0], 3921069994, 20), c = h(c, a, r, t, s[5], 3593408605, 5), t = h(t, c, a, r, s[10], 38016083, 9), r = h(r, t, c, a, s[15], 3634488961, 14), a = h(a, r, t, c, s[4], 3889429448, 20), c = h(c, a, r, t, s[9], 568446438, 5), t = h(t, c, a, r, s[14], 3275163606, 9), r = h(r, t, c, a, s[3], 4107603335, 14), a = h(a, r, t, c, s[8], 1163531501, 20), c = h(c, a, r, t, s[13], 2850285829, 5), t = h(t, c, a, r, s[2], 4243563512, 9), r = h(r, t, c, a, s[7], 1735328473, 14), a = h(a, r, t, c, s[12], 2368359562, 20), c = l(c, a, r, t, s[5], 4294588738, 4), t = l(t, c, a, r, s[8], 2272392833, 11), r = l(r, t, c, a, s[11], 1839030562, 16), a = l(a, r, t, c, s[14], 4259657740, 23), c = l(c, a, r, t, s[1], 2763975236, 4), t = l(t, c, a, r, s[4], 1272893353, 11), r = l(r, t, c, a, s[7], 4139469664, 16), a = l(a, r, t, c, s[10], 3200236656, 23), c = l(c, a, r, t, s[13], 681279174, 4), t = l(t, c, a, r, s[0], 3936430074, 11), r = l(r, t, c, a, s[3], 3572445317, 16), a = l(a, r, t, c, s[6], 76029189, 23), c = l(c, a, r, t, s[9], 3654602809, 4), t = l(t, c, a, r, s[12], 3873151461, 11), r = l(r, t, c, a, s[15], 530742520, 16), a = l(a, r, t, c, s[2], 3299628645, 23), c = d(c, a, r, t, s[0], 4096336452, 6), t = d(t, c, a, r, s[7], 1126891415, 10), r = d(r, t, c, a, s[14], 2878612391, 15), a = d(a, r, t, c, s[5], 4237533241, 21), c = d(c, a, r, t, s[12], 1700485571, 6), t = d(t, c, a, r, s[3], 2399980690, 10), r = d(r, t, c, a, s[10], 4293915773, 15), a = d(a, r, t, c, s[1], 2240044497, 21), c = d(c, a, r, t, s[8], 1873313359, 6), t = d(t, c, a, r, s[15], 4264355552, 10), r = d(r, t, c, a, s[6], 2734768916, 15), a = d(a, r, t, c, s[13], 1309151649, 21), c = d(c, a, r, t, s[4], 4149444226, 6), t = d(t, c, a, r, s[11], 3174756917, 10), r = d(r, t, c, a, s[2], 718787259, 15), a = d(a, r, t, c, s[9], 3951481745, 21), this._a = this._a + c | 0, this._b = this._b + a | 0, this._c = this._c + r | 0, this._d = this._d + t | 0; + }, w.prototype._digest = function() { + this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update(); + var s = g.allocUnsafe(16); + return s.writeInt32LE(this._a, 0), s.writeInt32LE(this._b, 4), s.writeInt32LE(this._c, 8), s.writeInt32LE(this._d, 12), s; + }; + function f(s, v) { + return s << v | s >>> 32 - v; + } + function y(s, v, c, a, r, t, i) { + return f(s + (v & c | ~v & a) + r + t | 0, i) + v | 0; + } + function h(s, v, c, a, r, t, i) { + return f(s + (v & a | c & ~a) + r + t | 0, i) + v | 0; + } + function l(s, v, c, a, r, t, i) { + return f(s + (v ^ c ^ a) + r + t | 0, i) + v | 0; + } + function d(s, v, c, a, r, t, i) { + return f(s + (c ^ (v | ~a)) + r + t | 0, i) + v | 0; + } + x.exports = w; + }, { "hash-base": 370, inherits: 387, "safe-buffer": 494 }], 435: [function(e, x, _) { + var u = e("bn.js"), m = e("brorand"); + function g(b) { + this.rand = b || new m.Rand(); + } + x.exports = g, g.create = function(w) { + return new g(w); + }, g.prototype._randbelow = function(w) { + var f = w.bitLength(), y = Math.ceil(f / 8); + do + var h = new u(this.rand.generate(y)); + while (h.cmp(w) >= 0); + return h; + }, g.prototype._randrange = function(w, f) { + var y = f.sub(w); + return w.add(this._randbelow(y)); + }, g.prototype.test = function(w, f, y) { + var h = w.bitLength(), l = u.mont(w), d = new u(1).toRed(l); + f || (f = Math.max(1, h / 48 | 0)); + for (var s = w.subn(1), v = 0; !s.testn(v); v++) + ; + for (var c = w.shrn(v), a = s.toRed(l), r = !0; f > 0; f--) { + var t = this._randrange(new u(2), s); + y && y(t); + var i = t.toRed(l).redPow(c); + if (!(i.cmp(d) === 0 || i.cmp(a) === 0)) { + for (var n = 1; n < v; n++) { + if (i = i.redSqr(), i.cmp(d) === 0) + return !1; + if (i.cmp(a) === 0) + break; + } + if (n === v) + return !1; + } + } + return r; + }, g.prototype.getDivisor = function(w, f) { + var y = w.bitLength(), h = u.mont(w), l = new u(1).toRed(h); + f || (f = Math.max(1, y / 48 | 0)); + for (var d = w.subn(1), s = 0; !d.testn(s); s++) + ; + for (var v = w.shrn(s), c = d.toRed(h); f > 0; f--) { + var a = this._randrange(new u(2), d), r = w.gcd(a); + if (r.cmpn(1) !== 0) + return r; + var t = a.toRed(h).redPow(v); + if (!(t.cmp(l) === 0 || t.cmp(c) === 0)) { + for (var i = 1; i < s; i++) { + if (t = t.redSqr(), t.cmp(l) === 0) + return t.fromRed().subn(1).gcd(w); + if (t.cmp(c) === 0) + break; + } + if (i === s) + return t = t.redSqr(), t.fromRed().subn(1).gcd(w); + } + } + return !1; + }; + }, { "bn.js": 436, brorand: 184 }], 436: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 437: [function(e, x, _) { + x.exports = u; + function u(m, g) { + if (!m) + throw new Error(g || "Assertion failed"); + } + u.equal = function(g, b, w) { + if (g != b) + throw new Error(w || "Assertion failed: " + g + " != " + b); + }; + }, {}], 438: [function(e, x, _) { + var u = _; + function m(w, f) { + if (Array.isArray(w)) + return w.slice(); + if (!w) + return []; + var y = []; + if (typeof w != "string") { + for (var h = 0; h < w.length; h++) + y[h] = w[h] | 0; + return y; + } + if (f === "hex") { + w = w.replace(/[^a-z0-9]+/ig, ""), w.length % 2 !== 0 && (w = "0" + w); + for (var h = 0; h < w.length; h += 2) + y.push(parseInt(w[h] + w[h + 1], 16)); + } else + for (var h = 0; h < w.length; h++) { + var l = w.charCodeAt(h), d = l >> 8, s = l & 255; + d ? y.push(d, s) : y.push(s); + } + return y; + } + u.toArray = m; + function g(w) { + return w.length === 1 ? "0" + w : w; + } + u.zero2 = g; + function b(w) { + for (var f = "", y = 0; y < w.length; y++) + f += g(w[y].toString(16)); + return f; + } + u.toHex = b, u.encode = function(f, y) { + return y === "hex" ? b(f) : f; + }; + }, {}], 439: [function(e, x, _) { + var u = e("./lib/utils/common").assign, m = e("./lib/deflate"), g = e("./lib/inflate"), b = e("./lib/zlib/constants"), w = {}; + u(w, m, g, b), x.exports = w; + }, { "./lib/deflate": 440, "./lib/inflate": 441, "./lib/utils/common": 442, "./lib/zlib/constants": 445 }], 440: [function(e, x, _) { + var u = e("./zlib/deflate"), m = e("./utils/common"), g = e("./utils/strings"), b = e("./zlib/messages"), w = e("./zlib/zstream"), f = Object.prototype.toString, y = 0, h = 4, l = 0, d = 1, s = 2, v = -1, c = 0, a = 8; + function r(o) { + if (!(this instanceof r)) + return new r(o); + this.options = m.assign({ + level: v, + method: a, + chunkSize: 16384, + windowBits: 15, + memLevel: 8, + strategy: c, + to: "" + }, o || {}); + var p = this.options; + p.raw && p.windowBits > 0 ? p.windowBits = -p.windowBits : p.gzip && p.windowBits > 0 && p.windowBits < 16 && (p.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0; + var O = u.deflateInit2(this.strm, p.level, p.method, p.windowBits, p.memLevel, p.strategy); + if (O !== l) + throw new Error(b[O]); + if (p.header && u.deflateSetHeader(this.strm, p.header), p.dictionary) { + var P; + if (typeof p.dictionary == "string" ? P = g.string2buf(p.dictionary) : f.call(p.dictionary) === "[object ArrayBuffer]" ? P = new Uint8Array(p.dictionary) : P = p.dictionary, O = u.deflateSetDictionary(this.strm, P), O !== l) + throw new Error(b[O]); + this._dict_set = !0; + } + } + r.prototype.push = function(o, p) { + var O = this.strm, P = this.options.chunkSize, F, z; + if (this.ended) + return !1; + z = p === ~~p ? p : p === !0 ? h : y, typeof o == "string" ? O.input = g.string2buf(o) : f.call(o) === "[object ArrayBuffer]" ? O.input = new Uint8Array(o) : O.input = o, O.next_in = 0, O.avail_in = O.input.length; + do { + if (O.avail_out === 0 && (O.output = new m.Buf8(P), O.next_out = 0, O.avail_out = P), F = u.deflate(O, z), F !== d && F !== l) + return this.onEnd(F), this.ended = !0, !1; + (O.avail_out === 0 || O.avail_in === 0 && (z === h || z === s)) && (this.options.to === "string" ? this.onData(g.buf2binstring(m.shrinkBuf(O.output, O.next_out))) : this.onData(m.shrinkBuf(O.output, O.next_out))); + } while ((O.avail_in > 0 || O.avail_out === 0) && F !== d); + return z === h ? (F = u.deflateEnd(this.strm), this.onEnd(F), this.ended = !0, F === l) : (z === s && (this.onEnd(l), O.avail_out = 0), !0); + }, r.prototype.onData = function(o) { + this.chunks.push(o); + }, r.prototype.onEnd = function(o) { + o === l && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = m.flattenChunks(this.chunks)), this.chunks = [], this.err = o, this.msg = this.strm.msg; + }; + function t(o, p) { + var O = new r(p); + if (O.push(o, !0), O.err) + throw O.msg || b[O.err]; + return O.result; + } + function i(o, p) { + return p = p || {}, p.raw = !0, t(o, p); + } + function n(o, p) { + return p = p || {}, p.gzip = !0, t(o, p); + } + _.Deflate = r, _.deflate = t, _.deflateRaw = i, _.gzip = n; + }, { "./utils/common": 442, "./utils/strings": 443, "./zlib/deflate": 447, "./zlib/messages": 452, "./zlib/zstream": 454 }], 441: [function(e, x, _) { + var u = e("./zlib/inflate"), m = e("./utils/common"), g = e("./utils/strings"), b = e("./zlib/constants"), w = e("./zlib/messages"), f = e("./zlib/zstream"), y = e("./zlib/gzheader"), h = Object.prototype.toString; + function l(v) { + if (!(this instanceof l)) + return new l(v); + this.options = m.assign({ + chunkSize: 16384, + windowBits: 0, + to: "" + }, v || {}); + var c = this.options; + c.raw && c.windowBits >= 0 && c.windowBits < 16 && (c.windowBits = -c.windowBits, c.windowBits === 0 && (c.windowBits = -15)), c.windowBits >= 0 && c.windowBits < 16 && !(v && v.windowBits) && (c.windowBits += 32), c.windowBits > 15 && c.windowBits < 48 && (c.windowBits & 15 || (c.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new f(), this.strm.avail_out = 0; + var a = u.inflateInit2(this.strm, c.windowBits); + if (a !== b.Z_OK) + throw new Error(w[a]); + if (this.header = new y(), u.inflateGetHeader(this.strm, this.header), c.dictionary && (typeof c.dictionary == "string" ? c.dictionary = g.string2buf(c.dictionary) : h.call(c.dictionary) === "[object ArrayBuffer]" && (c.dictionary = new Uint8Array(c.dictionary)), c.raw && (a = u.inflateSetDictionary(this.strm, c.dictionary), a !== b.Z_OK))) + throw new Error(w[a]); + } + l.prototype.push = function(v, c) { + var a = this.strm, r = this.options.chunkSize, t = this.options.dictionary, i, n, o, p, O, P = !1; + if (this.ended) + return !1; + n = c === ~~c ? c : c === !0 ? b.Z_FINISH : b.Z_NO_FLUSH, typeof v == "string" ? a.input = g.binstring2buf(v) : h.call(v) === "[object ArrayBuffer]" ? a.input = new Uint8Array(v) : a.input = v, a.next_in = 0, a.avail_in = a.input.length; + do { + if (a.avail_out === 0 && (a.output = new m.Buf8(r), a.next_out = 0, a.avail_out = r), i = u.inflate(a, b.Z_NO_FLUSH), i === b.Z_NEED_DICT && t && (i = u.inflateSetDictionary(this.strm, t)), i === b.Z_BUF_ERROR && P === !0 && (i = b.Z_OK, P = !1), i !== b.Z_STREAM_END && i !== b.Z_OK) + return this.onEnd(i), this.ended = !0, !1; + a.next_out && (a.avail_out === 0 || i === b.Z_STREAM_END || a.avail_in === 0 && (n === b.Z_FINISH || n === b.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (o = g.utf8border(a.output, a.next_out), p = a.next_out - o, O = g.buf2string(a.output, o), a.next_out = p, a.avail_out = r - p, p && m.arraySet(a.output, a.output, o, p, 0), this.onData(O)) : this.onData(m.shrinkBuf(a.output, a.next_out))), a.avail_in === 0 && a.avail_out === 0 && (P = !0); + } while ((a.avail_in > 0 || a.avail_out === 0) && i !== b.Z_STREAM_END); + return i === b.Z_STREAM_END && (n = b.Z_FINISH), n === b.Z_FINISH ? (i = u.inflateEnd(this.strm), this.onEnd(i), this.ended = !0, i === b.Z_OK) : (n === b.Z_SYNC_FLUSH && (this.onEnd(b.Z_OK), a.avail_out = 0), !0); + }, l.prototype.onData = function(v) { + this.chunks.push(v); + }, l.prototype.onEnd = function(v) { + v === b.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = m.flattenChunks(this.chunks)), this.chunks = [], this.err = v, this.msg = this.strm.msg; + }; + function d(v, c) { + var a = new l(c); + if (a.push(v, !0), a.err) + throw a.msg || w[a.err]; + return a.result; + } + function s(v, c) { + return c = c || {}, c.raw = !0, d(v, c); + } + _.Inflate = l, _.inflate = d, _.inflateRaw = s, _.ungzip = d; + }, { "./utils/common": 442, "./utils/strings": 443, "./zlib/constants": 445, "./zlib/gzheader": 448, "./zlib/inflate": 450, "./zlib/messages": 452, "./zlib/zstream": 454 }], 442: [function(e, x, _) { + function u(f) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(h) { + return typeof h; + } : u = function(h) { + return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h; + }, u(f); + } + var m = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Int32Array != "undefined"; + function g(f, y) { + return Object.prototype.hasOwnProperty.call(f, y); + } + _.assign = function(f) { + for (var y = Array.prototype.slice.call(arguments, 1); y.length; ) { + var h = y.shift(); + if (h) { + if (u(h) !== "object") + throw new TypeError(h + "must be non-object"); + for (var l in h) + g(h, l) && (f[l] = h[l]); + } + } + return f; + }, _.shrinkBuf = function(f, y) { + return f.length === y ? f : f.subarray ? f.subarray(0, y) : (f.length = y, f); + }; + var b = { + arraySet: function(y, h, l, d, s) { + if (h.subarray && y.subarray) { + y.set(h.subarray(l, l + d), s); + return; + } + for (var v = 0; v < d; v++) + y[s + v] = h[l + v]; + }, + // Join array of chunks to single array. + flattenChunks: function(y) { + var h, l, d, s, v, c; + for (d = 0, h = 0, l = y.length; h < l; h++) + d += y[h].length; + for (c = new Uint8Array(d), s = 0, h = 0, l = y.length; h < l; h++) + v = y[h], c.set(v, s), s += v.length; + return c; + } + }, w = { + arraySet: function(y, h, l, d, s) { + for (var v = 0; v < d; v++) + y[s + v] = h[l + v]; + }, + // Join array of chunks to single array. + flattenChunks: function(y) { + return [].concat.apply([], y); + } + }; + _.setTyped = function(f) { + f ? (_.Buf8 = Uint8Array, _.Buf16 = Uint16Array, _.Buf32 = Int32Array, _.assign(_, b)) : (_.Buf8 = Array, _.Buf16 = Array, _.Buf32 = Array, _.assign(_, w)); + }, _.setTyped(m); + }, {}], 443: [function(e, x, _) { + var u = e("./common"), m = !0, g = !0; + try { + String.fromCharCode.apply(null, [0]); + } catch (y) { + m = !1; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch (y) { + g = !1; + } + for (var b = new u.Buf8(256), w = 0; w < 256; w++) + b[w] = w >= 252 ? 6 : w >= 248 ? 5 : w >= 240 ? 4 : w >= 224 ? 3 : w >= 192 ? 2 : 1; + b[254] = b[254] = 1, _.string2buf = function(y) { + var h, l, d, s, v, c = y.length, a = 0; + for (s = 0; s < c; s++) + l = y.charCodeAt(s), (l & 64512) === 55296 && s + 1 < c && (d = y.charCodeAt(s + 1), (d & 64512) === 56320 && (l = 65536 + (l - 55296 << 10) + (d - 56320), s++)), a += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4; + for (h = new u.Buf8(a), v = 0, s = 0; v < a; s++) + l = y.charCodeAt(s), (l & 64512) === 55296 && s + 1 < c && (d = y.charCodeAt(s + 1), (d & 64512) === 56320 && (l = 65536 + (l - 55296 << 10) + (d - 56320), s++)), l < 128 ? h[v++] = l : l < 2048 ? (h[v++] = 192 | l >>> 6, h[v++] = 128 | l & 63) : l < 65536 ? (h[v++] = 224 | l >>> 12, h[v++] = 128 | l >>> 6 & 63, h[v++] = 128 | l & 63) : (h[v++] = 240 | l >>> 18, h[v++] = 128 | l >>> 12 & 63, h[v++] = 128 | l >>> 6 & 63, h[v++] = 128 | l & 63); + return h; + }; + function f(y, h) { + if (h < 65534 && (y.subarray && g || !y.subarray && m)) + return String.fromCharCode.apply(null, u.shrinkBuf(y, h)); + for (var l = "", d = 0; d < h; d++) + l += String.fromCharCode(y[d]); + return l; + } + _.buf2binstring = function(y) { + return f(y, y.length); + }, _.binstring2buf = function(y) { + for (var h = new u.Buf8(y.length), l = 0, d = h.length; l < d; l++) + h[l] = y.charCodeAt(l); + return h; + }, _.buf2string = function(y, h) { + var l, d, s, v, c = h || y.length, a = new Array(c * 2); + for (d = 0, l = 0; l < c; ) { + if (s = y[l++], s < 128) { + a[d++] = s; + continue; + } + if (v = b[s], v > 4) { + a[d++] = 65533, l += v - 1; + continue; + } + for (s &= v === 2 ? 31 : v === 3 ? 15 : 7; v > 1 && l < c; ) + s = s << 6 | y[l++] & 63, v--; + if (v > 1) { + a[d++] = 65533; + continue; + } + s < 65536 ? a[d++] = s : (s -= 65536, a[d++] = 55296 | s >> 10 & 1023, a[d++] = 56320 | s & 1023); + } + return f(a, d); + }, _.utf8border = function(y, h) { + var l; + for (h = h || y.length, h > y.length && (h = y.length), l = h - 1; l >= 0 && (y[l] & 192) === 128; ) + l--; + return l < 0 || l === 0 ? h : l + b[y[l]] > h ? l : h; + }; + }, { "./common": 442 }], 444: [function(e, x, _) { + function u(m, g, b, w) { + for (var f = m & 65535 | 0, y = m >>> 16 & 65535 | 0, h = 0; b !== 0; ) { + h = b > 2e3 ? 2e3 : b, b -= h; + do + f = f + g[w++] | 0, y = y + f | 0; + while (--h); + f %= 65521, y %= 65521; + } + return f | y << 16 | 0; + } + x.exports = u; + }, {}], 445: [function(e, x, _) { + x.exports = { + /* Allowed flush values; see deflate() and inflate() below for details */ + Z_NO_FLUSH: 0, + Z_PARTIAL_FLUSH: 1, + Z_SYNC_FLUSH: 2, + Z_FULL_FLUSH: 3, + Z_FINISH: 4, + Z_BLOCK: 5, + Z_TREES: 6, + /* Return codes for the compression/decompression functions. Negative values + * are errors, positive values are used for special but normal events. + */ + Z_OK: 0, + Z_STREAM_END: 1, + Z_NEED_DICT: 2, + Z_ERRNO: -1, + Z_STREAM_ERROR: -2, + Z_DATA_ERROR: -3, + //Z_MEM_ERROR: -4, + Z_BUF_ERROR: -5, + //Z_VERSION_ERROR: -6, + /* compression levels */ + Z_NO_COMPRESSION: 0, + Z_BEST_SPEED: 1, + Z_BEST_COMPRESSION: 9, + Z_DEFAULT_COMPRESSION: -1, + Z_FILTERED: 1, + Z_HUFFMAN_ONLY: 2, + Z_RLE: 3, + Z_FIXED: 4, + Z_DEFAULT_STRATEGY: 0, + /* Possible values of the data_type field (though see inflate()) */ + Z_BINARY: 0, + Z_TEXT: 1, + //Z_ASCII: 1, // = Z_TEXT (deprecated) + Z_UNKNOWN: 2, + /* The deflate compression method */ + Z_DEFLATED: 8 + //Z_NULL: null // Use -1 or null inline, depending on var type + }; + }, {}], 446: [function(e, x, _) { + function u() { + for (var b, w = [], f = 0; f < 256; f++) { + b = f; + for (var y = 0; y < 8; y++) + b = b & 1 ? 3988292384 ^ b >>> 1 : b >>> 1; + w[f] = b; + } + return w; + } + var m = u(); + function g(b, w, f, y) { + var h = m, l = y + f; + b ^= -1; + for (var d = y; d < l; d++) + b = b >>> 8 ^ h[(b ^ w[d]) & 255]; + return b ^ -1; + } + x.exports = g; + }, {}], 447: [function(e, x, _) { + var u = e("../utils/common"), m = e("./trees"), g = e("./adler32"), b = e("./crc32"), w = e("./messages"), f = 0, y = 1, h = 3, l = 4, d = 5, s = 0, v = 1, c = -2, a = -3, r = -5, t = -1, i = 1, n = 2, o = 3, p = 4, O = 0, P = 2, F = 8, z = 9, N = 15, M = 8, I = 29, R = 256, C = R + 1 + I, E = 30, A = 19, L = 2 * C + 1, $ = 15, W = 3, U = 258, D = U + W + 1, B = 32, j = 42, V = 69, re = 73, ee = 91, ce = 103, ve = 113, ge = 666, oe = 1, J = 2, Q = 3, he = 4, ke = 3; + function ne(K, Me) { + return K.msg = w[Me], Me; + } + function se(K) { + return (K << 1) - (K > 4 ? 9 : 0); + } + function Ce(K) { + for (var Me = K.length; --Me >= 0; ) + K[Me] = 0; + } + function q(K) { + var Me = K.state, Le = Me.pending; + Le > K.avail_out && (Le = K.avail_out), Le !== 0 && (u.arraySet(K.output, Me.pending_buf, Me.pending_out, Le, K.next_out), K.next_out += Le, Me.pending_out += Le, K.total_out += Le, K.avail_out -= Le, Me.pending -= Le, Me.pending === 0 && (Me.pending_out = 0)); + } + function G(K, Me) { + m._tr_flush_block(K, K.block_start >= 0 ? K.block_start : -1, K.strstart - K.block_start, Me), K.block_start = K.strstart, q(K.strm); + } + function Y(K, Me) { + K.pending_buf[K.pending++] = Me; + } + function fe(K, Me) { + K.pending_buf[K.pending++] = Me >>> 8 & 255, K.pending_buf[K.pending++] = Me & 255; + } + function we(K, Me, Le, ue) { + var Se = K.avail_in; + return Se > ue && (Se = ue), Se === 0 ? 0 : (K.avail_in -= Se, u.arraySet(Me, K.input, K.next_in, Se, Le), K.state.wrap === 1 ? K.adler = g(K.adler, Me, Se, Le) : K.state.wrap === 2 && (K.adler = b(K.adler, Me, Se, Le)), K.next_in += Se, K.total_in += Se, Se); + } + function _e(K, Me) { + var Le = K.max_chain_length, ue = K.strstart, Se, Ie, st = K.prev_length, Ge = K.nice_match, rt = K.strstart > K.w_size - D ? K.strstart - (K.w_size - D) : 0, _t = K.window, wt = K.w_mask, Ot = K.prev, pt = K.strstart + U, ct = _t[ue + st - 1], At = _t[ue + st]; + K.prev_length >= K.good_match && (Le >>= 2), Ge > K.lookahead && (Ge = K.lookahead); + do + if (Se = Me, !(_t[Se + st] !== At || _t[Se + st - 1] !== ct || _t[Se] !== _t[ue] || _t[++Se] !== _t[ue + 1])) { + ue += 2, Se++; + do + ; + while (_t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && _t[++ue] === _t[++Se] && ue < pt); + if (Ie = U - (pt - ue), ue = pt - U, Ie > st) { + if (K.match_start = Me, st = Ie, Ie >= Ge) + break; + ct = _t[ue + st - 1], At = _t[ue + st]; + } + } + while ((Me = Ot[Me & wt]) > rt && --Le !== 0); + return st <= K.lookahead ? st : K.lookahead; + } + function je(K) { + var Me = K.w_size, Le, ue, Se, Ie, st; + do { + if (Ie = K.window_size - K.lookahead - K.strstart, K.strstart >= Me + (Me - D)) { + u.arraySet(K.window, K.window, Me, Me, 0), K.match_start -= Me, K.strstart -= Me, K.block_start -= Me, ue = K.hash_size, Le = ue; + do + Se = K.head[--Le], K.head[Le] = Se >= Me ? Se - Me : 0; + while (--ue); + ue = Me, Le = ue; + do + Se = K.prev[--Le], K.prev[Le] = Se >= Me ? Se - Me : 0; + while (--ue); + Ie += Me; + } + if (K.strm.avail_in === 0) + break; + if (ue = we(K.strm, K.window, K.strstart + K.lookahead, Ie), K.lookahead += ue, K.lookahead + K.insert >= W) + for (st = K.strstart - K.insert, K.ins_h = K.window[st], K.ins_h = (K.ins_h << K.hash_shift ^ K.window[st + 1]) & K.hash_mask; K.insert && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[st + W - 1]) & K.hash_mask, K.prev[st & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = st, st++, K.insert--, !(K.lookahead + K.insert < W)); ) + ; + } while (K.lookahead < D && K.strm.avail_in !== 0); + } + function Ye(K, Me) { + var Le = 65535; + for (Le > K.pending_buf_size - 5 && (Le = K.pending_buf_size - 5); ; ) { + if (K.lookahead <= 1) { + if (je(K), K.lookahead === 0 && Me === f) + return oe; + if (K.lookahead === 0) + break; + } + K.strstart += K.lookahead, K.lookahead = 0; + var ue = K.block_start + Le; + if ((K.strstart === 0 || K.strstart >= ue) && (K.lookahead = K.strstart - ue, K.strstart = ue, G(K, !1), K.strm.avail_out === 0) || K.strstart - K.block_start >= K.w_size - D && (G(K, !1), K.strm.avail_out === 0)) + return oe; + } + return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : (K.strstart > K.block_start && (G(K, !1), K.strm.avail_out === 0), oe); + } + function nt(K, Me) { + for (var Le, ue; ; ) { + if (K.lookahead < D) { + if (je(K), K.lookahead < D && Me === f) + return oe; + if (K.lookahead === 0) + break; + } + if (Le = 0, K.lookahead >= W && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart), Le !== 0 && K.strstart - Le <= K.w_size - D && (K.match_length = _e(K, Le)), K.match_length >= W) + if (ue = m._tr_tally(K, K.strstart - K.match_start, K.match_length - W), K.lookahead -= K.match_length, K.match_length <= K.max_lazy_match && K.lookahead >= W) { + K.match_length--; + do + K.strstart++, K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart; + while (--K.match_length !== 0); + K.strstart++; + } else + K.strstart += K.match_length, K.match_length = 0, K.ins_h = K.window[K.strstart], K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + 1]) & K.hash_mask; + else + ue = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++; + if (ue && (G(K, !1), K.strm.avail_out === 0)) + return oe; + } + return K.insert = K.strstart < W - 1 ? K.strstart : W - 1, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J; + } + function ut(K, Me) { + for (var Le, ue, Se; ; ) { + if (K.lookahead < D) { + if (je(K), K.lookahead < D && Me === f) + return oe; + if (K.lookahead === 0) + break; + } + if (Le = 0, K.lookahead >= W && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart), K.prev_length = K.match_length, K.prev_match = K.match_start, K.match_length = W - 1, Le !== 0 && K.prev_length < K.max_lazy_match && K.strstart - Le <= K.w_size - D && (K.match_length = _e(K, Le), K.match_length <= 5 && (K.strategy === i || K.match_length === W && K.strstart - K.match_start > 4096) && (K.match_length = W - 1)), K.prev_length >= W && K.match_length <= K.prev_length) { + Se = K.strstart + K.lookahead - W, ue = m._tr_tally(K, K.strstart - 1 - K.prev_match, K.prev_length - W), K.lookahead -= K.prev_length - 1, K.prev_length -= 2; + do + ++K.strstart <= Se && (K.ins_h = (K.ins_h << K.hash_shift ^ K.window[K.strstart + W - 1]) & K.hash_mask, Le = K.prev[K.strstart & K.w_mask] = K.head[K.ins_h], K.head[K.ins_h] = K.strstart); + while (--K.prev_length !== 0); + if (K.match_available = 0, K.match_length = W - 1, K.strstart++, ue && (G(K, !1), K.strm.avail_out === 0)) + return oe; + } else if (K.match_available) { + if (ue = m._tr_tally(K, 0, K.window[K.strstart - 1]), ue && G(K, !1), K.strstart++, K.lookahead--, K.strm.avail_out === 0) + return oe; + } else + K.match_available = 1, K.strstart++, K.lookahead--; + } + return K.match_available && (ue = m._tr_tally(K, 0, K.window[K.strstart - 1]), K.match_available = 0), K.insert = K.strstart < W - 1 ? K.strstart : W - 1, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J; + } + function ot(K, Me) { + for (var Le, ue, Se, Ie, st = K.window; ; ) { + if (K.lookahead <= U) { + if (je(K), K.lookahead <= U && Me === f) + return oe; + if (K.lookahead === 0) + break; + } + if (K.match_length = 0, K.lookahead >= W && K.strstart > 0 && (Se = K.strstart - 1, ue = st[Se], ue === st[++Se] && ue === st[++Se] && ue === st[++Se])) { + Ie = K.strstart + U; + do + ; + while (ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && ue === st[++Se] && Se < Ie); + K.match_length = U - (Ie - Se), K.match_length > K.lookahead && (K.match_length = K.lookahead); + } + if (K.match_length >= W ? (Le = m._tr_tally(K, 1, K.match_length - W), K.lookahead -= K.match_length, K.strstart += K.match_length, K.match_length = 0) : (Le = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++), Le && (G(K, !1), K.strm.avail_out === 0)) + return oe; + } + return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J; + } + function Ue(K, Me) { + for (var Le; ; ) { + if (K.lookahead === 0 && (je(K), K.lookahead === 0)) { + if (Me === f) + return oe; + break; + } + if (K.match_length = 0, Le = m._tr_tally(K, 0, K.window[K.strstart]), K.lookahead--, K.strstart++, Le && (G(K, !1), K.strm.avail_out === 0)) + return oe; + } + return K.insert = 0, Me === l ? (G(K, !0), K.strm.avail_out === 0 ? Q : he) : K.last_lit && (G(K, !1), K.strm.avail_out === 0) ? oe : J; + } + function Ve(K, Me, Le, ue, Se) { + this.good_length = K, this.max_lazy = Me, this.nice_length = Le, this.max_chain = ue, this.func = Se; + } + var Qe; + Qe = [ + /* good lazy nice chain */ + new Ve(0, 0, 0, 0, Ye), + /* 0 store only */ + new Ve(4, 4, 8, 4, nt), + /* 1 max speed, no lazy matches */ + new Ve(4, 5, 16, 8, nt), + /* 2 */ + new Ve(4, 6, 32, 32, nt), + /* 3 */ + new Ve(4, 4, 16, 16, ut), + /* 4 lazy matches */ + new Ve(8, 16, 32, 32, ut), + /* 5 */ + new Ve(8, 16, 128, 128, ut), + /* 6 */ + new Ve(8, 32, 128, 256, ut), + /* 7 */ + new Ve(32, 128, 258, 1024, ut), + /* 8 */ + new Ve(32, 258, 258, 4096, ut) + /* 9 max compression */ + ]; + function tt(K) { + K.window_size = 2 * K.w_size, Ce(K.head), K.max_lazy_match = Qe[K.level].max_lazy, K.good_match = Qe[K.level].good_length, K.nice_match = Qe[K.level].nice_length, K.max_chain_length = Qe[K.level].max_chain, K.strstart = 0, K.block_start = 0, K.lookahead = 0, K.insert = 0, K.match_length = K.prev_length = W - 1, K.match_available = 0, K.ins_h = 0; + } + function ae() { + this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = F, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new u.Buf16(L * 2), this.dyn_dtree = new u.Buf16((2 * E + 1) * 2), this.bl_tree = new u.Buf16((2 * A + 1) * 2), Ce(this.dyn_ltree), Ce(this.dyn_dtree), Ce(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new u.Buf16($ + 1), this.heap = new u.Buf16(2 * C + 1), Ce(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new u.Buf16(2 * C + 1), Ce(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; + } + function Re(K) { + var Me; + return !K || !K.state ? ne(K, c) : (K.total_in = K.total_out = 0, K.data_type = P, Me = K.state, Me.pending = 0, Me.pending_out = 0, Me.wrap < 0 && (Me.wrap = -Me.wrap), Me.status = Me.wrap ? j : ve, K.adler = Me.wrap === 2 ? 0 : 1, Me.last_flush = f, m._tr_init(Me), s); + } + function be(K) { + var Me = Re(K); + return Me === s && tt(K.state), Me; + } + function Ee(K, Me) { + return !K || !K.state || K.state.wrap !== 2 ? c : (K.state.gzhead = Me, s); + } + function pe(K, Me, Le, ue, Se, Ie) { + if (!K) + return c; + var st = 1; + if (Me === t && (Me = 6), ue < 0 ? (st = 0, ue = -ue) : ue > 15 && (st = 2, ue -= 16), Se < 1 || Se > z || Le !== F || ue < 8 || ue > 15 || Me < 0 || Me > 9 || Ie < 0 || Ie > p) + return ne(K, c); + ue === 8 && (ue = 9); + var Ge = new ae(); + return K.state = Ge, Ge.strm = K, Ge.wrap = st, Ge.gzhead = null, Ge.w_bits = ue, Ge.w_size = 1 << Ge.w_bits, Ge.w_mask = Ge.w_size - 1, Ge.hash_bits = Se + 7, Ge.hash_size = 1 << Ge.hash_bits, Ge.hash_mask = Ge.hash_size - 1, Ge.hash_shift = ~~((Ge.hash_bits + W - 1) / W), Ge.window = new u.Buf8(Ge.w_size * 2), Ge.head = new u.Buf16(Ge.hash_size), Ge.prev = new u.Buf16(Ge.w_size), Ge.lit_bufsize = 1 << Se + 6, Ge.pending_buf_size = Ge.lit_bufsize * 4, Ge.pending_buf = new u.Buf8(Ge.pending_buf_size), Ge.d_buf = 1 * Ge.lit_bufsize, Ge.l_buf = (1 + 2) * Ge.lit_bufsize, Ge.level = Me, Ge.strategy = Ie, Ge.method = Le, be(K); + } + function Pe(K, Me) { + return pe(K, Me, F, N, M, O); + } + function te(K, Me) { + var Le, ue, Se, Ie; + if (!K || !K.state || Me > d || Me < 0) + return K ? ne(K, c) : c; + if (ue = K.state, !K.output || !K.input && K.avail_in !== 0 || ue.status === ge && Me !== l) + return ne(K, K.avail_out === 0 ? r : c); + if (ue.strm = K, Le = ue.last_flush, ue.last_flush = Me, ue.status === j) + if (ue.wrap === 2) + K.adler = 0, Y(ue, 31), Y(ue, 139), Y(ue, 8), ue.gzhead ? (Y(ue, (ue.gzhead.text ? 1 : 0) + (ue.gzhead.hcrc ? 2 : 0) + (ue.gzhead.extra ? 4 : 0) + (ue.gzhead.name ? 8 : 0) + (ue.gzhead.comment ? 16 : 0)), Y(ue, ue.gzhead.time & 255), Y(ue, ue.gzhead.time >> 8 & 255), Y(ue, ue.gzhead.time >> 16 & 255), Y(ue, ue.gzhead.time >> 24 & 255), Y(ue, ue.level === 9 ? 2 : ue.strategy >= n || ue.level < 2 ? 4 : 0), Y(ue, ue.gzhead.os & 255), ue.gzhead.extra && ue.gzhead.extra.length && (Y(ue, ue.gzhead.extra.length & 255), Y(ue, ue.gzhead.extra.length >> 8 & 255)), ue.gzhead.hcrc && (K.adler = b(K.adler, ue.pending_buf, ue.pending, 0)), ue.gzindex = 0, ue.status = V) : (Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, 0), Y(ue, ue.level === 9 ? 2 : ue.strategy >= n || ue.level < 2 ? 4 : 0), Y(ue, ke), ue.status = ve); + else { + var st = F + (ue.w_bits - 8 << 4) << 8, Ge = -1; + ue.strategy >= n || ue.level < 2 ? Ge = 0 : ue.level < 6 ? Ge = 1 : ue.level === 6 ? Ge = 2 : Ge = 3, st |= Ge << 6, ue.strstart !== 0 && (st |= B), st += 31 - st % 31, ue.status = ve, fe(ue, st), ue.strstart !== 0 && (fe(ue, K.adler >>> 16), fe(ue, K.adler & 65535)), K.adler = 1; + } + if (ue.status === V) + if (ue.gzhead.extra) { + for (Se = ue.pending; ue.gzindex < (ue.gzhead.extra.length & 65535) && !(ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)); ) + Y(ue, ue.gzhead.extra[ue.gzindex] & 255), ue.gzindex++; + ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), ue.gzindex === ue.gzhead.extra.length && (ue.gzindex = 0, ue.status = re); + } else + ue.status = re; + if (ue.status === re) + if (ue.gzhead.name) { + Se = ue.pending; + do { + if (ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)) { + Ie = 1; + break; + } + ue.gzindex < ue.gzhead.name.length ? Ie = ue.gzhead.name.charCodeAt(ue.gzindex++) & 255 : Ie = 0, Y(ue, Ie); + } while (Ie !== 0); + ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), Ie === 0 && (ue.gzindex = 0, ue.status = ee); + } else + ue.status = ee; + if (ue.status === ee) + if (ue.gzhead.comment) { + Se = ue.pending; + do { + if (ue.pending === ue.pending_buf_size && (ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), q(K), Se = ue.pending, ue.pending === ue.pending_buf_size)) { + Ie = 1; + break; + } + ue.gzindex < ue.gzhead.comment.length ? Ie = ue.gzhead.comment.charCodeAt(ue.gzindex++) & 255 : Ie = 0, Y(ue, Ie); + } while (Ie !== 0); + ue.gzhead.hcrc && ue.pending > Se && (K.adler = b(K.adler, ue.pending_buf, ue.pending - Se, Se)), Ie === 0 && (ue.status = ce); + } else + ue.status = ce; + if (ue.status === ce && (ue.gzhead.hcrc ? (ue.pending + 2 > ue.pending_buf_size && q(K), ue.pending + 2 <= ue.pending_buf_size && (Y(ue, K.adler & 255), Y(ue, K.adler >> 8 & 255), K.adler = 0, ue.status = ve)) : ue.status = ve), ue.pending !== 0) { + if (q(K), K.avail_out === 0) + return ue.last_flush = -1, s; + } else if (K.avail_in === 0 && se(Me) <= se(Le) && Me !== l) + return ne(K, r); + if (ue.status === ge && K.avail_in !== 0) + return ne(K, r); + if (K.avail_in !== 0 || ue.lookahead !== 0 || Me !== f && ue.status !== ge) { + var rt = ue.strategy === n ? Ue(ue, Me) : ue.strategy === o ? ot(ue, Me) : Qe[ue.level].func(ue, Me); + if ((rt === Q || rt === he) && (ue.status = ge), rt === oe || rt === Q) + return K.avail_out === 0 && (ue.last_flush = -1), s; + if (rt === J && (Me === y ? m._tr_align(ue) : Me !== d && (m._tr_stored_block(ue, 0, 0, !1), Me === h && (Ce(ue.head), ue.lookahead === 0 && (ue.strstart = 0, ue.block_start = 0, ue.insert = 0))), q(K), K.avail_out === 0)) + return ue.last_flush = -1, s; + } + return Me !== l ? s : ue.wrap <= 0 ? v : (ue.wrap === 2 ? (Y(ue, K.adler & 255), Y(ue, K.adler >> 8 & 255), Y(ue, K.adler >> 16 & 255), Y(ue, K.adler >> 24 & 255), Y(ue, K.total_in & 255), Y(ue, K.total_in >> 8 & 255), Y(ue, K.total_in >> 16 & 255), Y(ue, K.total_in >> 24 & 255)) : (fe(ue, K.adler >>> 16), fe(ue, K.adler & 65535)), q(K), ue.wrap > 0 && (ue.wrap = -ue.wrap), ue.pending !== 0 ? s : v); + } + function He(K) { + var Me; + return !K || !K.state ? c : (Me = K.state.status, Me !== j && Me !== V && Me !== re && Me !== ee && Me !== ce && Me !== ve && Me !== ge ? ne(K, c) : (K.state = null, Me === ve ? ne(K, a) : s)); + } + function it(K, Me) { + var Le = Me.length, ue, Se, Ie, st, Ge, rt, _t, wt; + if (!K || !K.state || (ue = K.state, st = ue.wrap, st === 2 || st === 1 && ue.status !== j || ue.lookahead)) + return c; + for (st === 1 && (K.adler = g(K.adler, Me, Le, 0)), ue.wrap = 0, Le >= ue.w_size && (st === 0 && (Ce(ue.head), ue.strstart = 0, ue.block_start = 0, ue.insert = 0), wt = new u.Buf8(ue.w_size), u.arraySet(wt, Me, Le - ue.w_size, ue.w_size, 0), Me = wt, Le = ue.w_size), Ge = K.avail_in, rt = K.next_in, _t = K.input, K.avail_in = Le, K.next_in = 0, K.input = Me, je(ue); ue.lookahead >= W; ) { + Se = ue.strstart, Ie = ue.lookahead - (W - 1); + do + ue.ins_h = (ue.ins_h << ue.hash_shift ^ ue.window[Se + W - 1]) & ue.hash_mask, ue.prev[Se & ue.w_mask] = ue.head[ue.ins_h], ue.head[ue.ins_h] = Se, Se++; + while (--Ie); + ue.strstart = Se, ue.lookahead = W - 1, je(ue); + } + return ue.strstart += ue.lookahead, ue.block_start = ue.strstart, ue.insert = ue.lookahead, ue.lookahead = 0, ue.match_length = ue.prev_length = W - 1, ue.match_available = 0, K.next_in = rt, K.input = _t, K.avail_in = Ge, ue.wrap = st, s; + } + _.deflateInit = Pe, _.deflateInit2 = pe, _.deflateReset = be, _.deflateResetKeep = Re, _.deflateSetHeader = Ee, _.deflate = te, _.deflateEnd = He, _.deflateSetDictionary = it, _.deflateInfo = "pako deflate (from Nodeca project)"; + }, { "../utils/common": 442, "./adler32": 444, "./crc32": 446, "./messages": 452, "./trees": 453 }], 448: [function(e, x, _) { + function u() { + this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1; + } + x.exports = u; + }, {}], 449: [function(e, x, _) { + var u = 30, m = 12; + x.exports = function(b, w) { + var f, y, h, l, d, s, v, c, a, r, t, i, n, o, p, O, P, F, z, N, M, I, R, C, E; + f = b.state, y = b.next_in, C = b.input, h = y + (b.avail_in - 5), l = b.next_out, E = b.output, d = l - (w - b.avail_out), s = l + (b.avail_out - 257), v = f.dmax, c = f.wsize, a = f.whave, r = f.wnext, t = f.window, i = f.hold, n = f.bits, o = f.lencode, p = f.distcode, O = (1 << f.lenbits) - 1, P = (1 << f.distbits) - 1; + e: + do { + n < 15 && (i += C[y++] << n, n += 8, i += C[y++] << n, n += 8), F = o[i & O]; + t: + for (; ; ) { + if (z = F >>> 24, i >>>= z, n -= z, z = F >>> 16 & 255, z === 0) + E[l++] = F & 65535; + else if (z & 16) { + N = F & 65535, z &= 15, z && (n < z && (i += C[y++] << n, n += 8), N += i & (1 << z) - 1, i >>>= z, n -= z), n < 15 && (i += C[y++] << n, n += 8, i += C[y++] << n, n += 8), F = p[i & P]; + r: + for (; ; ) { + if (z = F >>> 24, i >>>= z, n -= z, z = F >>> 16 & 255, z & 16) { + if (M = F & 65535, z &= 15, n < z && (i += C[y++] << n, n += 8, n < z && (i += C[y++] << n, n += 8)), M += i & (1 << z) - 1, M > v) { + b.msg = "invalid distance too far back", f.mode = u; + break e; + } + if (i >>>= z, n -= z, z = l - d, M > z) { + if (z = M - z, z > a && f.sane) { + b.msg = "invalid distance too far back", f.mode = u; + break e; + } + if (I = 0, R = t, r === 0) { + if (I += c - z, z < N) { + N -= z; + do + E[l++] = t[I++]; + while (--z); + I = l - M, R = E; + } + } else if (r < z) { + if (I += c + r - z, z -= r, z < N) { + N -= z; + do + E[l++] = t[I++]; + while (--z); + if (I = 0, r < N) { + z = r, N -= z; + do + E[l++] = t[I++]; + while (--z); + I = l - M, R = E; + } + } + } else if (I += r - z, z < N) { + N -= z; + do + E[l++] = t[I++]; + while (--z); + I = l - M, R = E; + } + for (; N > 2; ) + E[l++] = R[I++], E[l++] = R[I++], E[l++] = R[I++], N -= 3; + N && (E[l++] = R[I++], N > 1 && (E[l++] = R[I++])); + } else { + I = l - M; + do + E[l++] = E[I++], E[l++] = E[I++], E[l++] = E[I++], N -= 3; + while (N > 2); + N && (E[l++] = E[I++], N > 1 && (E[l++] = E[I++])); + } + } else if (z & 64) { + b.msg = "invalid distance code", f.mode = u; + break e; + } else { + F = p[(F & 65535) + /*here.val*/ + (i & (1 << z) - 1)]; + continue r; + } + break; + } + } else if (z & 64) + if (z & 32) { + f.mode = m; + break e; + } else { + b.msg = "invalid literal/length code", f.mode = u; + break e; + } + else { + F = o[(F & 65535) + /*here.val*/ + (i & (1 << z) - 1)]; + continue t; + } + break; + } + } while (y < h && l < s); + N = n >> 3, y -= N, n -= N << 3, i &= (1 << n) - 1, b.next_in = y, b.next_out = l, b.avail_in = y < h ? 5 + (h - y) : 5 - (y - h), b.avail_out = l < s ? 257 + (s - l) : 257 - (l - s), f.hold = i, f.bits = n; + }; + }, {}], 450: [function(e, x, _) { + var u = e("../utils/common"), m = e("./adler32"), g = e("./crc32"), b = e("./inffast"), w = e("./inftrees"), f = 0, y = 1, h = 2, l = 4, d = 5, s = 6, v = 0, c = 1, a = 2, r = -2, t = -3, i = -4, n = -5, o = 8, p = 1, O = 2, P = 3, F = 4, z = 5, N = 6, M = 7, I = 8, R = 9, C = 10, E = 11, A = 12, L = 13, $ = 14, W = 15, U = 16, D = 17, B = 18, j = 19, V = 20, re = 21, ee = 22, ce = 23, ve = 24, ge = 25, oe = 26, J = 27, Q = 28, he = 29, ke = 30, ne = 31, se = 32, Ce = 852, q = 592, G = 15, Y = G; + function fe(pe) { + return (pe >>> 24 & 255) + (pe >>> 8 & 65280) + ((pe & 65280) << 8) + ((pe & 255) << 24); + } + function we() { + this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new u.Buf16(320), this.work = new u.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; + } + function _e(pe) { + var Pe; + return !pe || !pe.state ? r : (Pe = pe.state, pe.total_in = pe.total_out = Pe.total = 0, pe.msg = "", Pe.wrap && (pe.adler = Pe.wrap & 1), Pe.mode = p, Pe.last = 0, Pe.havedict = 0, Pe.dmax = 32768, Pe.head = null, Pe.hold = 0, Pe.bits = 0, Pe.lencode = Pe.lendyn = new u.Buf32(Ce), Pe.distcode = Pe.distdyn = new u.Buf32(q), Pe.sane = 1, Pe.back = -1, v); + } + function je(pe) { + var Pe; + return !pe || !pe.state ? r : (Pe = pe.state, Pe.wsize = 0, Pe.whave = 0, Pe.wnext = 0, _e(pe)); + } + function Ye(pe, Pe) { + var te, He; + return !pe || !pe.state || (He = pe.state, Pe < 0 ? (te = 0, Pe = -Pe) : (te = (Pe >> 4) + 1, Pe < 48 && (Pe &= 15)), Pe && (Pe < 8 || Pe > 15)) ? r : (He.window !== null && He.wbits !== Pe && (He.window = null), He.wrap = te, He.wbits = Pe, je(pe)); + } + function nt(pe, Pe) { + var te, He; + return pe ? (He = new we(), pe.state = He, He.window = null, te = Ye(pe, Pe), te !== v && (pe.state = null), te) : r; + } + function ut(pe) { + return nt(pe, Y); + } + var ot = !0, Ue, Ve; + function Qe(pe) { + if (ot) { + var Pe; + for (Ue = new u.Buf32(512), Ve = new u.Buf32(32), Pe = 0; Pe < 144; ) + pe.lens[Pe++] = 8; + for (; Pe < 256; ) + pe.lens[Pe++] = 9; + for (; Pe < 280; ) + pe.lens[Pe++] = 7; + for (; Pe < 288; ) + pe.lens[Pe++] = 8; + for (w(y, pe.lens, 0, 288, Ue, 0, pe.work, { + bits: 9 + }), Pe = 0; Pe < 32; ) + pe.lens[Pe++] = 5; + w(h, pe.lens, 0, 32, Ve, 0, pe.work, { + bits: 5 + }), ot = !1; + } + pe.lencode = Ue, pe.lenbits = 9, pe.distcode = Ve, pe.distbits = 5; + } + function tt(pe, Pe, te, He) { + var it, K = pe.state; + return K.window === null && (K.wsize = 1 << K.wbits, K.wnext = 0, K.whave = 0, K.window = new u.Buf8(K.wsize)), He >= K.wsize ? (u.arraySet(K.window, Pe, te - K.wsize, K.wsize, 0), K.wnext = 0, K.whave = K.wsize) : (it = K.wsize - K.wnext, it > He && (it = He), u.arraySet(K.window, Pe, te - He, it, K.wnext), He -= it, He ? (u.arraySet(K.window, Pe, te - He, He, 0), K.wnext = He, K.whave = K.wsize) : (K.wnext += it, K.wnext === K.wsize && (K.wnext = 0), K.whave < K.wsize && (K.whave += it))), 0; + } + function ae(pe, Pe) { + var te, He, it, K, Me, Le, ue, Se, Ie, st, Ge, rt, _t, wt, Ot = 0, pt, ct, At, Pt, bt, Kt, Ct, xt, Ft = new u.Buf8(4), Lt, Et, Dr = ( + /* permutation of code lengths */ + [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15] + ); + if (!pe || !pe.state || !pe.output || !pe.input && pe.avail_in !== 0) + return r; + te = pe.state, te.mode === A && (te.mode = L), Me = pe.next_out, it = pe.output, ue = pe.avail_out, K = pe.next_in, He = pe.input, Le = pe.avail_in, Se = te.hold, Ie = te.bits, st = Le, Ge = ue, xt = v; + e: + for (; ; ) + switch (te.mode) { + case p: + if (te.wrap === 0) { + te.mode = L; + break; + } + for (; Ie < 16; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (te.wrap & 2 && Se === 35615) { + te.check = 0, Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0), Se = 0, Ie = 0, te.mode = O; + break; + } + if (te.flags = 0, te.head && (te.head.done = !1), !(te.wrap & 1) || /* check if zlib header allowed */ + (((Se & 255) << /*BITS(8)*/ + 8) + (Se >> 8)) % 31) { + pe.msg = "incorrect header check", te.mode = ke; + break; + } + if ((Se & 15) !== /*BITS(4)*/ + o) { + pe.msg = "unknown compression method", te.mode = ke; + break; + } + if (Se >>>= 4, Ie -= 4, Ct = (Se & 15) + /*BITS(4)*/ + 8, te.wbits === 0) + te.wbits = Ct; + else if (Ct > te.wbits) { + pe.msg = "invalid window size", te.mode = ke; + break; + } + te.dmax = 1 << Ct, pe.adler = te.check = 1, te.mode = Se & 512 ? C : A, Se = 0, Ie = 0; + break; + case O: + for (; Ie < 16; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (te.flags = Se, (te.flags & 255) !== o) { + pe.msg = "unknown compression method", te.mode = ke; + break; + } + if (te.flags & 57344) { + pe.msg = "unknown header flags set", te.mode = ke; + break; + } + te.head && (te.head.text = Se >> 8 & 1), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0, te.mode = P; + case P: + for (; Ie < 32; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.head && (te.head.time = Se), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, Ft[2] = Se >>> 16 & 255, Ft[3] = Se >>> 24 & 255, te.check = g(te.check, Ft, 4, 0)), Se = 0, Ie = 0, te.mode = F; + case F: + for (; Ie < 16; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.head && (te.head.xflags = Se & 255, te.head.os = Se >> 8), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0, te.mode = z; + case z: + if (te.flags & 1024) { + for (; Ie < 16; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.length = Se, te.head && (te.head.extra_len = Se), te.flags & 512 && (Ft[0] = Se & 255, Ft[1] = Se >>> 8 & 255, te.check = g(te.check, Ft, 2, 0)), Se = 0, Ie = 0; + } else + te.head && (te.head.extra = null); + te.mode = N; + case N: + if (te.flags & 1024 && (rt = te.length, rt > Le && (rt = Le), rt && (te.head && (Ct = te.head.extra_len - te.length, te.head.extra || (te.head.extra = new Array(te.head.extra_len)), u.arraySet( + te.head.extra, + He, + K, + // extra field is limited to 65536 bytes + // - no need for additional size check + rt, + /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/ + Ct + )), te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, te.length -= rt), te.length)) + break e; + te.length = 0, te.mode = M; + case M: + if (te.flags & 2048) { + if (Le === 0) + break e; + rt = 0; + do + Ct = He[K + rt++], te.head && Ct && te.length < 65536 && (te.head.name += String.fromCharCode(Ct)); + while (Ct && rt < Le); + if (te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, Ct) + break e; + } else + te.head && (te.head.name = null); + te.length = 0, te.mode = I; + case I: + if (te.flags & 4096) { + if (Le === 0) + break e; + rt = 0; + do + Ct = He[K + rt++], te.head && Ct && te.length < 65536 && (te.head.comment += String.fromCharCode(Ct)); + while (Ct && rt < Le); + if (te.flags & 512 && (te.check = g(te.check, He, rt, K)), Le -= rt, K += rt, Ct) + break e; + } else + te.head && (te.head.comment = null); + te.mode = R; + case R: + if (te.flags & 512) { + for (; Ie < 16; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (Se !== (te.check & 65535)) { + pe.msg = "header crc mismatch", te.mode = ke; + break; + } + Se = 0, Ie = 0; + } + te.head && (te.head.hcrc = te.flags >> 9 & 1, te.head.done = !0), pe.adler = te.check = 0, te.mode = A; + break; + case C: + for (; Ie < 32; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + pe.adler = te.check = fe(Se), Se = 0, Ie = 0, te.mode = E; + case E: + if (te.havedict === 0) + return pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, a; + pe.adler = te.check = 1, te.mode = A; + case A: + if (Pe === d || Pe === s) + break e; + case L: + if (te.last) { + Se >>>= Ie & 7, Ie -= Ie & 7, te.mode = J; + break; + } + for (; Ie < 3; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + switch (te.last = Se & 1, Se >>>= 1, Ie -= 1, Se & 3) { + case 0: + te.mode = $; + break; + case 1: + if (Qe(te), te.mode = V, Pe === s) { + Se >>>= 2, Ie -= 2; + break e; + } + break; + case 2: + te.mode = D; + break; + case 3: + pe.msg = "invalid block type", te.mode = ke; + } + Se >>>= 2, Ie -= 2; + break; + case $: + for (Se >>>= Ie & 7, Ie -= Ie & 7; Ie < 32; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if ((Se & 65535) !== (Se >>> 16 ^ 65535)) { + pe.msg = "invalid stored block lengths", te.mode = ke; + break; + } + if (te.length = Se & 65535, Se = 0, Ie = 0, te.mode = W, Pe === s) + break e; + case W: + te.mode = U; + case U: + if (rt = te.length, rt) { + if (rt > Le && (rt = Le), rt > ue && (rt = ue), rt === 0) + break e; + u.arraySet(it, He, K, rt, Me), Le -= rt, K += rt, ue -= rt, Me += rt, te.length -= rt; + break; + } + te.mode = A; + break; + case D: + for (; Ie < 14; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (te.nlen = (Se & 31) + /*BITS(5)*/ + 257, Se >>>= 5, Ie -= 5, te.ndist = (Se & 31) + /*BITS(5)*/ + 1, Se >>>= 5, Ie -= 5, te.ncode = (Se & 15) + /*BITS(4)*/ + 4, Se >>>= 4, Ie -= 4, te.nlen > 286 || te.ndist > 30) { + pe.msg = "too many length or distance symbols", te.mode = ke; + break; + } + te.have = 0, te.mode = B; + case B: + for (; te.have < te.ncode; ) { + for (; Ie < 3; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.lens[Dr[te.have++]] = Se & 7, Se >>>= 3, Ie -= 3; + } + for (; te.have < 19; ) + te.lens[Dr[te.have++]] = 0; + if (te.lencode = te.lendyn, te.lenbits = 7, Lt = { + bits: te.lenbits + }, xt = w(f, te.lens, 0, 19, te.lencode, 0, te.work, Lt), te.lenbits = Lt.bits, xt) { + pe.msg = "invalid code lengths set", te.mode = ke; + break; + } + te.have = 0, te.mode = j; + case j: + for (; te.have < te.nlen + te.ndist; ) { + for (; Ot = te.lencode[Se & (1 << te.lenbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (At < 16) + Se >>>= pt, Ie -= pt, te.lens[te.have++] = At; + else { + if (At === 16) { + for (Et = pt + 2; Ie < Et; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (Se >>>= pt, Ie -= pt, te.have === 0) { + pe.msg = "invalid bit length repeat", te.mode = ke; + break; + } + Ct = te.lens[te.have - 1], rt = 3 + (Se & 3), Se >>>= 2, Ie -= 2; + } else if (At === 17) { + for (Et = pt + 3; Ie < Et; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + Se >>>= pt, Ie -= pt, Ct = 0, rt = 3 + (Se & 7), Se >>>= 3, Ie -= 3; + } else { + for (Et = pt + 7; Ie < Et; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + Se >>>= pt, Ie -= pt, Ct = 0, rt = 11 + (Se & 127), Se >>>= 7, Ie -= 7; + } + if (te.have + rt > te.nlen + te.ndist) { + pe.msg = "invalid bit length repeat", te.mode = ke; + break; + } + for (; rt--; ) + te.lens[te.have++] = Ct; + } + } + if (te.mode === ke) + break; + if (te.lens[256] === 0) { + pe.msg = "invalid code -- missing end-of-block", te.mode = ke; + break; + } + if (te.lenbits = 9, Lt = { + bits: te.lenbits + }, xt = w(y, te.lens, 0, te.nlen, te.lencode, 0, te.work, Lt), te.lenbits = Lt.bits, xt) { + pe.msg = "invalid literal/lengths set", te.mode = ke; + break; + } + if (te.distbits = 6, te.distcode = te.distdyn, Lt = { + bits: te.distbits + }, xt = w(h, te.lens, te.nlen, te.ndist, te.distcode, 0, te.work, Lt), te.distbits = Lt.bits, xt) { + pe.msg = "invalid distances set", te.mode = ke; + break; + } + if (te.mode = V, Pe === s) + break e; + case V: + te.mode = re; + case re: + if (Le >= 6 && ue >= 258) { + pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, b(pe, Ge), Me = pe.next_out, it = pe.output, ue = pe.avail_out, K = pe.next_in, He = pe.input, Le = pe.avail_in, Se = te.hold, Ie = te.bits, te.mode === A && (te.back = -1); + break; + } + for (te.back = 0; Ot = te.lencode[Se & (1 << te.lenbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (ct && !(ct & 240)) { + for (Pt = pt, bt = ct, Kt = At; Ot = te.lencode[Kt + ((Se & (1 << Pt + bt) - 1) >> /*BITS(last.bits + last.op)*/ + Pt)], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(Pt + pt <= Ie); ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + Se >>>= Pt, Ie -= Pt, te.back += Pt; + } + if (Se >>>= pt, Ie -= pt, te.back += pt, te.length = At, ct === 0) { + te.mode = oe; + break; + } + if (ct & 32) { + te.back = -1, te.mode = A; + break; + } + if (ct & 64) { + pe.msg = "invalid literal/length code", te.mode = ke; + break; + } + te.extra = ct & 15, te.mode = ee; + case ee: + if (te.extra) { + for (Et = te.extra; Ie < Et; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.length += Se & (1 << te.extra) - 1, Se >>>= te.extra, Ie -= te.extra, te.back += te.extra; + } + te.was = te.length, te.mode = ce; + case ce: + for (; Ot = te.distcode[Se & (1 << te.distbits) - 1], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(pt <= Ie); ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (!(ct & 240)) { + for (Pt = pt, bt = ct, Kt = At; Ot = te.distcode[Kt + ((Se & (1 << Pt + bt) - 1) >> /*BITS(last.bits + last.op)*/ + Pt)], pt = Ot >>> 24, ct = Ot >>> 16 & 255, At = Ot & 65535, !(Pt + pt <= Ie); ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + Se >>>= Pt, Ie -= Pt, te.back += Pt; + } + if (Se >>>= pt, Ie -= pt, te.back += pt, ct & 64) { + pe.msg = "invalid distance code", te.mode = ke; + break; + } + te.offset = At, te.extra = ct & 15, te.mode = ve; + case ve: + if (te.extra) { + for (Et = te.extra; Ie < Et; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + te.offset += Se & (1 << te.extra) - 1, Se >>>= te.extra, Ie -= te.extra, te.back += te.extra; + } + if (te.offset > te.dmax) { + pe.msg = "invalid distance too far back", te.mode = ke; + break; + } + te.mode = ge; + case ge: + if (ue === 0) + break e; + if (rt = Ge - ue, te.offset > rt) { + if (rt = te.offset - rt, rt > te.whave && te.sane) { + pe.msg = "invalid distance too far back", te.mode = ke; + break; + } + rt > te.wnext ? (rt -= te.wnext, _t = te.wsize - rt) : _t = te.wnext - rt, rt > te.length && (rt = te.length), wt = te.window; + } else + wt = it, _t = Me - te.offset, rt = te.length; + rt > ue && (rt = ue), ue -= rt, te.length -= rt; + do + it[Me++] = wt[_t++]; + while (--rt); + te.length === 0 && (te.mode = re); + break; + case oe: + if (ue === 0) + break e; + it[Me++] = te.length, ue--, te.mode = re; + break; + case J: + if (te.wrap) { + for (; Ie < 32; ) { + if (Le === 0) + break e; + Le--, Se |= He[K++] << Ie, Ie += 8; + } + if (Ge -= ue, pe.total_out += Ge, te.total += Ge, Ge && (pe.adler = te.check = /*UPDATE(state.check, put - _out, _out);*/ + te.flags ? g(te.check, it, Ge, Me - Ge) : m(te.check, it, Ge, Me - Ge)), Ge = ue, (te.flags ? Se : fe(Se)) !== te.check) { + pe.msg = "incorrect data check", te.mode = ke; + break; + } + Se = 0, Ie = 0; + } + te.mode = Q; + case Q: + if (te.wrap && te.flags) { + for (; Ie < 32; ) { + if (Le === 0) + break e; + Le--, Se += He[K++] << Ie, Ie += 8; + } + if (Se !== (te.total & 4294967295)) { + pe.msg = "incorrect length check", te.mode = ke; + break; + } + Se = 0, Ie = 0; + } + te.mode = he; + case he: + xt = c; + break e; + case ke: + xt = t; + break e; + case ne: + return i; + case se: + default: + return r; + } + return pe.next_out = Me, pe.avail_out = ue, pe.next_in = K, pe.avail_in = Le, te.hold = Se, te.bits = Ie, (te.wsize || Ge !== pe.avail_out && te.mode < ke && (te.mode < J || Pe !== l)) && tt(pe, pe.output, pe.next_out, Ge - pe.avail_out), st -= pe.avail_in, Ge -= pe.avail_out, pe.total_in += st, pe.total_out += Ge, te.total += Ge, te.wrap && Ge && (pe.adler = te.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/ + te.flags ? g(te.check, it, Ge, pe.next_out - Ge) : m(te.check, it, Ge, pe.next_out - Ge)), pe.data_type = te.bits + (te.last ? 64 : 0) + (te.mode === A ? 128 : 0) + (te.mode === V || te.mode === W ? 256 : 0), (st === 0 && Ge === 0 || Pe === l) && xt === v && (xt = n), xt; + } + function Re(pe) { + if (!pe || !pe.state) + return r; + var Pe = pe.state; + return Pe.window && (Pe.window = null), pe.state = null, v; + } + function be(pe, Pe) { + var te; + return !pe || !pe.state || (te = pe.state, !(te.wrap & 2)) ? r : (te.head = Pe, Pe.done = !1, v); + } + function Ee(pe, Pe) { + var te = Pe.length, He, it, K; + return !pe || !pe.state || (He = pe.state, He.wrap !== 0 && He.mode !== E) ? r : He.mode === E && (it = 1, it = m(it, Pe, te, 0), it !== He.check) ? t : (K = tt(pe, Pe, te, te), K ? (He.mode = ne, i) : (He.havedict = 1, v)); + } + _.inflateReset = je, _.inflateReset2 = Ye, _.inflateResetKeep = _e, _.inflateInit = ut, _.inflateInit2 = nt, _.inflate = ae, _.inflateEnd = Re, _.inflateGetHeader = be, _.inflateSetDictionary = Ee, _.inflateInfo = "pako inflate (from Nodeca project)"; + }, { "../utils/common": 442, "./adler32": 444, "./crc32": 446, "./inffast": 449, "./inftrees": 451 }], 451: [function(e, x, _) { + var u = e("../utils/common"), m = 15, g = 852, b = 592, w = 0, f = 1, y = 2, h = [ + /* Length codes 257..285 base */ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 13, + 15, + 17, + 19, + 23, + 27, + 31, + 35, + 43, + 51, + 59, + 67, + 83, + 99, + 115, + 131, + 163, + 195, + 227, + 258, + 0, + 0 + ], l = [ + /* Length codes 257..285 extra */ + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 16, + 17, + 17, + 17, + 17, + 18, + 18, + 18, + 18, + 19, + 19, + 19, + 19, + 20, + 20, + 20, + 20, + 21, + 21, + 21, + 21, + 16, + 72, + 78 + ], d = [ + /* Distance codes 0..29 base */ + 1, + 2, + 3, + 4, + 5, + 7, + 9, + 13, + 17, + 25, + 33, + 49, + 65, + 97, + 129, + 193, + 257, + 385, + 513, + 769, + 1025, + 1537, + 2049, + 3073, + 4097, + 6145, + 8193, + 12289, + 16385, + 24577, + 0, + 0 + ], s = [ + /* Distance codes 0..29 extra */ + 16, + 16, + 16, + 16, + 17, + 17, + 18, + 18, + 19, + 19, + 20, + 20, + 21, + 21, + 22, + 22, + 23, + 23, + 24, + 24, + 25, + 25, + 26, + 26, + 27, + 27, + 28, + 28, + 29, + 29, + 64, + 64 + ]; + x.exports = function(c, a, r, t, i, n, o, p) { + var O = p.bits, P = 0, F = 0, z = 0, N = 0, M = 0, I = 0, R = 0, C = 0, E = 0, A = 0, L, $, W, U, D, B = null, j = 0, V, re = new u.Buf16(m + 1), ee = new u.Buf16(m + 1), ce = null, ve = 0, ge, oe, J; + for (P = 0; P <= m; P++) + re[P] = 0; + for (F = 0; F < t; F++) + re[a[r + F]]++; + for (M = O, N = m; N >= 1 && re[N] === 0; N--) + ; + if (M > N && (M = N), N === 0) + return i[n++] = 1 << 24 | 64 << 16 | 0, i[n++] = 1 << 24 | 64 << 16 | 0, p.bits = 1, 0; + for (z = 1; z < N && re[z] === 0; z++) + ; + for (M < z && (M = z), C = 1, P = 1; P <= m; P++) + if (C <<= 1, C -= re[P], C < 0) + return -1; + if (C > 0 && (c === w || N !== 1)) + return -1; + for (ee[1] = 0, P = 1; P < m; P++) + ee[P + 1] = ee[P] + re[P]; + for (F = 0; F < t; F++) + a[r + F] !== 0 && (o[ee[a[r + F]]++] = F); + if (c === w ? (B = ce = o, V = 19) : c === f ? (B = h, j -= 257, ce = l, ve -= 257, V = 256) : (B = d, ce = s, V = -1), A = 0, F = 0, P = z, D = n, I = M, R = 0, W = -1, E = 1 << M, U = E - 1, c === f && E > g || c === y && E > b) + return 1; + for (; ; ) { + ge = P - R, o[F] < V ? (oe = 0, J = o[F]) : o[F] > V ? (oe = ce[ve + o[F]], J = B[j + o[F]]) : (oe = 32 + 64, J = 0), L = 1 << P - R, $ = 1 << I, z = $; + do + $ -= L, i[D + (A >> R) + $] = ge << 24 | oe << 16 | J | 0; + while ($ !== 0); + for (L = 1 << P - 1; A & L; ) + L >>= 1; + if (L !== 0 ? (A &= L - 1, A += L) : A = 0, F++, --re[P] === 0) { + if (P === N) + break; + P = a[r + o[F]]; + } + if (P > M && (A & U) !== W) { + for (R === 0 && (R = M), D += z, I = P - R, C = 1 << I; I + R < N && (C -= re[I + R], !(C <= 0)); ) + I++, C <<= 1; + if (E += 1 << I, c === f && E > g || c === y && E > b) + return 1; + W = A & U, i[W] = M << 24 | I << 16 | D - n | 0; + } + } + return A !== 0 && (i[D + A] = P - R << 24 | 64 << 16 | 0), p.bits = M, 0; + }; + }, { "../utils/common": 442 }], 452: [function(e, x, _) { + x.exports = { + 2: "need dictionary", + /* Z_NEED_DICT 2 */ + 1: "stream end", + /* Z_STREAM_END 1 */ + 0: "", + /* Z_OK 0 */ + "-1": "file error", + /* Z_ERRNO (-1) */ + "-2": "stream error", + /* Z_STREAM_ERROR (-2) */ + "-3": "data error", + /* Z_DATA_ERROR (-3) */ + "-4": "insufficient memory", + /* Z_MEM_ERROR (-4) */ + "-5": "buffer error", + /* Z_BUF_ERROR (-5) */ + "-6": "incompatible version" + /* Z_VERSION_ERROR (-6) */ + }; + }, {}], 453: [function(e, x, _) { + var u = e("../utils/common"), m = 4, g = 0, b = 1, w = 2; + function f(ae) { + for (var Re = ae.length; --Re >= 0; ) + ae[Re] = 0; + } + var y = 0, h = 1, l = 2, d = 3, s = 258, v = 29, c = 256, a = c + 1 + v, r = 30, t = 19, i = 2 * a + 1, n = 15, o = 16, p = 7, O = 256, P = 16, F = 17, z = 18, N = ( + /* extra bits for each length code */ + [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0] + ), M = ( + /* extra bits for each distance code */ + [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13] + ), I = ( + /* extra bits for each bit length code */ + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7] + ), R = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], C = 512, E = new Array((a + 2) * 2); + f(E); + var A = new Array(r * 2); + f(A); + var L = new Array(C); + f(L); + var $ = new Array(s - d + 1); + f($); + var W = new Array(v); + f(W); + var U = new Array(r); + f(U); + function D(ae, Re, be, Ee, pe) { + this.static_tree = ae, this.extra_bits = Re, this.extra_base = be, this.elems = Ee, this.max_length = pe, this.has_stree = ae && ae.length; + } + var B, j, V; + function re(ae, Re) { + this.dyn_tree = ae, this.max_code = 0, this.stat_desc = Re; + } + function ee(ae) { + return ae < 256 ? L[ae] : L[256 + (ae >>> 7)]; + } + function ce(ae, Re) { + ae.pending_buf[ae.pending++] = Re & 255, ae.pending_buf[ae.pending++] = Re >>> 8 & 255; + } + function ve(ae, Re, be) { + ae.bi_valid > o - be ? (ae.bi_buf |= Re << ae.bi_valid & 65535, ce(ae, ae.bi_buf), ae.bi_buf = Re >> o - ae.bi_valid, ae.bi_valid += be - o) : (ae.bi_buf |= Re << ae.bi_valid & 65535, ae.bi_valid += be); + } + function ge(ae, Re, be) { + ve( + ae, + be[Re * 2], + be[Re * 2 + 1] + /*.Len*/ + ); + } + function oe(ae, Re) { + var be = 0; + do + be |= ae & 1, ae >>>= 1, be <<= 1; + while (--Re > 0); + return be >>> 1; + } + function J(ae) { + ae.bi_valid === 16 ? (ce(ae, ae.bi_buf), ae.bi_buf = 0, ae.bi_valid = 0) : ae.bi_valid >= 8 && (ae.pending_buf[ae.pending++] = ae.bi_buf & 255, ae.bi_buf >>= 8, ae.bi_valid -= 8); + } + function Q(ae, Re) { + var be = Re.dyn_tree, Ee = Re.max_code, pe = Re.stat_desc.static_tree, Pe = Re.stat_desc.has_stree, te = Re.stat_desc.extra_bits, He = Re.stat_desc.extra_base, it = Re.stat_desc.max_length, K, Me, Le, ue, Se, Ie, st = 0; + for (ue = 0; ue <= n; ue++) + ae.bl_count[ue] = 0; + for (be[ae.heap[ae.heap_max] * 2 + 1] = 0, K = ae.heap_max + 1; K < i; K++) + Me = ae.heap[K], ue = be[be[Me * 2 + 1] * 2 + 1] + 1, ue > it && (ue = it, st++), be[Me * 2 + 1] = ue, !(Me > Ee) && (ae.bl_count[ue]++, Se = 0, Me >= He && (Se = te[Me - He]), Ie = be[Me * 2], ae.opt_len += Ie * (ue + Se), Pe && (ae.static_len += Ie * (pe[Me * 2 + 1] + Se))); + if (st !== 0) { + do { + for (ue = it - 1; ae.bl_count[ue] === 0; ) + ue--; + ae.bl_count[ue]--, ae.bl_count[ue + 1] += 2, ae.bl_count[it]--, st -= 2; + } while (st > 0); + for (ue = it; ue !== 0; ue--) + for (Me = ae.bl_count[ue]; Me !== 0; ) + Le = ae.heap[--K], !(Le > Ee) && (be[Le * 2 + 1] !== ue && (ae.opt_len += (ue - be[Le * 2 + 1]) * be[Le * 2], be[Le * 2 + 1] = ue), Me--); + } + } + function he(ae, Re, be) { + var Ee = new Array(n + 1), pe = 0, Pe, te; + for (Pe = 1; Pe <= n; Pe++) + Ee[Pe] = pe = pe + be[Pe - 1] << 1; + for (te = 0; te <= Re; te++) { + var He = ae[te * 2 + 1]; + He !== 0 && (ae[te * 2] = oe(Ee[He]++, He)); + } + } + function ke() { + var ae, Re, be, Ee, pe, Pe = new Array(n + 1); + for (be = 0, Ee = 0; Ee < v - 1; Ee++) + for (W[Ee] = be, ae = 0; ae < 1 << N[Ee]; ae++) + $[be++] = Ee; + for ($[be - 1] = Ee, pe = 0, Ee = 0; Ee < 16; Ee++) + for (U[Ee] = pe, ae = 0; ae < 1 << M[Ee]; ae++) + L[pe++] = Ee; + for (pe >>= 7; Ee < r; Ee++) + for (U[Ee] = pe << 7, ae = 0; ae < 1 << M[Ee] - 7; ae++) + L[256 + pe++] = Ee; + for (Re = 0; Re <= n; Re++) + Pe[Re] = 0; + for (ae = 0; ae <= 143; ) + E[ae * 2 + 1] = 8, ae++, Pe[8]++; + for (; ae <= 255; ) + E[ae * 2 + 1] = 9, ae++, Pe[9]++; + for (; ae <= 279; ) + E[ae * 2 + 1] = 7, ae++, Pe[7]++; + for (; ae <= 287; ) + E[ae * 2 + 1] = 8, ae++, Pe[8]++; + for (he(E, a + 1, Pe), ae = 0; ae < r; ae++) + A[ae * 2 + 1] = 5, A[ae * 2] = oe(ae, 5); + B = new D(E, N, c + 1, a, n), j = new D(A, M, 0, r, n), V = new D(new Array(0), I, 0, t, p); + } + function ne(ae) { + var Re; + for (Re = 0; Re < a; Re++) + ae.dyn_ltree[Re * 2] = 0; + for (Re = 0; Re < r; Re++) + ae.dyn_dtree[Re * 2] = 0; + for (Re = 0; Re < t; Re++) + ae.bl_tree[Re * 2] = 0; + ae.dyn_ltree[O * 2] = 1, ae.opt_len = ae.static_len = 0, ae.last_lit = ae.matches = 0; + } + function se(ae) { + ae.bi_valid > 8 ? ce(ae, ae.bi_buf) : ae.bi_valid > 0 && (ae.pending_buf[ae.pending++] = ae.bi_buf), ae.bi_buf = 0, ae.bi_valid = 0; + } + function Ce(ae, Re, be, Ee) { + se(ae), Ee && (ce(ae, be), ce(ae, ~be)), u.arraySet(ae.pending_buf, ae.window, Re, be, ae.pending), ae.pending += be; + } + function q(ae, Re, be, Ee) { + var pe = Re * 2, Pe = be * 2; + return ae[pe] < ae[Pe] || ae[pe] === ae[Pe] && Ee[Re] <= Ee[be]; + } + function G(ae, Re, be) { + for (var Ee = ae.heap[be], pe = be << 1; pe <= ae.heap_len && (pe < ae.heap_len && q(Re, ae.heap[pe + 1], ae.heap[pe], ae.depth) && pe++, !q(Re, Ee, ae.heap[pe], ae.depth)); ) + ae.heap[be] = ae.heap[pe], be = pe, pe <<= 1; + ae.heap[be] = Ee; + } + function Y(ae, Re, be) { + var Ee, pe, Pe = 0, te, He; + if (ae.last_lit !== 0) + do + Ee = ae.pending_buf[ae.d_buf + Pe * 2] << 8 | ae.pending_buf[ae.d_buf + Pe * 2 + 1], pe = ae.pending_buf[ae.l_buf + Pe], Pe++, Ee === 0 ? ge(ae, pe, Re) : (te = $[pe], ge(ae, te + c + 1, Re), He = N[te], He !== 0 && (pe -= W[te], ve(ae, pe, He)), Ee--, te = ee(Ee), ge(ae, te, be), He = M[te], He !== 0 && (Ee -= U[te], ve(ae, Ee, He))); + while (Pe < ae.last_lit); + ge(ae, O, Re); + } + function fe(ae, Re) { + var be = Re.dyn_tree, Ee = Re.stat_desc.static_tree, pe = Re.stat_desc.has_stree, Pe = Re.stat_desc.elems, te, He, it = -1, K; + for (ae.heap_len = 0, ae.heap_max = i, te = 0; te < Pe; te++) + be[te * 2] !== 0 ? (ae.heap[++ae.heap_len] = it = te, ae.depth[te] = 0) : be[te * 2 + 1] = 0; + for (; ae.heap_len < 2; ) + K = ae.heap[++ae.heap_len] = it < 2 ? ++it : 0, be[K * 2] = 1, ae.depth[K] = 0, ae.opt_len--, pe && (ae.static_len -= Ee[K * 2 + 1]); + for (Re.max_code = it, te = ae.heap_len >> 1; te >= 1; te--) + G(ae, be, te); + K = Pe; + do + te = ae.heap[ + 1 + /*SMALLEST*/ + ], ae.heap[ + 1 + /*SMALLEST*/ + ] = ae.heap[ae.heap_len--], G( + ae, + be, + 1 + /*SMALLEST*/ + ), He = ae.heap[ + 1 + /*SMALLEST*/ + ], ae.heap[--ae.heap_max] = te, ae.heap[--ae.heap_max] = He, be[K * 2] = be[te * 2] + be[He * 2], ae.depth[K] = (ae.depth[te] >= ae.depth[He] ? ae.depth[te] : ae.depth[He]) + 1, be[te * 2 + 1] = be[He * 2 + 1] = K, ae.heap[ + 1 + /*SMALLEST*/ + ] = K++, G( + ae, + be, + 1 + /*SMALLEST*/ + ); + while (ae.heap_len >= 2); + ae.heap[--ae.heap_max] = ae.heap[ + 1 + /*SMALLEST*/ + ], Q(ae, Re), he(be, it, ae.bl_count); + } + function we(ae, Re, be) { + var Ee, pe = -1, Pe, te = Re[0 * 2 + 1], He = 0, it = 7, K = 4; + for (te === 0 && (it = 138, K = 3), Re[(be + 1) * 2 + 1] = 65535, Ee = 0; Ee <= be; Ee++) + Pe = te, te = Re[(Ee + 1) * 2 + 1], !(++He < it && Pe === te) && (He < K ? ae.bl_tree[Pe * 2] += He : Pe !== 0 ? (Pe !== pe && ae.bl_tree[Pe * 2]++, ae.bl_tree[P * 2]++) : He <= 10 ? ae.bl_tree[F * 2]++ : ae.bl_tree[z * 2]++, He = 0, pe = Pe, te === 0 ? (it = 138, K = 3) : Pe === te ? (it = 6, K = 3) : (it = 7, K = 4)); + } + function _e(ae, Re, be) { + var Ee, pe = -1, Pe, te = Re[0 * 2 + 1], He = 0, it = 7, K = 4; + for (te === 0 && (it = 138, K = 3), Ee = 0; Ee <= be; Ee++) + if (Pe = te, te = Re[(Ee + 1) * 2 + 1], !(++He < it && Pe === te)) { + if (He < K) + do + ge(ae, Pe, ae.bl_tree); + while (--He !== 0); + else + Pe !== 0 ? (Pe !== pe && (ge(ae, Pe, ae.bl_tree), He--), ge(ae, P, ae.bl_tree), ve(ae, He - 3, 2)) : He <= 10 ? (ge(ae, F, ae.bl_tree), ve(ae, He - 3, 3)) : (ge(ae, z, ae.bl_tree), ve(ae, He - 11, 7)); + He = 0, pe = Pe, te === 0 ? (it = 138, K = 3) : Pe === te ? (it = 6, K = 3) : (it = 7, K = 4); + } + } + function je(ae) { + var Re; + for (we(ae, ae.dyn_ltree, ae.l_desc.max_code), we(ae, ae.dyn_dtree, ae.d_desc.max_code), fe(ae, ae.bl_desc), Re = t - 1; Re >= 3 && ae.bl_tree[R[Re] * 2 + 1] === 0; Re--) + ; + return ae.opt_len += 3 * (Re + 1) + 5 + 5 + 4, Re; + } + function Ye(ae, Re, be, Ee) { + var pe; + for (ve(ae, Re - 257, 5), ve(ae, be - 1, 5), ve(ae, Ee - 4, 4), pe = 0; pe < Ee; pe++) + ve( + ae, + ae.bl_tree[R[pe] * 2 + 1], + 3 + ); + _e(ae, ae.dyn_ltree, Re - 1), _e(ae, ae.dyn_dtree, be - 1); + } + function nt(ae) { + var Re = 4093624447, be; + for (be = 0; be <= 31; be++, Re >>>= 1) + if (Re & 1 && ae.dyn_ltree[be * 2] !== 0) + return g; + if (ae.dyn_ltree[9 * 2] !== 0 || ae.dyn_ltree[10 * 2] !== 0 || ae.dyn_ltree[13 * 2] !== 0) + return b; + for (be = 32; be < c; be++) + if (ae.dyn_ltree[be * 2] !== 0) + return b; + return g; + } + var ut = !1; + function ot(ae) { + ut || (ke(), ut = !0), ae.l_desc = new re(ae.dyn_ltree, B), ae.d_desc = new re(ae.dyn_dtree, j), ae.bl_desc = new re(ae.bl_tree, V), ae.bi_buf = 0, ae.bi_valid = 0, ne(ae); + } + function Ue(ae, Re, be, Ee) { + ve(ae, (y << 1) + (Ee ? 1 : 0), 3), Ce(ae, Re, be, !0); + } + function Ve(ae) { + ve(ae, h << 1, 3), ge(ae, O, E), J(ae); + } + function Qe(ae, Re, be, Ee) { + var pe, Pe, te = 0; + ae.level > 0 ? (ae.strm.data_type === w && (ae.strm.data_type = nt(ae)), fe(ae, ae.l_desc), fe(ae, ae.d_desc), te = je(ae), pe = ae.opt_len + 3 + 7 >>> 3, Pe = ae.static_len + 3 + 7 >>> 3, Pe <= pe && (pe = Pe)) : pe = Pe = be + 5, be + 4 <= pe && Re !== -1 ? Ue(ae, Re, be, Ee) : ae.strategy === m || Pe === pe ? (ve(ae, (h << 1) + (Ee ? 1 : 0), 3), Y(ae, E, A)) : (ve(ae, (l << 1) + (Ee ? 1 : 0), 3), Ye(ae, ae.l_desc.max_code + 1, ae.d_desc.max_code + 1, te + 1), Y(ae, ae.dyn_ltree, ae.dyn_dtree)), ne(ae), Ee && se(ae); + } + function tt(ae, Re, be) { + return ae.pending_buf[ae.d_buf + ae.last_lit * 2] = Re >>> 8 & 255, ae.pending_buf[ae.d_buf + ae.last_lit * 2 + 1] = Re & 255, ae.pending_buf[ae.l_buf + ae.last_lit] = be & 255, ae.last_lit++, Re === 0 ? ae.dyn_ltree[be * 2]++ : (ae.matches++, Re--, ae.dyn_ltree[($[be] + c + 1) * 2]++, ae.dyn_dtree[ee(Re) * 2]++), ae.last_lit === ae.lit_bufsize - 1; + } + _._tr_init = ot, _._tr_stored_block = Ue, _._tr_flush_block = Qe, _._tr_tally = tt, _._tr_align = Ve; + }, { "../utils/common": 442 }], 454: [function(e, x, _) { + function u() { + this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; + } + x.exports = u; + }, {}], 455: [function(e, x, _) { + x.exports = { + "2.16.840.1.101.3.4.1.1": "aes-128-ecb", + "2.16.840.1.101.3.4.1.2": "aes-128-cbc", + "2.16.840.1.101.3.4.1.3": "aes-128-ofb", + "2.16.840.1.101.3.4.1.4": "aes-128-cfb", + "2.16.840.1.101.3.4.1.21": "aes-192-ecb", + "2.16.840.1.101.3.4.1.22": "aes-192-cbc", + "2.16.840.1.101.3.4.1.23": "aes-192-ofb", + "2.16.840.1.101.3.4.1.24": "aes-192-cfb", + "2.16.840.1.101.3.4.1.41": "aes-256-ecb", + "2.16.840.1.101.3.4.1.42": "aes-256-cbc", + "2.16.840.1.101.3.4.1.43": "aes-256-ofb", + "2.16.840.1.101.3.4.1.44": "aes-256-cfb" + }; + }, {}], 456: [function(e, x, _) { + var u = e("asn1.js"); + _.certificate = e("./certificate"); + var m = u.define("RSAPrivateKey", function() { + this.seq().obj(this.key("version").int(), this.key("modulus").int(), this.key("publicExponent").int(), this.key("privateExponent").int(), this.key("prime1").int(), this.key("prime2").int(), this.key("exponent1").int(), this.key("exponent2").int(), this.key("coefficient").int()); + }); + _.RSAPrivateKey = m; + var g = u.define("RSAPublicKey", function() { + this.seq().obj(this.key("modulus").int(), this.key("publicExponent").int()); + }); + _.RSAPublicKey = g; + var b = u.define("SubjectPublicKeyInfo", function() { + this.seq().obj(this.key("algorithm").use(w), this.key("subjectPublicKey").bitstr()); + }); + _.PublicKey = b; + var w = u.define("AlgorithmIdentifier", function() { + this.seq().obj(this.key("algorithm").objid(), this.key("none").null_().optional(), this.key("curve").objid().optional(), this.key("params").seq().obj(this.key("p").int(), this.key("q").int(), this.key("g").int()).optional()); + }), f = u.define("PrivateKeyInfo", function() { + this.seq().obj(this.key("version").int(), this.key("algorithm").use(w), this.key("subjectPrivateKey").octstr()); + }); + _.PrivateKey = f; + var y = u.define("EncryptedPrivateKeyInfo", function() { + this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(), this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(), this.key("kdeparams").seq().obj(this.key("salt").octstr(), this.key("iters").int())), this.key("cipher").seq().obj(this.key("algo").objid(), this.key("iv").octstr()))), this.key("subjectPrivateKey").octstr()); + }); + _.EncryptedPrivateKey = y; + var h = u.define("DSAPrivateKey", function() { + this.seq().obj(this.key("version").int(), this.key("p").int(), this.key("q").int(), this.key("g").int(), this.key("pub_key").int(), this.key("priv_key").int()); + }); + _.DSAPrivateKey = h, _.DSAparam = u.define("DSAparam", function() { + this.int(); + }); + var l = u.define("ECPrivateKey", function() { + this.seq().obj(this.key("version").int(), this.key("privateKey").octstr(), this.key("parameters").optional().explicit(0).use(d), this.key("publicKey").optional().explicit(1).bitstr()); + }); + _.ECPrivateKey = l; + var d = u.define("ECParameters", function() { + this.choice({ + namedCurve: this.objid() + }); + }); + _.signature = u.define("signature", function() { + this.seq().obj(this.key("r").int(), this.key("s").int()); + }); + }, { "./certificate": 457, "asn1.js": 167 }], 457: [function(e, x, _) { + var u = e("asn1.js"), m = u.define("Time", function() { + this.choice({ + utcTime: this.utctime(), + generalTime: this.gentime() + }); + }), g = u.define("AttributeTypeValue", function() { + this.seq().obj(this.key("type").objid(), this.key("value").any()); + }), b = u.define("AlgorithmIdentifier", function() { + this.seq().obj(this.key("algorithm").objid(), this.key("parameters").optional(), this.key("curve").objid().optional()); + }), w = u.define("SubjectPublicKeyInfo", function() { + this.seq().obj(this.key("algorithm").use(b), this.key("subjectPublicKey").bitstr()); + }), f = u.define("RelativeDistinguishedName", function() { + this.setof(g); + }), y = u.define("RDNSequence", function() { + this.seqof(f); + }), h = u.define("Name", function() { + this.choice({ + rdnSequence: this.use(y) + }); + }), l = u.define("Validity", function() { + this.seq().obj(this.key("notBefore").use(m), this.key("notAfter").use(m)); + }), d = u.define("Extension", function() { + this.seq().obj(this.key("extnID").objid(), this.key("critical").bool().def(!1), this.key("extnValue").octstr()); + }), s = u.define("TBSCertificate", function() { + this.seq().obj(this.key("version").explicit(0).int().optional(), this.key("serialNumber").int(), this.key("signature").use(b), this.key("issuer").use(h), this.key("validity").use(l), this.key("subject").use(h), this.key("subjectPublicKeyInfo").use(w), this.key("issuerUniqueID").implicit(1).bitstr().optional(), this.key("subjectUniqueID").implicit(2).bitstr().optional(), this.key("extensions").explicit(3).seqof(d).optional()); + }), v = u.define("X509Certificate", function() { + this.seq().obj(this.key("tbsCertificate").use(s), this.key("signatureAlgorithm").use(b), this.key("signatureValue").bitstr()); + }); + x.exports = v; + }, { "asn1.js": 167 }], 458: [function(e, x, _) { + var u = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m, m = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m, g = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m, b = e("evp_bytestokey"), w = e("browserify-aes"), f = e("safe-buffer").Buffer; + x.exports = function(y, h) { + var l = y.toString(), d = l.match(u), s; + if (d) { + var c = "aes" + d[1], a = f.from(d[2], "hex"), r = f.from(d[3].replace(/[\r\n]/g, ""), "base64"), t = b(h, a.slice(0, 8), parseInt(d[1], 10)).key, i = [], n = w.createDecipheriv(c, t, a); + i.push(n.update(r)), i.push(n.final()), s = f.concat(i); + } else { + var v = l.match(g); + s = f.from(v[2].replace(/[\r\n]/g, ""), "base64"); + } + var o = l.match(m)[1]; + return { + tag: o, + data: s + }; + }; + }, { "browserify-aes": 188, evp_bytestokey: 368, "safe-buffer": 494 }], 459: [function(e, x, _) { + function u(d) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(v) { + return typeof v; + } : u = function(v) { + return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v; + }, u(d); + } + var m = e("./asn1"), g = e("./aesid.json"), b = e("./fixProc"), w = e("browserify-aes"), f = e("pbkdf2"), y = e("safe-buffer").Buffer; + x.exports = h; + function h(d) { + var s; + u(d) === "object" && !y.isBuffer(d) && (s = d.passphrase, d = d.key), typeof d == "string" && (d = y.from(d)); + var v = b(d, s), c = v.tag, a = v.data, r, t; + switch (c) { + case "CERTIFICATE": + t = m.certificate.decode(a, "der").tbsCertificate.subjectPublicKeyInfo; + case "PUBLIC KEY": + switch (t || (t = m.PublicKey.decode(a, "der")), r = t.algorithm.algorithm.join("."), r) { + case "1.2.840.113549.1.1.1": + return m.RSAPublicKey.decode(t.subjectPublicKey.data, "der"); + case "1.2.840.10045.2.1": + return t.subjectPrivateKey = t.subjectPublicKey, { + type: "ec", + data: t + }; + case "1.2.840.10040.4.1": + return t.algorithm.params.pub_key = m.DSAparam.decode(t.subjectPublicKey.data, "der"), { + type: "dsa", + data: t.algorithm.params + }; + default: + throw new Error("unknown key id " + r); + } + case "ENCRYPTED PRIVATE KEY": + a = m.EncryptedPrivateKey.decode(a, "der"), a = l(a, s); + case "PRIVATE KEY": + switch (t = m.PrivateKey.decode(a, "der"), r = t.algorithm.algorithm.join("."), r) { + case "1.2.840.113549.1.1.1": + return m.RSAPrivateKey.decode(t.subjectPrivateKey, "der"); + case "1.2.840.10045.2.1": + return { + curve: t.algorithm.curve, + privateKey: m.ECPrivateKey.decode(t.subjectPrivateKey, "der").privateKey + }; + case "1.2.840.10040.4.1": + return t.algorithm.params.priv_key = m.DSAparam.decode(t.subjectPrivateKey, "der"), { + type: "dsa", + params: t.algorithm.params + }; + default: + throw new Error("unknown key id " + r); + } + case "RSA PUBLIC KEY": + return m.RSAPublicKey.decode(a, "der"); + case "RSA PRIVATE KEY": + return m.RSAPrivateKey.decode(a, "der"); + case "DSA PRIVATE KEY": + return { + type: "dsa", + params: m.DSAPrivateKey.decode(a, "der") + }; + case "EC PRIVATE KEY": + return a = m.ECPrivateKey.decode(a, "der"), { + curve: a.parameters.value, + privateKey: a.privateKey + }; + default: + throw new Error("unknown key type " + c); + } + } + h.signature = m.signature; + function l(d, s) { + var v = d.algorithm.decrypt.kde.kdeparams.salt, c = parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(), 10), a = g[d.algorithm.decrypt.cipher.algo.join(".")], r = d.algorithm.decrypt.cipher.iv, t = d.subjectPrivateKey, i = parseInt(a.split("-")[1], 10) / 8, n = f.pbkdf2Sync(s, v, c, i, "sha1"), o = w.createDecipheriv(a, n, r), p = []; + return p.push(o.update(t)), p.push(o.final()), y.concat(p); + } + }, { "./aesid.json": 455, "./asn1": 456, "./fixProc": 458, "browserify-aes": 188, pbkdf2: 460, "safe-buffer": 494 }], 460: [function(e, x, _) { + _.pbkdf2 = e("./lib/async"), _.pbkdf2Sync = e("./lib/sync"); + }, { "./lib/async": 461, "./lib/sync": 464 }], 461: [function(e, x, _) { + (function(u, m) { + var g = e("safe-buffer").Buffer, b = e("./precondition"), w = e("./default-encoding"), f = e("./sync"), y = e("./to-buffer"), h, l = m.crypto && m.crypto.subtle, d = { + sha: "SHA-1", + "sha-1": "SHA-1", + sha1: "SHA-1", + sha256: "SHA-256", + "sha-256": "SHA-256", + sha384: "SHA-384", + "sha-384": "SHA-384", + "sha-512": "SHA-512", + sha512: "SHA-512" + }, s = []; + function v(r) { + if (m.process && !m.process.browser || !l || !l.importKey || !l.deriveBits) + return Promise.resolve(!1); + if (s[r] !== void 0) + return s[r]; + h = h || g.alloc(8); + var t = c(h, h, 10, 128, r).then(function() { + return !0; + }).catch(function() { + return !1; + }); + return s[r] = t, t; + } + function c(r, t, i, n, o) { + return l.importKey("raw", r, { + name: "PBKDF2" + }, !1, ["deriveBits"]).then(function(p) { + return l.deriveBits({ + name: "PBKDF2", + salt: t, + iterations: i, + hash: { + name: o + } + }, p, n << 3); + }).then(function(p) { + return g.from(p); + }); + } + function a(r, t) { + r.then(function(i) { + u.nextTick(function() { + t(null, i); + }); + }, function(i) { + u.nextTick(function() { + t(i); + }); + }); + } + x.exports = function(r, t, i, n, o, p) { + typeof o == "function" && (p = o, o = void 0), o = o || "sha1"; + var O = d[o.toLowerCase()]; + if (!O || typeof m.Promise != "function") + return u.nextTick(function() { + var P; + try { + P = f(r, t, i, n, o); + } catch (F) { + return p(F); + } + p(null, P); + }); + if (b(i, n), r = y(r, w, "Password"), t = y(t, w, "Salt"), typeof p != "function") + throw new Error("No callback provided to pbkdf2"); + a(v(O).then(function(P) { + return P ? c(r, t, i, n, O) : f(r, t, i, n, o); + }), p); + }; + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { "./default-encoding": 462, "./precondition": 463, "./sync": 464, "./to-buffer": 465, _process: 467, "safe-buffer": 494 }], 462: [function(e, x, _) { + (function(u) { + var m; + if (u.browser) + m = "utf-8"; + else if (u.version) { + var g = parseInt(u.version.split(".")[0].slice(1), 10); + m = g >= 6 ? "utf-8" : "binary"; + } else + m = "utf-8"; + x.exports = m; + }).call(this, e("_process")); + }, { _process: 467 }], 463: [function(e, x, _) { + var u = Math.pow(2, 30) - 1; + x.exports = function(m, g) { + if (typeof m != "number") + throw new TypeError("Iterations not a number"); + if (m < 0) + throw new TypeError("Bad iterations"); + if (typeof g != "number") + throw new TypeError("Key length not a number"); + if (g < 0 || g > u || g !== g) + throw new TypeError("Bad key length"); + }; + }, {}], 464: [function(e, x, _) { + var u = e("create-hash/md5"), m = e("ripemd160"), g = e("sha.js"), b = e("safe-buffer").Buffer, w = e("./precondition"), f = e("./default-encoding"), y = e("./to-buffer"), h = b.alloc(128), l = { + md5: 16, + sha1: 20, + sha224: 28, + sha256: 32, + sha384: 48, + sha512: 64, + rmd160: 20, + ripemd160: 20 + }; + function d(c, a, r) { + var t = s(c), i = c === "sha512" || c === "sha384" ? 128 : 64; + a.length > i ? a = t(a) : a.length < i && (a = b.concat([a, h], i)); + for (var n = b.allocUnsafe(i + l[c]), o = b.allocUnsafe(i + l[c]), p = 0; p < i; p++) + n[p] = a[p] ^ 54, o[p] = a[p] ^ 92; + var O = b.allocUnsafe(i + r + 4); + n.copy(O, 0, 0, i), this.ipad1 = O, this.ipad2 = n, this.opad = o, this.alg = c, this.blocksize = i, this.hash = t, this.size = l[c]; + } + d.prototype.run = function(c, a) { + c.copy(a, this.blocksize); + var r = this.hash(a); + return r.copy(this.opad, this.blocksize), this.hash(this.opad); + }; + function s(c) { + function a(t) { + return g(c).update(t).digest(); + } + function r(t) { + return new m().update(t).digest(); + } + return c === "rmd160" || c === "ripemd160" ? r : c === "md5" ? u : a; + } + function v(c, a, r, t, i) { + w(r, t), c = y(c, f, "Password"), a = y(a, f, "Salt"), i = i || "sha1"; + var n = new d(i, c, a.length), o = b.allocUnsafe(t), p = b.allocUnsafe(a.length + 4); + a.copy(p, 0, 0, a.length); + for (var O = 0, P = l[i], F = Math.ceil(t / P), z = 1; z <= F; z++) { + p.writeUInt32BE(z, a.length); + for (var N = n.run(p, n.ipad1), M = N, I = 1; I < r; I++) { + M = n.run(M, n.ipad2); + for (var R = 0; R < P; R++) + N[R] ^= M[R]; + } + N.copy(o, O), O += P; + } + return o; + } + x.exports = v; + }, { "./default-encoding": 462, "./precondition": 463, "./to-buffer": 465, "create-hash/md5": 332, ripemd160: 493, "safe-buffer": 494, "sha.js": 499 }], 465: [function(e, x, _) { + var u = e("safe-buffer").Buffer; + x.exports = function(m, g, b) { + if (u.isBuffer(m)) + return m; + if (typeof m == "string") + return u.from(m, g); + if (ArrayBuffer.isView(m)) + return u.from(m.buffer); + throw new TypeError(b + " must be a string, a Buffer, a typed array or a DataView"); + }; + }, { "safe-buffer": 494 }], 466: [function(e, x, _) { + (function(u) { + typeof u == "undefined" || !u.version || u.version.indexOf("v0.") === 0 || u.version.indexOf("v1.") === 0 && u.version.indexOf("v1.8.") !== 0 ? x.exports = { + nextTick: m + } : x.exports = u; + function m(g, b, w, f) { + if (typeof g != "function") + throw new TypeError('"callback" argument must be a function'); + var y = arguments.length, h, l; + switch (y) { + case 0: + case 1: + return u.nextTick(g); + case 2: + return u.nextTick(function() { + g.call(null, b); + }); + case 3: + return u.nextTick(function() { + g.call(null, b, w); + }); + case 4: + return u.nextTick(function() { + g.call(null, b, w, f); + }); + default: + for (h = new Array(y - 1), l = 0; l < h.length; ) + h[l++] = arguments[l]; + return u.nextTick(function() { + g.apply(null, h); + }); + } + } + }).call(this, e("_process")); + }, { _process: 467 }], 467: [function(e, x, _) { + var u = x.exports = {}, m, g; + function b() { + throw new Error("setTimeout has not been defined"); + } + function w() { + throw new Error("clearTimeout has not been defined"); + } + (function() { + try { + typeof setTimeout == "function" ? m = setTimeout : m = b; + } catch (t) { + m = b; + } + try { + typeof clearTimeout == "function" ? g = clearTimeout : g = w; + } catch (t) { + g = w; + } + })(); + function f(t) { + if (m === setTimeout) + return setTimeout(t, 0); + if ((m === b || !m) && setTimeout) + return m = setTimeout, setTimeout(t, 0); + try { + return m(t, 0); + } catch (i) { + try { + return m.call(null, t, 0); + } catch (n) { + return m.call(this, t, 0); + } + } + } + function y(t) { + if (g === clearTimeout) + return clearTimeout(t); + if ((g === w || !g) && clearTimeout) + return g = clearTimeout, clearTimeout(t); + try { + return g(t); + } catch (i) { + try { + return g.call(null, t); + } catch (n) { + return g.call(this, t); + } + } + } + var h = [], l = !1, d, s = -1; + function v() { + !l || !d || (l = !1, d.length ? h = d.concat(h) : s = -1, h.length && c()); + } + function c() { + if (!l) { + var t = f(v); + l = !0; + for (var i = h.length; i; ) { + for (d = h, h = []; ++s < i; ) + d && d[s].run(); + s = -1, i = h.length; + } + d = null, l = !1, y(t); + } + } + u.nextTick = function(t) { + var i = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) + i[n - 1] = arguments[n]; + h.push(new a(t, i)), h.length === 1 && !l && f(c); + }; + function a(t, i) { + this.fun = t, this.array = i; + } + a.prototype.run = function() { + this.fun.apply(null, this.array); + }, u.title = "browser", u.browser = !0, u.env = {}, u.argv = [], u.version = "", u.versions = {}; + function r() { + } + u.on = r, u.addListener = r, u.once = r, u.off = r, u.removeListener = r, u.removeAllListeners = r, u.emit = r, u.prependListener = r, u.prependOnceListener = r, u.listeners = function(t) { + return []; + }, u.binding = function(t) { + throw new Error("process.binding is not supported"); + }, u.cwd = function() { + return "/"; + }, u.chdir = function(t) { + throw new Error("process.chdir is not supported"); + }, u.umask = function() { + return 0; + }; + }, {}], 468: [function(e, x, _) { + _.publicEncrypt = e("./publicEncrypt"), _.privateDecrypt = e("./privateDecrypt"), _.privateEncrypt = function(m, g) { + return _.publicEncrypt(m, g, !0); + }, _.publicDecrypt = function(m, g) { + return _.privateDecrypt(m, g, !0); + }; + }, { "./privateDecrypt": 471, "./publicEncrypt": 472 }], 469: [function(e, x, _) { + var u = e("create-hash"), m = e("safe-buffer").Buffer; + x.exports = function(b, w) { + for (var f = m.alloc(0), y = 0, h; f.length < w; ) + h = g(y++), f = m.concat([f, u("sha1").update(b).update(h).digest()]); + return f.slice(0, w); + }; + function g(b) { + var w = m.allocUnsafe(4); + return w.writeUInt32BE(b, 0), w; + } + }, { "create-hash": 331, "safe-buffer": 494 }], 470: [function(e, x, _) { + arguments[4][181][0].apply(_, arguments); + }, { buffer: 185, dup: 181 }], 471: [function(e, x, _) { + var u = e("parse-asn1"), m = e("./mgf"), g = e("./xor"), b = e("bn.js"), w = e("browserify-rsa"), f = e("create-hash"), y = e("./withPublic"), h = e("safe-buffer").Buffer; + x.exports = function(c, a, r) { + var t; + c.padding ? t = c.padding : r ? t = 1 : t = 4; + var i = u(c), n = i.modulus.byteLength(); + if (a.length > n || new b(a).cmp(i.modulus) >= 0) + throw new Error("decryption error"); + var o; + r ? o = y(new b(a), i) : o = w(a, i); + var p = h.alloc(n - o.length); + if (o = h.concat([p, o], n), t === 4) + return l(i, o); + if (t === 1) + return d(i, o, r); + if (t === 3) + return o; + throw new Error("unknown padding"); + }; + function l(v, c) { + var a = v.modulus.byteLength(), r = f("sha1").update(h.alloc(0)).digest(), t = r.length; + if (c[0] !== 0) + throw new Error("decryption error"); + var i = c.slice(1, t + 1), n = c.slice(t + 1), o = g(i, m(n, t)), p = g(n, m(o, a - t - 1)); + if (s(r, p.slice(0, t))) + throw new Error("decryption error"); + for (var O = t; p[O] === 0; ) + O++; + if (p[O++] !== 1) + throw new Error("decryption error"); + return p.slice(O); + } + function d(v, c, a) { + for (var r = c.slice(0, 2), t = 2, i = 0; c[t++] !== 0; ) + if (t >= c.length) { + i++; + break; + } + var n = c.slice(2, t - 1); + if ((r.toString("hex") !== "0002" && !a || r.toString("hex") !== "0001" && a) && i++, n.length < 8 && i++, i) + throw new Error("decryption error"); + return c.slice(t); + } + function s(v, c) { + v = h.from(v), c = h.from(c); + var a = 0, r = v.length; + v.length !== c.length && (a++, r = Math.min(v.length, c.length)); + for (var t = -1; ++t < r; ) + a += v[t] ^ c[t]; + return a; + } + }, { "./mgf": 469, "./withPublic": 473, "./xor": 474, "bn.js": 470, "browserify-rsa": 206, "create-hash": 331, "parse-asn1": 459, "safe-buffer": 494 }], 472: [function(e, x, _) { + var u = e("parse-asn1"), m = e("randombytes"), g = e("create-hash"), b = e("./mgf"), w = e("./xor"), f = e("bn.js"), y = e("./withPublic"), h = e("browserify-rsa"), l = e("safe-buffer").Buffer; + x.exports = function(a, r, t) { + var i; + a.padding ? i = a.padding : t ? i = 1 : i = 4; + var n = u(a), o; + if (i === 4) + o = d(n, r); + else if (i === 1) + o = s(n, r, t); + else if (i === 3) { + if (o = new f(r), o.cmp(n.modulus) >= 0) + throw new Error("data too long for modulus"); + } else + throw new Error("unknown padding"); + return t ? h(o, n) : y(o, n); + }; + function d(c, a) { + var r = c.modulus.byteLength(), t = a.length, i = g("sha1").update(l.alloc(0)).digest(), n = i.length, o = 2 * n; + if (t > r - o - 2) + throw new Error("message too long"); + var p = l.alloc(r - t - o - 2), O = r - n - 1, P = m(n), F = w(l.concat([i, p, l.alloc(1, 1), a], O), b(P, O)), z = w(P, b(F, n)); + return new f(l.concat([l.alloc(1), z, F], r)); + } + function s(c, a, r) { + var t = a.length, i = c.modulus.byteLength(); + if (t > i - 11) + throw new Error("message too long"); + var n; + return r ? n = l.alloc(i - t - 3, 255) : n = v(i - t - 3), new f(l.concat([l.from([0, r ? 1 : 2]), n, l.alloc(1), a], i)); + } + function v(c) { + for (var a = l.allocUnsafe(c), r = 0, t = m(c * 2), i = 0, n; r < c; ) + i === t.length && (t = m(c * 2), i = 0), n = t[i++], n && (a[r++] = n); + return a; + } + }, { "./mgf": 469, "./withPublic": 473, "./xor": 474, "bn.js": 470, "browserify-rsa": 206, "create-hash": 331, "parse-asn1": 459, randombytes: 475, "safe-buffer": 494 }], 473: [function(e, x, _) { + var u = e("bn.js"), m = e("safe-buffer").Buffer; + function g(b, w) { + return m.from(b.toRed(u.mont(w.modulus)).redPow(new u(w.publicExponent)).fromRed().toArray()); + } + x.exports = g; + }, { "bn.js": 470, "safe-buffer": 494 }], 474: [function(e, x, _) { + x.exports = function(m, g) { + for (var b = m.length, w = -1; ++w < b; ) + m[w] ^= g[w]; + return m; + }; + }, {}], 475: [function(e, x, _) { + (function(u, m) { + var g = 65536, b = 4294967295; + function w() { + throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`); + } + var f = e("safe-buffer").Buffer, y = m.crypto || m.msCrypto; + y && y.getRandomValues ? x.exports = h : x.exports = w; + function h(l, d) { + if (l > b) + throw new RangeError("requested too many random bytes"); + var s = f.allocUnsafe(l); + if (l > 0) + if (l > g) + for (var v = 0; v < l; v += g) + y.getRandomValues(s.slice(v, v + g)); + else + y.getRandomValues(s); + return typeof d == "function" ? u.nextTick(function() { + d(null, s); + }) : s; + } + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { _process: 467, "safe-buffer": 494 }], 476: [function(e, x, _) { + (function(u, m) { + function g() { + throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`); + } + var b = e("safe-buffer"), w = e("randombytes"), f = b.Buffer, y = b.kMaxLength, h = m.crypto || m.msCrypto, l = Math.pow(2, 32) - 1; + function d(r, t) { + if (typeof r != "number" || r !== r) + throw new TypeError("offset must be a number"); + if (r > l || r < 0) + throw new TypeError("offset must be a uint32"); + if (r > y || r > t) + throw new RangeError("offset out of range"); + } + function s(r, t, i) { + if (typeof r != "number" || r !== r) + throw new TypeError("size must be a number"); + if (r > l || r < 0) + throw new TypeError("size must be a uint32"); + if (r + t > i || r > y) + throw new RangeError("buffer too small"); + } + h && h.getRandomValues || !u.browser ? (_.randomFill = v, _.randomFillSync = a) : (_.randomFill = g, _.randomFillSync = g); + function v(r, t, i, n) { + if (!f.isBuffer(r) && !(r instanceof m.Uint8Array)) + throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + if (typeof t == "function") + n = t, t = 0, i = r.length; + else if (typeof i == "function") + n = i, i = r.length - t; + else if (typeof n != "function") + throw new TypeError('"cb" argument must be a function'); + return d(t, r.length), s(i, t, r.length), c(r, t, i, n); + } + function c(r, t, i, n) { + if (u.browser) { + var o = r.buffer, p = new Uint8Array(o, t, i); + if (h.getRandomValues(p), n) { + u.nextTick(function() { + n(null, r); + }); + return; + } + return r; + } + if (n) { + w(i, function(P, F) { + if (P) + return n(P); + F.copy(r, t), n(null, r); + }); + return; + } + var O = w(i); + return O.copy(r, t), r; + } + function a(r, t, i) { + if (typeof t == "undefined" && (t = 0), !f.isBuffer(r) && !(r instanceof m.Uint8Array)) + throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); + return d(t, r.length), i === void 0 && (i = r.length - t), s(i, t, r.length), c(r, t, i); + } + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { _process: 467, randombytes: 475, "safe-buffer": 494 }], 477: [function(e, x, _) { + function u(l) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(s) { + return typeof s; + } : u = function(s) { + return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s; + }, u(l); + } + function m(l, d) { + l.prototype = Object.create(d.prototype), l.prototype.constructor = l, l.__proto__ = d; + } + var g = {}; + function b(l, d, s) { + s || (s = Error); + function v(a, r, t) { + return typeof d == "string" ? d : d(a, r, t); + } + var c = /* @__PURE__ */ function(a) { + m(r, a); + function r(t, i, n) { + return a.call(this, v(t, i, n)) || this; + } + return r; + }(s); + c.prototype.name = s.name, c.prototype.code = l, g[l] = c; + } + function w(l, d) { + if (Array.isArray(l)) { + var s = l.length; + return l = l.map(function(v) { + return String(v); + }), s > 2 ? "one of ".concat(d, " ").concat(l.slice(0, s - 1).join(", "), ", or ") + l[s - 1] : s === 2 ? "one of ".concat(d, " ").concat(l[0], " or ").concat(l[1]) : "of ".concat(d, " ").concat(l[0]); + } else + return "of ".concat(d, " ").concat(String(l)); + } + function f(l, d, s) { + return l.substr(!s || s < 0 ? 0 : +s, d.length) === d; + } + function y(l, d, s) { + return (s === void 0 || s > l.length) && (s = l.length), l.substring(s - d.length, s) === d; + } + function h(l, d, s) { + return typeof s != "number" && (s = 0), s + d.length > l.length ? !1 : l.indexOf(d, s) !== -1; + } + b("ERR_INVALID_OPT_VALUE", function(l, d) { + return 'The value "' + d + '" is invalid for option "' + l + '"'; + }, TypeError), b("ERR_INVALID_ARG_TYPE", function(l, d, s) { + var v; + typeof d == "string" && f(d, "not ") ? (v = "must not be", d = d.replace(/^not /, "")) : v = "must be"; + var c; + if (y(l, " argument")) + c = "The ".concat(l, " ").concat(v, " ").concat(w(d, "type")); + else { + var a = h(l, ".") ? "property" : "argument"; + c = 'The "'.concat(l, '" ').concat(a, " ").concat(v, " ").concat(w(d, "type")); + } + return c += ". Received type ".concat(u(s)), c; + }, TypeError), b("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), b("ERR_METHOD_NOT_IMPLEMENTED", function(l) { + return "The " + l + " method is not implemented"; + }), b("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), b("ERR_STREAM_DESTROYED", function(l) { + return "Cannot call " + l + " after a stream was destroyed"; + }), b("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), b("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), b("ERR_STREAM_WRITE_AFTER_END", "write after end"), b("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), b("ERR_UNKNOWN_ENCODING", function(l) { + return "Unknown encoding: " + l; + }, TypeError), b("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), x.exports.codes = g; + }, {}], 478: [function(e, x, _) { + (function(u) { + var m = Object.keys || function(s) { + var v = []; + for (var c in s) + v.push(c); + return v; + }; + x.exports = h; + var g = e("./_stream_readable"), b = e("./_stream_writable"); + e("inherits")(h, g); + for (var w = m(b.prototype), f = 0; f < w.length; f++) { + var y = w[f]; + h.prototype[y] || (h.prototype[y] = b.prototype[y]); + } + function h(s) { + if (!(this instanceof h)) + return new h(s); + g.call(this, s), b.call(this, s), this.allowHalfOpen = !0, s && (s.readable === !1 && (this.readable = !1), s.writable === !1 && (this.writable = !1), s.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", l))); + } + Object.defineProperty(h.prototype, "writableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.highWaterMark; + } + }), Object.defineProperty(h.prototype, "writableBuffer", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState && this._writableState.getBuffer(); + } + }), Object.defineProperty(h.prototype, "writableLength", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.length; + } + }); + function l() { + this._writableState.ended || u.nextTick(d, this); + } + function d(s) { + s.end(); + } + Object.defineProperty(h.prototype, "destroyed", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; + }, + set: function(v) { + this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = v, this._writableState.destroyed = v); + } + }); + }).call(this, e("_process")); + }, { "./_stream_readable": 480, "./_stream_writable": 482, _process: 467, inherits: 387 }], 479: [function(e, x, _) { + x.exports = m; + var u = e("./_stream_transform"); + e("inherits")(m, u); + function m(g) { + if (!(this instanceof m)) + return new m(g); + u.call(this, g); + } + m.prototype._transform = function(g, b, w) { + w(null, g); + }; + }, { "./_stream_transform": 481, inherits: 387 }], 480: [function(e, x, _) { + (function(u, m) { + x.exports = R; + var g; + R.ReadableState = I, e("events").EventEmitter; + var b = function(se, Ce) { + return se.listeners(Ce).length; + }, w = e("./internal/streams/stream"), f = e("buffer").Buffer, y = m.Uint8Array || function() { + }; + function h(ne) { + return f.from(ne); + } + function l(ne) { + return f.isBuffer(ne) || ne instanceof y; + } + var d = e("util"), s; + d && d.debuglog ? s = d.debuglog("stream") : s = function() { + }; + var v = e("./internal/streams/buffer_list"), c = e("./internal/streams/destroy"), a = e("./internal/streams/state"), r = a.getHighWaterMark, t = e("../errors").codes, i = t.ERR_INVALID_ARG_TYPE, n = t.ERR_STREAM_PUSH_AFTER_EOF, o = t.ERR_METHOD_NOT_IMPLEMENTED, p = t.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, O, P, F; + e("inherits")(R, w); + var z = c.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"]; + function M(ne, se, Ce) { + if (typeof ne.prependListener == "function") + return ne.prependListener(se, Ce); + !ne._events || !ne._events[se] ? ne.on(se, Ce) : Array.isArray(ne._events[se]) ? ne._events[se].unshift(Ce) : ne._events[se] = [Ce, ne._events[se]]; + } + function I(ne, se, Ce) { + g = g || e("./_stream_duplex"), ne = ne || {}, typeof Ce != "boolean" && (Ce = se instanceof g), this.objectMode = !!ne.objectMode, Ce && (this.objectMode = this.objectMode || !!ne.readableObjectMode), this.highWaterMark = r(this, ne, "readableHighWaterMark", Ce), this.buffer = new v(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = ne.emitClose !== !1, this.autoDestroy = !!ne.autoDestroy, this.destroyed = !1, this.defaultEncoding = ne.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, ne.encoding && (O || (O = e("string_decoder/").StringDecoder), this.decoder = new O(ne.encoding), this.encoding = ne.encoding); + } + function R(ne) { + if (g = g || e("./_stream_duplex"), !(this instanceof R)) + return new R(ne); + var se = this instanceof g; + this._readableState = new I(ne, this, se), this.readable = !0, ne && (typeof ne.read == "function" && (this._read = ne.read), typeof ne.destroy == "function" && (this._destroy = ne.destroy)), w.call(this); + } + Object.defineProperty(R.prototype, "destroyed", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState === void 0 ? !1 : this._readableState.destroyed; + }, + set: function(se) { + this._readableState && (this._readableState.destroyed = se); + } + }), R.prototype.destroy = c.destroy, R.prototype._undestroy = c.undestroy, R.prototype._destroy = function(ne, se) { + se(ne); + }, R.prototype.push = function(ne, se) { + var Ce = this._readableState, q; + return Ce.objectMode ? q = !0 : typeof ne == "string" && (se = se || Ce.defaultEncoding, se !== Ce.encoding && (ne = f.from(ne, se), se = ""), q = !0), C(this, ne, se, !1, q); + }, R.prototype.unshift = function(ne) { + return C(this, ne, null, !0, !1); + }; + function C(ne, se, Ce, q, G) { + s("readableAddChunk", se); + var Y = ne._readableState; + if (se === null) + Y.reading = !1, U(ne, Y); + else { + var fe; + if (G || (fe = A(Y, se)), fe) + z(ne, fe); + else if (Y.objectMode || se && se.length > 0) + if (typeof se != "string" && !Y.objectMode && Object.getPrototypeOf(se) !== f.prototype && (se = h(se)), q) + Y.endEmitted ? z(ne, new p()) : E(ne, Y, se, !0); + else if (Y.ended) + z(ne, new n()); + else { + if (Y.destroyed) + return !1; + Y.reading = !1, Y.decoder && !Ce ? (se = Y.decoder.write(se), Y.objectMode || se.length !== 0 ? E(ne, Y, se, !1) : j(ne, Y)) : E(ne, Y, se, !1); + } + else + q || (Y.reading = !1, j(ne, Y)); + } + return !Y.ended && (Y.length < Y.highWaterMark || Y.length === 0); + } + function E(ne, se, Ce, q) { + se.flowing && se.length === 0 && !se.sync ? (se.awaitDrain = 0, ne.emit("data", Ce)) : (se.length += se.objectMode ? 1 : Ce.length, q ? se.buffer.unshift(Ce) : se.buffer.push(Ce), se.needReadable && D(ne)), j(ne, se); + } + function A(ne, se) { + var Ce; + return !l(se) && typeof se != "string" && se !== void 0 && !ne.objectMode && (Ce = new i("chunk", ["string", "Buffer", "Uint8Array"], se)), Ce; + } + R.prototype.isPaused = function() { + return this._readableState.flowing === !1; + }, R.prototype.setEncoding = function(ne) { + O || (O = e("string_decoder/").StringDecoder); + var se = new O(ne); + this._readableState.decoder = se, this._readableState.encoding = this._readableState.decoder.encoding; + for (var Ce = this._readableState.buffer.head, q = ""; Ce !== null; ) + q += se.write(Ce.data), Ce = Ce.next; + return this._readableState.buffer.clear(), q !== "" && this._readableState.buffer.push(q), this._readableState.length = q.length, this; + }; + var L = 1073741824; + function $(ne) { + return ne >= L ? ne = L : (ne--, ne |= ne >>> 1, ne |= ne >>> 2, ne |= ne >>> 4, ne |= ne >>> 8, ne |= ne >>> 16, ne++), ne; + } + function W(ne, se) { + return ne <= 0 || se.length === 0 && se.ended ? 0 : se.objectMode ? 1 : ne !== ne ? se.flowing && se.length ? se.buffer.head.data.length : se.length : (ne > se.highWaterMark && (se.highWaterMark = $(ne)), ne <= se.length ? ne : se.ended ? se.length : (se.needReadable = !0, 0)); + } + R.prototype.read = function(ne) { + s("read", ne), ne = parseInt(ne, 10); + var se = this._readableState, Ce = ne; + if (ne !== 0 && (se.emittedReadable = !1), ne === 0 && se.needReadable && ((se.highWaterMark !== 0 ? se.length >= se.highWaterMark : se.length > 0) || se.ended)) + return s("read: emitReadable", se.length, se.ended), se.length === 0 && se.ended ? Q(this) : D(this), null; + if (ne = W(ne, se), ne === 0 && se.ended) + return se.length === 0 && Q(this), null; + var q = se.needReadable; + s("need readable", q), (se.length === 0 || se.length - ne < se.highWaterMark) && (q = !0, s("length less than watermark", q)), se.ended || se.reading ? (q = !1, s("reading or ended", q)) : q && (s("do read"), se.reading = !0, se.sync = !0, se.length === 0 && (se.needReadable = !0), this._read(se.highWaterMark), se.sync = !1, se.reading || (ne = W(Ce, se))); + var G; + return ne > 0 ? G = J(ne, se) : G = null, G === null ? (se.needReadable = se.length <= se.highWaterMark, ne = 0) : (se.length -= ne, se.awaitDrain = 0), se.length === 0 && (se.ended || (se.needReadable = !0), Ce !== ne && se.ended && Q(this)), G !== null && this.emit("data", G), G; + }; + function U(ne, se) { + if (s("onEofChunk"), !se.ended) { + if (se.decoder) { + var Ce = se.decoder.end(); + Ce && Ce.length && (se.buffer.push(Ce), se.length += se.objectMode ? 1 : Ce.length); + } + se.ended = !0, se.sync ? D(ne) : (se.needReadable = !1, se.emittedReadable || (se.emittedReadable = !0, B(ne))); + } + } + function D(ne) { + var se = ne._readableState; + s("emitReadable", se.needReadable, se.emittedReadable), se.needReadable = !1, se.emittedReadable || (s("emitReadable", se.flowing), se.emittedReadable = !0, u.nextTick(B, ne)); + } + function B(ne) { + var se = ne._readableState; + s("emitReadable_", se.destroyed, se.length, se.ended), !se.destroyed && (se.length || se.ended) && (ne.emit("readable"), se.emittedReadable = !1), se.needReadable = !se.flowing && !se.ended && se.length <= se.highWaterMark, oe(ne); + } + function j(ne, se) { + se.readingMore || (se.readingMore = !0, u.nextTick(V, ne, se)); + } + function V(ne, se) { + for (; !se.reading && !se.ended && (se.length < se.highWaterMark || se.flowing && se.length === 0); ) { + var Ce = se.length; + if (s("maybeReadMore read 0"), ne.read(0), Ce === se.length) + break; + } + se.readingMore = !1; + } + R.prototype._read = function(ne) { + z(this, new o("_read()")); + }, R.prototype.pipe = function(ne, se) { + var Ce = this, q = this._readableState; + switch (q.pipesCount) { + case 0: + q.pipes = ne; + break; + case 1: + q.pipes = [q.pipes, ne]; + break; + default: + q.pipes.push(ne); + break; + } + q.pipesCount += 1, s("pipe count=%d opts=%j", q.pipesCount, se); + var G = (!se || se.end !== !1) && ne !== u.stdout && ne !== u.stderr, Y = G ? we : Ve; + q.endEmitted ? u.nextTick(Y) : Ce.once("end", Y), ne.on("unpipe", fe); + function fe(Qe, tt) { + s("onunpipe"), Qe === Ce && tt && tt.hasUnpiped === !1 && (tt.hasUnpiped = !0, Ye()); + } + function we() { + s("onend"), ne.end(); + } + var _e = re(Ce); + ne.on("drain", _e); + var je = !1; + function Ye() { + s("cleanup"), ne.removeListener("close", ot), ne.removeListener("finish", Ue), ne.removeListener("drain", _e), ne.removeListener("error", ut), ne.removeListener("unpipe", fe), Ce.removeListener("end", we), Ce.removeListener("end", Ve), Ce.removeListener("data", nt), je = !0, q.awaitDrain && (!ne._writableState || ne._writableState.needDrain) && _e(); + } + Ce.on("data", nt); + function nt(Qe) { + s("ondata"); + var tt = ne.write(Qe); + s("dest.write", tt), tt === !1 && ((q.pipesCount === 1 && q.pipes === ne || q.pipesCount > 1 && ke(q.pipes, ne) !== -1) && !je && (s("false write response, pause", q.awaitDrain), q.awaitDrain++), Ce.pause()); + } + function ut(Qe) { + s("onerror", Qe), Ve(), ne.removeListener("error", ut), b(ne, "error") === 0 && z(ne, Qe); + } + M(ne, "error", ut); + function ot() { + ne.removeListener("finish", Ue), Ve(); + } + ne.once("close", ot); + function Ue() { + s("onfinish"), ne.removeListener("close", ot), Ve(); + } + ne.once("finish", Ue); + function Ve() { + s("unpipe"), Ce.unpipe(ne); + } + return ne.emit("pipe", Ce), q.flowing || (s("pipe resume"), Ce.resume()), ne; + }; + function re(ne) { + return function() { + var Ce = ne._readableState; + s("pipeOnDrain", Ce.awaitDrain), Ce.awaitDrain && Ce.awaitDrain--, Ce.awaitDrain === 0 && b(ne, "data") && (Ce.flowing = !0, oe(ne)); + }; + } + R.prototype.unpipe = function(ne) { + var se = this._readableState, Ce = { + hasUnpiped: !1 + }; + if (se.pipesCount === 0) + return this; + if (se.pipesCount === 1) + return ne && ne !== se.pipes ? this : (ne || (ne = se.pipes), se.pipes = null, se.pipesCount = 0, se.flowing = !1, ne && ne.emit("unpipe", this, Ce), this); + if (!ne) { + var q = se.pipes, G = se.pipesCount; + se.pipes = null, se.pipesCount = 0, se.flowing = !1; + for (var Y = 0; Y < G; Y++) + q[Y].emit("unpipe", this, { + hasUnpiped: !1 + }); + return this; + } + var fe = ke(se.pipes, ne); + return fe === -1 ? this : (se.pipes.splice(fe, 1), se.pipesCount -= 1, se.pipesCount === 1 && (se.pipes = se.pipes[0]), ne.emit("unpipe", this, Ce), this); + }, R.prototype.on = function(ne, se) { + var Ce = w.prototype.on.call(this, ne, se), q = this._readableState; + return ne === "data" ? (q.readableListening = this.listenerCount("readable") > 0, q.flowing !== !1 && this.resume()) : ne === "readable" && !q.endEmitted && !q.readableListening && (q.readableListening = q.needReadable = !0, q.flowing = !1, q.emittedReadable = !1, s("on readable", q.length, q.reading), q.length ? D(this) : q.reading || u.nextTick(ce, this)), Ce; + }, R.prototype.addListener = R.prototype.on, R.prototype.removeListener = function(ne, se) { + var Ce = w.prototype.removeListener.call(this, ne, se); + return ne === "readable" && u.nextTick(ee, this), Ce; + }, R.prototype.removeAllListeners = function(ne) { + var se = w.prototype.removeAllListeners.apply(this, arguments); + return (ne === "readable" || ne === void 0) && u.nextTick(ee, this), se; + }; + function ee(ne) { + var se = ne._readableState; + se.readableListening = ne.listenerCount("readable") > 0, se.resumeScheduled && !se.paused ? se.flowing = !0 : ne.listenerCount("data") > 0 && ne.resume(); + } + function ce(ne) { + s("readable nexttick read 0"), ne.read(0); + } + R.prototype.resume = function() { + var ne = this._readableState; + return ne.flowing || (s("resume"), ne.flowing = !ne.readableListening, ve(this, ne)), ne.paused = !1, this; + }; + function ve(ne, se) { + se.resumeScheduled || (se.resumeScheduled = !0, u.nextTick(ge, ne, se)); + } + function ge(ne, se) { + s("resume", se.reading), se.reading || ne.read(0), se.resumeScheduled = !1, ne.emit("resume"), oe(ne), se.flowing && !se.reading && ne.read(0); + } + R.prototype.pause = function() { + return s("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (s("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this; + }; + function oe(ne) { + var se = ne._readableState; + for (s("flow", se.flowing); se.flowing && ne.read() !== null; ) + ; + } + R.prototype.wrap = function(ne) { + var se = this, Ce = this._readableState, q = !1; + ne.on("end", function() { + if (s("wrapped end"), Ce.decoder && !Ce.ended) { + var fe = Ce.decoder.end(); + fe && fe.length && se.push(fe); + } + se.push(null); + }), ne.on("data", function(fe) { + if (s("wrapped data"), Ce.decoder && (fe = Ce.decoder.write(fe)), !(Ce.objectMode && fe == null) && !(!Ce.objectMode && (!fe || !fe.length))) { + var we = se.push(fe); + we || (q = !0, ne.pause()); + } + }); + for (var G in ne) + this[G] === void 0 && typeof ne[G] == "function" && (this[G] = function(we) { + return function() { + return ne[we].apply(ne, arguments); + }; + }(G)); + for (var Y = 0; Y < N.length; Y++) + ne.on(N[Y], this.emit.bind(this, N[Y])); + return this._read = function(fe) { + s("wrapped _read", fe), q && (q = !1, ne.resume()); + }, this; + }, typeof Symbol == "function" && (R.prototype[Symbol.asyncIterator] = function() { + return P === void 0 && (P = e("./internal/streams/async_iterator")), P(this); + }), Object.defineProperty(R.prototype, "readableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState.highWaterMark; + } + }), Object.defineProperty(R.prototype, "readableBuffer", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState && this._readableState.buffer; + } + }), Object.defineProperty(R.prototype, "readableFlowing", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState.flowing; + }, + set: function(se) { + this._readableState && (this._readableState.flowing = se); + } + }), R._fromList = J, Object.defineProperty(R.prototype, "readableLength", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState.length; + } + }); + function J(ne, se) { + if (se.length === 0) + return null; + var Ce; + return se.objectMode ? Ce = se.buffer.shift() : !ne || ne >= se.length ? (se.decoder ? Ce = se.buffer.join("") : se.buffer.length === 1 ? Ce = se.buffer.first() : Ce = se.buffer.concat(se.length), se.buffer.clear()) : Ce = se.buffer.consume(ne, se.decoder), Ce; + } + function Q(ne) { + var se = ne._readableState; + s("endReadable", se.endEmitted), se.endEmitted || (se.ended = !0, u.nextTick(he, se, ne)); + } + function he(ne, se) { + if (s("endReadableNT", ne.endEmitted, ne.length), !ne.endEmitted && ne.length === 0 && (ne.endEmitted = !0, se.readable = !1, se.emit("end"), ne.autoDestroy)) { + var Ce = se._writableState; + (!Ce || Ce.autoDestroy && Ce.finished) && se.destroy(); + } + } + typeof Symbol == "function" && (R.from = function(ne, se) { + return F === void 0 && (F = e("./internal/streams/from")), F(R, ne, se); + }); + function ke(ne, se) { + for (var Ce = 0, q = ne.length; Ce < q; Ce++) + if (ne[Ce] === se) + return Ce; + return -1; + } + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { "../errors": 477, "./_stream_duplex": 478, "./internal/streams/async_iterator": 483, "./internal/streams/buffer_list": 484, "./internal/streams/destroy": 485, "./internal/streams/from": 487, "./internal/streams/state": 489, "./internal/streams/stream": 490, _process: 467, buffer: 216, events: 367, inherits: 387, "string_decoder/": 520, util: 185 }], 481: [function(e, x, _) { + x.exports = h; + var u = e("../errors").codes, m = u.ERR_METHOD_NOT_IMPLEMENTED, g = u.ERR_MULTIPLE_CALLBACK, b = u.ERR_TRANSFORM_ALREADY_TRANSFORMING, w = u.ERR_TRANSFORM_WITH_LENGTH_0, f = e("./_stream_duplex"); + e("inherits")(h, f); + function y(s, v) { + var c = this._transformState; + c.transforming = !1; + var a = c.writecb; + if (a === null) + return this.emit("error", new g()); + c.writechunk = null, c.writecb = null, v != null && this.push(v), a(s); + var r = this._readableState; + r.reading = !1, (r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark); + } + function h(s) { + if (!(this instanceof h)) + return new h(s); + f.call(this, s), this._transformState = { + afterTransform: y.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null + }, this._readableState.needReadable = !0, this._readableState.sync = !1, s && (typeof s.transform == "function" && (this._transform = s.transform), typeof s.flush == "function" && (this._flush = s.flush)), this.on("prefinish", l); + } + function l() { + var s = this; + typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(v, c) { + d(s, v, c); + }) : d(this, null, null); + } + h.prototype.push = function(s, v) { + return this._transformState.needTransform = !1, f.prototype.push.call(this, s, v); + }, h.prototype._transform = function(s, v, c) { + c(new m("_transform()")); + }, h.prototype._write = function(s, v, c) { + var a = this._transformState; + if (a.writecb = c, a.writechunk = s, a.writeencoding = v, !a.transforming) { + var r = this._readableState; + (a.needTransform || r.needReadable || r.length < r.highWaterMark) && this._read(r.highWaterMark); + } + }, h.prototype._read = function(s) { + var v = this._transformState; + v.writechunk !== null && !v.transforming ? (v.transforming = !0, this._transform(v.writechunk, v.writeencoding, v.afterTransform)) : v.needTransform = !0; + }, h.prototype._destroy = function(s, v) { + f.prototype._destroy.call(this, s, function(c) { + v(c); + }); + }; + function d(s, v, c) { + if (v) + return s.emit("error", v); + if (c != null && s.push(c), s._writableState.length) + throw new w(); + if (s._transformState.transforming) + throw new b(); + return s.push(null); + } + }, { "../errors": 477, "./_stream_duplex": 478, inherits: 387 }], 482: [function(e, x, _) { + (function(u, m) { + x.exports = I; + function g(oe) { + var J = this; + this.next = null, this.entry = null, this.finish = function() { + ge(J, oe); + }; + } + var b; + I.WritableState = N; + var w = { + deprecate: e("util-deprecate") + }, f = e("./internal/streams/stream"), y = e("buffer").Buffer, h = m.Uint8Array || function() { + }; + function l(oe) { + return y.from(oe); + } + function d(oe) { + return y.isBuffer(oe) || oe instanceof h; + } + var s = e("./internal/streams/destroy"), v = e("./internal/streams/state"), c = v.getHighWaterMark, a = e("../errors").codes, r = a.ERR_INVALID_ARG_TYPE, t = a.ERR_METHOD_NOT_IMPLEMENTED, i = a.ERR_MULTIPLE_CALLBACK, n = a.ERR_STREAM_CANNOT_PIPE, o = a.ERR_STREAM_DESTROYED, p = a.ERR_STREAM_NULL_VALUES, O = a.ERR_STREAM_WRITE_AFTER_END, P = a.ERR_UNKNOWN_ENCODING, F = s.errorOrDestroy; + e("inherits")(I, f); + function z() { + } + function N(oe, J, Q) { + b = b || e("./_stream_duplex"), oe = oe || {}, typeof Q != "boolean" && (Q = J instanceof b), this.objectMode = !!oe.objectMode, Q && (this.objectMode = this.objectMode || !!oe.writableObjectMode), this.highWaterMark = c(this, oe, "writableHighWaterMark", Q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; + var he = oe.decodeStrings === !1; + this.decodeStrings = !he, this.defaultEncoding = oe.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ke) { + U(J, ke); + }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = oe.emitClose !== !1, this.autoDestroy = !!oe.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new g(this); + } + N.prototype.getBuffer = function() { + for (var J = this.bufferedRequest, Q = []; J; ) + Q.push(J), J = J.next; + return Q; + }, function() { + try { + Object.defineProperty(N.prototype, "buffer", { + get: w.deprecate(function() { + return this.getBuffer(); + }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") + }); + } catch (oe) { + } + }(); + var M; + typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (M = Function.prototype[Symbol.hasInstance], Object.defineProperty(I, Symbol.hasInstance, { + value: function(J) { + return M.call(this, J) ? !0 : this !== I ? !1 : J && J._writableState instanceof N; + } + })) : M = function(J) { + return J instanceof this; + }; + function I(oe) { + b = b || e("./_stream_duplex"); + var J = this instanceof b; + if (!J && !M.call(I, this)) + return new I(oe); + this._writableState = new N(oe, this, J), this.writable = !0, oe && (typeof oe.write == "function" && (this._write = oe.write), typeof oe.writev == "function" && (this._writev = oe.writev), typeof oe.destroy == "function" && (this._destroy = oe.destroy), typeof oe.final == "function" && (this._final = oe.final)), f.call(this); + } + I.prototype.pipe = function() { + F(this, new n()); + }; + function R(oe, J) { + var Q = new O(); + F(oe, Q), u.nextTick(J, Q); + } + function C(oe, J, Q, he) { + var ke; + return Q === null ? ke = new p() : typeof Q != "string" && !J.objectMode && (ke = new r("chunk", ["string", "Buffer"], Q)), ke ? (F(oe, ke), u.nextTick(he, ke), !1) : !0; + } + I.prototype.write = function(oe, J, Q) { + var he = this._writableState, ke = !1, ne = !he.objectMode && d(oe); + return ne && !y.isBuffer(oe) && (oe = l(oe)), typeof J == "function" && (Q = J, J = null), ne ? J = "buffer" : J || (J = he.defaultEncoding), typeof Q != "function" && (Q = z), he.ending ? R(this, Q) : (ne || C(this, he, oe, Q)) && (he.pendingcb++, ke = A(this, he, ne, oe, J, Q)), ke; + }, I.prototype.cork = function() { + this._writableState.corked++; + }, I.prototype.uncork = function() { + var oe = this._writableState; + oe.corked && (oe.corked--, !oe.writing && !oe.corked && !oe.bufferProcessing && oe.bufferedRequest && j(this, oe)); + }, I.prototype.setDefaultEncoding = function(J) { + if (typeof J == "string" && (J = J.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((J + "").toLowerCase()) > -1)) + throw new P(J); + return this._writableState.defaultEncoding = J, this; + }, Object.defineProperty(I.prototype, "writableBuffer", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState && this._writableState.getBuffer(); + } + }); + function E(oe, J, Q) { + return !oe.objectMode && oe.decodeStrings !== !1 && typeof J == "string" && (J = y.from(J, Q)), J; + } + Object.defineProperty(I.prototype, "writableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.highWaterMark; + } + }); + function A(oe, J, Q, he, ke, ne) { + if (!Q) { + var se = E(J, he, ke); + he !== se && (Q = !0, ke = "buffer", he = se); + } + var Ce = J.objectMode ? 1 : he.length; + J.length += Ce; + var q = J.length < J.highWaterMark; + if (q || (J.needDrain = !0), J.writing || J.corked) { + var G = J.lastBufferedRequest; + J.lastBufferedRequest = { + chunk: he, + encoding: ke, + isBuf: Q, + callback: ne, + next: null + }, G ? G.next = J.lastBufferedRequest : J.bufferedRequest = J.lastBufferedRequest, J.bufferedRequestCount += 1; + } else + L(oe, J, !1, Ce, he, ke, ne); + return q; + } + function L(oe, J, Q, he, ke, ne, se) { + J.writelen = he, J.writecb = se, J.writing = !0, J.sync = !0, J.destroyed ? J.onwrite(new o("write")) : Q ? oe._writev(ke, J.onwrite) : oe._write(ke, ne, J.onwrite), J.sync = !1; + } + function $(oe, J, Q, he, ke) { + --J.pendingcb, Q ? (u.nextTick(ke, he), u.nextTick(ce, oe, J), oe._writableState.errorEmitted = !0, F(oe, he)) : (ke(he), oe._writableState.errorEmitted = !0, F(oe, he), ce(oe, J)); + } + function W(oe) { + oe.writing = !1, oe.writecb = null, oe.length -= oe.writelen, oe.writelen = 0; + } + function U(oe, J) { + var Q = oe._writableState, he = Q.sync, ke = Q.writecb; + if (typeof ke != "function") + throw new i(); + if (W(Q), J) + $(oe, Q, he, J, ke); + else { + var ne = V(Q) || oe.destroyed; + !ne && !Q.corked && !Q.bufferProcessing && Q.bufferedRequest && j(oe, Q), he ? u.nextTick(D, oe, Q, ne, ke) : D(oe, Q, ne, ke); + } + } + function D(oe, J, Q, he) { + Q || B(oe, J), J.pendingcb--, he(), ce(oe, J); + } + function B(oe, J) { + J.length === 0 && J.needDrain && (J.needDrain = !1, oe.emit("drain")); + } + function j(oe, J) { + J.bufferProcessing = !0; + var Q = J.bufferedRequest; + if (oe._writev && Q && Q.next) { + var he = J.bufferedRequestCount, ke = new Array(he), ne = J.corkedRequestsFree; + ne.entry = Q; + for (var se = 0, Ce = !0; Q; ) + ke[se] = Q, Q.isBuf || (Ce = !1), Q = Q.next, se += 1; + ke.allBuffers = Ce, L(oe, J, !0, J.length, ke, "", ne.finish), J.pendingcb++, J.lastBufferedRequest = null, ne.next ? (J.corkedRequestsFree = ne.next, ne.next = null) : J.corkedRequestsFree = new g(J), J.bufferedRequestCount = 0; + } else { + for (; Q; ) { + var q = Q.chunk, G = Q.encoding, Y = Q.callback, fe = J.objectMode ? 1 : q.length; + if (L(oe, J, !1, fe, q, G, Y), Q = Q.next, J.bufferedRequestCount--, J.writing) + break; + } + Q === null && (J.lastBufferedRequest = null); + } + J.bufferedRequest = Q, J.bufferProcessing = !1; + } + I.prototype._write = function(oe, J, Q) { + Q(new t("_write()")); + }, I.prototype._writev = null, I.prototype.end = function(oe, J, Q) { + var he = this._writableState; + return typeof oe == "function" ? (Q = oe, oe = null, J = null) : typeof J == "function" && (Q = J, J = null), oe != null && this.write(oe, J), he.corked && (he.corked = 1, this.uncork()), he.ending || ve(this, he, Q), this; + }, Object.defineProperty(I.prototype, "writableLength", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.length; + } + }); + function V(oe) { + return oe.ending && oe.length === 0 && oe.bufferedRequest === null && !oe.finished && !oe.writing; + } + function re(oe, J) { + oe._final(function(Q) { + J.pendingcb--, Q && F(oe, Q), J.prefinished = !0, oe.emit("prefinish"), ce(oe, J); + }); + } + function ee(oe, J) { + !J.prefinished && !J.finalCalled && (typeof oe._final == "function" && !J.destroyed ? (J.pendingcb++, J.finalCalled = !0, u.nextTick(re, oe, J)) : (J.prefinished = !0, oe.emit("prefinish"))); + } + function ce(oe, J) { + var Q = V(J); + if (Q && (ee(oe, J), J.pendingcb === 0 && (J.finished = !0, oe.emit("finish"), J.autoDestroy))) { + var he = oe._readableState; + (!he || he.autoDestroy && he.endEmitted) && oe.destroy(); + } + return Q; + } + function ve(oe, J, Q) { + J.ending = !0, ce(oe, J), Q && (J.finished ? u.nextTick(Q) : oe.once("finish", Q)), J.ended = !0, oe.writable = !1; + } + function ge(oe, J, Q) { + var he = oe.entry; + for (oe.entry = null; he; ) { + var ke = he.callback; + J.pendingcb--, ke(Q), he = he.next; + } + J.corkedRequestsFree.next = oe; + } + Object.defineProperty(I.prototype, "destroyed", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState === void 0 ? !1 : this._writableState.destroyed; + }, + set: function(J) { + this._writableState && (this._writableState.destroyed = J); + } + }), I.prototype.destroy = s.destroy, I.prototype._undestroy = s.undestroy, I.prototype._destroy = function(oe, J) { + J(oe); + }; + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { "../errors": 477, "./_stream_duplex": 478, "./internal/streams/destroy": 485, "./internal/streams/state": 489, "./internal/streams/stream": 490, _process: 467, buffer: 216, inherits: 387, "util-deprecate": 522 }], 483: [function(e, x, _) { + (function(u) { + var m; + function g(o, p, O) { + return p in o ? Object.defineProperty(o, p, { + value: O, + enumerable: !0, + configurable: !0, + writable: !0 + }) : o[p] = O, o; + } + var b = e("./end-of-stream"), w = Symbol("lastResolve"), f = Symbol("lastReject"), y = Symbol("error"), h = Symbol("ended"), l = Symbol("lastPromise"), d = Symbol("handlePromise"), s = Symbol("stream"); + function v(o, p) { + return { + value: o, + done: p + }; + } + function c(o) { + var p = o[w]; + if (p !== null) { + var O = o[s].read(); + O !== null && (o[l] = null, o[w] = null, o[f] = null, p(v(O, !1))); + } + } + function a(o) { + u.nextTick(c, o); + } + function r(o, p) { + return function(O, P) { + o.then(function() { + if (p[h]) { + O(v(void 0, !0)); + return; + } + p[d](O, P); + }, P); + }; + } + var t = Object.getPrototypeOf(function() { + }), i = Object.setPrototypeOf((m = { + get stream() { + return this[s]; + }, + next: function() { + var p = this, O = this[y]; + if (O !== null) + return Promise.reject(O); + if (this[h]) + return Promise.resolve(v(void 0, !0)); + if (this[s].destroyed) + return new Promise(function(N, M) { + u.nextTick(function() { + p[y] ? M(p[y]) : N(v(void 0, !0)); + }); + }); + var P = this[l], F; + if (P) + F = new Promise(r(P, this)); + else { + var z = this[s].read(); + if (z !== null) + return Promise.resolve(v(z, !1)); + F = new Promise(this[d]); + } + return this[l] = F, F; + } + }, g(m, Symbol.asyncIterator, function() { + return this; + }), g(m, "return", function() { + var p = this; + return new Promise(function(O, P) { + p[s].destroy(null, function(F) { + if (F) { + P(F); + return; + } + O(v(void 0, !0)); + }); + }); + }), m), t), n = function(p) { + var O, P = Object.create(i, (O = {}, g(O, s, { + value: p, + writable: !0 + }), g(O, w, { + value: null, + writable: !0 + }), g(O, f, { + value: null, + writable: !0 + }), g(O, y, { + value: null, + writable: !0 + }), g(O, h, { + value: p._readableState.endEmitted, + writable: !0 + }), g(O, d, { + value: function(z, N) { + var M = P[s].read(); + M ? (P[l] = null, P[w] = null, P[f] = null, z(v(M, !1))) : (P[w] = z, P[f] = N); + }, + writable: !0 + }), O)); + return P[l] = null, b(p, function(F) { + if (F && F.code !== "ERR_STREAM_PREMATURE_CLOSE") { + var z = P[f]; + z !== null && (P[l] = null, P[w] = null, P[f] = null, z(F)), P[y] = F; + return; + } + var N = P[w]; + N !== null && (P[l] = null, P[w] = null, P[f] = null, N(v(void 0, !0))), P[h] = !0; + }), p.on("readable", a.bind(null, P)), P; + }; + x.exports = n; + }).call(this, e("_process")); + }, { "./end-of-stream": 486, _process: 467 }], 484: [function(e, x, _) { + function u(c, a) { + var r = Object.keys(c); + if (Object.getOwnPropertySymbols) { + var t = Object.getOwnPropertySymbols(c); + a && (t = t.filter(function(i) { + return Object.getOwnPropertyDescriptor(c, i).enumerable; + })), r.push.apply(r, t); + } + return r; + } + function m(c) { + for (var a = 1; a < arguments.length; a++) { + var r = arguments[a] != null ? arguments[a] : {}; + a % 2 ? u(Object(r), !0).forEach(function(t) { + g(c, t, r[t]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(r)) : u(Object(r)).forEach(function(t) { + Object.defineProperty(c, t, Object.getOwnPropertyDescriptor(r, t)); + }); + } + return c; + } + function g(c, a, r) { + return a in c ? Object.defineProperty(c, a, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : c[a] = r, c; + } + function b(c, a) { + if (!(c instanceof a)) + throw new TypeError("Cannot call a class as a function"); + } + function w(c, a) { + for (var r = 0; r < a.length; r++) { + var t = a[r]; + t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(c, t.key, t); + } + } + function f(c, a, r) { + return a && w(c.prototype, a), r && w(c, r), c; + } + var y = e("buffer"), h = y.Buffer, l = e("util"), d = l.inspect, s = d && d.custom || "inspect"; + function v(c, a, r) { + h.prototype.copy.call(c, a, r); + } + x.exports = /* @__PURE__ */ function() { + function c() { + b(this, c), this.head = null, this.tail = null, this.length = 0; + } + return f(c, [{ + key: "push", + value: function(r) { + var t = { + data: r, + next: null + }; + this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length; + } + }, { + key: "unshift", + value: function(r) { + var t = { + data: r, + next: this.head + }; + this.length === 0 && (this.tail = t), this.head = t, ++this.length; + } + }, { + key: "shift", + value: function() { + if (this.length !== 0) { + var r = this.head.data; + return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, r; + } + } + }, { + key: "clear", + value: function() { + this.head = this.tail = null, this.length = 0; + } + }, { + key: "join", + value: function(r) { + if (this.length === 0) + return ""; + for (var t = this.head, i = "" + t.data; t = t.next; ) + i += r + t.data; + return i; + } + }, { + key: "concat", + value: function(r) { + if (this.length === 0) + return h.alloc(0); + for (var t = h.allocUnsafe(r >>> 0), i = this.head, n = 0; i; ) + v(i.data, t, n), n += i.data.length, i = i.next; + return t; + } + // Consumes a specified amount of bytes or characters from the buffered data. + }, { + key: "consume", + value: function(r, t) { + var i; + return r < this.head.data.length ? (i = this.head.data.slice(0, r), this.head.data = this.head.data.slice(r)) : r === this.head.data.length ? i = this.shift() : i = t ? this._getString(r) : this._getBuffer(r), i; + } + }, { + key: "first", + value: function() { + return this.head.data; + } + // Consumes a specified amount of characters from the buffered data. + }, { + key: "_getString", + value: function(r) { + var t = this.head, i = 1, n = t.data; + for (r -= n.length; t = t.next; ) { + var o = t.data, p = r > o.length ? o.length : r; + if (p === o.length ? n += o : n += o.slice(0, r), r -= p, r === 0) { + p === o.length ? (++i, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = o.slice(p)); + break; + } + ++i; + } + return this.length -= i, n; + } + // Consumes a specified amount of bytes from the buffered data. + }, { + key: "_getBuffer", + value: function(r) { + var t = h.allocUnsafe(r), i = this.head, n = 1; + for (i.data.copy(t), r -= i.data.length; i = i.next; ) { + var o = i.data, p = r > o.length ? o.length : r; + if (o.copy(t, t.length - r, 0, p), r -= p, r === 0) { + p === o.length ? (++n, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = o.slice(p)); + break; + } + ++n; + } + return this.length -= n, t; + } + // Make sure the linked list only shows the minimal necessary information. + }, { + key: s, + value: function(r, t) { + return d(this, m({}, t, { + // Only inspect one level. + depth: 0, + // It should not recurse. + customInspect: !1 + })); + } + }]), c; + }(); + }, { buffer: 216, util: 185 }], 485: [function(e, x, _) { + (function(u) { + function m(h, l) { + var d = this, s = this._readableState && this._readableState.destroyed, v = this._writableState && this._writableState.destroyed; + return s || v ? (l ? l(h) : h && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, u.nextTick(f, this, h)) : u.nextTick(f, this, h)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(h || null, function(c) { + !l && c ? d._writableState ? d._writableState.errorEmitted ? u.nextTick(b, d) : (d._writableState.errorEmitted = !0, u.nextTick(g, d, c)) : u.nextTick(g, d, c) : l ? (u.nextTick(b, d), l(c)) : u.nextTick(b, d); + }), this); + } + function g(h, l) { + f(h, l), b(h); + } + function b(h) { + h._writableState && !h._writableState.emitClose || h._readableState && !h._readableState.emitClose || h.emit("close"); + } + function w() { + this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); + } + function f(h, l) { + h.emit("error", l); + } + function y(h, l) { + var d = h._readableState, s = h._writableState; + d && d.autoDestroy || s && s.autoDestroy ? h.destroy(l) : h.emit("error", l); + } + x.exports = { + destroy: m, + undestroy: w, + errorOrDestroy: y + }; + }).call(this, e("_process")); + }, { _process: 467 }], 486: [function(e, x, _) { + var u = e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE; + function m(f) { + var y = !1; + return function() { + if (!y) { + y = !0; + for (var h = arguments.length, l = new Array(h), d = 0; d < h; d++) + l[d] = arguments[d]; + f.apply(this, l); + } + }; + } + function g() { + } + function b(f) { + return f.setHeader && typeof f.abort == "function"; + } + function w(f, y, h) { + if (typeof y == "function") + return w(f, null, y); + y || (y = {}), h = m(h || g); + var l = y.readable || y.readable !== !1 && f.readable, d = y.writable || y.writable !== !1 && f.writable, s = function() { + f.writable || c(); + }, v = f._writableState && f._writableState.finished, c = function() { + d = !1, v = !0, l || h.call(f); + }, a = f._readableState && f._readableState.endEmitted, r = function() { + l = !1, a = !0, d || h.call(f); + }, t = function(p) { + h.call(f, p); + }, i = function() { + var p; + if (l && !a) + return (!f._readableState || !f._readableState.ended) && (p = new u()), h.call(f, p); + if (d && !v) + return (!f._writableState || !f._writableState.ended) && (p = new u()), h.call(f, p); + }, n = function() { + f.req.on("finish", c); + }; + return b(f) ? (f.on("complete", c), f.on("abort", i), f.req ? n() : f.on("request", n)) : d && !f._writableState && (f.on("end", s), f.on("close", s)), f.on("end", r), f.on("finish", c), y.error !== !1 && f.on("error", t), f.on("close", i), function() { + f.removeListener("complete", c), f.removeListener("abort", i), f.removeListener("request", n), f.req && f.req.removeListener("finish", c), f.removeListener("end", s), f.removeListener("close", s), f.removeListener("finish", c), f.removeListener("end", r), f.removeListener("error", t), f.removeListener("close", i); + }; + } + x.exports = w; + }, { "../../../errors": 477 }], 487: [function(e, x, _) { + x.exports = function() { + throw new Error("Readable.from is not available in the browser"); + }; + }, {}], 488: [function(e, x, _) { + var u; + function m(c) { + var a = !1; + return function() { + a || (a = !0, c.apply(void 0, arguments)); + }; + } + var g = e("../../../errors").codes, b = g.ERR_MISSING_ARGS, w = g.ERR_STREAM_DESTROYED; + function f(c) { + if (c) + throw c; + } + function y(c) { + return c.setHeader && typeof c.abort == "function"; + } + function h(c, a, r, t) { + t = m(t); + var i = !1; + c.on("close", function() { + i = !0; + }), u === void 0 && (u = e("./end-of-stream")), u(c, { + readable: a, + writable: r + }, function(o) { + if (o) + return t(o); + i = !0, t(); + }); + var n = !1; + return function(o) { + if (!i && !n) { + if (n = !0, y(c)) + return c.abort(); + if (typeof c.destroy == "function") + return c.destroy(); + t(o || new w("pipe")); + } + }; + } + function l(c) { + c(); + } + function d(c, a) { + return c.pipe(a); + } + function s(c) { + return !c.length || typeof c[c.length - 1] != "function" ? f : c.pop(); + } + function v() { + for (var c = arguments.length, a = new Array(c), r = 0; r < c; r++) + a[r] = arguments[r]; + var t = s(a); + if (Array.isArray(a[0]) && (a = a[0]), a.length < 2) + throw new b("streams"); + var i, n = a.map(function(o, p) { + var O = p < a.length - 1, P = p > 0; + return h(o, O, P, function(F) { + i || (i = F), F && n.forEach(l), !O && (n.forEach(l), t(i)); + }); + }); + return a.reduce(d); + } + x.exports = v; + }, { "../../../errors": 477, "./end-of-stream": 486 }], 489: [function(e, x, _) { + var u = e("../../../errors").codes.ERR_INVALID_OPT_VALUE; + function m(b, w, f) { + return b.highWaterMark != null ? b.highWaterMark : w ? b[f] : null; + } + function g(b, w, f, y) { + var h = m(w, y, f); + if (h != null) { + if (!(isFinite(h) && Math.floor(h) === h) || h < 0) { + var l = y ? f : "highWaterMark"; + throw new u(l, h); + } + return Math.floor(h); + } + return b.objectMode ? 16 : 16 * 1024; + } + x.exports = { + getHighWaterMark: g + }; + }, { "../../../errors": 477 }], 490: [function(e, x, _) { + x.exports = e("events").EventEmitter; + }, { events: 367 }], 491: [function(e, x, _) { + _ = x.exports = e("./lib/_stream_readable.js"), _.Stream = _, _.Readable = _, _.Writable = e("./lib/_stream_writable.js"), _.Duplex = e("./lib/_stream_duplex.js"), _.Transform = e("./lib/_stream_transform.js"), _.PassThrough = e("./lib/_stream_passthrough.js"), _.finished = e("./lib/internal/streams/end-of-stream.js"), _.pipeline = e("./lib/internal/streams/pipeline.js"); + }, { "./lib/_stream_duplex.js": 478, "./lib/_stream_passthrough.js": 479, "./lib/_stream_readable.js": 480, "./lib/_stream_transform.js": 481, "./lib/_stream_writable.js": 482, "./lib/internal/streams/end-of-stream.js": 486, "./lib/internal/streams/pipeline.js": 488 }], 492: [function(e, x, _) { + function u(g) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(w) { + return typeof w; + } : u = function(w) { + return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w; + }, u(g); + } + var m = function(g) { + var b = Object.prototype, w = b.hasOwnProperty, f, y = typeof Symbol == "function" ? Symbol : {}, h = y.iterator || "@@iterator", l = y.asyncIterator || "@@asyncIterator", d = y.toStringTag || "@@toStringTag"; + function s(U, D, B) { + return Object.defineProperty(U, D, { + value: B, + enumerable: !0, + configurable: !0, + writable: !0 + }), U[D]; + } + try { + s({}, ""); + } catch (U) { + s = function(B, j, V) { + return B[j] = V; + }; + } + function v(U, D, B, j) { + var V = D && D.prototype instanceof o ? D : o, re = Object.create(V.prototype), ee = new L(j || []); + return re._invoke = R(U, B, ee), re; + } + g.wrap = v; + function c(U, D, B) { + try { + return { + type: "normal", + arg: U.call(D, B) + }; + } catch (j) { + return { + type: "throw", + arg: j + }; + } + } + var a = "suspendedStart", r = "suspendedYield", t = "executing", i = "completed", n = {}; + function o() { + } + function p() { + } + function O() { + } + var P = {}; + P[h] = function() { + return this; + }; + var F = Object.getPrototypeOf, z = F && F(F($([]))); + z && z !== b && w.call(z, h) && (P = z); + var N = O.prototype = o.prototype = Object.create(P); + p.prototype = N.constructor = O, O.constructor = p, p.displayName = s(O, d, "GeneratorFunction"); + function M(U) { + ["next", "throw", "return"].forEach(function(D) { + s(U, D, function(B) { + return this._invoke(D, B); + }); + }); + } + g.isGeneratorFunction = function(U) { + var D = typeof U == "function" && U.constructor; + return D ? D === p || // For the native GeneratorFunction constructor, the best we can + // do is to check its .name property. + (D.displayName || D.name) === "GeneratorFunction" : !1; + }, g.mark = function(U) { + return Object.setPrototypeOf ? Object.setPrototypeOf(U, O) : (U.__proto__ = O, s(U, d, "GeneratorFunction")), U.prototype = Object.create(N), U; + }, g.awrap = function(U) { + return { + __await: U + }; + }; + function I(U, D) { + function B(re, ee, ce, ve) { + var ge = c(U[re], U, ee); + if (ge.type === "throw") + ve(ge.arg); + else { + var oe = ge.arg, J = oe.value; + return J && u(J) === "object" && w.call(J, "__await") ? D.resolve(J.__await).then(function(Q) { + B("next", Q, ce, ve); + }, function(Q) { + B("throw", Q, ce, ve); + }) : D.resolve(J).then(function(Q) { + oe.value = Q, ce(oe); + }, function(Q) { + return B("throw", Q, ce, ve); + }); + } + } + var j; + function V(re, ee) { + function ce() { + return new D(function(ve, ge) { + B(re, ee, ve, ge); + }); + } + return j = // If enqueue has been called before, then we want to wait until + // all previous Promises have been resolved before calling invoke, + // so that results are always delivered in the correct order. If + // enqueue has not been called before, then it is important to + // call invoke immediately, without waiting on a callback to fire, + // so that the async generator function has the opportunity to do + // any necessary setup in a predictable way. This predictability + // is why the Promise constructor synchronously invokes its + // executor callback, and why async functions synchronously + // execute code before the first await. Since we implement simple + // async functions in terms of async generators, it is especially + // important to get this right, even though it requires care. + j ? j.then( + ce, + // Avoid propagating failures to Promises returned by later + // invocations of the iterator. + ce + ) : ce(); + } + this._invoke = V; + } + M(I.prototype), I.prototype[l] = function() { + return this; + }, g.AsyncIterator = I, g.async = function(U, D, B, j, V) { + V === void 0 && (V = Promise); + var re = new I(v(U, D, B, j), V); + return g.isGeneratorFunction(D) ? re : re.next().then(function(ee) { + return ee.done ? ee.value : re.next(); + }); + }; + function R(U, D, B) { + var j = a; + return function(re, ee) { + if (j === t) + throw new Error("Generator is already running"); + if (j === i) { + if (re === "throw") + throw ee; + return W(); + } + for (B.method = re, B.arg = ee; ; ) { + var ce = B.delegate; + if (ce) { + var ve = C(ce, B); + if (ve) { + if (ve === n) + continue; + return ve; + } + } + if (B.method === "next") + B.sent = B._sent = B.arg; + else if (B.method === "throw") { + if (j === a) + throw j = i, B.arg; + B.dispatchException(B.arg); + } else + B.method === "return" && B.abrupt("return", B.arg); + j = t; + var ge = c(U, D, B); + if (ge.type === "normal") { + if (j = B.done ? i : r, ge.arg === n) + continue; + return { + value: ge.arg, + done: B.done + }; + } else + ge.type === "throw" && (j = i, B.method = "throw", B.arg = ge.arg); + } + }; + } + function C(U, D) { + var B = U.iterator[D.method]; + if (B === f) { + if (D.delegate = null, D.method === "throw") { + if (U.iterator.return && (D.method = "return", D.arg = f, C(U, D), D.method === "throw")) + return n; + D.method = "throw", D.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return n; + } + var j = c(B, U.iterator, D.arg); + if (j.type === "throw") + return D.method = "throw", D.arg = j.arg, D.delegate = null, n; + var V = j.arg; + if (!V) + return D.method = "throw", D.arg = new TypeError("iterator result is not an object"), D.delegate = null, n; + if (V.done) + D[U.resultName] = V.value, D.next = U.nextLoc, D.method !== "return" && (D.method = "next", D.arg = f); + else + return V; + return D.delegate = null, n; + } + M(N), s(N, d, "Generator"), N[h] = function() { + return this; + }, N.toString = function() { + return "[object Generator]"; + }; + function E(U) { + var D = { + tryLoc: U[0] + }; + 1 in U && (D.catchLoc = U[1]), 2 in U && (D.finallyLoc = U[2], D.afterLoc = U[3]), this.tryEntries.push(D); + } + function A(U) { + var D = U.completion || {}; + D.type = "normal", delete D.arg, U.completion = D; + } + function L(U) { + this.tryEntries = [{ + tryLoc: "root" + }], U.forEach(E, this), this.reset(!0); + } + g.keys = function(U) { + var D = []; + for (var B in U) + D.push(B); + return D.reverse(), function j() { + for (; D.length; ) { + var V = D.pop(); + if (V in U) + return j.value = V, j.done = !1, j; + } + return j.done = !0, j; + }; + }; + function $(U) { + if (U) { + var D = U[h]; + if (D) + return D.call(U); + if (typeof U.next == "function") + return U; + if (!isNaN(U.length)) { + var B = -1, j = function V() { + for (; ++B < U.length; ) + if (w.call(U, B)) + return V.value = U[B], V.done = !1, V; + return V.value = f, V.done = !0, V; + }; + return j.next = j; + } + } + return { + next: W + }; + } + g.values = $; + function W() { + return { + value: f, + done: !0 + }; + } + return L.prototype = { + constructor: L, + reset: function(D) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = f, this.done = !1, this.delegate = null, this.method = "next", this.arg = f, this.tryEntries.forEach(A), !D) + for (var B in this) + B.charAt(0) === "t" && w.call(this, B) && !isNaN(+B.slice(1)) && (this[B] = f); + }, + stop: function() { + this.done = !0; + var D = this.tryEntries[0], B = D.completion; + if (B.type === "throw") + throw B.arg; + return this.rval; + }, + dispatchException: function(D) { + if (this.done) + throw D; + var B = this; + function j(ge, oe) { + return ee.type = "throw", ee.arg = D, B.next = ge, oe && (B.method = "next", B.arg = f), !!oe; + } + for (var V = this.tryEntries.length - 1; V >= 0; --V) { + var re = this.tryEntries[V], ee = re.completion; + if (re.tryLoc === "root") + return j("end"); + if (re.tryLoc <= this.prev) { + var ce = w.call(re, "catchLoc"), ve = w.call(re, "finallyLoc"); + if (ce && ve) { + if (this.prev < re.catchLoc) + return j(re.catchLoc, !0); + if (this.prev < re.finallyLoc) + return j(re.finallyLoc); + } else if (ce) { + if (this.prev < re.catchLoc) + return j(re.catchLoc, !0); + } else if (ve) { + if (this.prev < re.finallyLoc) + return j(re.finallyLoc); + } else + throw new Error("try statement without catch or finally"); + } + } + }, + abrupt: function(D, B) { + for (var j = this.tryEntries.length - 1; j >= 0; --j) { + var V = this.tryEntries[j]; + if (V.tryLoc <= this.prev && w.call(V, "finallyLoc") && this.prev < V.finallyLoc) { + var re = V; + break; + } + } + re && (D === "break" || D === "continue") && re.tryLoc <= B && B <= re.finallyLoc && (re = null); + var ee = re ? re.completion : {}; + return ee.type = D, ee.arg = B, re ? (this.method = "next", this.next = re.finallyLoc, n) : this.complete(ee); + }, + complete: function(D, B) { + if (D.type === "throw") + throw D.arg; + return D.type === "break" || D.type === "continue" ? this.next = D.arg : D.type === "return" ? (this.rval = this.arg = D.arg, this.method = "return", this.next = "end") : D.type === "normal" && B && (this.next = B), n; + }, + finish: function(D) { + for (var B = this.tryEntries.length - 1; B >= 0; --B) { + var j = this.tryEntries[B]; + if (j.finallyLoc === D) + return this.complete(j.completion, j.afterLoc), A(j), n; + } + }, + catch: function(D) { + for (var B = this.tryEntries.length - 1; B >= 0; --B) { + var j = this.tryEntries[B]; + if (j.tryLoc === D) { + var V = j.completion; + if (V.type === "throw") { + var re = V.arg; + A(j); + } + return re; + } + } + throw new Error("illegal catch attempt"); + }, + delegateYield: function(D, B, j) { + return this.delegate = { + iterator: $(D), + resultName: B, + nextLoc: j + }, this.method === "next" && (this.arg = f), n; + } + }, g; + }( + // If this script is executing as a CommonJS module, use module.exports + // as the regeneratorRuntime namespace. Otherwise create a new empty + // object. Either way, the resulting object will be used to initialize + // the regeneratorRuntime variable at the top of this file. + (typeof x == "undefined" ? "undefined" : u(x)) === "object" ? x.exports : {} + ); + try { + regeneratorRuntime = m; + } catch (g) { + Function("r", "regeneratorRuntime = r")(m); + } + }, {}], 493: [function(e, x, _) { + var u = e("buffer").Buffer, m = e("inherits"), g = e("hash-base"), b = new Array(16), w = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13], f = [5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11], y = [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6], h = [8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11], l = [0, 1518500249, 1859775393, 2400959708, 2840853838], d = [1352829926, 1548603684, 1836072691, 2053994217, 0]; + function s() { + g.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520; + } + m(s, g), s.prototype._update = function() { + for (var n = b, o = 0; o < 16; ++o) + n[o] = this._block.readInt32LE(o * 4); + for (var p = this._a | 0, O = this._b | 0, P = this._c | 0, F = this._d | 0, z = this._e | 0, N = this._a | 0, M = this._b | 0, I = this._c | 0, R = this._d | 0, C = this._e | 0, E = 0; E < 80; E += 1) { + var A, L; + E < 16 ? (A = c(p, O, P, F, z, n[w[E]], l[0], y[E]), L = i(N, M, I, R, C, n[f[E]], d[0], h[E])) : E < 32 ? (A = a(p, O, P, F, z, n[w[E]], l[1], y[E]), L = t(N, M, I, R, C, n[f[E]], d[1], h[E])) : E < 48 ? (A = r(p, O, P, F, z, n[w[E]], l[2], y[E]), L = r(N, M, I, R, C, n[f[E]], d[2], h[E])) : E < 64 ? (A = t(p, O, P, F, z, n[w[E]], l[3], y[E]), L = a(N, M, I, R, C, n[f[E]], d[3], h[E])) : (A = i(p, O, P, F, z, n[w[E]], l[4], y[E]), L = c(N, M, I, R, C, n[f[E]], d[4], h[E])), p = z, z = F, F = v(P, 10), P = O, O = A, N = C, C = R, R = v(I, 10), I = M, M = L; + } + var $ = this._b + P + R | 0; + this._b = this._c + F + C | 0, this._c = this._d + z + N | 0, this._d = this._e + p + M | 0, this._e = this._a + O + I | 0, this._a = $; + }, s.prototype._digest = function() { + this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update(); + var n = u.alloc ? u.alloc(20) : new u(20); + return n.writeInt32LE(this._a, 0), n.writeInt32LE(this._b, 4), n.writeInt32LE(this._c, 8), n.writeInt32LE(this._d, 12), n.writeInt32LE(this._e, 16), n; + }; + function v(n, o) { + return n << o | n >>> 32 - o; + } + function c(n, o, p, O, P, F, z, N) { + return v(n + (o ^ p ^ O) + F + z | 0, N) + P | 0; + } + function a(n, o, p, O, P, F, z, N) { + return v(n + (o & p | ~o & O) + F + z | 0, N) + P | 0; + } + function r(n, o, p, O, P, F, z, N) { + return v(n + ((o | ~p) ^ O) + F + z | 0, N) + P | 0; + } + function t(n, o, p, O, P, F, z, N) { + return v(n + (o & O | p & ~O) + F + z | 0, N) + P | 0; + } + function i(n, o, p, O, P, F, z, N) { + return v(n + (o ^ (p | ~O)) + F + z | 0, N) + P | 0; + } + x.exports = s; + }, { buffer: 216, "hash-base": 370, inherits: 387 }], 494: [function(e, x, _) { + var u = e("buffer"), m = u.Buffer; + function g(w, f) { + for (var y in w) + f[y] = w[y]; + } + m.from && m.alloc && m.allocUnsafe && m.allocUnsafeSlow ? x.exports = u : (g(u, _), _.Buffer = b); + function b(w, f, y) { + return m(w, f, y); + } + g(m, b), b.from = function(w, f, y) { + if (typeof w == "number") + throw new TypeError("Argument must not be a number"); + return m(w, f, y); + }, b.alloc = function(w, f, y) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + var h = m(w); + return f !== void 0 ? typeof y == "string" ? h.fill(f, y) : h.fill(f) : h.fill(0), h; + }, b.allocUnsafe = function(w) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + return m(w); + }, b.allocUnsafeSlow = function(w) { + if (typeof w != "number") + throw new TypeError("Argument must be a number"); + return u.SlowBuffer(w); + }; + }, { buffer: 216 }], 495: [function(e, x, _) { + (function(u) { + function m(h) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(d) { + return typeof d; + } : m = function(d) { + return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d; + }, m(h); + } + var g = e("buffer"), b = g.Buffer, w = {}, f; + for (f in g) + g.hasOwnProperty(f) && (f === "SlowBuffer" || f === "Buffer" || (w[f] = g[f])); + var y = w.Buffer = {}; + for (f in b) + b.hasOwnProperty(f) && (f === "allocUnsafe" || f === "allocUnsafeSlow" || (y[f] = b[f])); + if (w.Buffer.prototype = b.prototype, (!y.from || y.from === Uint8Array.from) && (y.from = function(h, l, d) { + if (typeof h == "number") + throw new TypeError('The "value" argument must not be of type number. Received type ' + m(h)); + if (h && typeof h.length == "undefined") + throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + m(h)); + return b(h, l, d); + }), y.alloc || (y.alloc = function(h, l, d) { + if (typeof h != "number") + throw new TypeError('The "size" argument must be of type number. Received type ' + m(h)); + if (h < 0 || h >= 2 * (1 << 30)) + throw new RangeError('The value "' + h + '" is invalid for option "size"'); + var s = b(h); + return !l || l.length === 0 ? s.fill(0) : typeof d == "string" ? s.fill(l, d) : s.fill(l), s; + }), !w.kStringMaxLength) + try { + w.kStringMaxLength = u.binding("buffer").kStringMaxLength; + } catch (h) { + } + w.constants || (w.constants = { + MAX_LENGTH: w.kMaxLength + }, w.kStringMaxLength && (w.constants.MAX_STRING_LENGTH = w.kStringMaxLength)), x.exports = w; + }).call(this, e("_process")); + }, { _process: 467, buffer: 216 }], 496: [function(e, x, _) { + function u(vt, Ke) { + var me; + if (typeof Symbol == "undefined" || vt[Symbol.iterator] == null) { + if (Array.isArray(vt) || (me = h(vt)) || Ke && vt && typeof vt.length == "number") { + me && (vt = me); + var Fe = 0, Be = function() { + }; + return { s: Be, n: function() { + return Fe >= vt.length ? { done: !0 } : { done: !1, value: vt[Fe++] }; + }, e: function(gr) { + throw gr; + }, f: Be }; + } + throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + var dt = !0, St = !1, Ht; + return { s: function() { + me = vt[Symbol.iterator](); + }, n: function() { + var gr = me.next(); + return dt = gr.done, gr; + }, e: function(gr) { + St = !0, Ht = gr; + }, f: function() { + try { + !dt && me.return != null && me.return(); + } finally { + if (St) + throw Ht; + } + } }; + } + function m(vt) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? m = function(me) { + return typeof me; + } : m = function(me) { + return me && typeof Symbol == "function" && me.constructor === Symbol && me !== Symbol.prototype ? "symbol" : typeof me; + }, m(vt); + } + function g(vt, Ke) { + if (!(vt instanceof Ke)) + throw new TypeError("Cannot call a class as a function"); + } + function b(vt, Ke) { + for (var me = 0; me < Ke.length; me++) { + var Fe = Ke[me]; + Fe.enumerable = Fe.enumerable || !1, Fe.configurable = !0, "value" in Fe && (Fe.writable = !0), Object.defineProperty(vt, Fe.key, Fe); + } + } + function w(vt, Ke, me) { + return Ke && b(vt.prototype, Ke), me && b(vt, me), vt; + } + function f(vt) { + return d(vt) || l(vt) || h(vt) || y(); + } + function y() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); + } + function h(vt, Ke) { + if (vt) { + if (typeof vt == "string") + return s(vt, Ke); + var me = Object.prototype.toString.call(vt).slice(8, -1); + if (me === "Object" && vt.constructor && (me = vt.constructor.name), me === "Map" || me === "Set") + return Array.from(vt); + if (me === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me)) + return s(vt, Ke); + } + } + function l(vt) { + if (typeof Symbol != "undefined" && Symbol.iterator in Object(vt)) + return Array.from(vt); + } + function d(vt) { + if (Array.isArray(vt)) + return s(vt); + } + function s(vt, Ke) { + (Ke == null || Ke > vt.length) && (Ke = vt.length); + for (var me = 0, Fe = new Array(Ke); me < Ke; me++) + Fe[me] = vt[me]; + return Fe; + } + Object.defineProperty(_, "__esModule", { + value: !0 + }); + var v = e("xmlchars/xml/1.0/ed5"), c = e("xmlchars/xml/1.1/ed2"), a = e("xmlchars/xmlns/1.0/ed3"), r = v.isS, t = v.isChar, i = v.isNameStartChar, n = v.isNameChar, o = v.S_LIST, p = v.NAME_RE, O = c.isChar, P = a.isNCNameStartChar, F = a.isNCNameChar, z = a.NC_NAME_RE, N = "http://www.w3.org/XML/1998/namespace", M = "http://www.w3.org/2000/xmlns/", I = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + __proto__: null, + xml: N, + xmlns: M + }, R = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + __proto__: null, + amp: "&", + gt: ">", + lt: "<", + quot: '"', + apos: "'" + }, C = -1, E = -2, A = 0, L = 1, $ = 2, W = 3, U = 4, D = 5, B = 6, j = 7, V = 8, re = 9, ee = 10, ce = 11, ve = 12, ge = 13, oe = 14, J = 15, Q = 16, he = 17, ke = 18, ne = 19, se = 20, Ce = 21, q = 22, G = 23, Y = 24, fe = 25, we = 26, _e = 27, je = 28, Ye = 29, nt = 30, ut = 31, ot = 32, Ue = 33, Ve = 34, Qe = 35, tt = 36, ae = 37, Re = 38, be = 39, Ee = 40, pe = 41, Pe = 42, te = 43, He = 44, it = 9, K = 10, Me = 13, Le = 32, ue = 33, Se = 34, Ie = 38, st = 39, Ge = 45, rt = 47, _t = 59, wt = 60, Ot = 61, pt = 62, ct = 63, At = 91, Pt = 93, bt = 133, Kt = 8232, Ct = function(Ke) { + return Ke === Se || Ke === st; + }, xt = [Se, st], Ft = [].concat(xt, [At, pt]), Lt = [].concat(xt, [wt, Pt]), Et = [Ot, ct].concat(f(o)), Dr = [].concat(f(o), [pt, Ie, wt]); + function Or(vt, Ke, me) { + switch (Ke) { + case "xml": + me !== N && vt.fail("xml prefix must be bound to ".concat(N, ".")); + break; + case "xmlns": + me !== M && vt.fail("xmlns prefix must be bound to ".concat(M, ".")); + break; + } + switch (me) { + case M: + vt.fail(Ke === "" ? "the default namespace may not be set to ".concat(me, ".") : 'may not assign a prefix (even "xmlns") to the URI '.concat(M, ".")); + break; + case N: + switch (Ke) { + case "xml": + break; + case "": + vt.fail("the default namespace may not be set to ".concat(me, ".")); + break; + default: + vt.fail("may not assign the xml namespace to another prefix."); + } + break; + } + } + function Gr(vt, Ke) { + for (var me = 0, Fe = Object.keys(Ke); me < Fe.length; me++) { + var Be = Fe[me]; + Or(vt, Be, Ke[Be]); + } + } + var Nr = function(Ke) { + return z.test(Ke); + }, Yr = function(Ke) { + return p.test(Ke); + }, Qt = 0, Xr = 1, Fr = 2; + _.EVENTS = ["xmldecl", "text", "processinginstruction", "doctype", "comment", "opentagstart", "attribute", "opentag", "closetag", "cdata", "error", "end", "ready"]; + var Lr = { + xmldecl: "xmldeclHandler", + text: "textHandler", + processinginstruction: "piHandler", + doctype: "doctypeHandler", + comment: "commentHandler", + opentagstart: "openTagStartHandler", + attribute: "attributeHandler", + opentag: "openTagHandler", + closetag: "closeTagHandler", + cdata: "cdataHandler", + error: "errorHandler", + end: "endHandler", + ready: "readyHandler" + }, Ur = /* @__PURE__ */ function() { + function vt(Ke) { + g(this, vt), this.opt = Ke != null ? Ke : {}, this.fragmentOpt = !!this.opt.fragment; + var me = this.xmlnsOpt = !!this.opt.xmlns; + if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, me) { + this.nameStartCheck = P, this.nameCheck = F, this.isName = Nr, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = Object.assign({ + __proto__: null + }, I); + var Fe = this.opt.additionalNamespaces; + Fe != null && (Gr(this, Fe), Object.assign(this.ns, Fe)); + } else + this.nameStartCheck = i, this.nameCheck = n, this.isName = Yr, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain; + this.stateTable = [ + /* eslint-disable @typescript-eslint/unbound-method */ + this.sBegin, + this.sBeginWhitespace, + this.sDoctype, + this.sDoctypeQuote, + this.sDTD, + this.sDTDQuoted, + this.sDTDOpenWaka, + this.sDTDOpenWakaBang, + this.sDTDComment, + this.sDTDCommentEnding, + this.sDTDCommentEnded, + this.sDTDPI, + this.sDTDPIEnding, + this.sText, + this.sEntity, + this.sOpenWaka, + this.sOpenWakaBang, + this.sComment, + this.sCommentEnding, + this.sCommentEnded, + this.sCData, + this.sCDataEnding, + this.sCDataEnding2, + this.sPIFirstChar, + this.sPIRest, + this.sPIBody, + this.sPIEnding, + this.sXMLDeclNameStart, + this.sXMLDeclName, + this.sXMLDeclEq, + this.sXMLDeclValueStart, + this.sXMLDeclValue, + this.sXMLDeclSeparator, + this.sXMLDeclEnding, + this.sOpenTag, + this.sOpenTagSlash, + this.sAttrib, + this.sAttribName, + this.sAttribNameSawWhite, + this.sAttribValue, + this.sAttribValueQuoted, + this.sAttribValueClosed, + this.sAttribValueUnquoted, + this.sCloseTag, + this.sCloseTagSawWhite + ], this._init(); + } + return w(vt, [{ + key: "_init", + value: function() { + var me; + this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = Qt, this.attribList = []; + var Fe = this.fragmentOpt; + this.state = Fe ? ge : A, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = Fe, this.xmlDeclPossible = !Fe, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0; + var Be = this.opt.defaultXMLVersion; + if (Be === void 0) { + if (this.opt.forceXMLVersion === !0) + throw new Error("forceXMLVersion set but defaultXMLVersion is not set"); + Be = "1.0"; + } + this.setXMLVersion(Be), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { + version: void 0, + encoding: void 0, + standalone: void 0 + }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(R), (me = this.readyHandler) === null || me === void 0 || me.call(this); + } + /** + * The stream position the parser is currently looking at. This field is + * zero-based. + * + * This field is not based on counting Unicode characters but is to be + * interpreted as a plain index into a JavaScript string. + */ + }, { + key: "on", + /** + * Set an event listener on an event. The parser supports one handler per + * event type. If you try to set an event handler over an existing handler, + * the old handler is silently overwritten. + * + * @param name The event to listen to. + * + * @param handler The handler to set. + */ + value: function(me, Fe) { + this[Lr[me]] = Fe; + } + /** + * Unset an event handler. + * + * @parma name The event to stop listening to. + */ + }, { + key: "off", + value: function(me) { + this[Lr[me]] = void 0; + } + /** + * Make an error object. The error object will have a message that contains + * the ``fileName`` option passed at the creation of the parser. If position + * tracking was turned on, it will also have line and column number + * information. + * + * @param message The message describing the error to report. + * + * @returns An error object with a properly formatted message. + */ + }, { + key: "makeError", + value: function(me) { + var Fe, Be = (Fe = this.fileName) !== null && Fe !== void 0 ? Fe : ""; + return this.trackPosition && (Be.length > 0 && (Be += ":"), Be += "".concat(this.line, ":").concat(this.column)), Be.length > 0 && (Be += ": "), new Error(Be + me); + } + /** + * Report a parsing error. This method is made public so that client code may + * check for issues that are outside the scope of this project and can report + * errors. + * + * @param message The error to report. + * + * @returns this + */ + }, { + key: "fail", + value: function(me) { + var Fe = this.makeError(me), Be = this.errorHandler; + if (Be === void 0) + throw Fe; + return Be(Fe), this; + } + /** + * Write a XML data to the parser. + * + * @param chunk The XML data to write. + * + * @returns this + */ + }, { + key: "write", + value: function(me) { + if (this.closed) + return this.fail("cannot write after close; assign an onready handler."); + var Fe = !1; + me === null ? (Fe = !0, me = "") : m(me) === "object" && (me = me.toString()), this.carriedFromPrevious !== void 0 && (me = "".concat(this.carriedFromPrevious).concat(me), this.carriedFromPrevious = void 0); + var Be = me.length, dt = me.charCodeAt(Be - 1); + !Fe && // A trailing CR or surrogate must be carried over to the next + // chunk. + (dt === Me || dt >= 55296 && dt <= 56319) && (this.carriedFromPrevious = me[Be - 1], Be--, me = me.slice(0, Be)); + var St = this.stateTable; + for (this.chunk = me, this.i = 0; this.i < Be; ) + St[this.state].call(this); + return this.chunkPosition += Be, Fe ? this.end() : this; + } + /** + * Close the current stream. Perform final well-formedness checks and reset + * the parser tstate. + * + * @returns this + */ + }, { + key: "close", + value: function() { + return this.write(null); + } + /** + * Get a single code point out of the current chunk. This updates the current + * position if we do position tracking. + * + * This is the algorithm to use for XML 1.0. + * + * @returns The character read. + */ + }, { + key: "getCode10", + value: function() { + var me = this.chunk, Fe = this.i; + if (this.prevI = Fe, this.i = Fe + 1, Fe >= me.length) + return C; + var Be = me.charCodeAt(Fe); + if (this.column++, Be < 55296) { + if (Be >= Le || Be === it) + return Be; + switch (Be) { + case K: + return this.line++, this.column = 0, this.positionAtNewLine = this.position, K; + case Me: + return me.charCodeAt(Fe + 1) === K && (this.i = Fe + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, E; + default: + return this.fail("disallowed character."), Be; + } + } + if (Be > 56319) + return Be >= 57344 && Be <= 65533 || this.fail("disallowed character."), Be; + var dt = 65536 + (Be - 55296) * 1024 + (me.charCodeAt(Fe + 1) - 56320); + return this.i = Fe + 2, dt > 1114111 && this.fail("disallowed character."), dt; + } + /** + * Get a single code point out of the current chunk. This updates the current + * position if we do position tracking. + * + * This is the algorithm to use for XML 1.1. + * + * @returns {number} The character read. + */ + }, { + key: "getCode11", + value: function() { + var me = this.chunk, Fe = this.i; + if (this.prevI = Fe, this.i = Fe + 1, Fe >= me.length) + return C; + var Be = me.charCodeAt(Fe); + if (this.column++, Be < 55296) { + if (Be > 31 && Be < 127 || Be > 159 && Be !== Kt || Be === it) + return Be; + switch (Be) { + case K: + return this.line++, this.column = 0, this.positionAtNewLine = this.position, K; + case Me: { + var dt = me.charCodeAt(Fe + 1); + (dt === K || dt === bt) && (this.i = Fe + 2); + } + case bt: + case Kt: + return this.line++, this.column = 0, this.positionAtNewLine = this.position, E; + default: + return this.fail("disallowed character."), Be; + } + } + if (Be > 56319) + return Be >= 57344 && Be <= 65533 || this.fail("disallowed character."), Be; + var St = 65536 + (Be - 55296) * 1024 + (me.charCodeAt(Fe + 1) - 56320); + return this.i = Fe + 2, St > 1114111 && this.fail("disallowed character."), St; + } + /** + * Like ``getCode`` but with the return value normalized so that ``NL`` is + * returned for ``NL_LIKE``. + */ + }, { + key: "getCodeNorm", + value: function() { + var me = this.getCode(); + return me === E ? K : me; + } + }, { + key: "unget", + value: function() { + this.i = this.prevI, this.column--; + } + /** + * Capture characters into a buffer until encountering one of a set of + * characters. + * + * @param chars An array of codepoints. Encountering a character in the array + * ends the capture. (``chars`` may safely contain ``NL``.) + * + * @return The character code that made the capture end, or ``EOC`` if we hit + * the end of the chunk. The return value cannot be NL_LIKE: NL is returned + * instead. + */ + }, { + key: "captureTo", + value: function(me) { + for (var Fe = this.i, Be = this.chunk; ; ) { + var dt = this.getCode(), St = dt === E, Ht = St ? K : dt; + if (Ht === C || me.includes(Ht)) + return this.text += Be.slice(Fe, this.prevI), Ht; + St && (this.text += "".concat(Be.slice(Fe, this.prevI), ` +`), Fe = this.i); + } + } + /** + * Capture characters into a buffer until encountering a character. + * + * @param char The codepoint that ends the capture. **NOTE ``char`` MAY NOT + * CONTAIN ``NL``.** Passing ``NL`` will result in buggy behavior. + * + * @return ``true`` if we ran into the character. Otherwise, we ran into the + * end of the current chunk. + */ + }, { + key: "captureToChar", + value: function(me) { + for (var Fe = this.i, Be = this.chunk; ; ) { + var dt = this.getCode(); + switch (dt) { + case E: + this.text += "".concat(Be.slice(Fe, this.prevI), ` +`), Fe = this.i, dt = K; + break; + case C: + return this.text += Be.slice(Fe), !1; + } + if (dt === me) + return this.text += Be.slice(Fe, this.prevI), !0; + } + } + /** + * Capture characters that satisfy ``isNameChar`` into the ``name`` field of + * this parser. + * + * @return The character code that made the test fail, or ``EOC`` if we hit + * the end of the chunk. The return value cannot be NL_LIKE: NL is returned + * instead. + */ + }, { + key: "captureNameChars", + value: function() { + for (var me = this.chunk, Fe = this.i; ; ) { + var Be = this.getCode(); + if (Be === C) + return this.name += me.slice(Fe), C; + if (!n(Be)) + return this.name += me.slice(Fe, this.prevI), Be === E ? K : Be; + } + } + /** + * Skip white spaces. + * + * @return The character that ended the skip, or ``EOC`` if we hit + * the end of the chunk. The return value cannot be NL_LIKE: NL is returned + * instead. + */ + }, { + key: "skipSpaces", + value: function() { + for (; ; ) { + var me = this.getCodeNorm(); + if (me === C || !r(me)) + return me; + } + } + }, { + key: "setXMLVersion", + value: function(me) { + this.currentXMLVersion = me, me === "1.0" ? (this.isChar = t, this.getCode = this.getCode10) : (this.isChar = O, this.getCode = this.getCode11); + } + // STATE ENGINE METHODS + // This needs to be a state separate from S_BEGIN_WHITESPACE because we want + // to be sure never to come back to this state later. + }, { + key: "sBegin", + value: function() { + this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = L; + } + }, { + key: "sBeginWhitespace", + value: function() { + var me = this.i, Fe = this.skipSpaces(); + switch (this.prevI !== me && (this.xmlDeclPossible = !1), Fe) { + case wt: + if (this.state = J, this.text.length !== 0) + throw new Error("no-empty text at start"); + break; + case C: + break; + default: + this.unget(), this.state = ge, this.xmlDeclPossible = !1; + } + } + }, { + key: "sDoctype", + value: function() { + var me, Fe = this.captureTo(Ft); + switch (Fe) { + case pt: { + (me = this.doctypeHandler) === null || me === void 0 || me.call(this, this.text), this.text = "", this.state = ge, this.doctype = !0; + break; + } + case C: + break; + default: + this.text += String.fromCodePoint(Fe), Fe === At ? this.state = U : Ct(Fe) && (this.state = W, this.q = Fe); + } + } + }, { + key: "sDoctypeQuote", + value: function() { + var me = this.q; + this.captureToChar(me) && (this.text += String.fromCodePoint(me), this.q = null, this.state = $); + } + }, { + key: "sDTD", + value: function() { + var me = this.captureTo(Lt); + me !== C && (this.text += String.fromCodePoint(me), me === Pt ? this.state = $ : me === wt ? this.state = B : Ct(me) && (this.state = D, this.q = me)); + } + }, { + key: "sDTDQuoted", + value: function() { + var me = this.q; + this.captureToChar(me) && (this.text += String.fromCodePoint(me), this.state = U, this.q = null); + } + }, { + key: "sDTDOpenWaka", + value: function() { + var me = this.getCodeNorm(); + switch (this.text += String.fromCodePoint(me), me) { + case ue: + this.state = j, this.openWakaBang = ""; + break; + case ct: + this.state = ce; + break; + default: + this.state = U; + } + } + }, { + key: "sDTDOpenWakaBang", + value: function() { + var me = String.fromCodePoint(this.getCodeNorm()), Fe = this.openWakaBang += me; + this.text += me, Fe !== "-" && (this.state = Fe === "--" ? V : U, this.openWakaBang = ""); + } + }, { + key: "sDTDComment", + value: function() { + this.captureToChar(Ge) && (this.text += "-", this.state = re); + } + }, { + key: "sDTDCommentEnding", + value: function() { + var me = this.getCodeNorm(); + this.text += String.fromCodePoint(me), this.state = me === Ge ? ee : V; + } + }, { + key: "sDTDCommentEnded", + value: function() { + var me = this.getCodeNorm(); + this.text += String.fromCodePoint(me), me === pt ? this.state = U : (this.fail("malformed comment."), this.state = V); + } + }, { + key: "sDTDPI", + value: function() { + this.captureToChar(ct) && (this.text += "?", this.state = ve); + } + }, { + key: "sDTDPIEnding", + value: function() { + var me = this.getCodeNorm(); + this.text += String.fromCodePoint(me), me === pt && (this.state = U); + } + }, { + key: "sText", + value: function() { + this.tags.length !== 0 ? this.handleTextInRoot() : this.handleTextOutsideRoot(); + } + }, { + key: "sEntity", + value: function() { + var me = this.i, Fe = this.chunk; + e: + for (; ; ) + switch (this.getCode()) { + case E: + this.entity += "".concat(Fe.slice(me, this.prevI), ` +`), me = this.i; + break; + case _t: { + var Be = this.entityReturnState, dt = this.entity + Fe.slice(me, this.prevI); + this.state = Be; + var St = void 0; + dt === "" ? (this.fail("empty entity name."), St = "&;") : (St = this.parseEntity(dt), this.entity = ""), (Be !== ge || this.textHandler !== void 0) && (this.text += St); + break e; + } + case C: + this.entity += Fe.slice(me); + break e; + } + } + }, { + key: "sOpenWaka", + value: function() { + var me = this.getCode(); + if (i(me)) + this.state = Ve, this.unget(), this.xmlDeclPossible = !1; + else + switch (me) { + case rt: + this.state = te, this.xmlDeclPossible = !1; + break; + case ue: + this.state = Q, this.openWakaBang = "", this.xmlDeclPossible = !1; + break; + case ct: + this.state = G; + break; + default: + this.fail("disallowed character in tag name"), this.state = ge, this.xmlDeclPossible = !1; + } + } + }, { + key: "sOpenWakaBang", + value: function() { + switch (this.openWakaBang += String.fromCodePoint(this.getCodeNorm()), this.openWakaBang) { + case "[CDATA[": + !this.sawRoot && !this.reportedTextBeforeRoot && (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0), this.state = se, this.openWakaBang = ""; + break; + case "--": + this.state = he, this.openWakaBang = ""; + break; + case "DOCTYPE": + this.state = $, (this.doctype || this.sawRoot) && this.fail("inappropriately located doctype declaration."), this.openWakaBang = ""; + break; + default: + this.openWakaBang.length >= 7 && this.fail("incorrect syntax."); + } + } + }, { + key: "sComment", + value: function() { + this.captureToChar(Ge) && (this.state = ke); + } + }, { + key: "sCommentEnding", + value: function() { + var me, Fe = this.getCodeNorm(); + Fe === Ge ? (this.state = ne, (me = this.commentHandler) === null || me === void 0 || me.call(this, this.text), this.text = "") : (this.text += "-".concat(String.fromCodePoint(Fe)), this.state = he); + } + }, { + key: "sCommentEnded", + value: function() { + var me = this.getCodeNorm(); + me !== pt ? (this.fail("malformed comment."), this.text += "--".concat(String.fromCodePoint(me)), this.state = he) : this.state = ge; + } + }, { + key: "sCData", + value: function() { + this.captureToChar(Pt) && (this.state = Ce); + } + }, { + key: "sCDataEnding", + value: function() { + var me = this.getCodeNorm(); + me === Pt ? this.state = q : (this.text += "]".concat(String.fromCodePoint(me)), this.state = se); + } + }, { + key: "sCDataEnding2", + value: function() { + var me, Fe = this.getCodeNorm(); + switch (Fe) { + case pt: { + (me = this.cdataHandler) === null || me === void 0 || me.call(this, this.text), this.text = "", this.state = ge; + break; + } + case Pt: + this.text += "]"; + break; + default: + this.text += "]]".concat(String.fromCodePoint(Fe)), this.state = se; + } + } + // We need this separate state to check the first character fo the pi target + // with this.nameStartCheck which allows less characters than this.nameCheck. + }, { + key: "sPIFirstChar", + value: function() { + var me = this.getCodeNorm(); + this.nameStartCheck(me) ? (this.piTarget += String.fromCodePoint(me), this.state = Y) : me === ct || r(me) ? (this.fail("processing instruction without a target."), this.state = me === ct ? we : fe) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(me), this.state = Y); + } + }, { + key: "sPIRest", + value: function() { + for (var me = this.chunk, Fe = this.i; ; ) { + var Be = this.getCodeNorm(); + if (Be === C) { + this.piTarget += me.slice(Fe); + return; + } + if (!this.nameCheck(Be)) { + this.piTarget += me.slice(Fe, this.prevI); + var dt = Be === ct; + dt || r(Be) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = dt ? Ue : _e) : this.state = dt ? we : fe : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(Be)); + break; + } + } + } + }, { + key: "sPIBody", + value: function() { + if (this.text.length === 0) { + var me = this.getCodeNorm(); + me === ct ? this.state = we : r(me) || (this.text = String.fromCodePoint(me)); + } else + this.captureToChar(ct) && (this.state = we); + } + }, { + key: "sPIEnding", + value: function() { + var me, Fe = this.getCodeNorm(); + if (Fe === pt) { + var Be = this.piTarget; + Be.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), (me = this.piHandler) === null || me === void 0 || me.call(this, { + target: Be, + body: this.text + }), this.piTarget = this.text = "", this.state = ge; + } else + Fe === ct ? this.text += "?" : (this.text += "?".concat(String.fromCodePoint(Fe)), this.state = fe); + this.xmlDeclPossible = !1; + } + }, { + key: "sXMLDeclNameStart", + value: function() { + var me = this.skipSpaces(); + if (me === ct) { + this.state = Ue; + return; + } + me !== C && (this.state = je, this.name = String.fromCodePoint(me)); + } + }, { + key: "sXMLDeclName", + value: function() { + var me = this.captureTo(Et); + if (me === ct) { + this.state = Ue, this.name += this.text, this.text = "", this.fail("XML declaration is incomplete."); + return; + } + if (r(me) || me === Ot) { + if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) + switch (this.name.length) { + case 0: + this.fail("did not expect any more name/value pairs."); + break; + case 1: + this.fail("expected the name ".concat(this.xmlDeclExpects[0], ".")); + break; + default: + this.fail("expected one of ".concat(this.xmlDeclExpects.join(", "))); + } + this.state = me === Ot ? nt : Ye; + } + } + }, { + key: "sXMLDeclEq", + value: function() { + var me = this.getCodeNorm(); + if (me === ct) { + this.state = Ue, this.fail("XML declaration is incomplete."); + return; + } + r(me) || (me !== Ot && this.fail("value required."), this.state = nt); + } + }, { + key: "sXMLDeclValueStart", + value: function() { + var me = this.getCodeNorm(); + if (me === ct) { + this.state = Ue, this.fail("XML declaration is incomplete."); + return; + } + r(me) || (Ct(me) ? this.q = me : (this.fail("value must be quoted."), this.q = Le), this.state = ut); + } + }, { + key: "sXMLDeclValue", + value: function() { + var me = this.captureTo([this.q, ct]); + if (me === ct) { + this.state = Ue, this.text = "", this.fail("XML declaration is incomplete."); + return; + } + if (me !== C) { + var Fe = this.text; + switch (this.text = "", this.name) { + case "version": { + this.xmlDeclExpects = ["encoding", "standalone"]; + var Be = Fe; + this.xmlDecl.version = Be, /^1\.[0-9]+$/.test(Be) ? this.opt.forceXMLVersion || this.setXMLVersion(Be) : this.fail("version number must match /^1\\.[0-9]+$/."); + break; + } + case "encoding": + /^[A-Za-z][A-Za-z0-9._-]*$/.test(Fe) || this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."), this.xmlDeclExpects = ["standalone"], this.xmlDecl.encoding = Fe; + break; + case "standalone": + Fe !== "yes" && Fe !== "no" && this.fail('standalone value must match "yes" or "no".'), this.xmlDeclExpects = [], this.xmlDecl.standalone = Fe; + break; + } + this.name = "", this.state = ot; + } + } + }, { + key: "sXMLDeclSeparator", + value: function() { + var me = this.getCodeNorm(); + if (me === ct) { + this.state = Ue; + return; + } + r(me) || (this.fail("whitespace required."), this.unget()), this.state = _e; + } + }, { + key: "sXMLDeclEnding", + value: function() { + var me, Fe = this.getCodeNorm(); + Fe === pt ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), (me = this.xmldeclHandler) === null || me === void 0 || me.call(this, this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = ge) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1; + } + }, { + key: "sOpenTag", + value: function() { + var me, Fe = this.captureNameChars(); + if (Fe !== C) { + var Be = this.tag = { + name: this.name, + attributes: /* @__PURE__ */ Object.create(null) + }; + switch (this.name = "", this.xmlnsOpt && (this.topNS = Be.ns = /* @__PURE__ */ Object.create(null)), (me = this.openTagStartHandler) === null || me === void 0 || me.call(this, Be), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), Fe) { + case pt: + this.openTag(); + break; + case rt: + this.state = Qe; + break; + default: + r(Fe) || this.fail("disallowed character in tag name."), this.state = tt; + } + } + } + }, { + key: "sOpenTagSlash", + value: function() { + this.getCode() === pt ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = tt); + } + }, { + key: "sAttrib", + value: function() { + var me = this.skipSpaces(); + me !== C && (i(me) ? (this.unget(), this.state = ae) : me === pt ? this.openTag() : me === rt ? this.state = Qe : this.fail("disallowed character in attribute name.")); + } + }, { + key: "sAttribName", + value: function() { + var me = this.captureNameChars(); + me === Ot ? this.state = be : r(me) ? this.state = Re : me === pt ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : me !== C && this.fail("disallowed character in attribute name."); + } + }, { + key: "sAttribNameSawWhite", + value: function() { + var me = this.skipSpaces(); + switch (me) { + case C: + return; + case Ot: + this.state = be; + break; + default: + this.fail("attribute without value."), this.text = "", this.name = "", me === pt ? this.openTag() : i(me) ? (this.unget(), this.state = ae) : (this.fail("disallowed character in attribute name."), this.state = tt); + } + } + }, { + key: "sAttribValue", + value: function() { + var me = this.getCodeNorm(); + Ct(me) ? (this.q = me, this.state = Ee) : r(me) || (this.fail("unquoted attribute value."), this.state = Pe, this.unget()); + } + }, { + key: "sAttribValueQuoted", + value: function() { + for (var me = this.q, Fe = this.chunk, Be = this.i; ; ) + switch (this.getCode()) { + case me: + this.pushAttrib(this.name, this.text + Fe.slice(Be, this.prevI)), this.name = this.text = "", this.q = null, this.state = pe; + return; + case Ie: + this.text += Fe.slice(Be, this.prevI), this.state = oe, this.entityReturnState = Ee; + return; + case K: + case E: + case it: + this.text += "".concat(Fe.slice(Be, this.prevI), " "), Be = this.i; + break; + case wt: + this.text += Fe.slice(Be, this.prevI), this.fail("disallowed character."); + return; + case C: + this.text += Fe.slice(Be); + return; + } + } + }, { + key: "sAttribValueClosed", + value: function() { + var me = this.getCodeNorm(); + r(me) ? this.state = tt : me === pt ? this.openTag() : me === rt ? this.state = Qe : i(me) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = ae) : this.fail("disallowed character in attribute name."); + } + }, { + key: "sAttribValueUnquoted", + value: function() { + var me = this.captureTo(Dr); + switch (me) { + case Ie: + this.state = oe, this.entityReturnState = Pe; + break; + case wt: + this.fail("disallowed character."); + break; + case C: + break; + default: + this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", me === pt ? this.openTag() : this.state = tt; + } + } + }, { + key: "sCloseTag", + value: function() { + var me = this.captureNameChars(); + me === pt ? this.closeTag() : r(me) ? this.state = He : me !== C && this.fail("disallowed character in closing tag."); + } + }, { + key: "sCloseTagSawWhite", + value: function() { + switch (this.skipSpaces()) { + case pt: + this.closeTag(); + break; + case C: + break; + default: + this.fail("disallowed character in closing tag."); + } + } + // END OF STATE ENGINE METHODS + }, { + key: "handleTextInRoot", + value: function() { + var me = this.i, Fe = this.forbiddenState, Be = this.chunk, dt = this.textHandler; + e: + for (; ; ) + switch (this.getCode()) { + case wt: { + if (this.state = J, dt !== void 0) { + var St = this.text, Ht = Be.slice(me, this.prevI); + St.length !== 0 ? (dt(St + Ht), this.text = "") : Ht.length !== 0 && dt(Ht); + } + Fe = Qt; + break e; + } + case Ie: + this.state = oe, this.entityReturnState = ge, dt !== void 0 && (this.text += Be.slice(me, this.prevI)), Fe = Qt; + break e; + case Pt: + switch (Fe) { + case Qt: + Fe = Xr; + break; + case Xr: + Fe = Fr; + break; + case Fr: + break; + default: + throw new Error("impossible state"); + } + break; + case pt: + Fe === Fr && this.fail('the string "]]>" is disallowed in char data.'), Fe = Qt; + break; + case E: + dt !== void 0 && (this.text += "".concat(Be.slice(me, this.prevI), ` +`)), me = this.i, Fe = Qt; + break; + case C: + dt !== void 0 && (this.text += Be.slice(me)); + break e; + default: + Fe = Qt; + } + this.forbiddenState = Fe; + } + }, { + key: "handleTextOutsideRoot", + value: function() { + var me = this.i, Fe = this.chunk, Be = this.textHandler, dt = !1; + e: + for (; ; ) { + var St = this.getCode(); + switch (St) { + case wt: { + if (this.state = J, Be !== void 0) { + var Ht = this.text, lr = Fe.slice(me, this.prevI); + Ht.length !== 0 ? (Be(Ht + lr), this.text = "") : lr.length !== 0 && Be(lr); + } + break e; + } + case Ie: + this.state = oe, this.entityReturnState = ge, Be !== void 0 && (this.text += Fe.slice(me, this.prevI)), dt = !0; + break e; + case E: + Be !== void 0 && (this.text += "".concat(Fe.slice(me, this.prevI), ` +`)), me = this.i; + break; + case C: + Be !== void 0 && (this.text += Fe.slice(me)); + break e; + default: + r(St) || (dt = !0); + } + } + dt && (!this.sawRoot && !this.reportedTextBeforeRoot && (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0)); + } + }, { + key: "pushAttribNS", + value: function(me, Fe) { + var Be, dt = this.qname(me), St = dt.prefix, Ht = dt.local, lr = { + name: me, + prefix: St, + local: Ht, + value: Fe + }; + if (this.attribList.push(lr), (Be = this.attributeHandler) === null || Be === void 0 || Be.call(this, lr), St === "xmlns") { + var gr = Fe.trim(); + this.currentXMLVersion === "1.0" && gr === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[Ht] = gr, Or(this, Ht, gr); + } else if (me === "xmlns") { + var rn = Fe.trim(); + this.topNS[""] = rn, Or(this, "", rn); + } + } + }, { + key: "pushAttribPlain", + value: function(me, Fe) { + var Be, dt = { + name: me, + value: Fe + }; + this.attribList.push(dt), (Be = this.attributeHandler) === null || Be === void 0 || Be.call(this, dt); + } + /** + * End parsing. This performs final well-formedness checks and resets the + * parser to a clean state. + * + * @returns this + */ + }, { + key: "end", + value: function() { + var me, Fe; + this.sawRoot || this.fail("document must contain a root element."); + for (var Be = this.tags; Be.length > 0; ) { + var dt = Be.pop(); + this.fail("unclosed tag: ".concat(dt.name)); + } + this.state !== A && this.state !== ge && this.fail("unexpected end."); + var St = this.text; + return St.length !== 0 && ((me = this.textHandler) === null || me === void 0 || me.call(this, St), this.text = ""), this._closed = !0, (Fe = this.endHandler) === null || Fe === void 0 || Fe.call(this), this._init(), this; + } + /** + * Resolve a namespace prefix. + * + * @param prefix The prefix to resolve. + * + * @returns The namespace URI or ``undefined`` if the prefix is not defined. + */ + }, { + key: "resolve", + value: function(me) { + var Fe, Be, dt = this.topNS[me]; + if (dt !== void 0) + return dt; + for (var St = this.tags, Ht = St.length - 1; Ht >= 0; Ht--) + if (dt = St[Ht].ns[me], dt !== void 0) + return dt; + return dt = this.ns[me], dt !== void 0 ? dt : (Be = (Fe = this.opt).resolvePrefix) === null || Be === void 0 ? void 0 : Be.call(Fe, me); + } + /** + * Parse a qname into its prefix and local name parts. + * + * @param name The name to parse + * + * @returns + */ + }, { + key: "qname", + value: function(me) { + var Fe = me.indexOf(":"); + if (Fe === -1) + return { + prefix: "", + local: me + }; + var Be = me.slice(Fe + 1), dt = me.slice(0, Fe); + return (dt === "" || Be === "" || Be.includes(":")) && this.fail("malformed name: ".concat(me, ".")), { + prefix: dt, + local: Be + }; + } + }, { + key: "processAttribsNS", + value: function() { + var me, Fe = this.attribList, Be = this.tag; + { + var dt = this.qname(Be.name), St = dt.prefix, Ht = dt.local; + Be.prefix = St, Be.local = Ht; + var lr = Be.uri = (me = this.resolve(St)) !== null && me !== void 0 ? me : ""; + St !== "" && (St === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), lr === "" && (this.fail("unbound namespace prefix: ".concat(JSON.stringify(St), ".")), Be.uri = St)); + } + if (Fe.length !== 0) { + var gr = Be.attributes, rn = /* @__PURE__ */ new Set(), zr = u(Fe), pi; + try { + for (zr.s(); !(pi = zr.n()).done; ) { + var $r = pi.value, Dn = $r.name, cn = $r.prefix, yi = $r.local, hn = void 0, dn = void 0; + cn === "" ? (hn = Dn === "xmlns" ? M : "", dn = Dn) : (hn = this.resolve(cn), hn === void 0 && (this.fail("unbound namespace prefix: ".concat(JSON.stringify(cn), ".")), hn = cn), dn = "{".concat(hn, "}").concat(yi)), rn.has(dn) && this.fail("duplicate attribute: ".concat(dn, ".")), rn.add(dn), $r.uri = hn, gr[Dn] = $r; + } + } catch (Nn) { + zr.e(Nn); + } finally { + zr.f(); + } + this.attribList = []; + } + } + }, { + key: "processAttribsPlain", + value: function() { + var me = this.attribList, Fe = this.tag.attributes, Be = u(me), dt; + try { + for (Be.s(); !(dt = Be.n()).done; ) { + var St = dt.value, Ht = St.name, lr = St.value; + Fe[Ht] !== void 0 && this.fail("duplicate attribute: ".concat(Ht, ".")), Fe[Ht] = lr; + } + } catch (gr) { + Be.e(gr); + } finally { + Be.f(); + } + this.attribList = []; + } + /** + * Handle a complete open tag. This parser code calls this once it has seen + * the whole tag. This method checks for well-formeness and then emits + * ``onopentag``. + */ + }, { + key: "openTag", + value: function() { + var me; + this.processAttribs(); + var Fe = this.tags, Be = this.tag; + Be.isSelfClosing = !1, (me = this.openTagHandler) === null || me === void 0 || me.call(this, Be), Fe.push(Be), this.state = ge, this.name = ""; + } + /** + * Handle a complete self-closing tag. This parser code calls this once it has + * seen the whole tag. This method checks for well-formeness and then emits + * ``onopentag`` and ``onclosetag``. + */ + }, { + key: "openSelfClosingTag", + value: function() { + var me, Fe, Be; + this.processAttribs(); + var dt = this.tags, St = this.tag; + St.isSelfClosing = !0, (me = this.openTagHandler) === null || me === void 0 || me.call(this, St), (Fe = this.closeTagHandler) === null || Fe === void 0 || Fe.call(this, St); + var Ht = this.tag = (Be = dt[dt.length - 1]) !== null && Be !== void 0 ? Be : null; + Ht === null && (this.closedRoot = !0), this.state = ge, this.name = ""; + } + /** + * Handle a complete close tag. This parser code calls this once it has seen + * the whole tag. This method checks for well-formeness and then emits + * ``onclosetag``. + */ + }, { + key: "closeTag", + value: function() { + var me = this.tags, Fe = this.name; + if (this.state = ge, this.name = "", Fe === "") { + this.fail("weird empty close tag."), this.text += ""; + return; + } + for (var Be = this.closeTagHandler, dt = me.length; dt-- > 0; ) { + var St = this.tag = me.pop(); + if (this.topNS = St.ns, Be == null || Be(St), St.name === Fe) + break; + this.fail("unexpected close tag."); + } + dt === 0 ? this.closedRoot = !0 : dt < 0 && (this.fail("unmatched closing tag: ".concat(Fe, ".")), this.text += "")); + } + /** + * Resolves an entity. Makes any necessary well-formedness checks. + * + * @param entity The entity to resolve. + * + * @returns The parsed entity. + */ + }, { + key: "parseEntity", + value: function(me) { + if (me[0] !== "#") { + var Fe = this.ENTITIES[me]; + return Fe !== void 0 ? Fe : (this.fail(this.isName(me) ? "undefined entity." : "disallowed character in entity name."), "&".concat(me, ";")); + } + var Be = NaN; + return me[1] === "x" && /^#x[0-9a-f]+$/i.test(me) ? Be = parseInt(me.slice(2), 16) : /^#[0-9]+$/.test(me) && (Be = parseInt(me.slice(1), 10)), this.isChar(Be) ? String.fromCodePoint(Be) : (this.fail("malformed character entity."), "&".concat(me, ";")); + } + }, { + key: "closed", + get: function() { + return this._closed; + } + }, { + key: "position", + get: function() { + return this.chunkPosition + this.i; + } + /** + * The column number of the next character to be read by the parser. * + * This field is zero-based. (The first column in a line is 0.) + * + * This field reports the index at which the next character would be in the + * line if the line were represented as a JavaScript string. Note that this + * *can* be different to a count based on the number of *Unicode characters* + * due to how JavaScript handles astral plane characters. + * + * See [[column]] for a number that corresponds to a count of Unicode + * characters. + */ + }, { + key: "columnIndex", + get: function() { + return this.position - this.positionAtNewLine; + } + }]), vt; + }(); + _.SaxesParser = Ur; + }, { "xmlchars/xml/1.0/ed5": 541, "xmlchars/xml/1.1/ed2": 542, "xmlchars/xmlns/1.0/ed3": 543 }], 497: [function(e, x, _) { + (function(u) { + x.exports = typeof u == "function" ? u : function() { + var g = [].slice.apply(arguments); + g.splice(1, 0, 0), setTimeout.apply(null, g); + }; + }).call(this, e("timers").setImmediate); + }, { timers: 521 }], 498: [function(e, x, _) { + var u = e("safe-buffer").Buffer; + function m(g, b) { + this._block = u.alloc(g), this._finalSize = b, this._blockSize = g, this._len = 0; + } + m.prototype.update = function(g, b) { + typeof g == "string" && (b = b || "utf8", g = u.from(g, b)); + for (var w = this._block, f = this._blockSize, y = g.length, h = this._len, l = 0; l < y; ) { + for (var d = h % f, s = Math.min(y - l, f - d), v = 0; v < s; v++) + w[d + v] = g[l + v]; + h += s, l += s, h % f === 0 && this._update(w); + } + return this._len += y, this; + }, m.prototype.digest = function(g) { + var b = this._len % this._blockSize; + this._block[b] = 128, this._block.fill(0, b + 1), b >= this._finalSize && (this._update(this._block), this._block.fill(0)); + var w = this._len * 8; + if (w <= 4294967295) + this._block.writeUInt32BE(w, this._blockSize - 4); + else { + var f = (w & 4294967295) >>> 0, y = (w - f) / 4294967296; + this._block.writeUInt32BE(y, this._blockSize - 8), this._block.writeUInt32BE(f, this._blockSize - 4); + } + this._update(this._block); + var h = this._hash(); + return g ? h.toString(g) : h; + }, m.prototype._update = function() { + throw new Error("_update must be implemented by subclass"); + }, x.exports = m; + }, { "safe-buffer": 494 }], 499: [function(e, x, _) { + var u = x.exports = function(g) { + g = g.toLowerCase(); + var b = u[g]; + if (!b) + throw new Error(g + " is not supported (we accept pull requests)"); + return new b(); + }; + u.sha = e("./sha"), u.sha1 = e("./sha1"), u.sha224 = e("./sha224"), u.sha256 = e("./sha256"), u.sha384 = e("./sha384"), u.sha512 = e("./sha512"); + }, { "./sha": 500, "./sha1": 501, "./sha224": 502, "./sha256": 503, "./sha384": 504, "./sha512": 505 }], 500: [function(e, x, _) { + var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], w = new Array(80); + function f() { + this.init(), this._w = w, m.call(this, 64, 56); + } + u(f, m), f.prototype.init = function() { + return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; + }; + function y(d) { + return d << 5 | d >>> 27; + } + function h(d) { + return d << 30 | d >>> 2; + } + function l(d, s, v, c) { + return d === 0 ? s & v | ~s & c : d === 2 ? s & v | s & c | v & c : s ^ v ^ c; + } + f.prototype._update = function(d) { + for (var s = this._w, v = this._a | 0, c = this._b | 0, a = this._c | 0, r = this._d | 0, t = this._e | 0, i = 0; i < 16; ++i) + s[i] = d.readInt32BE(i * 4); + for (; i < 80; ++i) + s[i] = s[i - 3] ^ s[i - 8] ^ s[i - 14] ^ s[i - 16]; + for (var n = 0; n < 80; ++n) { + var o = ~~(n / 20), p = y(v) + l(o, c, a, r) + t + s[n] + b[o] | 0; + t = r, r = a, a = h(c), c = v, v = p; + } + this._a = v + this._a | 0, this._b = c + this._b | 0, this._c = a + this._c | 0, this._d = r + this._d | 0, this._e = t + this._e | 0; + }, f.prototype._hash = function() { + var d = g.allocUnsafe(20); + return d.writeInt32BE(this._a | 0, 0), d.writeInt32BE(this._b | 0, 4), d.writeInt32BE(this._c | 0, 8), d.writeInt32BE(this._d | 0, 12), d.writeInt32BE(this._e | 0, 16), d; + }, x.exports = f; + }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 501: [function(e, x, _) { + var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1518500249, 1859775393, -1894007588, -899497514], w = new Array(80); + function f() { + this.init(), this._w = w, m.call(this, 64, 56); + } + u(f, m), f.prototype.init = function() { + return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; + }; + function y(s) { + return s << 1 | s >>> 31; + } + function h(s) { + return s << 5 | s >>> 27; + } + function l(s) { + return s << 30 | s >>> 2; + } + function d(s, v, c, a) { + return s === 0 ? v & c | ~v & a : s === 2 ? v & c | v & a | c & a : v ^ c ^ a; + } + f.prototype._update = function(s) { + for (var v = this._w, c = this._a | 0, a = this._b | 0, r = this._c | 0, t = this._d | 0, i = this._e | 0, n = 0; n < 16; ++n) + v[n] = s.readInt32BE(n * 4); + for (; n < 80; ++n) + v[n] = y(v[n - 3] ^ v[n - 8] ^ v[n - 14] ^ v[n - 16]); + for (var o = 0; o < 80; ++o) { + var p = ~~(o / 20), O = h(c) + d(p, a, r, t) + i + v[o] + b[p] | 0; + i = t, t = r, r = l(a), a = c, c = O; + } + this._a = c + this._a | 0, this._b = a + this._b | 0, this._c = r + this._c | 0, this._d = t + this._d | 0, this._e = i + this._e | 0; + }, f.prototype._hash = function() { + var s = g.allocUnsafe(20); + return s.writeInt32BE(this._a | 0, 0), s.writeInt32BE(this._b | 0, 4), s.writeInt32BE(this._c | 0, 8), s.writeInt32BE(this._d | 0, 12), s.writeInt32BE(this._e | 0, 16), s; + }, x.exports = f; + }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 502: [function(e, x, _) { + var u = e("inherits"), m = e("./sha256"), g = e("./hash"), b = e("safe-buffer").Buffer, w = new Array(64); + function f() { + this.init(), this._w = w, g.call(this, 64, 56); + } + u(f, m), f.prototype.init = function() { + return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this; + }, f.prototype._hash = function() { + var y = b.allocUnsafe(28); + return y.writeInt32BE(this._a, 0), y.writeInt32BE(this._b, 4), y.writeInt32BE(this._c, 8), y.writeInt32BE(this._d, 12), y.writeInt32BE(this._e, 16), y.writeInt32BE(this._f, 20), y.writeInt32BE(this._g, 24), y; + }, x.exports = f; + }, { "./hash": 498, "./sha256": 503, inherits: 387, "safe-buffer": 494 }], 503: [function(e, x, _) { + var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298], w = new Array(64); + function f() { + this.init(), this._w = w, m.call(this, 64, 56); + } + u(f, m), f.prototype.init = function() { + return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this; + }; + function y(c, a, r) { + return r ^ c & (a ^ r); + } + function h(c, a, r) { + return c & a | r & (c | a); + } + function l(c) { + return (c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10); + } + function d(c) { + return (c >>> 6 | c << 26) ^ (c >>> 11 | c << 21) ^ (c >>> 25 | c << 7); + } + function s(c) { + return (c >>> 7 | c << 25) ^ (c >>> 18 | c << 14) ^ c >>> 3; + } + function v(c) { + return (c >>> 17 | c << 15) ^ (c >>> 19 | c << 13) ^ c >>> 10; + } + f.prototype._update = function(c) { + for (var a = this._w, r = this._a | 0, t = this._b | 0, i = this._c | 0, n = this._d | 0, o = this._e | 0, p = this._f | 0, O = this._g | 0, P = this._h | 0, F = 0; F < 16; ++F) + a[F] = c.readInt32BE(F * 4); + for (; F < 64; ++F) + a[F] = v(a[F - 2]) + a[F - 7] + s(a[F - 15]) + a[F - 16] | 0; + for (var z = 0; z < 64; ++z) { + var N = P + d(o) + y(o, p, O) + b[z] + a[z] | 0, M = l(r) + h(r, t, i) | 0; + P = O, O = p, p = o, o = n + N | 0, n = i, i = t, t = r, r = N + M | 0; + } + this._a = r + this._a | 0, this._b = t + this._b | 0, this._c = i + this._c | 0, this._d = n + this._d | 0, this._e = o + this._e | 0, this._f = p + this._f | 0, this._g = O + this._g | 0, this._h = P + this._h | 0; + }, f.prototype._hash = function() { + var c = g.allocUnsafe(32); + return c.writeInt32BE(this._a, 0), c.writeInt32BE(this._b, 4), c.writeInt32BE(this._c, 8), c.writeInt32BE(this._d, 12), c.writeInt32BE(this._e, 16), c.writeInt32BE(this._f, 20), c.writeInt32BE(this._g, 24), c.writeInt32BE(this._h, 28), c; + }, x.exports = f; + }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 504: [function(e, x, _) { + var u = e("inherits"), m = e("./sha512"), g = e("./hash"), b = e("safe-buffer").Buffer, w = new Array(160); + function f() { + this.init(), this._w = w, g.call(this, 128, 112); + } + u(f, m), f.prototype.init = function() { + return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this; + }, f.prototype._hash = function() { + var y = b.allocUnsafe(48); + function h(l, d, s) { + y.writeInt32BE(l, s), y.writeInt32BE(d, s + 4); + } + return h(this._ah, this._al, 0), h(this._bh, this._bl, 8), h(this._ch, this._cl, 16), h(this._dh, this._dl, 24), h(this._eh, this._el, 32), h(this._fh, this._fl, 40), y; + }, x.exports = f; + }, { "./hash": 498, "./sha512": 505, inherits: 387, "safe-buffer": 494 }], 505: [function(e, x, _) { + var u = e("inherits"), m = e("./hash"), g = e("safe-buffer").Buffer, b = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], w = new Array(160); + function f() { + this.init(), this._w = w, m.call(this, 128, 112); + } + u(f, m), f.prototype.init = function() { + return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this; + }; + function y(t, i, n) { + return n ^ t & (i ^ n); + } + function h(t, i, n) { + return t & i | n & (t | i); + } + function l(t, i) { + return (t >>> 28 | i << 4) ^ (i >>> 2 | t << 30) ^ (i >>> 7 | t << 25); + } + function d(t, i) { + return (t >>> 14 | i << 18) ^ (t >>> 18 | i << 14) ^ (i >>> 9 | t << 23); + } + function s(t, i) { + return (t >>> 1 | i << 31) ^ (t >>> 8 | i << 24) ^ t >>> 7; + } + function v(t, i) { + return (t >>> 1 | i << 31) ^ (t >>> 8 | i << 24) ^ (t >>> 7 | i << 25); + } + function c(t, i) { + return (t >>> 19 | i << 13) ^ (i >>> 29 | t << 3) ^ t >>> 6; + } + function a(t, i) { + return (t >>> 19 | i << 13) ^ (i >>> 29 | t << 3) ^ (t >>> 6 | i << 26); + } + function r(t, i) { + return t >>> 0 < i >>> 0 ? 1 : 0; + } + f.prototype._update = function(t) { + for (var i = this._w, n = this._ah | 0, o = this._bh | 0, p = this._ch | 0, O = this._dh | 0, P = this._eh | 0, F = this._fh | 0, z = this._gh | 0, N = this._hh | 0, M = this._al | 0, I = this._bl | 0, R = this._cl | 0, C = this._dl | 0, E = this._el | 0, A = this._fl | 0, L = this._gl | 0, $ = this._hl | 0, W = 0; W < 32; W += 2) + i[W] = t.readInt32BE(W * 4), i[W + 1] = t.readInt32BE(W * 4 + 4); + for (; W < 160; W += 2) { + var U = i[W - 30], D = i[W - 15 * 2 + 1], B = s(U, D), j = v(D, U); + U = i[W - 2 * 2], D = i[W - 2 * 2 + 1]; + var V = c(U, D), re = a(D, U), ee = i[W - 7 * 2], ce = i[W - 7 * 2 + 1], ve = i[W - 16 * 2], ge = i[W - 16 * 2 + 1], oe = j + ce | 0, J = B + ee + r(oe, j) | 0; + oe = oe + re | 0, J = J + V + r(oe, re) | 0, oe = oe + ge | 0, J = J + ve + r(oe, ge) | 0, i[W] = J, i[W + 1] = oe; + } + for (var Q = 0; Q < 160; Q += 2) { + J = i[Q], oe = i[Q + 1]; + var he = h(n, o, p), ke = h(M, I, R), ne = l(n, M), se = l(M, n), Ce = d(P, E), q = d(E, P), G = b[Q], Y = b[Q + 1], fe = y(P, F, z), we = y(E, A, L), _e = $ + q | 0, je = N + Ce + r(_e, $) | 0; + _e = _e + we | 0, je = je + fe + r(_e, we) | 0, _e = _e + Y | 0, je = je + G + r(_e, Y) | 0, _e = _e + oe | 0, je = je + J + r(_e, oe) | 0; + var Ye = se + ke | 0, nt = ne + he + r(Ye, se) | 0; + N = z, $ = L, z = F, L = A, F = P, A = E, E = C + _e | 0, P = O + je + r(E, C) | 0, O = p, C = R, p = o, R = I, o = n, I = M, M = _e + Ye | 0, n = je + nt + r(M, _e) | 0; + } + this._al = this._al + M | 0, this._bl = this._bl + I | 0, this._cl = this._cl + R | 0, this._dl = this._dl + C | 0, this._el = this._el + E | 0, this._fl = this._fl + A | 0, this._gl = this._gl + L | 0, this._hl = this._hl + $ | 0, this._ah = this._ah + n + r(this._al, M) | 0, this._bh = this._bh + o + r(this._bl, I) | 0, this._ch = this._ch + p + r(this._cl, R) | 0, this._dh = this._dh + O + r(this._dl, C) | 0, this._eh = this._eh + P + r(this._el, E) | 0, this._fh = this._fh + F + r(this._fl, A) | 0, this._gh = this._gh + z + r(this._gl, L) | 0, this._hh = this._hh + N + r(this._hl, $) | 0; + }, f.prototype._hash = function() { + var t = g.allocUnsafe(64); + function i(n, o, p) { + t.writeInt32BE(n, p), t.writeInt32BE(o, p + 4); + } + return i(this._ah, this._al, 0), i(this._bh, this._bl, 8), i(this._ch, this._cl, 16), i(this._dh, this._dl, 24), i(this._eh, this._el, 32), i(this._fh, this._fl, 40), i(this._gh, this._gl, 48), i(this._hh, this._hl, 56), t; + }, x.exports = f; + }, { "./hash": 498, inherits: 387, "safe-buffer": 494 }], 506: [function(e, x, _) { + x.exports = g; + var u = e("events").EventEmitter, m = e("inherits"); + m(g, u), g.Readable = e("readable-stream/readable.js"), g.Writable = e("readable-stream/writable.js"), g.Duplex = e("readable-stream/duplex.js"), g.Transform = e("readable-stream/transform.js"), g.PassThrough = e("readable-stream/passthrough.js"), g.Stream = g; + function g() { + u.call(this); + } + g.prototype.pipe = function(b, w) { + var f = this; + function y(a) { + b.writable && b.write(a) === !1 && f.pause && f.pause(); + } + f.on("data", y); + function h() { + f.readable && f.resume && f.resume(); + } + b.on("drain", h), !b._isStdio && (!w || w.end !== !1) && (f.on("end", d), f.on("close", s)); + var l = !1; + function d() { + l || (l = !0, b.end()); + } + function s() { + l || (l = !0, typeof b.destroy == "function" && b.destroy()); + } + function v(a) { + if (c(), u.listenerCount(this, "error") === 0) + throw a; + } + f.on("error", v), b.on("error", v); + function c() { + f.removeListener("data", y), b.removeListener("drain", h), f.removeListener("end", d), f.removeListener("close", s), f.removeListener("error", v), b.removeListener("error", v), f.removeListener("end", c), f.removeListener("close", c), b.removeListener("close", c); + } + return f.on("end", c), f.on("close", c), b.on("close", c), b.emit("pipe", f), b; + }; + }, { events: 367, inherits: 387, "readable-stream/duplex.js": 507, "readable-stream/passthrough.js": 516, "readable-stream/readable.js": 517, "readable-stream/transform.js": 518, "readable-stream/writable.js": 519 }], 507: [function(e, x, _) { + x.exports = e("./lib/_stream_duplex.js"); + }, { "./lib/_stream_duplex.js": 508 }], 508: [function(e, x, _) { + var u = e("process-nextick-args"), m = Object.keys || function(v) { + var c = []; + for (var a in v) + c.push(a); + return c; + }; + x.exports = l; + var g = Object.create(e("core-util-is")); + g.inherits = e("inherits"); + var b = e("./_stream_readable"), w = e("./_stream_writable"); + g.inherits(l, b); + for (var f = m(w.prototype), y = 0; y < f.length; y++) { + var h = f[y]; + l.prototype[h] || (l.prototype[h] = w.prototype[h]); + } + function l(v) { + if (!(this instanceof l)) + return new l(v); + b.call(this, v), w.call(this, v), v && v.readable === !1 && (this.readable = !1), v && v.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, v && v.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", d); + } + Object.defineProperty(l.prototype, "writableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.highWaterMark; + } + }); + function d() { + this.allowHalfOpen || this._writableState.ended || u.nextTick(s, this); + } + function s(v) { + v.end(); + } + Object.defineProperty(l.prototype, "destroyed", { + get: function() { + return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed; + }, + set: function(c) { + this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = c, this._writableState.destroyed = c); + } + }), l.prototype._destroy = function(v, c) { + this.push(null), this.end(), u.nextTick(c, v); + }; + }, { "./_stream_readable": 510, "./_stream_writable": 512, "core-util-is": 328, inherits: 387, "process-nextick-args": 466 }], 509: [function(e, x, _) { + x.exports = g; + var u = e("./_stream_transform"), m = Object.create(e("core-util-is")); + m.inherits = e("inherits"), m.inherits(g, u); + function g(b) { + if (!(this instanceof g)) + return new g(b); + u.call(this, b); + } + g.prototype._transform = function(b, w, f) { + f(null, b); + }; + }, { "./_stream_transform": 511, "core-util-is": 328, inherits: 387 }], 510: [function(e, x, _) { + (function(u, m) { + var g = e("process-nextick-args"); + x.exports = O; + var b = e("isarray"), w; + O.ReadableState = p, e("events").EventEmitter; + var f = function(Q, he) { + return Q.listeners(he).length; + }, y = e("./internal/streams/stream"), h = e("safe-buffer").Buffer, l = m.Uint8Array || function() { + }; + function d(J) { + return h.from(J); + } + function s(J) { + return h.isBuffer(J) || J instanceof l; + } + var v = Object.create(e("core-util-is")); + v.inherits = e("inherits"); + var c = e("util"), a = void 0; + c && c.debuglog ? a = c.debuglog("stream") : a = function() { + }; + var r = e("./internal/streams/BufferList"), t = e("./internal/streams/destroy"), i; + v.inherits(O, y); + var n = ["error", "close", "destroy", "pause", "resume"]; + function o(J, Q, he) { + if (typeof J.prependListener == "function") + return J.prependListener(Q, he); + !J._events || !J._events[Q] ? J.on(Q, he) : b(J._events[Q]) ? J._events[Q].unshift(he) : J._events[Q] = [he, J._events[Q]]; + } + function p(J, Q) { + w = w || e("./_stream_duplex"), J = J || {}; + var he = Q instanceof w; + this.objectMode = !!J.objectMode, he && (this.objectMode = this.objectMode || !!J.readableObjectMode); + var ke = J.highWaterMark, ne = J.readableHighWaterMark, se = this.objectMode ? 16 : 16 * 1024; + ke || ke === 0 ? this.highWaterMark = ke : he && (ne || ne === 0) ? this.highWaterMark = ne : this.highWaterMark = se, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new r(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = J.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, J.encoding && (i || (i = e("string_decoder/").StringDecoder), this.decoder = new i(J.encoding), this.encoding = J.encoding); + } + function O(J) { + if (w = w || e("./_stream_duplex"), !(this instanceof O)) + return new O(J); + this._readableState = new p(J, this), this.readable = !0, J && (typeof J.read == "function" && (this._read = J.read), typeof J.destroy == "function" && (this._destroy = J.destroy)), y.call(this); + } + Object.defineProperty(O.prototype, "destroyed", { + get: function() { + return this._readableState === void 0 ? !1 : this._readableState.destroyed; + }, + set: function(Q) { + this._readableState && (this._readableState.destroyed = Q); + } + }), O.prototype.destroy = t.destroy, O.prototype._undestroy = t.undestroy, O.prototype._destroy = function(J, Q) { + this.push(null), Q(J); + }, O.prototype.push = function(J, Q) { + var he = this._readableState, ke; + return he.objectMode ? ke = !0 : typeof J == "string" && (Q = Q || he.defaultEncoding, Q !== he.encoding && (J = h.from(J, Q), Q = ""), ke = !0), P(this, J, Q, !1, ke); + }, O.prototype.unshift = function(J) { + return P(this, J, null, !0, !1); + }; + function P(J, Q, he, ke, ne) { + var se = J._readableState; + if (Q === null) + se.reading = !1, C(J, se); + else { + var Ce; + ne || (Ce = z(se, Q)), Ce ? J.emit("error", Ce) : se.objectMode || Q && Q.length > 0 ? (typeof Q != "string" && !se.objectMode && Object.getPrototypeOf(Q) !== h.prototype && (Q = d(Q)), ke ? se.endEmitted ? J.emit("error", new Error("stream.unshift() after end event")) : F(J, se, Q, !0) : se.ended ? J.emit("error", new Error("stream.push() after EOF")) : (se.reading = !1, se.decoder && !he ? (Q = se.decoder.write(Q), se.objectMode || Q.length !== 0 ? F(J, se, Q, !1) : L(J, se)) : F(J, se, Q, !1))) : ke || (se.reading = !1); + } + return N(se); + } + function F(J, Q, he, ke) { + Q.flowing && Q.length === 0 && !Q.sync ? (J.emit("data", he), J.read(0)) : (Q.length += Q.objectMode ? 1 : he.length, ke ? Q.buffer.unshift(he) : Q.buffer.push(he), Q.needReadable && E(J)), L(J, Q); + } + function z(J, Q) { + var he; + return !s(Q) && typeof Q != "string" && Q !== void 0 && !J.objectMode && (he = new TypeError("Invalid non-string/buffer chunk")), he; + } + function N(J) { + return !J.ended && (J.needReadable || J.length < J.highWaterMark || J.length === 0); + } + O.prototype.isPaused = function() { + return this._readableState.flowing === !1; + }, O.prototype.setEncoding = function(J) { + return i || (i = e("string_decoder/").StringDecoder), this._readableState.decoder = new i(J), this._readableState.encoding = J, this; + }; + var M = 8388608; + function I(J) { + return J >= M ? J = M : (J--, J |= J >>> 1, J |= J >>> 2, J |= J >>> 4, J |= J >>> 8, J |= J >>> 16, J++), J; + } + function R(J, Q) { + return J <= 0 || Q.length === 0 && Q.ended ? 0 : Q.objectMode ? 1 : J !== J ? Q.flowing && Q.length ? Q.buffer.head.data.length : Q.length : (J > Q.highWaterMark && (Q.highWaterMark = I(J)), J <= Q.length ? J : Q.ended ? Q.length : (Q.needReadable = !0, 0)); + } + O.prototype.read = function(J) { + a("read", J), J = parseInt(J, 10); + var Q = this._readableState, he = J; + if (J !== 0 && (Q.emittedReadable = !1), J === 0 && Q.needReadable && (Q.length >= Q.highWaterMark || Q.ended)) + return a("read: emitReadable", Q.length, Q.ended), Q.length === 0 && Q.ended ? ve(this) : E(this), null; + if (J = R(J, Q), J === 0 && Q.ended) + return Q.length === 0 && ve(this), null; + var ke = Q.needReadable; + a("need readable", ke), (Q.length === 0 || Q.length - J < Q.highWaterMark) && (ke = !0, a("length less than watermark", ke)), Q.ended || Q.reading ? (ke = !1, a("reading or ended", ke)) : ke && (a("do read"), Q.reading = !0, Q.sync = !0, Q.length === 0 && (Q.needReadable = !0), this._read(Q.highWaterMark), Q.sync = !1, Q.reading || (J = R(he, Q))); + var ne; + return J > 0 ? ne = V(J, Q) : ne = null, ne === null ? (Q.needReadable = !0, J = 0) : Q.length -= J, Q.length === 0 && (Q.ended || (Q.needReadable = !0), he !== J && Q.ended && ve(this)), ne !== null && this.emit("data", ne), ne; + }; + function C(J, Q) { + if (!Q.ended) { + if (Q.decoder) { + var he = Q.decoder.end(); + he && he.length && (Q.buffer.push(he), Q.length += Q.objectMode ? 1 : he.length); + } + Q.ended = !0, E(J); + } + } + function E(J) { + var Q = J._readableState; + Q.needReadable = !1, Q.emittedReadable || (a("emitReadable", Q.flowing), Q.emittedReadable = !0, Q.sync ? g.nextTick(A, J) : A(J)); + } + function A(J) { + a("emit readable"), J.emit("readable"), j(J); + } + function L(J, Q) { + Q.readingMore || (Q.readingMore = !0, g.nextTick($, J, Q)); + } + function $(J, Q) { + for (var he = Q.length; !Q.reading && !Q.flowing && !Q.ended && Q.length < Q.highWaterMark && (a("maybeReadMore read 0"), J.read(0), he !== Q.length); ) + he = Q.length; + Q.readingMore = !1; + } + O.prototype._read = function(J) { + this.emit("error", new Error("_read() is not implemented")); + }, O.prototype.pipe = function(J, Q) { + var he = this, ke = this._readableState; + switch (ke.pipesCount) { + case 0: + ke.pipes = J; + break; + case 1: + ke.pipes = [ke.pipes, J]; + break; + default: + ke.pipes.push(J); + break; + } + ke.pipesCount += 1, a("pipe count=%d opts=%j", ke.pipesCount, Q); + var ne = (!Q || Q.end !== !1) && J !== u.stdout && J !== u.stderr, se = ne ? q : ut; + ke.endEmitted ? g.nextTick(se) : he.once("end", se), J.on("unpipe", Ce); + function Ce(ot, Ue) { + a("onunpipe"), ot === he && Ue && Ue.hasUnpiped === !1 && (Ue.hasUnpiped = !0, fe()); + } + function q() { + a("onend"), J.end(); + } + var G = W(he); + J.on("drain", G); + var Y = !1; + function fe() { + a("cleanup"), J.removeListener("close", Ye), J.removeListener("finish", nt), J.removeListener("drain", G), J.removeListener("error", je), J.removeListener("unpipe", Ce), he.removeListener("end", q), he.removeListener("end", ut), he.removeListener("data", _e), Y = !0, ke.awaitDrain && (!J._writableState || J._writableState.needDrain) && G(); + } + var we = !1; + he.on("data", _e); + function _e(ot) { + a("ondata"), we = !1; + var Ue = J.write(ot); + Ue === !1 && !we && ((ke.pipesCount === 1 && ke.pipes === J || ke.pipesCount > 1 && oe(ke.pipes, J) !== -1) && !Y && (a("false write response, pause", he._readableState.awaitDrain), he._readableState.awaitDrain++, we = !0), he.pause()); + } + function je(ot) { + a("onerror", ot), ut(), J.removeListener("error", je), f(J, "error") === 0 && J.emit("error", ot); + } + o(J, "error", je); + function Ye() { + J.removeListener("finish", nt), ut(); + } + J.once("close", Ye); + function nt() { + a("onfinish"), J.removeListener("close", Ye), ut(); + } + J.once("finish", nt); + function ut() { + a("unpipe"), he.unpipe(J); + } + return J.emit("pipe", he), ke.flowing || (a("pipe resume"), he.resume()), J; + }; + function W(J) { + return function() { + var Q = J._readableState; + a("pipeOnDrain", Q.awaitDrain), Q.awaitDrain && Q.awaitDrain--, Q.awaitDrain === 0 && f(J, "data") && (Q.flowing = !0, j(J)); + }; + } + O.prototype.unpipe = function(J) { + var Q = this._readableState, he = { + hasUnpiped: !1 + }; + if (Q.pipesCount === 0) + return this; + if (Q.pipesCount === 1) + return J && J !== Q.pipes ? this : (J || (J = Q.pipes), Q.pipes = null, Q.pipesCount = 0, Q.flowing = !1, J && J.emit("unpipe", this, he), this); + if (!J) { + var ke = Q.pipes, ne = Q.pipesCount; + Q.pipes = null, Q.pipesCount = 0, Q.flowing = !1; + for (var se = 0; se < ne; se++) + ke[se].emit("unpipe", this, he); + return this; + } + var Ce = oe(Q.pipes, J); + return Ce === -1 ? this : (Q.pipes.splice(Ce, 1), Q.pipesCount -= 1, Q.pipesCount === 1 && (Q.pipes = Q.pipes[0]), J.emit("unpipe", this, he), this); + }, O.prototype.on = function(J, Q) { + var he = y.prototype.on.call(this, J, Q); + if (J === "data") + this._readableState.flowing !== !1 && this.resume(); + else if (J === "readable") { + var ke = this._readableState; + !ke.endEmitted && !ke.readableListening && (ke.readableListening = ke.needReadable = !0, ke.emittedReadable = !1, ke.reading ? ke.length && E(this) : g.nextTick(U, this)); + } + return he; + }, O.prototype.addListener = O.prototype.on; + function U(J) { + a("readable nexttick read 0"), J.read(0); + } + O.prototype.resume = function() { + var J = this._readableState; + return J.flowing || (a("resume"), J.flowing = !0, D(this, J)), this; + }; + function D(J, Q) { + Q.resumeScheduled || (Q.resumeScheduled = !0, g.nextTick(B, J, Q)); + } + function B(J, Q) { + Q.reading || (a("resume read 0"), J.read(0)), Q.resumeScheduled = !1, Q.awaitDrain = 0, J.emit("resume"), j(J), Q.flowing && !Q.reading && J.read(0); + } + O.prototype.pause = function() { + return a("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (a("pause"), this._readableState.flowing = !1, this.emit("pause")), this; + }; + function j(J) { + var Q = J._readableState; + for (a("flow", Q.flowing); Q.flowing && J.read() !== null; ) + ; + } + O.prototype.wrap = function(J) { + var Q = this, he = this._readableState, ke = !1; + J.on("end", function() { + if (a("wrapped end"), he.decoder && !he.ended) { + var Ce = he.decoder.end(); + Ce && Ce.length && Q.push(Ce); + } + Q.push(null); + }), J.on("data", function(Ce) { + if (a("wrapped data"), he.decoder && (Ce = he.decoder.write(Ce)), !(he.objectMode && Ce == null) && !(!he.objectMode && (!Ce || !Ce.length))) { + var q = Q.push(Ce); + q || (ke = !0, J.pause()); + } + }); + for (var ne in J) + this[ne] === void 0 && typeof J[ne] == "function" && (this[ne] = function(Ce) { + return function() { + return J[Ce].apply(J, arguments); + }; + }(ne)); + for (var se = 0; se < n.length; se++) + J.on(n[se], this.emit.bind(this, n[se])); + return this._read = function(Ce) { + a("wrapped _read", Ce), ke && (ke = !1, J.resume()); + }, this; + }, Object.defineProperty(O.prototype, "readableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._readableState.highWaterMark; + } + }), O._fromList = V; + function V(J, Q) { + if (Q.length === 0) + return null; + var he; + return Q.objectMode ? he = Q.buffer.shift() : !J || J >= Q.length ? (Q.decoder ? he = Q.buffer.join("") : Q.buffer.length === 1 ? he = Q.buffer.head.data : he = Q.buffer.concat(Q.length), Q.buffer.clear()) : he = re(J, Q.buffer, Q.decoder), he; + } + function re(J, Q, he) { + var ke; + return J < Q.head.data.length ? (ke = Q.head.data.slice(0, J), Q.head.data = Q.head.data.slice(J)) : J === Q.head.data.length ? ke = Q.shift() : ke = he ? ee(J, Q) : ce(J, Q), ke; + } + function ee(J, Q) { + var he = Q.head, ke = 1, ne = he.data; + for (J -= ne.length; he = he.next; ) { + var se = he.data, Ce = J > se.length ? se.length : J; + if (Ce === se.length ? ne += se : ne += se.slice(0, J), J -= Ce, J === 0) { + Ce === se.length ? (++ke, he.next ? Q.head = he.next : Q.head = Q.tail = null) : (Q.head = he, he.data = se.slice(Ce)); + break; + } + ++ke; + } + return Q.length -= ke, ne; + } + function ce(J, Q) { + var he = h.allocUnsafe(J), ke = Q.head, ne = 1; + for (ke.data.copy(he), J -= ke.data.length; ke = ke.next; ) { + var se = ke.data, Ce = J > se.length ? se.length : J; + if (se.copy(he, he.length - J, 0, Ce), J -= Ce, J === 0) { + Ce === se.length ? (++ne, ke.next ? Q.head = ke.next : Q.head = Q.tail = null) : (Q.head = ke, ke.data = se.slice(Ce)); + break; + } + ++ne; + } + return Q.length -= ne, he; + } + function ve(J) { + var Q = J._readableState; + if (Q.length > 0) + throw new Error('"endReadable()" called on non-empty stream'); + Q.endEmitted || (Q.ended = !0, g.nextTick(ge, Q, J)); + } + function ge(J, Q) { + !J.endEmitted && J.length === 0 && (J.endEmitted = !0, Q.readable = !1, Q.emit("end")); + } + function oe(J, Q) { + for (var he = 0, ke = J.length; he < ke; he++) + if (J[he] === Q) + return he; + return -1; + } + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { "./_stream_duplex": 508, "./internal/streams/BufferList": 513, "./internal/streams/destroy": 514, "./internal/streams/stream": 515, _process: 467, "core-util-is": 328, events: 367, inherits: 387, isarray: 389, "process-nextick-args": 466, "safe-buffer": 494, "string_decoder/": 520, util: 185 }], 511: [function(e, x, _) { + x.exports = b; + var u = e("./_stream_duplex"), m = Object.create(e("core-util-is")); + m.inherits = e("inherits"), m.inherits(b, u); + function g(y, h) { + var l = this._transformState; + l.transforming = !1; + var d = l.writecb; + if (!d) + return this.emit("error", new Error("write callback called multiple times")); + l.writechunk = null, l.writecb = null, h != null && this.push(h), d(y); + var s = this._readableState; + s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); + } + function b(y) { + if (!(this instanceof b)) + return new b(y); + u.call(this, y), this._transformState = { + afterTransform: g.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null + }, this._readableState.needReadable = !0, this._readableState.sync = !1, y && (typeof y.transform == "function" && (this._transform = y.transform), typeof y.flush == "function" && (this._flush = y.flush)), this.on("prefinish", w); + } + function w() { + var y = this; + typeof this._flush == "function" ? this._flush(function(h, l) { + f(y, h, l); + }) : f(this, null, null); + } + b.prototype.push = function(y, h) { + return this._transformState.needTransform = !1, u.prototype.push.call(this, y, h); + }, b.prototype._transform = function(y, h, l) { + throw new Error("_transform() is not implemented"); + }, b.prototype._write = function(y, h, l) { + var d = this._transformState; + if (d.writecb = l, d.writechunk = y, d.writeencoding = h, !d.transforming) { + var s = this._readableState; + (d.needTransform || s.needReadable || s.length < s.highWaterMark) && this._read(s.highWaterMark); + } + }, b.prototype._read = function(y) { + var h = this._transformState; + h.writechunk !== null && h.writecb && !h.transforming ? (h.transforming = !0, this._transform(h.writechunk, h.writeencoding, h.afterTransform)) : h.needTransform = !0; + }, b.prototype._destroy = function(y, h) { + var l = this; + u.prototype._destroy.call(this, y, function(d) { + h(d), l.emit("close"); + }); + }; + function f(y, h, l) { + if (h) + return y.emit("error", h); + if (l != null && y.push(l), y._writableState.length) + throw new Error("Calling transform done when ws.length != 0"); + if (y._transformState.transforming) + throw new Error("Calling transform done when still transforming"); + return y.push(null); + } + }, { "./_stream_duplex": 508, "core-util-is": 328, inherits: 387 }], 512: [function(e, x, _) { + (function(u, m, g) { + var b = e("process-nextick-args"); + x.exports = o; + function w(B) { + var j = this; + this.next = null, this.entry = null, this.finish = function() { + D(j, B); + }; + } + var f = !u.browser && ["v0.10", "v0.9."].indexOf(u.version.slice(0, 5)) > -1 ? g : b.nextTick, y; + o.WritableState = i; + var h = Object.create(e("core-util-is")); + h.inherits = e("inherits"); + var l = { + deprecate: e("util-deprecate") + }, d = e("./internal/streams/stream"), s = e("safe-buffer").Buffer, v = m.Uint8Array || function() { + }; + function c(B) { + return s.from(B); + } + function a(B) { + return s.isBuffer(B) || B instanceof v; + } + var r = e("./internal/streams/destroy"); + h.inherits(o, d); + function t() { + } + function i(B, j) { + y = y || e("./_stream_duplex"), B = B || {}; + var V = j instanceof y; + this.objectMode = !!B.objectMode, V && (this.objectMode = this.objectMode || !!B.writableObjectMode); + var re = B.highWaterMark, ee = B.writableHighWaterMark, ce = this.objectMode ? 16 : 16 * 1024; + re || re === 0 ? this.highWaterMark = re : V && (ee || ee === 0) ? this.highWaterMark = ee : this.highWaterMark = ce, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; + var ve = B.decodeStrings === !1; + this.decodeStrings = !ve, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ge) { + I(j, ge); + }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new w(this); + } + i.prototype.getBuffer = function() { + for (var j = this.bufferedRequest, V = []; j; ) + V.push(j), j = j.next; + return V; + }, function() { + try { + Object.defineProperty(i.prototype, "buffer", { + get: l.deprecate(function() { + return this.getBuffer(); + }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") + }); + } catch (B) { + } + }(); + var n; + typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (n = Function.prototype[Symbol.hasInstance], Object.defineProperty(o, Symbol.hasInstance, { + value: function(j) { + return n.call(this, j) ? !0 : this !== o ? !1 : j && j._writableState instanceof i; + } + })) : n = function(j) { + return j instanceof this; + }; + function o(B) { + if (y = y || e("./_stream_duplex"), !n.call(o, this) && !(this instanceof y)) + return new o(B); + this._writableState = new i(B, this), this.writable = !0, B && (typeof B.write == "function" && (this._write = B.write), typeof B.writev == "function" && (this._writev = B.writev), typeof B.destroy == "function" && (this._destroy = B.destroy), typeof B.final == "function" && (this._final = B.final)), d.call(this); + } + o.prototype.pipe = function() { + this.emit("error", new Error("Cannot pipe, not readable")); + }; + function p(B, j) { + var V = new Error("write after end"); + B.emit("error", V), b.nextTick(j, V); + } + function O(B, j, V, re) { + var ee = !0, ce = !1; + return V === null ? ce = new TypeError("May not write null values to stream") : typeof V != "string" && V !== void 0 && !j.objectMode && (ce = new TypeError("Invalid non-string/buffer chunk")), ce && (B.emit("error", ce), b.nextTick(re, ce), ee = !1), ee; + } + o.prototype.write = function(B, j, V) { + var re = this._writableState, ee = !1, ce = !re.objectMode && a(B); + return ce && !s.isBuffer(B) && (B = c(B)), typeof j == "function" && (V = j, j = null), ce ? j = "buffer" : j || (j = re.defaultEncoding), typeof V != "function" && (V = t), re.ended ? p(this, V) : (ce || O(this, re, B, V)) && (re.pendingcb++, ee = F(this, re, ce, B, j, V)), ee; + }, o.prototype.cork = function() { + var B = this._writableState; + B.corked++; + }, o.prototype.uncork = function() { + var B = this._writableState; + B.corked && (B.corked--, !B.writing && !B.corked && !B.finished && !B.bufferProcessing && B.bufferedRequest && E(this, B)); + }, o.prototype.setDefaultEncoding = function(j) { + if (typeof j == "string" && (j = j.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((j + "").toLowerCase()) > -1)) + throw new TypeError("Unknown encoding: " + j); + return this._writableState.defaultEncoding = j, this; + }; + function P(B, j, V) { + return !B.objectMode && B.decodeStrings !== !1 && typeof j == "string" && (j = s.from(j, V)), j; + } + Object.defineProperty(o.prototype, "writableHighWaterMark", { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: !1, + get: function() { + return this._writableState.highWaterMark; + } + }); + function F(B, j, V, re, ee, ce) { + if (!V) { + var ve = P(j, re, ee); + re !== ve && (V = !0, ee = "buffer", re = ve); + } + var ge = j.objectMode ? 1 : re.length; + j.length += ge; + var oe = j.length < j.highWaterMark; + if (oe || (j.needDrain = !0), j.writing || j.corked) { + var J = j.lastBufferedRequest; + j.lastBufferedRequest = { + chunk: re, + encoding: ee, + isBuf: V, + callback: ce, + next: null + }, J ? J.next = j.lastBufferedRequest : j.bufferedRequest = j.lastBufferedRequest, j.bufferedRequestCount += 1; + } else + z(B, j, !1, ge, re, ee, ce); + return oe; + } + function z(B, j, V, re, ee, ce, ve) { + j.writelen = re, j.writecb = ve, j.writing = !0, j.sync = !0, V ? B._writev(ee, j.onwrite) : B._write(ee, ce, j.onwrite), j.sync = !1; + } + function N(B, j, V, re, ee) { + --j.pendingcb, V ? (b.nextTick(ee, re), b.nextTick(W, B, j), B._writableState.errorEmitted = !0, B.emit("error", re)) : (ee(re), B._writableState.errorEmitted = !0, B.emit("error", re), W(B, j)); + } + function M(B) { + B.writing = !1, B.writecb = null, B.length -= B.writelen, B.writelen = 0; + } + function I(B, j) { + var V = B._writableState, re = V.sync, ee = V.writecb; + if (M(V), j) + N(B, V, re, j, ee); + else { + var ce = A(V); + !ce && !V.corked && !V.bufferProcessing && V.bufferedRequest && E(B, V), re ? f(R, B, V, ce, ee) : R(B, V, ce, ee); + } + } + function R(B, j, V, re) { + V || C(B, j), j.pendingcb--, re(), W(B, j); + } + function C(B, j) { + j.length === 0 && j.needDrain && (j.needDrain = !1, B.emit("drain")); + } + function E(B, j) { + j.bufferProcessing = !0; + var V = j.bufferedRequest; + if (B._writev && V && V.next) { + var re = j.bufferedRequestCount, ee = new Array(re), ce = j.corkedRequestsFree; + ce.entry = V; + for (var ve = 0, ge = !0; V; ) + ee[ve] = V, V.isBuf || (ge = !1), V = V.next, ve += 1; + ee.allBuffers = ge, z(B, j, !0, j.length, ee, "", ce.finish), j.pendingcb++, j.lastBufferedRequest = null, ce.next ? (j.corkedRequestsFree = ce.next, ce.next = null) : j.corkedRequestsFree = new w(j), j.bufferedRequestCount = 0; + } else { + for (; V; ) { + var oe = V.chunk, J = V.encoding, Q = V.callback, he = j.objectMode ? 1 : oe.length; + if (z(B, j, !1, he, oe, J, Q), V = V.next, j.bufferedRequestCount--, j.writing) + break; + } + V === null && (j.lastBufferedRequest = null); + } + j.bufferedRequest = V, j.bufferProcessing = !1; + } + o.prototype._write = function(B, j, V) { + V(new Error("_write() is not implemented")); + }, o.prototype._writev = null, o.prototype.end = function(B, j, V) { + var re = this._writableState; + typeof B == "function" ? (V = B, B = null, j = null) : typeof j == "function" && (V = j, j = null), B != null && this.write(B, j), re.corked && (re.corked = 1, this.uncork()), !re.ending && !re.finished && U(this, re, V); + }; + function A(B) { + return B.ending && B.length === 0 && B.bufferedRequest === null && !B.finished && !B.writing; + } + function L(B, j) { + B._final(function(V) { + j.pendingcb--, V && B.emit("error", V), j.prefinished = !0, B.emit("prefinish"), W(B, j); + }); + } + function $(B, j) { + !j.prefinished && !j.finalCalled && (typeof B._final == "function" ? (j.pendingcb++, j.finalCalled = !0, b.nextTick(L, B, j)) : (j.prefinished = !0, B.emit("prefinish"))); + } + function W(B, j) { + var V = A(j); + return V && ($(B, j), j.pendingcb === 0 && (j.finished = !0, B.emit("finish"))), V; + } + function U(B, j, V) { + j.ending = !0, W(B, j), V && (j.finished ? b.nextTick(V) : B.once("finish", V)), j.ended = !0, B.writable = !1; + } + function D(B, j, V) { + var re = B.entry; + for (B.entry = null; re; ) { + var ee = re.callback; + j.pendingcb--, ee(V), re = re.next; + } + j.corkedRequestsFree ? j.corkedRequestsFree.next = B : j.corkedRequestsFree = B; + } + Object.defineProperty(o.prototype, "destroyed", { + get: function() { + return this._writableState === void 0 ? !1 : this._writableState.destroyed; + }, + set: function(j) { + this._writableState && (this._writableState.destroyed = j); + } + }), o.prototype.destroy = r.destroy, o.prototype._undestroy = r.undestroy, o.prototype._destroy = function(B, j) { + this.end(), j(B); + }; + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}, e("timers").setImmediate); + }, { "./_stream_duplex": 508, "./internal/streams/destroy": 514, "./internal/streams/stream": 515, _process: 467, "core-util-is": 328, inherits: 387, "process-nextick-args": 466, "safe-buffer": 494, timers: 521, "util-deprecate": 522 }], 513: [function(e, x, _) { + function u(w, f) { + if (!(w instanceof f)) + throw new TypeError("Cannot call a class as a function"); + } + var m = e("safe-buffer").Buffer, g = e("util"); + function b(w, f, y) { + w.copy(f, y); + } + x.exports = function() { + function w() { + u(this, w), this.head = null, this.tail = null, this.length = 0; + } + return w.prototype.push = function(y) { + var h = { + data: y, + next: null + }; + this.length > 0 ? this.tail.next = h : this.head = h, this.tail = h, ++this.length; + }, w.prototype.unshift = function(y) { + var h = { + data: y, + next: this.head + }; + this.length === 0 && (this.tail = h), this.head = h, ++this.length; + }, w.prototype.shift = function() { + if (this.length !== 0) { + var y = this.head.data; + return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, y; + } + }, w.prototype.clear = function() { + this.head = this.tail = null, this.length = 0; + }, w.prototype.join = function(y) { + if (this.length === 0) + return ""; + for (var h = this.head, l = "" + h.data; h = h.next; ) + l += y + h.data; + return l; + }, w.prototype.concat = function(y) { + if (this.length === 0) + return m.alloc(0); + if (this.length === 1) + return this.head.data; + for (var h = m.allocUnsafe(y >>> 0), l = this.head, d = 0; l; ) + b(l.data, h, d), d += l.data.length, l = l.next; + return h; + }, w; + }(), g && g.inspect && g.inspect.custom && (x.exports.prototype[g.inspect.custom] = function() { + var w = g.inspect({ + length: this.length + }); + return this.constructor.name + " " + w; + }); + }, { "safe-buffer": 494, util: 185 }], 514: [function(e, x, _) { + var u = e("process-nextick-args"); + function m(w, f) { + var y = this, h = this._readableState && this._readableState.destroyed, l = this._writableState && this._writableState.destroyed; + return h || l ? (f ? f(w) : w && (!this._writableState || !this._writableState.errorEmitted) && u.nextTick(b, this, w), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(w || null, function(d) { + !f && d ? (u.nextTick(b, y, d), y._writableState && (y._writableState.errorEmitted = !0)) : f && f(d); + }), this); + } + function g() { + this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1); + } + function b(w, f) { + w.emit("error", f); + } + x.exports = { + destroy: m, + undestroy: g + }; + }, { "process-nextick-args": 466 }], 515: [function(e, x, _) { + arguments[4][490][0].apply(_, arguments); + }, { dup: 490, events: 367 }], 516: [function(e, x, _) { + x.exports = e("./readable").PassThrough; + }, { "./readable": 517 }], 517: [function(e, x, _) { + _ = x.exports = e("./lib/_stream_readable.js"), _.Stream = _, _.Readable = _, _.Writable = e("./lib/_stream_writable.js"), _.Duplex = e("./lib/_stream_duplex.js"), _.Transform = e("./lib/_stream_transform.js"), _.PassThrough = e("./lib/_stream_passthrough.js"); + }, { "./lib/_stream_duplex.js": 508, "./lib/_stream_passthrough.js": 509, "./lib/_stream_readable.js": 510, "./lib/_stream_transform.js": 511, "./lib/_stream_writable.js": 512 }], 518: [function(e, x, _) { + x.exports = e("./readable").Transform; + }, { "./readable": 517 }], 519: [function(e, x, _) { + x.exports = e("./lib/_stream_writable.js"); + }, { "./lib/_stream_writable.js": 512 }], 520: [function(e, x, _) { + var u = e("safe-buffer").Buffer, m = u.isEncoding || function(n) { + switch (n = "" + n, n && n.toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return !0; + default: + return !1; + } + }; + function g(n) { + if (!n) + return "utf8"; + for (var o; ; ) + switch (n) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return n; + default: + if (o) + return; + n = ("" + n).toLowerCase(), o = !0; + } + } + function b(n) { + var o = g(n); + if (typeof o != "string" && (u.isEncoding === m || !m(n))) + throw new Error("Unknown encoding: " + n); + return o || n; + } + _.StringDecoder = w; + function w(n) { + this.encoding = b(n); + var o; + switch (this.encoding) { + case "utf16le": + this.text = v, this.end = c, o = 4; + break; + case "utf8": + this.fillLast = l, o = 4; + break; + case "base64": + this.text = a, this.end = r, o = 3; + break; + default: + this.write = t, this.end = i; + return; + } + this.lastNeed = 0, this.lastTotal = 0, this.lastChar = u.allocUnsafe(o); + } + w.prototype.write = function(n) { + if (n.length === 0) + return ""; + var o, p; + if (this.lastNeed) { + if (o = this.fillLast(n), o === void 0) + return ""; + p = this.lastNeed, this.lastNeed = 0; + } else + p = 0; + return p < n.length ? o ? o + this.text(n, p) : this.text(n, p) : o || ""; + }, w.prototype.end = s, w.prototype.text = d, w.prototype.fillLast = function(n) { + if (this.lastNeed <= n.length) + return n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + n.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, n.length), this.lastNeed -= n.length; + }; + function f(n) { + return n <= 127 ? 0 : n >> 5 === 6 ? 2 : n >> 4 === 14 ? 3 : n >> 3 === 30 ? 4 : n >> 6 === 2 ? -1 : -2; + } + function y(n, o, p) { + var O = o.length - 1; + if (O < p) + return 0; + var P = f(o[O]); + return P >= 0 ? (P > 0 && (n.lastNeed = P - 1), P) : --O < p || P === -2 ? 0 : (P = f(o[O]), P >= 0 ? (P > 0 && (n.lastNeed = P - 2), P) : --O < p || P === -2 ? 0 : (P = f(o[O]), P >= 0 ? (P > 0 && (P === 2 ? P = 0 : n.lastNeed = P - 3), P) : 0)); + } + function h(n, o, p) { + if ((o[0] & 192) !== 128) + return n.lastNeed = 0, "�"; + if (n.lastNeed > 1 && o.length > 1) { + if ((o[1] & 192) !== 128) + return n.lastNeed = 1, "�"; + if (n.lastNeed > 2 && o.length > 2 && (o[2] & 192) !== 128) + return n.lastNeed = 2, "�"; + } + } + function l(n) { + var o = this.lastTotal - this.lastNeed, p = h(this, n); + if (p !== void 0) + return p; + if (this.lastNeed <= n.length) + return n.copy(this.lastChar, o, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + n.copy(this.lastChar, o, 0, n.length), this.lastNeed -= n.length; + } + function d(n, o) { + var p = y(this, n, o); + if (!this.lastNeed) + return n.toString("utf8", o); + this.lastTotal = p; + var O = n.length - (p - this.lastNeed); + return n.copy(this.lastChar, 0, O), n.toString("utf8", o, O); + } + function s(n) { + var o = n && n.length ? this.write(n) : ""; + return this.lastNeed ? o + "�" : o; + } + function v(n, o) { + if ((n.length - o) % 2 === 0) { + var p = n.toString("utf16le", o); + if (p) { + var O = p.charCodeAt(p.length - 1); + if (O >= 55296 && O <= 56319) + return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1], p.slice(0, -1); + } + return p; + } + return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = n[n.length - 1], n.toString("utf16le", o, n.length - 1); + } + function c(n) { + var o = n && n.length ? this.write(n) : ""; + if (this.lastNeed) { + var p = this.lastTotal - this.lastNeed; + return o + this.lastChar.toString("utf16le", 0, p); + } + return o; + } + function a(n, o) { + var p = (n.length - o) % 3; + return p === 0 ? n.toString("base64", o) : (this.lastNeed = 3 - p, this.lastTotal = 3, p === 1 ? this.lastChar[0] = n[n.length - 1] : (this.lastChar[0] = n[n.length - 2], this.lastChar[1] = n[n.length - 1]), n.toString("base64", o, n.length - p)); + } + function r(n) { + var o = n && n.length ? this.write(n) : ""; + return this.lastNeed ? o + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : o; + } + function t(n) { + return n.toString(this.encoding); + } + function i(n) { + return n && n.length ? this.write(n) : ""; + } + }, { "safe-buffer": 494 }], 521: [function(e, x, _) { + (function(u, m) { + var g = e("process/browser.js").nextTick, b = Function.prototype.apply, w = Array.prototype.slice, f = {}, y = 0; + _.setTimeout = function() { + return new h(b.call(setTimeout, window, arguments), clearTimeout); + }, _.setInterval = function() { + return new h(b.call(setInterval, window, arguments), clearInterval); + }, _.clearTimeout = _.clearInterval = function(l) { + l.close(); + }; + function h(l, d) { + this._id = l, this._clearFn = d; + } + h.prototype.unref = h.prototype.ref = function() { + }, h.prototype.close = function() { + this._clearFn.call(window, this._id); + }, _.enroll = function(l, d) { + clearTimeout(l._idleTimeoutId), l._idleTimeout = d; + }, _.unenroll = function(l) { + clearTimeout(l._idleTimeoutId), l._idleTimeout = -1; + }, _._unrefActive = _.active = function(l) { + clearTimeout(l._idleTimeoutId); + var d = l._idleTimeout; + d >= 0 && (l._idleTimeoutId = setTimeout(function() { + l._onTimeout && l._onTimeout(); + }, d)); + }, _.setImmediate = typeof u == "function" ? u : function(l) { + var d = y++, s = arguments.length < 2 ? !1 : w.call(arguments, 1); + return f[d] = !0, g(function() { + f[d] && (s ? l.apply(null, s) : l.call(null), _.clearImmediate(d)); + }), d; + }, _.clearImmediate = typeof m == "function" ? m : function(l) { + delete f[l]; + }; + }).call(this, e("timers").setImmediate, e("timers").clearImmediate); + }, { "process/browser.js": 467, timers: 521 }], 522: [function(e, x, _) { + (function(u) { + x.exports = m; + function m(b, w) { + if (g("noDeprecation")) + return b; + var f = !1; + function y() { + if (!f) { + if (g("throwDeprecation")) + throw new Error(w); + g("traceDeprecation") ? console.trace(w) : console.warn(w), f = !0; + } + return b.apply(this, arguments); + } + return y; + } + function g(b) { + try { + if (!u.localStorage) + return !1; + } catch (f) { + return !1; + } + var w = u.localStorage[b]; + return w == null ? !1 : String(w).toLowerCase() === "true"; + } + }).call(this, typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, {}], 523: [function(e, x, _) { + typeof Object.create == "function" ? x.exports = function(m, g) { + m.super_ = g, m.prototype = Object.create(g.prototype, { + constructor: { + value: m, + enumerable: !1, + writable: !0, + configurable: !0 + } + }); + } : x.exports = function(m, g) { + m.super_ = g; + var b = function() { + }; + b.prototype = g.prototype, m.prototype = new b(), m.prototype.constructor = m; + }; + }, {}], 524: [function(e, x, _) { + function u(m) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? u = function(b) { + return typeof b; + } : u = function(b) { + return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b; + }, u(m); + } + x.exports = function(g) { + return g && u(g) === "object" && typeof g.copy == "function" && typeof g.fill == "function" && typeof g.readUInt8 == "function"; + }; + }, {}], 525: [function(e, x, _) { + (function(u, m) { + function g(D) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? g = function(j) { + return typeof j; + } : g = function(j) { + return j && typeof Symbol == "function" && j.constructor === Symbol && j !== Symbol.prototype ? "symbol" : typeof j; + }, g(D); + } + var b = /%[sdj%]/g; + _.format = function(D) { + if (!P(D)) { + for (var B = [], j = 0; j < arguments.length; j++) + B.push(y(arguments[j])); + return B.join(" "); + } + for (var j = 1, V = arguments, re = V.length, ee = String(D).replace(b, function(ve) { + if (ve === "%%") + return "%"; + if (j >= re) + return ve; + switch (ve) { + case "%s": + return String(V[j++]); + case "%d": + return Number(V[j++]); + case "%j": + try { + return JSON.stringify(V[j++]); + } catch (ge) { + return "[Circular]"; + } + default: + return ve; + } + }), ce = V[j]; j < re; ce = V[++j]) + o(ce) || !M(ce) ? ee += " " + ce : ee += " " + y(ce); + return ee; + }, _.deprecate = function(D, B) { + if (z(m.process)) + return function() { + return _.deprecate(D, B).apply(this, arguments); + }; + if (u.noDeprecation === !0) + return D; + var j = !1; + function V() { + if (!j) { + if (u.throwDeprecation) + throw new Error(B); + u.traceDeprecation ? console.trace(B) : console.error(B), j = !0; + } + return D.apply(this, arguments); + } + return V; + }; + var w = {}, f; + _.debuglog = function(D) { + if (z(f) && (f = u.env.NODE_DEBUG || ""), D = D.toUpperCase(), !w[D]) + if (new RegExp("\\b" + D + "\\b", "i").test(f)) { + var B = u.pid; + w[D] = function() { + var j = _.format.apply(_, arguments); + console.error("%s %d: %s", D, B, j); + }; + } else + w[D] = function() { + }; + return w[D]; + }; + function y(D, B) { + var j = { + seen: [], + stylize: l + }; + return arguments.length >= 3 && (j.depth = arguments[2]), arguments.length >= 4 && (j.colors = arguments[3]), n(B) ? j.showHidden = B : B && _._extend(j, B), z(j.showHidden) && (j.showHidden = !1), z(j.depth) && (j.depth = 2), z(j.colors) && (j.colors = !1), z(j.customInspect) && (j.customInspect = !0), j.colors && (j.stylize = h), s(j, D, j.depth); + } + _.inspect = y, y.colors = { + bold: [1, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + white: [37, 39], + grey: [90, 39], + black: [30, 39], + blue: [34, 39], + cyan: [36, 39], + green: [32, 39], + magenta: [35, 39], + red: [31, 39], + yellow: [33, 39] + }, y.styles = { + special: "cyan", + number: "yellow", + boolean: "yellow", + undefined: "grey", + null: "bold", + string: "green", + date: "magenta", + // "name": intentionally not styling + regexp: "red" + }; + function h(D, B) { + var j = y.styles[B]; + return j ? "\x1B[" + y.colors[j][0] + "m" + D + "\x1B[" + y.colors[j][1] + "m" : D; + } + function l(D, B) { + return D; + } + function d(D) { + var B = {}; + return D.forEach(function(j, V) { + B[j] = !0; + }), B; + } + function s(D, B, j) { + if (D.customInspect && B && C(B.inspect) && // Filter out the util module, it's inspect function is special + B.inspect !== _.inspect && // Also filter out any prototype objects using the circular check. + !(B.constructor && B.constructor.prototype === B)) { + var V = B.inspect(j, D); + return P(V) || (V = s(D, V, j)), V; + } + var re = v(D, B); + if (re) + return re; + var ee = Object.keys(B), ce = d(ee); + if (D.showHidden && (ee = Object.getOwnPropertyNames(B)), R(B) && (ee.indexOf("message") >= 0 || ee.indexOf("description") >= 0)) + return c(B); + if (ee.length === 0) { + if (C(B)) { + var ve = B.name ? ": " + B.name : ""; + return D.stylize("[Function" + ve + "]", "special"); + } + if (N(B)) + return D.stylize(RegExp.prototype.toString.call(B), "regexp"); + if (I(B)) + return D.stylize(Date.prototype.toString.call(B), "date"); + if (R(B)) + return c(B); + } + var ge = "", oe = !1, J = ["{", "}"]; + if (i(B) && (oe = !0, J = ["[", "]"]), C(B)) { + var Q = B.name ? ": " + B.name : ""; + ge = " [Function" + Q + "]"; + } + if (N(B) && (ge = " " + RegExp.prototype.toString.call(B)), I(B) && (ge = " " + Date.prototype.toUTCString.call(B)), R(B) && (ge = " " + c(B)), ee.length === 0 && (!oe || B.length == 0)) + return J[0] + ge + J[1]; + if (j < 0) + return N(B) ? D.stylize(RegExp.prototype.toString.call(B), "regexp") : D.stylize("[Object]", "special"); + D.seen.push(B); + var he; + return oe ? he = a(D, B, j, ce, ee) : he = ee.map(function(ke) { + return r(D, B, j, ce, ke, oe); + }), D.seen.pop(), t(he, ge, J); + } + function v(D, B) { + if (z(B)) + return D.stylize("undefined", "undefined"); + if (P(B)) { + var j = "'" + JSON.stringify(B).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; + return D.stylize(j, "string"); + } + if (O(B)) + return D.stylize("" + B, "number"); + if (n(B)) + return D.stylize("" + B, "boolean"); + if (o(B)) + return D.stylize("null", "null"); + } + function c(D) { + return "[" + Error.prototype.toString.call(D) + "]"; + } + function a(D, B, j, V, re) { + for (var ee = [], ce = 0, ve = B.length; ce < ve; ++ce) + U(B, String(ce)) ? ee.push(r(D, B, j, V, String(ce), !0)) : ee.push(""); + return re.forEach(function(ge) { + ge.match(/^\d+$/) || ee.push(r(D, B, j, V, ge, !0)); + }), ee; + } + function r(D, B, j, V, re, ee) { + var ce, ve, ge; + if (ge = Object.getOwnPropertyDescriptor(B, re) || { + value: B[re] + }, ge.get ? ge.set ? ve = D.stylize("[Getter/Setter]", "special") : ve = D.stylize("[Getter]", "special") : ge.set && (ve = D.stylize("[Setter]", "special")), U(V, re) || (ce = "[" + re + "]"), ve || (D.seen.indexOf(ge.value) < 0 ? (o(j) ? ve = s(D, ge.value, null) : ve = s(D, ge.value, j - 1), ve.indexOf(` +`) > -1 && (ee ? ve = ve.split(` +`).map(function(oe) { + return " " + oe; + }).join(` +`).substr(2) : ve = ` +` + ve.split(` +`).map(function(oe) { + return " " + oe; + }).join(` +`))) : ve = D.stylize("[Circular]", "special")), z(ce)) { + if (ee && re.match(/^\d+$/)) + return ve; + ce = JSON.stringify("" + re), ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (ce = ce.substr(1, ce.length - 2), ce = D.stylize(ce, "name")) : (ce = ce.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), ce = D.stylize(ce, "string")); + } + return ce + ": " + ve; + } + function t(D, B, j) { + var V = D.reduce(function(re, ee) { + return ee.indexOf(` +`) >= 0, re + ee.replace(/\u001b\[\d\d?m/g, "").length + 1; + }, 0); + return V > 60 ? j[0] + (B === "" ? "" : B + ` + `) + " " + D.join(`, + `) + " " + j[1] : j[0] + B + " " + D.join(", ") + " " + j[1]; + } + function i(D) { + return Array.isArray(D); + } + _.isArray = i; + function n(D) { + return typeof D == "boolean"; + } + _.isBoolean = n; + function o(D) { + return D === null; + } + _.isNull = o; + function p(D) { + return D == null; + } + _.isNullOrUndefined = p; + function O(D) { + return typeof D == "number"; + } + _.isNumber = O; + function P(D) { + return typeof D == "string"; + } + _.isString = P; + function F(D) { + return g(D) === "symbol"; + } + _.isSymbol = F; + function z(D) { + return D === void 0; + } + _.isUndefined = z; + function N(D) { + return M(D) && A(D) === "[object RegExp]"; + } + _.isRegExp = N; + function M(D) { + return g(D) === "object" && D !== null; + } + _.isObject = M; + function I(D) { + return M(D) && A(D) === "[object Date]"; + } + _.isDate = I; + function R(D) { + return M(D) && (A(D) === "[object Error]" || D instanceof Error); + } + _.isError = R; + function C(D) { + return typeof D == "function"; + } + _.isFunction = C; + function E(D) { + return D === null || typeof D == "boolean" || typeof D == "number" || typeof D == "string" || g(D) === "symbol" || // ES6 symbol + typeof D == "undefined"; + } + _.isPrimitive = E, _.isBuffer = e("./support/isBuffer"); + function A(D) { + return Object.prototype.toString.call(D); + } + function L(D) { + return D < 10 ? "0" + D.toString(10) : D.toString(10); + } + var $ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function W() { + var D = /* @__PURE__ */ new Date(), B = [L(D.getHours()), L(D.getMinutes()), L(D.getSeconds())].join(":"); + return [D.getDate(), $[D.getMonth()], B].join(" "); + } + _.log = function() { + console.log("%s - %s", W(), _.format.apply(_, arguments)); + }, _.inherits = e("inherits"), _._extend = function(D, B) { + if (!B || !M(B)) + return D; + for (var j = Object.keys(B), V = j.length; V--; ) + D[j[V]] = B[j[V]]; + return D; + }; + function U(D, B) { + return Object.prototype.hasOwnProperty.call(D, B); + } + }).call(this, e("_process"), typeof Wt != "undefined" ? Wt : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); + }, { "./support/isBuffer": 524, _process: 467, inherits: 523 }], 526: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), Object.defineProperty(_, "v1", { + enumerable: !0, + get: function() { + return u.default; + } + }), Object.defineProperty(_, "v3", { + enumerable: !0, + get: function() { + return m.default; + } + }), Object.defineProperty(_, "v4", { + enumerable: !0, + get: function() { + return g.default; + } + }), Object.defineProperty(_, "v5", { + enumerable: !0, + get: function() { + return b.default; + } + }), Object.defineProperty(_, "NIL", { + enumerable: !0, + get: function() { + return w.default; + } + }), Object.defineProperty(_, "version", { + enumerable: !0, + get: function() { + return f.default; + } + }), Object.defineProperty(_, "validate", { + enumerable: !0, + get: function() { + return y.default; + } + }), Object.defineProperty(_, "stringify", { + enumerable: !0, + get: function() { + return h.default; + } + }), Object.defineProperty(_, "parse", { + enumerable: !0, + get: function() { + return l.default; + } + }); + var u = d(e("./v1.js")), m = d(e("./v3.js")), g = d(e("./v4.js")), b = d(e("./v5.js")), w = d(e("./nil.js")), f = d(e("./version.js")), y = d(e("./validate.js")), h = d(e("./stringify.js")), l = d(e("./parse.js")); + function d(s) { + return s && s.__esModule ? s : { + default: s + }; + } + }, { "./nil.js": 528, "./parse.js": 529, "./stringify.js": 533, "./v1.js": 534, "./v3.js": 535, "./v4.js": 537, "./v5.js": 538, "./validate.js": 539, "./version.js": 540 }], 527: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + function u(a) { + if (typeof a == "string") { + var r = unescape(encodeURIComponent(a)); + a = new Uint8Array(r.length); + for (var t = 0; t < r.length; ++t) + a[t] = r.charCodeAt(t); + } + return m(b(w(a), a.length * 8)); + } + function m(a) { + for (var r = [], t = a.length * 32, i = "0123456789abcdef", n = 0; n < t; n += 8) { + var o = a[n >> 5] >>> n % 32 & 255, p = parseInt(i.charAt(o >>> 4 & 15) + i.charAt(o & 15), 16); + r.push(p); + } + return r; + } + function g(a) { + return (a + 64 >>> 9 << 4) + 14 + 1; + } + function b(a, r) { + a[r >> 5] |= 128 << r % 32, a[g(r) - 1] = r; + for (var t = 1732584193, i = -271733879, n = -1732584194, o = 271733878, p = 0; p < a.length; p += 16) { + var O = t, P = i, F = n, z = o; + t = l(t, i, n, o, a[p], 7, -680876936), o = l(o, t, i, n, a[p + 1], 12, -389564586), n = l(n, o, t, i, a[p + 2], 17, 606105819), i = l(i, n, o, t, a[p + 3], 22, -1044525330), t = l(t, i, n, o, a[p + 4], 7, -176418897), o = l(o, t, i, n, a[p + 5], 12, 1200080426), n = l(n, o, t, i, a[p + 6], 17, -1473231341), i = l(i, n, o, t, a[p + 7], 22, -45705983), t = l(t, i, n, o, a[p + 8], 7, 1770035416), o = l(o, t, i, n, a[p + 9], 12, -1958414417), n = l(n, o, t, i, a[p + 10], 17, -42063), i = l(i, n, o, t, a[p + 11], 22, -1990404162), t = l(t, i, n, o, a[p + 12], 7, 1804603682), o = l(o, t, i, n, a[p + 13], 12, -40341101), n = l(n, o, t, i, a[p + 14], 17, -1502002290), i = l(i, n, o, t, a[p + 15], 22, 1236535329), t = d(t, i, n, o, a[p + 1], 5, -165796510), o = d(o, t, i, n, a[p + 6], 9, -1069501632), n = d(n, o, t, i, a[p + 11], 14, 643717713), i = d(i, n, o, t, a[p], 20, -373897302), t = d(t, i, n, o, a[p + 5], 5, -701558691), o = d(o, t, i, n, a[p + 10], 9, 38016083), n = d(n, o, t, i, a[p + 15], 14, -660478335), i = d(i, n, o, t, a[p + 4], 20, -405537848), t = d(t, i, n, o, a[p + 9], 5, 568446438), o = d(o, t, i, n, a[p + 14], 9, -1019803690), n = d(n, o, t, i, a[p + 3], 14, -187363961), i = d(i, n, o, t, a[p + 8], 20, 1163531501), t = d(t, i, n, o, a[p + 13], 5, -1444681467), o = d(o, t, i, n, a[p + 2], 9, -51403784), n = d(n, o, t, i, a[p + 7], 14, 1735328473), i = d(i, n, o, t, a[p + 12], 20, -1926607734), t = s(t, i, n, o, a[p + 5], 4, -378558), o = s(o, t, i, n, a[p + 8], 11, -2022574463), n = s(n, o, t, i, a[p + 11], 16, 1839030562), i = s(i, n, o, t, a[p + 14], 23, -35309556), t = s(t, i, n, o, a[p + 1], 4, -1530992060), o = s(o, t, i, n, a[p + 4], 11, 1272893353), n = s(n, o, t, i, a[p + 7], 16, -155497632), i = s(i, n, o, t, a[p + 10], 23, -1094730640), t = s(t, i, n, o, a[p + 13], 4, 681279174), o = s(o, t, i, n, a[p], 11, -358537222), n = s(n, o, t, i, a[p + 3], 16, -722521979), i = s(i, n, o, t, a[p + 6], 23, 76029189), t = s(t, i, n, o, a[p + 9], 4, -640364487), o = s(o, t, i, n, a[p + 12], 11, -421815835), n = s(n, o, t, i, a[p + 15], 16, 530742520), i = s(i, n, o, t, a[p + 2], 23, -995338651), t = v(t, i, n, o, a[p], 6, -198630844), o = v(o, t, i, n, a[p + 7], 10, 1126891415), n = v(n, o, t, i, a[p + 14], 15, -1416354905), i = v(i, n, o, t, a[p + 5], 21, -57434055), t = v(t, i, n, o, a[p + 12], 6, 1700485571), o = v(o, t, i, n, a[p + 3], 10, -1894986606), n = v(n, o, t, i, a[p + 10], 15, -1051523), i = v(i, n, o, t, a[p + 1], 21, -2054922799), t = v(t, i, n, o, a[p + 8], 6, 1873313359), o = v(o, t, i, n, a[p + 15], 10, -30611744), n = v(n, o, t, i, a[p + 6], 15, -1560198380), i = v(i, n, o, t, a[p + 13], 21, 1309151649), t = v(t, i, n, o, a[p + 4], 6, -145523070), o = v(o, t, i, n, a[p + 11], 10, -1120210379), n = v(n, o, t, i, a[p + 2], 15, 718787259), i = v(i, n, o, t, a[p + 9], 21, -343485551), t = f(t, O), i = f(i, P), n = f(n, F), o = f(o, z); + } + return [t, i, n, o]; + } + function w(a) { + if (a.length === 0) + return []; + for (var r = a.length * 8, t = new Uint32Array(g(r)), i = 0; i < r; i += 8) + t[i >> 5] |= (a[i / 8] & 255) << i % 32; + return t; + } + function f(a, r) { + var t = (a & 65535) + (r & 65535), i = (a >> 16) + (r >> 16) + (t >> 16); + return i << 16 | t & 65535; + } + function y(a, r) { + return a << r | a >>> 32 - r; + } + function h(a, r, t, i, n, o) { + return f(y(f(f(r, a), f(i, o)), n), t); + } + function l(a, r, t, i, n, o, p) { + return h(r & t | ~r & i, a, r, n, o, p); + } + function d(a, r, t, i, n, o, p) { + return h(r & i | t & ~i, a, r, n, o, p); + } + function s(a, r, t, i, n, o, p) { + return h(r ^ t ^ i, a, r, n, o, p); + } + function v(a, r, t, i, n, o, p) { + return h(t ^ (r | ~i), a, r, n, o, p); + } + var c = u; + _.default = c; + }, {}], 528: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = "00000000-0000-0000-0000-000000000000"; + _.default = u; + }, {}], 529: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = m(e("./validate.js")); + function m(w) { + return w && w.__esModule ? w : { + default: w + }; + } + function g(w) { + if (!(0, u.default)(w)) + throw TypeError("Invalid UUID"); + var f, y = new Uint8Array(16); + return y[0] = (f = parseInt(w.slice(0, 8), 16)) >>> 24, y[1] = f >>> 16 & 255, y[2] = f >>> 8 & 255, y[3] = f & 255, y[4] = (f = parseInt(w.slice(9, 13), 16)) >>> 8, y[5] = f & 255, y[6] = (f = parseInt(w.slice(14, 18), 16)) >>> 8, y[7] = f & 255, y[8] = (f = parseInt(w.slice(19, 23), 16)) >>> 8, y[9] = f & 255, y[10] = (f = parseInt(w.slice(24, 36), 16)) / 1099511627776 & 255, y[11] = f / 4294967296 & 255, y[12] = f >>> 24 & 255, y[13] = f >>> 16 & 255, y[14] = f >>> 8 & 255, y[15] = f & 255, y; + } + var b = g; + _.default = b; + }, { "./validate.js": 539 }], 530: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + _.default = u; + }, {}], 531: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = g; + var u = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), m = new Uint8Array(16); + function g() { + if (!u) + throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported"); + return u(m); + } + }, {}], 532: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + function u(w, f, y, h) { + switch (w) { + case 0: + return f & y ^ ~f & h; + case 1: + return f ^ y ^ h; + case 2: + return f & y ^ f & h ^ y & h; + case 3: + return f ^ y ^ h; + } + } + function m(w, f) { + return w << f | w >>> 32 - f; + } + function g(w) { + var f = [1518500249, 1859775393, 2400959708, 3395469782], y = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; + if (typeof w == "string") { + var h = unescape(encodeURIComponent(w)); + w = []; + for (var l = 0; l < h.length; ++l) + w.push(h.charCodeAt(l)); + } else + Array.isArray(w) || (w = Array.prototype.slice.call(w)); + w.push(128); + for (var d = w.length / 4 + 2, s = Math.ceil(d / 16), v = new Array(s), c = 0; c < s; ++c) { + for (var a = new Uint32Array(16), r = 0; r < 16; ++r) + a[r] = w[c * 64 + r * 4] << 24 | w[c * 64 + r * 4 + 1] << 16 | w[c * 64 + r * 4 + 2] << 8 | w[c * 64 + r * 4 + 3]; + v[c] = a; + } + v[s - 1][14] = (w.length - 1) * 8 / Math.pow(2, 32), v[s - 1][14] = Math.floor(v[s - 1][14]), v[s - 1][15] = (w.length - 1) * 8 & 4294967295; + for (var t = 0; t < s; ++t) { + for (var i = new Uint32Array(80), n = 0; n < 16; ++n) + i[n] = v[t][n]; + for (var o = 16; o < 80; ++o) + i[o] = m(i[o - 3] ^ i[o - 8] ^ i[o - 14] ^ i[o - 16], 1); + for (var p = y[0], O = y[1], P = y[2], F = y[3], z = y[4], N = 0; N < 80; ++N) { + var M = Math.floor(N / 20), I = m(p, 5) + u(M, O, P, F) + z + f[M] + i[N] >>> 0; + z = F, F = P, P = m(O, 30) >>> 0, O = p, p = I; + } + y[0] = y[0] + p >>> 0, y[1] = y[1] + O >>> 0, y[2] = y[2] + P >>> 0, y[3] = y[3] + F >>> 0, y[4] = y[4] + z >>> 0; + } + return [y[0] >> 24 & 255, y[0] >> 16 & 255, y[0] >> 8 & 255, y[0] & 255, y[1] >> 24 & 255, y[1] >> 16 & 255, y[1] >> 8 & 255, y[1] & 255, y[2] >> 24 & 255, y[2] >> 16 & 255, y[2] >> 8 & 255, y[2] & 255, y[3] >> 24 & 255, y[3] >> 16 & 255, y[3] >> 8 & 255, y[3] & 255, y[4] >> 24 & 255, y[4] >> 16 & 255, y[4] >> 8 & 255, y[4] & 255]; + } + var b = g; + _.default = b; + }, {}], 533: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = m(e("./validate.js")); + function m(y) { + return y && y.__esModule ? y : { + default: y + }; + } + for (var g = [], b = 0; b < 256; ++b) + g.push((b + 256).toString(16).substr(1)); + function w(y) { + var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, l = (g[y[h + 0]] + g[y[h + 1]] + g[y[h + 2]] + g[y[h + 3]] + "-" + g[y[h + 4]] + g[y[h + 5]] + "-" + g[y[h + 6]] + g[y[h + 7]] + "-" + g[y[h + 8]] + g[y[h + 9]] + "-" + g[y[h + 10]] + g[y[h + 11]] + g[y[h + 12]] + g[y[h + 13]] + g[y[h + 14]] + g[y[h + 15]]).toLowerCase(); + if (!(0, u.default)(l)) + throw TypeError("Stringified UUID is invalid"); + return l; + } + var f = w; + _.default = f; + }, { "./validate.js": 539 }], 534: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = g(e("./rng.js")), m = g(e("./stringify.js")); + function g(d) { + return d && d.__esModule ? d : { + default: d + }; + } + var b, w, f = 0, y = 0; + function h(d, s, v) { + var c = s && v || 0, a = s || new Array(16); + d = d || {}; + var r = d.node || b, t = d.clockseq !== void 0 ? d.clockseq : w; + if (r == null || t == null) { + var i = d.random || (d.rng || u.default)(); + r == null && (r = b = [i[0] | 1, i[1], i[2], i[3], i[4], i[5]]), t == null && (t = w = (i[6] << 8 | i[7]) & 16383); + } + var n = d.msecs !== void 0 ? d.msecs : Date.now(), o = d.nsecs !== void 0 ? d.nsecs : y + 1, p = n - f + (o - y) / 1e4; + if (p < 0 && d.clockseq === void 0 && (t = t + 1 & 16383), (p < 0 || n > f) && d.nsecs === void 0 && (o = 0), o >= 1e4) + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + f = n, y = o, w = t, n += 122192928e5; + var O = ((n & 268435455) * 1e4 + o) % 4294967296; + a[c++] = O >>> 24 & 255, a[c++] = O >>> 16 & 255, a[c++] = O >>> 8 & 255, a[c++] = O & 255; + var P = n / 4294967296 * 1e4 & 268435455; + a[c++] = P >>> 8 & 255, a[c++] = P & 255, a[c++] = P >>> 24 & 15 | 16, a[c++] = P >>> 16 & 255, a[c++] = t >>> 8 | 128, a[c++] = t & 255; + for (var F = 0; F < 6; ++F) + a[c + F] = r[F]; + return s || (0, m.default)(a); + } + var l = h; + _.default = l; + }, { "./rng.js": 531, "./stringify.js": 533 }], 535: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = g(e("./v35.js")), m = g(e("./md5.js")); + function g(f) { + return f && f.__esModule ? f : { + default: f + }; + } + var b = (0, u.default)("v3", 48, m.default), w = b; + _.default = w; + }, { "./md5.js": 527, "./v35.js": 536 }], 536: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = y, _.URL = _.DNS = void 0; + var u = g(e("./stringify.js")), m = g(e("./parse.js")); + function g(h) { + return h && h.__esModule ? h : { + default: h + }; + } + function b(h) { + h = unescape(encodeURIComponent(h)); + for (var l = [], d = 0; d < h.length; ++d) + l.push(h.charCodeAt(d)); + return l; + } + var w = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + _.DNS = w; + var f = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + _.URL = f; + function y(h, l, d) { + function s(v, c, a, r) { + if (typeof v == "string" && (v = b(v)), typeof c == "string" && (c = (0, m.default)(c)), c.length !== 16) + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + var t = new Uint8Array(16 + v.length); + if (t.set(c), t.set(v, c.length), t = d(t), t[6] = t[6] & 15 | l, t[8] = t[8] & 63 | 128, a) { + r = r || 0; + for (var i = 0; i < 16; ++i) + a[r + i] = t[i]; + return a; + } + return (0, u.default)(t); + } + try { + s.name = h; + } catch (v) { + } + return s.DNS = w, s.URL = f, s; + } + }, { "./parse.js": 529, "./stringify.js": 533 }], 537: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = g(e("./rng.js")), m = g(e("./stringify.js")); + function g(f) { + return f && f.__esModule ? f : { + default: f + }; + } + function b(f, y, h) { + f = f || {}; + var l = f.random || (f.rng || u.default)(); + if (l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, y) { + h = h || 0; + for (var d = 0; d < 16; ++d) + y[h + d] = l[d]; + return y; + } + return (0, m.default)(l); + } + var w = b; + _.default = w; + }, { "./rng.js": 531, "./stringify.js": 533 }], 538: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = g(e("./v35.js")), m = g(e("./sha1.js")); + function g(f) { + return f && f.__esModule ? f : { + default: f + }; + } + var b = (0, u.default)("v5", 80, m.default), w = b; + _.default = w; + }, { "./sha1.js": 532, "./v35.js": 536 }], 539: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = m(e("./regex.js")); + function m(w) { + return w && w.__esModule ? w : { + default: w + }; + } + function g(w) { + return typeof w == "string" && u.default.test(w); + } + var b = g; + _.default = b; + }, { "./regex.js": 530 }], 540: [function(e, x, _) { + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.default = void 0; + var u = m(e("./validate.js")); + function m(w) { + return w && w.__esModule ? w : { + default: w + }; + } + function g(w) { + if (!(0, u.default)(w)) + throw TypeError("Invalid UUID"); + return parseInt(w.substr(14, 1), 16); + } + var b = g; + _.default = b; + }, { "./validate.js": 539 }], 541: [function(e, x, _) { + /** + * Character classes and associated utilities for the 5th edition of XML 1.0. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */ + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.CHAR = ` +\r -퟿-�𐀀-􏿿`, _.S = ` \r +`, _.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", _.NAME_CHAR = "-" + _.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.CHAR_RE = new RegExp("^[" + _.CHAR + "]$", "u"), _.S_RE = new RegExp("^[" + _.S + "]+$", "u"), _.NAME_START_CHAR_RE = new RegExp("^[" + _.NAME_START_CHAR + "]$", "u"), _.NAME_CHAR_RE = new RegExp("^[" + _.NAME_CHAR + "]$", "u"), _.NAME_RE = new RegExp("^[" + _.NAME_START_CHAR + "][" + _.NAME_CHAR + "]*$", "u"), _.NMTOKEN_RE = new RegExp("^[" + _.NAME_CHAR + "]+$", "u"); + var u = 9, m = 10, g = 13, b = 32; + _.S_LIST = [b, m, g, u]; + function w(l) { + return l >= b && l <= 55295 || l === m || l === g || l === u || l >= 57344 && l <= 65533 || l >= 65536 && l <= 1114111; + } + _.isChar = w; + function f(l) { + return l === b || l === m || l === g || l === u; + } + _.isS = f; + function y(l) { + return l >= 65 && l <= 90 || l >= 97 && l <= 122 || l === 58 || l === 95 || l === 8204 || l === 8205 || l >= 192 && l <= 214 || l >= 216 && l <= 246 || l >= 248 && l <= 767 || l >= 880 && l <= 893 || l >= 895 && l <= 8191 || l >= 8304 && l <= 8591 || l >= 11264 && l <= 12271 || l >= 12289 && l <= 55295 || l >= 63744 && l <= 64975 || l >= 65008 && l <= 65533 || l >= 65536 && l <= 983039; + } + _.isNameStartChar = y; + function h(l) { + return y(l) || l >= 48 && l <= 57 || l === 45 || l === 46 || l === 183 || l >= 768 && l <= 879 || l >= 8255 && l <= 8256; + } + _.isNameChar = h; + }, {}], 542: [function(e, x, _) { + /** + * Character classes and associated utilities for the 2nd edition of XML 1.1. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */ + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.CHAR = "-퟿-�𐀀-􏿿", _.RESTRICTED_CHAR = "-\b\v\f--„†-Ÿ", _.S = ` \r +`, _.NAME_START_CHAR = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", _.NAME_CHAR = "-" + _.NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.CHAR_RE = new RegExp("^[" + _.CHAR + "]$", "u"), _.RESTRICTED_CHAR_RE = new RegExp("^[" + _.RESTRICTED_CHAR + "]$", "u"), _.S_RE = new RegExp("^[" + _.S + "]+$", "u"), _.NAME_START_CHAR_RE = new RegExp("^[" + _.NAME_START_CHAR + "]$", "u"), _.NAME_CHAR_RE = new RegExp("^[" + _.NAME_CHAR + "]$", "u"), _.NAME_RE = new RegExp("^[" + _.NAME_START_CHAR + "][" + _.NAME_CHAR + "]*$", "u"), _.NMTOKEN_RE = new RegExp("^[" + _.NAME_CHAR + "]+$", "u"); + var u = 9, m = 10, g = 13, b = 32; + _.S_LIST = [b, m, g, u]; + function w(s) { + return s >= 1 && s <= 55295 || s >= 57344 && s <= 65533 || s >= 65536 && s <= 1114111; + } + _.isChar = w; + function f(s) { + return s >= 1 && s <= 8 || s === 11 || s === 12 || s >= 14 && s <= 31 || s >= 127 && s <= 132 || s >= 134 && s <= 159; + } + _.isRestrictedChar = f; + function y(s) { + return s === 9 || s === 10 || s === 13 || s > 31 && s < 127 || s === 133 || s > 159 && s <= 55295 || s >= 57344 && s <= 65533 || s >= 65536 && s <= 1114111; + } + _.isCharAndNotRestricted = y; + function h(s) { + return s === b || s === m || s === g || s === u; + } + _.isS = h; + function l(s) { + return s >= 65 && s <= 90 || s >= 97 && s <= 122 || s === 58 || s === 95 || s === 8204 || s === 8205 || s >= 192 && s <= 214 || s >= 216 && s <= 246 || s >= 248 && s <= 767 || s >= 880 && s <= 893 || s >= 895 && s <= 8191 || s >= 8304 && s <= 8591 || s >= 11264 && s <= 12271 || s >= 12289 && s <= 55295 || s >= 63744 && s <= 64975 || s >= 65008 && s <= 65533 || s >= 65536 && s <= 983039; + } + _.isNameStartChar = l; + function d(s) { + return l(s) || s >= 48 && s <= 57 || s === 45 || s === 46 || s === 183 || s >= 768 && s <= 879 || s >= 8255 && s <= 8256; + } + _.isNameChar = d; + }, {}], 543: [function(e, x, _) { + /** + * Character class utilities for XML NS 1.0 edition 3. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */ + Object.defineProperty(_, "__esModule", { + value: !0 + }), _.NC_NAME_START_CHAR = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", _.NC_NAME_CHAR = "-" + _.NC_NAME_START_CHAR + ".0-9·̀-ͯ‿-⁀", _.NC_NAME_START_CHAR_RE = new RegExp("^[" + _.NC_NAME_START_CHAR + "]$", "u"), _.NC_NAME_CHAR_RE = new RegExp("^[" + _.NC_NAME_CHAR + "]$", "u"), _.NC_NAME_RE = new RegExp("^[" + _.NC_NAME_START_CHAR + "][" + _.NC_NAME_CHAR + "]*$", "u"); + function u(g) { + return g >= 65 && g <= 90 || g === 95 || g >= 97 && g <= 122 || g >= 192 && g <= 214 || g >= 216 && g <= 246 || g >= 248 && g <= 767 || g >= 880 && g <= 893 || g >= 895 && g <= 8191 || g >= 8204 && g <= 8205 || g >= 8304 && g <= 8591 || g >= 11264 && g <= 12271 || g >= 12289 && g <= 55295 || g >= 63744 && g <= 64975 || g >= 65008 && g <= 65533 || g >= 65536 && g <= 983039; + } + _.isNCNameStartChar = u; + function m(g) { + return u(g) || g === 45 || g === 46 || g >= 48 && g <= 57 || g === 183 || g >= 768 && g <= 879 || g >= 8255 && g <= 8256; + } + _.isNCNameChar = m; + }, {}] }, {}, [15])(15); + }); +})(Ug); +function $g(H) { + return typeof H == "string" ? H : H instanceof Blob ? URL.createObjectURL(H) : H instanceof ArrayBuffer ? URL.createObjectURL(new Blob([H])) : H instanceof Response ? URL.createObjectURL(H.blob()) : H; +} +function qo(H) { + return qo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) { + return typeof k; + } : function(k) { + return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k; + }, qo(H); +} +var Wg = /^\s+/, Vg = /\s+$/; +function Rt(H, k) { + if (H = H || "", k = k || {}, H instanceof Rt) + return H; + if (!(this instanceof Rt)) + return new Rt(H, k); + var e = Kg(H); + this._originalInput = H, this._r = e.r, this._g = e.g, this._b = e.b, this._a = e.a, this._roundA = Math.round(100 * this._a) / 100, this._format = k.format || e.format, this._gradientType = k.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = e.ok; +} +Rt.prototype = { + isDark: function() { + return this.getBrightness() < 128; + }, + isLight: function() { + return !this.isDark(); + }, + isValid: function() { + return this._ok; + }, + getOriginalInput: function() { + return this._originalInput; + }, + getFormat: function() { + return this._format; + }, + getAlpha: function() { + return this._a; + }, + getBrightness: function() { + var k = this.toRgb(); + return (k.r * 299 + k.g * 587 + k.b * 114) / 1e3; + }, + getLuminance: function() { + var k = this.toRgb(), e, x, _, u, m, g; + return e = k.r / 255, x = k.g / 255, _ = k.b / 255, e <= 0.03928 ? u = e / 12.92 : u = Math.pow((e + 0.055) / 1.055, 2.4), x <= 0.03928 ? m = x / 12.92 : m = Math.pow((x + 0.055) / 1.055, 2.4), _ <= 0.03928 ? g = _ / 12.92 : g = Math.pow((_ + 0.055) / 1.055, 2.4), 0.2126 * u + 0.7152 * m + 0.0722 * g; + }, + setAlpha: function(k) { + return this._a = Mc(k), this._roundA = Math.round(100 * this._a) / 100, this; + }, + toHsv: function() { + var k = ic(this._r, this._g, this._b); + return { + h: k.h * 360, + s: k.s, + v: k.v, + a: this._a + }; + }, + toHsvString: function() { + var k = ic(this._r, this._g, this._b), e = Math.round(k.h * 360), x = Math.round(k.s * 100), _ = Math.round(k.v * 100); + return this._a == 1 ? "hsv(" + e + ", " + x + "%, " + _ + "%)" : "hsva(" + e + ", " + x + "%, " + _ + "%, " + this._roundA + ")"; + }, + toHsl: function() { + var k = nc(this._r, this._g, this._b); + return { + h: k.h * 360, + s: k.s, + l: k.l, + a: this._a + }; + }, + toHslString: function() { + var k = nc(this._r, this._g, this._b), e = Math.round(k.h * 360), x = Math.round(k.s * 100), _ = Math.round(k.l * 100); + return this._a == 1 ? "hsl(" + e + ", " + x + "%, " + _ + "%)" : "hsla(" + e + ", " + x + "%, " + _ + "%, " + this._roundA + ")"; + }, + toHex: function(k) { + return ac(this._r, this._g, this._b, k); + }, + toHexString: function(k) { + return "#" + this.toHex(k); + }, + toHex8: function(k) { + return Jg(this._r, this._g, this._b, this._a, k); + }, + toHex8String: function(k) { + return "#" + this.toHex8(k); + }, + toRgb: function() { + return { + r: Math.round(this._r), + g: Math.round(this._g), + b: Math.round(this._b), + a: this._a + }; + }, + toRgbString: function() { + return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")"; + }, + toPercentageRgb: function() { + return { + r: Math.round(yr(this._r, 255) * 100) + "%", + g: Math.round(yr(this._g, 255) * 100) + "%", + b: Math.round(yr(this._b, 255) * 100) + "%", + a: this._a + }; + }, + toPercentageRgbString: function() { + return this._a == 1 ? "rgb(" + Math.round(yr(this._r, 255) * 100) + "%, " + Math.round(yr(this._g, 255) * 100) + "%, " + Math.round(yr(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(yr(this._r, 255) * 100) + "%, " + Math.round(yr(this._g, 255) * 100) + "%, " + Math.round(yr(this._b, 255) * 100) + "%, " + this._roundA + ")"; + }, + toName: function() { + return this._a === 0 ? "transparent" : this._a < 1 ? !1 : u1[ac(this._r, this._g, this._b, !0)] || !1; + }, + toFilter: function(k) { + var e = "#" + oc(this._r, this._g, this._b, this._a), x = e, _ = this._gradientType ? "GradientType = 1, " : ""; + if (k) { + var u = Rt(k); + x = "#" + oc(u._r, u._g, u._b, u._a); + } + return "progid:DXImageTransform.Microsoft.gradient(" + _ + "startColorstr=" + e + ",endColorstr=" + x + ")"; + }, + toString: function(k) { + var e = !!k; + k = k || this._format; + var x = !1, _ = this._a < 1 && this._a >= 0, u = !e && _ && (k === "hex" || k === "hex6" || k === "hex3" || k === "hex4" || k === "hex8" || k === "name"); + return u ? k === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (k === "rgb" && (x = this.toRgbString()), k === "prgb" && (x = this.toPercentageRgbString()), (k === "hex" || k === "hex6") && (x = this.toHexString()), k === "hex3" && (x = this.toHexString(!0)), k === "hex4" && (x = this.toHex8String(!0)), k === "hex8" && (x = this.toHex8String()), k === "name" && (x = this.toName()), k === "hsl" && (x = this.toHslString()), k === "hsv" && (x = this.toHsvString()), x || this.toHexString()); + }, + clone: function() { + return Rt(this.toString()); + }, + _applyModification: function(k, e) { + var x = k.apply(null, [this].concat([].slice.call(e))); + return this._r = x._r, this._g = x._g, this._b = x._b, this.setAlpha(x._a), this; + }, + lighten: function() { + return this._applyModification(t1, arguments); + }, + brighten: function() { + return this._applyModification(r1, arguments); + }, + darken: function() { + return this._applyModification(n1, arguments); + }, + desaturate: function() { + return this._applyModification(Qg, arguments); + }, + saturate: function() { + return this._applyModification(qg, arguments); + }, + greyscale: function() { + return this._applyModification(e1, arguments); + }, + spin: function() { + return this._applyModification(i1, arguments); + }, + _applyCombination: function(k, e) { + return k.apply(null, [this].concat([].slice.call(e))); + }, + analogous: function() { + return this._applyCombination(s1, arguments); + }, + complement: function() { + return this._applyCombination(a1, arguments); + }, + monochromatic: function() { + return this._applyCombination(f1, arguments); + }, + splitcomplement: function() { + return this._applyCombination(o1, arguments); + }, + // Disabled until https://github.com/bgrins/TinyColor/issues/254 + // polyad: function (number) { + // return this._applyCombination(polyad, [number]); + // }, + triad: function() { + return this._applyCombination(sc, [3]); + }, + tetrad: function() { + return this._applyCombination(sc, [4]); + } +}; +Rt.fromRatio = function(H, k) { + if (qo(H) == "object") { + var e = {}; + for (var x in H) + H.hasOwnProperty(x) && (x === "a" ? e[x] = H[x] : e[x] = Wa(H[x])); + H = e; + } + return Rt(H, k); +}; +function Kg(H) { + var k = { + r: 0, + g: 0, + b: 0 + }, e = 1, x = null, _ = null, u = null, m = !1, g = !1; + return typeof H == "string" && (H = d1(H)), qo(H) == "object" && (ci(H.r) && ci(H.g) && ci(H.b) ? (k = Gg(H.r, H.g, H.b), m = !0, g = String(H.r).substr(-1) === "%" ? "prgb" : "rgb") : ci(H.h) && ci(H.s) && ci(H.v) ? (x = Wa(H.s), _ = Wa(H.v), k = Zg(H.h, x, _), m = !0, g = "hsv") : ci(H.h) && ci(H.s) && ci(H.l) && (x = Wa(H.s), u = Wa(H.l), k = Yg(H.h, x, u), m = !0, g = "hsl"), H.hasOwnProperty("a") && (e = H.a)), e = Mc(e), { + ok: m, + format: H.format || g, + r: Math.min(255, Math.max(k.r, 0)), + g: Math.min(255, Math.max(k.g, 0)), + b: Math.min(255, Math.max(k.b, 0)), + a: e + }; +} +function Gg(H, k, e) { + return { + r: yr(H, 255) * 255, + g: yr(k, 255) * 255, + b: yr(e, 255) * 255 + }; +} +function nc(H, k, e) { + H = yr(H, 255), k = yr(k, 255), e = yr(e, 255); + var x = Math.max(H, k, e), _ = Math.min(H, k, e), u, m, g = (x + _) / 2; + if (x == _) + u = m = 0; + else { + var b = x - _; + switch (m = g > 0.5 ? b / (2 - x - _) : b / (x + _), x) { + case H: + u = (k - e) / b + (k < e ? 6 : 0); + break; + case k: + u = (e - H) / b + 2; + break; + case e: + u = (H - k) / b + 4; + break; + } + u /= 6; + } + return { + h: u, + s: m, + l: g + }; +} +function Yg(H, k, e) { + var x, _, u; + H = yr(H, 360), k = yr(k, 100), e = yr(e, 100); + function m(w, f, y) { + return y < 0 && (y += 1), y > 1 && (y -= 1), y < 1 / 6 ? w + (f - w) * 6 * y : y < 1 / 2 ? f : y < 2 / 3 ? w + (f - w) * (2 / 3 - y) * 6 : w; + } + if (k === 0) + x = _ = u = e; + else { + var g = e < 0.5 ? e * (1 + k) : e + k - e * k, b = 2 * e - g; + x = m(b, g, H + 1 / 3), _ = m(b, g, H), u = m(b, g, H - 1 / 3); + } + return { + r: x * 255, + g: _ * 255, + b: u * 255 + }; +} +function ic(H, k, e) { + H = yr(H, 255), k = yr(k, 255), e = yr(e, 255); + var x = Math.max(H, k, e), _ = Math.min(H, k, e), u, m, g = x, b = x - _; + if (m = x === 0 ? 0 : b / x, x == _) + u = 0; + else { + switch (x) { + case H: + u = (k - e) / b + (k < e ? 6 : 0); + break; + case k: + u = (e - H) / b + 2; + break; + case e: + u = (H - k) / b + 4; + break; + } + u /= 6; + } + return { + h: u, + s: m, + v: g + }; +} +function Zg(H, k, e) { + H = yr(H, 360) * 6, k = yr(k, 100), e = yr(e, 100); + var x = Math.floor(H), _ = H - x, u = e * (1 - k), m = e * (1 - _ * k), g = e * (1 - (1 - _) * k), b = x % 6, w = [e, m, u, u, g, e][b], f = [g, e, e, m, u, u][b], y = [u, u, g, e, e, m][b]; + return { + r: w * 255, + g: f * 255, + b: y * 255 + }; +} +function ac(H, k, e, x) { + var _ = [Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16))]; + return x && _[0].charAt(0) == _[0].charAt(1) && _[1].charAt(0) == _[1].charAt(1) && _[2].charAt(0) == _[2].charAt(1) ? _[0].charAt(0) + _[1].charAt(0) + _[2].charAt(0) : _.join(""); +} +function Jg(H, k, e, x, _) { + var u = [Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16)), Wn(Ic(x))]; + return _ && u[0].charAt(0) == u[0].charAt(1) && u[1].charAt(0) == u[1].charAt(1) && u[2].charAt(0) == u[2].charAt(1) && u[3].charAt(0) == u[3].charAt(1) ? u[0].charAt(0) + u[1].charAt(0) + u[2].charAt(0) + u[3].charAt(0) : u.join(""); +} +function oc(H, k, e, x) { + var _ = [Wn(Ic(x)), Wn(Math.round(H).toString(16)), Wn(Math.round(k).toString(16)), Wn(Math.round(e).toString(16))]; + return _.join(""); +} +Rt.equals = function(H, k) { + return !H || !k ? !1 : Rt(H).toRgbString() == Rt(k).toRgbString(); +}; +Rt.random = function() { + return Rt.fromRatio({ + r: Math.random(), + g: Math.random(), + b: Math.random() + }); +}; +function Qg(H, k) { + k = k === 0 ? 0 : k || 10; + var e = Rt(H).toHsl(); + return e.s -= k / 100, e.s = ts(e.s), Rt(e); +} +function qg(H, k) { + k = k === 0 ? 0 : k || 10; + var e = Rt(H).toHsl(); + return e.s += k / 100, e.s = ts(e.s), Rt(e); +} +function e1(H) { + return Rt(H).desaturate(100); +} +function t1(H, k) { + k = k === 0 ? 0 : k || 10; + var e = Rt(H).toHsl(); + return e.l += k / 100, e.l = ts(e.l), Rt(e); +} +function r1(H, k) { + k = k === 0 ? 0 : k || 10; + var e = Rt(H).toRgb(); + return e.r = Math.max(0, Math.min(255, e.r - Math.round(255 * -(k / 100)))), e.g = Math.max(0, Math.min(255, e.g - Math.round(255 * -(k / 100)))), e.b = Math.max(0, Math.min(255, e.b - Math.round(255 * -(k / 100)))), Rt(e); +} +function n1(H, k) { + k = k === 0 ? 0 : k || 10; + var e = Rt(H).toHsl(); + return e.l -= k / 100, e.l = ts(e.l), Rt(e); +} +function i1(H, k) { + var e = Rt(H).toHsl(), x = (e.h + k) % 360; + return e.h = x < 0 ? 360 + x : x, Rt(e); +} +function a1(H) { + var k = Rt(H).toHsl(); + return k.h = (k.h + 180) % 360, Rt(k); +} +function sc(H, k) { + if (isNaN(k) || k <= 0) + throw new Error("Argument to polyad must be a positive number"); + for (var e = Rt(H).toHsl(), x = [Rt(H)], _ = 360 / k, u = 1; u < k; u++) + x.push(Rt({ + h: (e.h + u * _) % 360, + s: e.s, + l: e.l + })); + return x; +} +function o1(H) { + var k = Rt(H).toHsl(), e = k.h; + return [Rt(H), Rt({ + h: (e + 72) % 360, + s: k.s, + l: k.l + }), Rt({ + h: (e + 216) % 360, + s: k.s, + l: k.l + })]; +} +function s1(H, k, e) { + k = k || 6, e = e || 30; + var x = Rt(H).toHsl(), _ = 360 / e, u = [Rt(H)]; + for (x.h = (x.h - (_ * k >> 1) + 720) % 360; --k; ) + x.h = (x.h + _) % 360, u.push(Rt(x)); + return u; +} +function f1(H, k) { + k = k || 6; + for (var e = Rt(H).toHsv(), x = e.h, _ = e.s, u = e.v, m = [], g = 1 / k; k--; ) + m.push(Rt({ + h: x, + s: _, + v: u + })), u = (u + g) % 1; + return m; +} +Rt.mix = function(H, k, e) { + e = e === 0 ? 0 : e || 50; + var x = Rt(H).toRgb(), _ = Rt(k).toRgb(), u = e / 100, m = { + r: (_.r - x.r) * u + x.r, + g: (_.g - x.g) * u + x.g, + b: (_.b - x.b) * u + x.b, + a: (_.a - x.a) * u + x.a + }; + return Rt(m); +}; +Rt.readability = function(H, k) { + var e = Rt(H), x = Rt(k); + return (Math.max(e.getLuminance(), x.getLuminance()) + 0.05) / (Math.min(e.getLuminance(), x.getLuminance()) + 0.05); +}; +Rt.isReadable = function(H, k, e) { + var x = Rt.readability(H, k), _, u; + switch (u = !1, _ = p1(e), _.level + _.size) { + case "AAsmall": + case "AAAlarge": + u = x >= 4.5; + break; + case "AAlarge": + u = x >= 3; + break; + case "AAAsmall": + u = x >= 7; + break; + } + return u; +}; +Rt.mostReadable = function(H, k, e) { + var x = null, _ = 0, u, m, g, b; + e = e || {}, m = e.includeFallbackColors, g = e.level, b = e.size; + for (var w = 0; w < k.length; w++) + u = Rt.readability(H, k[w]), u > _ && (_ = u, x = Rt(k[w])); + return Rt.isReadable(H, x, { + level: g, + size: b + }) || !m ? x : (e.includeFallbackColors = !1, Rt.mostReadable(H, ["#fff", "#000"], e)); +}; +var _f = Rt.names = { + aliceblue: "f0f8ff", + antiquewhite: "faebd7", + aqua: "0ff", + aquamarine: "7fffd4", + azure: "f0ffff", + beige: "f5f5dc", + bisque: "ffe4c4", + black: "000", + blanchedalmond: "ffebcd", + blue: "00f", + blueviolet: "8a2be2", + brown: "a52a2a", + burlywood: "deb887", + burntsienna: "ea7e5d", + cadetblue: "5f9ea0", + chartreuse: "7fff00", + chocolate: "d2691e", + coral: "ff7f50", + cornflowerblue: "6495ed", + cornsilk: "fff8dc", + crimson: "dc143c", + cyan: "0ff", + darkblue: "00008b", + darkcyan: "008b8b", + darkgoldenrod: "b8860b", + darkgray: "a9a9a9", + darkgreen: "006400", + darkgrey: "a9a9a9", + darkkhaki: "bdb76b", + darkmagenta: "8b008b", + darkolivegreen: "556b2f", + darkorange: "ff8c00", + darkorchid: "9932cc", + darkred: "8b0000", + darksalmon: "e9967a", + darkseagreen: "8fbc8f", + darkslateblue: "483d8b", + darkslategray: "2f4f4f", + darkslategrey: "2f4f4f", + darkturquoise: "00ced1", + darkviolet: "9400d3", + deeppink: "ff1493", + deepskyblue: "00bfff", + dimgray: "696969", + dimgrey: "696969", + dodgerblue: "1e90ff", + firebrick: "b22222", + floralwhite: "fffaf0", + forestgreen: "228b22", + fuchsia: "f0f", + gainsboro: "dcdcdc", + ghostwhite: "f8f8ff", + gold: "ffd700", + goldenrod: "daa520", + gray: "808080", + green: "008000", + greenyellow: "adff2f", + grey: "808080", + honeydew: "f0fff0", + hotpink: "ff69b4", + indianred: "cd5c5c", + indigo: "4b0082", + ivory: "fffff0", + khaki: "f0e68c", + lavender: "e6e6fa", + lavenderblush: "fff0f5", + lawngreen: "7cfc00", + lemonchiffon: "fffacd", + lightblue: "add8e6", + lightcoral: "f08080", + lightcyan: "e0ffff", + lightgoldenrodyellow: "fafad2", + lightgray: "d3d3d3", + lightgreen: "90ee90", + lightgrey: "d3d3d3", + lightpink: "ffb6c1", + lightsalmon: "ffa07a", + lightseagreen: "20b2aa", + lightskyblue: "87cefa", + lightslategray: "789", + lightslategrey: "789", + lightsteelblue: "b0c4de", + lightyellow: "ffffe0", + lime: "0f0", + limegreen: "32cd32", + linen: "faf0e6", + magenta: "f0f", + maroon: "800000", + mediumaquamarine: "66cdaa", + mediumblue: "0000cd", + mediumorchid: "ba55d3", + mediumpurple: "9370db", + mediumseagreen: "3cb371", + mediumslateblue: "7b68ee", + mediumspringgreen: "00fa9a", + mediumturquoise: "48d1cc", + mediumvioletred: "c71585", + midnightblue: "191970", + mintcream: "f5fffa", + mistyrose: "ffe4e1", + moccasin: "ffe4b5", + navajowhite: "ffdead", + navy: "000080", + oldlace: "fdf5e6", + olive: "808000", + olivedrab: "6b8e23", + orange: "ffa500", + orangered: "ff4500", + orchid: "da70d6", + palegoldenrod: "eee8aa", + palegreen: "98fb98", + paleturquoise: "afeeee", + palevioletred: "db7093", + papayawhip: "ffefd5", + peachpuff: "ffdab9", + peru: "cd853f", + pink: "ffc0cb", + plum: "dda0dd", + powderblue: "b0e0e6", + purple: "800080", + rebeccapurple: "663399", + red: "f00", + rosybrown: "bc8f8f", + royalblue: "4169e1", + saddlebrown: "8b4513", + salmon: "fa8072", + sandybrown: "f4a460", + seagreen: "2e8b57", + seashell: "fff5ee", + sienna: "a0522d", + silver: "c0c0c0", + skyblue: "87ceeb", + slateblue: "6a5acd", + slategray: "708090", + slategrey: "708090", + snow: "fffafa", + springgreen: "00ff7f", + steelblue: "4682b4", + tan: "d2b48c", + teal: "008080", + thistle: "d8bfd8", + tomato: "ff6347", + turquoise: "40e0d0", + violet: "ee82ee", + wheat: "f5deb3", + white: "fff", + whitesmoke: "f5f5f5", + yellow: "ff0", + yellowgreen: "9acd32" +}, u1 = Rt.hexNames = l1(_f); +function l1(H) { + var k = {}; + for (var e in H) + H.hasOwnProperty(e) && (k[H[e]] = e); + return k; +} +function Mc(H) { + return H = parseFloat(H), (isNaN(H) || H < 0 || H > 1) && (H = 1), H; +} +function yr(H, k) { + c1(H) && (H = "100%"); + var e = h1(H); + return H = Math.min(k, Math.max(0, parseFloat(H))), e && (H = parseInt(H * k, 10) / 100), Math.abs(H - k) < 1e-6 ? 1 : H % k / parseFloat(k); +} +function ts(H) { + return Math.min(1, Math.max(0, H)); +} +function wn(H) { + return parseInt(H, 16); +} +function c1(H) { + return typeof H == "string" && H.indexOf(".") != -1 && parseFloat(H) === 1; +} +function h1(H) { + return typeof H == "string" && H.indexOf("%") != -1; +} +function Wn(H) { + return H.length == 1 ? "0" + H : "" + H; +} +function Wa(H) { + return H <= 1 && (H = H * 100 + "%"), H; +} +function Ic(H) { + return Math.round(parseFloat(H) * 255).toString(16); +} +function fc(H) { + return wn(H) / 255; +} +var $n = function() { + var H = "[-\\+]?\\d+%?", k = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + k + ")|(?:" + H + ")", x = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", _ = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?"; + return { + CSS_UNIT: new RegExp(e), + rgb: new RegExp("rgb" + x), + rgba: new RegExp("rgba" + _), + hsl: new RegExp("hsl" + x), + hsla: new RegExp("hsla" + _), + hsv: new RegExp("hsv" + x), + hsva: new RegExp("hsva" + _), + hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, + hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, + hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ + }; +}(); +function ci(H) { + return !!$n.CSS_UNIT.exec(H); +} +function d1(H) { + H = H.replace(Wg, "").replace(Vg, "").toLowerCase(); + var k = !1; + if (_f[H]) + H = _f[H], k = !0; + else if (H == "transparent") + return { + r: 0, + g: 0, + b: 0, + a: 0, + format: "name" + }; + var e; + return (e = $n.rgb.exec(H)) ? { + r: e[1], + g: e[2], + b: e[3] + } : (e = $n.rgba.exec(H)) ? { + r: e[1], + g: e[2], + b: e[3], + a: e[4] + } : (e = $n.hsl.exec(H)) ? { + h: e[1], + s: e[2], + l: e[3] + } : (e = $n.hsla.exec(H)) ? { + h: e[1], + s: e[2], + l: e[3], + a: e[4] + } : (e = $n.hsv.exec(H)) ? { + h: e[1], + s: e[2], + v: e[3] + } : (e = $n.hsva.exec(H)) ? { + h: e[1], + s: e[2], + v: e[3], + a: e[4] + } : (e = $n.hex8.exec(H)) ? { + r: wn(e[1]), + g: wn(e[2]), + b: wn(e[3]), + a: fc(e[4]), + format: k ? "name" : "hex8" + } : (e = $n.hex6.exec(H)) ? { + r: wn(e[1]), + g: wn(e[2]), + b: wn(e[3]), + format: k ? "name" : "hex" + } : (e = $n.hex4.exec(H)) ? { + r: wn(e[1] + "" + e[1]), + g: wn(e[2] + "" + e[2]), + b: wn(e[3] + "" + e[3]), + a: fc(e[4] + "" + e[4]), + format: k ? "name" : "hex8" + } : (e = $n.hex3.exec(H)) ? { + r: wn(e[1] + "" + e[1]), + g: wn(e[2] + "" + e[2]), + b: wn(e[3] + "" + e[3]), + format: k ? "name" : "hex" + } : !1; +} +function p1(H) { + var k, e; + return H = H || { + level: "AA", + size: "small" + }, k = (H.level || "AA").toUpperCase(), e = (H.size || "small").toLowerCase(), k !== "AA" && k !== "AAA" && (k = "AA"), e !== "small" && e !== "large" && (e = "small"), { + level: k, + size: e + }; +} +var ga = {}, y1 = { + get exports() { + return ga; + }, + set exports(H) { + ga = H; + } +}; +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ +(function(H, k) { + (function() { + var e, x = "4.17.21", _ = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", g = "Invalid `variable` option passed into `_.template`", b = "__lodash_hash_undefined__", w = 500, f = "__lodash_placeholder__", y = 1, h = 2, l = 4, d = 1, s = 2, v = 1, c = 2, a = 4, r = 8, t = 16, i = 32, n = 64, o = 128, p = 256, O = 512, P = 30, F = "...", z = 800, N = 16, M = 1, I = 2, R = 3, C = 1 / 0, E = 9007199254740991, A = 17976931348623157e292, L = 0 / 0, $ = 4294967295, W = $ - 1, U = $ >>> 1, D = [ + ["ary", o], + ["bind", v], + ["bindKey", c], + ["curry", r], + ["curryRight", t], + ["flip", O], + ["partial", i], + ["partialRight", n], + ["rearg", p] + ], B = "[object Arguments]", j = "[object Array]", V = "[object AsyncFunction]", re = "[object Boolean]", ee = "[object Date]", ce = "[object DOMException]", ve = "[object Error]", ge = "[object Function]", oe = "[object GeneratorFunction]", J = "[object Map]", Q = "[object Number]", he = "[object Null]", ke = "[object Object]", ne = "[object Promise]", se = "[object Proxy]", Ce = "[object RegExp]", q = "[object Set]", G = "[object String]", Y = "[object Symbol]", fe = "[object Undefined]", we = "[object WeakMap]", _e = "[object WeakSet]", je = "[object ArrayBuffer]", Ye = "[object DataView]", nt = "[object Float32Array]", ut = "[object Float64Array]", ot = "[object Int8Array]", Ue = "[object Int16Array]", Ve = "[object Int32Array]", Qe = "[object Uint8Array]", tt = "[object Uint8ClampedArray]", ae = "[object Uint16Array]", Re = "[object Uint32Array]", be = /\b__p \+= '';/g, Ee = /\b(__p \+=) '' \+/g, pe = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Pe = /&(?:amp|lt|gt|quot|#39);/g, te = /[&<>"']/g, He = RegExp(Pe.source), it = RegExp(te.source), K = /<%-([\s\S]+?)%>/g, Me = /<%([\s\S]+?)%>/g, Le = /<%=([\s\S]+?)%>/g, ue = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Se = /^\w*$/, Ie = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, st = /[\\^$.*+?()[\]{}|]/g, Ge = RegExp(st.source), rt = /^\s+/, _t = /\s/, wt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ot = /\{\n\/\* \[wrapped with (.+)\] \*/, pt = /,? & /, ct = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, At = /[()=,{}\[\]\/\s]/, Pt = /\\(\\)?/g, bt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Kt = /\w*$/, Ct = /^[-+]0x[0-9a-f]+$/i, xt = /^0b[01]+$/i, Ft = /^\[object .+?Constructor\]$/, Lt = /^0o[0-7]+$/i, Et = /^(?:0|[1-9]\d*)$/, Dr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Or = /($^)/, Gr = /['\n\r\u2028\u2029\\]/g, Nr = "\\ud800-\\udfff", Yr = "\\u0300-\\u036f", Qt = "\\ufe20-\\ufe2f", Xr = "\\u20d0-\\u20ff", Fr = Yr + Qt + Xr, Lr = "\\u2700-\\u27bf", Ur = "a-z\\xdf-\\xf6\\xf8-\\xff", vt = "\\xac\\xb1\\xd7\\xf7", Ke = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", me = "\\u2000-\\u206f", Fe = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Be = "A-Z\\xc0-\\xd6\\xd8-\\xde", dt = "\\ufe0e\\ufe0f", St = vt + Ke + me + Fe, Ht = "['’]", lr = "[" + Nr + "]", gr = "[" + St + "]", rn = "[" + Fr + "]", zr = "\\d+", pi = "[" + Lr + "]", $r = "[" + Ur + "]", Dn = "[^" + Nr + St + zr + Lr + Ur + Be + "]", cn = "\\ud83c[\\udffb-\\udfff]", yi = "(?:" + rn + "|" + cn + ")", hn = "[^" + Nr + "]", dn = "(?:\\ud83c[\\udde6-\\uddff]){2}", Nn = "[\\ud800-\\udbff][\\udc00-\\udfff]", Fn = "[" + Be + "]", Xi = "\\u200d", Ui = "(?:" + $r + "|" + Dn + ")", $i = "(?:" + Fn + "|" + Dn + ")", ei = "(?:" + Ht + "(?:d|ll|m|re|s|t|ve))?", Bn = "(?:" + Ht + "(?:D|LL|M|RE|S|T|VE))?", Wi = yi + "?", Vi = "[" + dt + "]?", xn = "(?:" + Xi + "(?:" + [hn, dn, Nn].join("|") + ")" + Vi + Wi + ")*", wa = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ki = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Gi = Vi + Wi + xn, xa = "(?:" + [pi, dn, Nn].join("|") + ")" + Gi, Sa = "(?:" + [hn + rn + "?", rn, dn, Nn, lr].join("|") + ")", Sn = RegExp(Ht, "g"), Yi = RegExp(rn, "g"), Ri = RegExp(cn + "(?=" + cn + ")|" + Sa + Gi, "g"), jn = RegExp([ + Fn + "?" + $r + "+" + ei + "(?=" + [gr, Fn, "$"].join("|") + ")", + $i + "+" + Bn + "(?=" + [gr, Fn + Ui, "$"].join("|") + ")", + Fn + "?" + Ui + "+" + ei, + Fn + "+" + Bn, + Ki, + wa, + zr, + xa + ].join("|"), "g"), ka = RegExp("[" + Xi + Nr + Fr + dt + "]"), kn = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, On = [ + "Array", + "Buffer", + "DataView", + "Date", + "Error", + "Float32Array", + "Float64Array", + "Function", + "Int8Array", + "Int16Array", + "Int32Array", + "Map", + "Math", + "Object", + "Promise", + "RegExp", + "Set", + "String", + "Symbol", + "TypeError", + "Uint8Array", + "Uint8ClampedArray", + "Uint16Array", + "Uint32Array", + "WeakMap", + "_", + "clearTimeout", + "isFinite", + "parseInt", + "setTimeout" + ], Zi = -1, rr = {}; + rr[nt] = rr[ut] = rr[ot] = rr[Ue] = rr[Ve] = rr[Qe] = rr[tt] = rr[ae] = rr[Re] = !0, rr[B] = rr[j] = rr[je] = rr[re] = rr[Ye] = rr[ee] = rr[ve] = rr[ge] = rr[J] = rr[Q] = rr[ke] = rr[Ce] = rr[q] = rr[G] = rr[we] = !1; + var er = {}; + er[B] = er[j] = er[je] = er[Ye] = er[re] = er[ee] = er[nt] = er[ut] = er[ot] = er[Ue] = er[Ve] = er[J] = er[Q] = er[ke] = er[Ce] = er[q] = er[G] = er[Y] = er[Qe] = er[tt] = er[ae] = er[Re] = !0, er[ve] = er[ge] = er[we] = !1; + var ti = { + // Latin-1 Supplement block. + À: "A", + Á: "A", + Â: "A", + Ã: "A", + Ä: "A", + Å: "A", + à: "a", + á: "a", + â: "a", + ã: "a", + ä: "a", + å: "a", + Ç: "C", + ç: "c", + Ð: "D", + ð: "d", + È: "E", + É: "E", + Ê: "E", + Ë: "E", + è: "e", + é: "e", + ê: "e", + ë: "e", + Ì: "I", + Í: "I", + Î: "I", + Ï: "I", + ì: "i", + í: "i", + î: "i", + ï: "i", + Ñ: "N", + ñ: "n", + Ò: "O", + Ó: "O", + Ô: "O", + Õ: "O", + Ö: "O", + Ø: "O", + ò: "o", + ó: "o", + ô: "o", + õ: "o", + ö: "o", + ø: "o", + Ù: "U", + Ú: "U", + Û: "U", + Ü: "U", + ù: "u", + ú: "u", + û: "u", + ü: "u", + Ý: "Y", + ý: "y", + ÿ: "y", + Æ: "Ae", + æ: "ae", + Þ: "Th", + þ: "th", + ß: "ss", + // Latin Extended-A block. + Ā: "A", + Ă: "A", + Ą: "A", + ā: "a", + ă: "a", + ą: "a", + Ć: "C", + Ĉ: "C", + Ċ: "C", + Č: "C", + ć: "c", + ĉ: "c", + ċ: "c", + č: "c", + Ď: "D", + Đ: "D", + ď: "d", + đ: "d", + Ē: "E", + Ĕ: "E", + Ė: "E", + Ę: "E", + Ě: "E", + ē: "e", + ĕ: "e", + ė: "e", + ę: "e", + ě: "e", + Ĝ: "G", + Ğ: "G", + Ġ: "G", + Ģ: "G", + ĝ: "g", + ğ: "g", + ġ: "g", + ģ: "g", + Ĥ: "H", + Ħ: "H", + ĥ: "h", + ħ: "h", + Ĩ: "I", + Ī: "I", + Ĭ: "I", + Į: "I", + İ: "I", + ĩ: "i", + ī: "i", + ĭ: "i", + į: "i", + ı: "i", + Ĵ: "J", + ĵ: "j", + Ķ: "K", + ķ: "k", + ĸ: "k", + Ĺ: "L", + Ļ: "L", + Ľ: "L", + Ŀ: "L", + Ł: "L", + ĺ: "l", + ļ: "l", + ľ: "l", + ŀ: "l", + ł: "l", + Ń: "N", + Ņ: "N", + Ň: "N", + Ŋ: "N", + ń: "n", + ņ: "n", + ň: "n", + ŋ: "n", + Ō: "O", + Ŏ: "O", + Ő: "O", + ō: "o", + ŏ: "o", + ő: "o", + Ŕ: "R", + Ŗ: "R", + Ř: "R", + ŕ: "r", + ŗ: "r", + ř: "r", + Ś: "S", + Ŝ: "S", + Ş: "S", + Š: "S", + ś: "s", + ŝ: "s", + ş: "s", + š: "s", + Ţ: "T", + Ť: "T", + Ŧ: "T", + ţ: "t", + ť: "t", + ŧ: "t", + Ũ: "U", + Ū: "U", + Ŭ: "U", + Ů: "U", + Ű: "U", + Ų: "U", + ũ: "u", + ū: "u", + ŭ: "u", + ů: "u", + ű: "u", + ų: "u", + Ŵ: "W", + ŵ: "w", + Ŷ: "Y", + ŷ: "y", + Ÿ: "Y", + Ź: "Z", + Ż: "Z", + Ž: "Z", + ź: "z", + ż: "z", + ž: "z", + IJ: "IJ", + ij: "ij", + Œ: "Oe", + œ: "oe", + ʼn: "'n", + ſ: "s" + }, Ji = { + "&": "&", + "<": "<", + ">": ">", + '"': """, + "'": "'" + }, Oa = { + "&": "&", + "<": "<", + ">": ">", + """: '"', + "'": "'" + }, Qi = { + "\\": "\\", + "'": "'", + "\n": "n", + "\r": "r", + "\u2028": "u2028", + "\u2029": "u2029" + }, qi = parseFloat, xe = parseInt, De = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, Je = typeof self == "object" && self && self.Object === Object && self, ht = De || Je || Function("return this")(), Yt = k && !k.nodeType && k, Mt = Yt && !0 && H && !H.nodeType && H, fr = Mt && Mt.exports === Yt, nr = fr && De.process, tr = function() { + try { + var Ne = Mt && Mt.require && Mt.require("util").types; + return Ne || nr && nr.binding && nr.binding("util"); + } catch (Ze) { + } + }(), ur = tr && tr.isArrayBuffer, Pr = tr && tr.isDate, Br = tr && tr.isMap, dr = tr && tr.isRegExp, Er = tr && tr.isSet, Ar = tr && tr.isTypedArray; + function pr(Ne, Ze, We) { + switch (We.length) { + case 0: + return Ne.call(Ze); + case 1: + return Ne.call(Ze, We[0]); + case 2: + return Ne.call(Ze, We[0], We[1]); + case 3: + return Ne.call(Ze, We[0], We[1], We[2]); + } + return Ne.apply(Ze, We); + } + function pn(Ne, Ze, We, gt) { + for (var Bt = -1, ar = Ne == null ? 0 : Ne.length; ++Bt < ar; ) { + var Mr = Ne[Bt]; + Ze(gt, Mr, We(Mr), Ne); + } + return gt; + } + function mr(Ne, Ze) { + for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt && Ze(Ne[We], We, Ne) !== !1; ) + ; + return Ne; + } + function ea(Ne, Ze) { + for (var We = Ne == null ? 0 : Ne.length; We-- && Ze(Ne[We], We, Ne) !== !1; ) + ; + return Ne; + } + function En(Ne, Ze) { + for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt; ) + if (!Ze(Ne[We], We, Ne)) + return !1; + return !0; + } + function Zr(Ne, Ze) { + for (var We = -1, gt = Ne == null ? 0 : Ne.length, Bt = 0, ar = []; ++We < gt; ) { + var Mr = Ne[We]; + Ze(Mr, We, Ne) && (ar[Bt++] = Mr); + } + return ar; + } + function ta(Ne, Ze) { + var We = Ne == null ? 0 : Ne.length; + return !!We && wr(Ne, Ze, 0) > -1; + } + function le(Ne, Ze, We) { + for (var gt = -1, Bt = Ne == null ? 0 : Ne.length; ++gt < Bt; ) + if (We(Ze, Ne[gt])) + return !0; + return !1; + } + function Oe(Ne, Ze) { + for (var We = -1, gt = Ne == null ? 0 : Ne.length, Bt = Array(gt); ++We < gt; ) + Bt[We] = Ze(Ne[We], We, Ne); + return Bt; + } + function Xe(Ne, Ze) { + for (var We = -1, gt = Ze.length, Bt = Ne.length; ++We < gt; ) + Ne[Bt + We] = Ze[We]; + return Ne; + } + function ft(Ne, Ze, We, gt) { + var Bt = -1, ar = Ne == null ? 0 : Ne.length; + for (gt && ar && (We = Ne[++Bt]); ++Bt < ar; ) + We = Ze(We, Ne[Bt], Bt, Ne); + return We; + } + function Tt(Ne, Ze, We, gt) { + var Bt = Ne == null ? 0 : Ne.length; + for (gt && Bt && (We = Ne[--Bt]); Bt--; ) + We = Ze(We, Ne[Bt], Bt, Ne); + return We; + } + function mt(Ne, Ze) { + for (var We = -1, gt = Ne == null ? 0 : Ne.length; ++We < gt; ) + if (Ze(Ne[We], We, Ne)) + return !0; + return !1; + } + var Xt = Tn("length"); + function ir(Ne) { + return Ne.split(""); + } + function hr(Ne) { + return Ne.match(ct) || []; + } + function _r(Ne, Ze, We) { + var gt; + return We(Ne, function(Bt, ar, Mr) { + if (Ze(Bt, ar, Mr)) + return gt = ar, !1; + }), gt; + } + function Tr(Ne, Ze, We, gt) { + for (var Bt = Ne.length, ar = We + (gt ? 1 : -1); gt ? ar-- : ++ar < Bt; ) + if (Ze(Ne[ar], ar, Ne)) + return ar; + return -1; + } + function wr(Ne, Ze, We) { + return Ze === Ze ? Wc(Ne, Ze, We) : Tr(Ne, Jr, We); + } + function Rr(Ne, Ze, We, gt) { + for (var Bt = We - 1, ar = Ne.length; ++Bt < ar; ) + if (gt(Ne[Bt], Ze)) + return Bt; + return -1; + } + function Jr(Ne) { + return Ne !== Ne; + } + function Qr(Ne, Ze) { + var We = Ne == null ? 0 : Ne.length; + return We ? vi(Ne, Ze) / We : L; + } + function Tn(Ne) { + return function(Ze) { + return Ze == null ? e : Ze[Ne]; + }; + } + function yn(Ne) { + return function(Ze) { + return Ne == null ? e : Ne[Ze]; + }; + } + function Vn(Ne, Ze, We, gt, Bt) { + return Bt(Ne, function(ar, Mr, cr) { + We = gt ? (gt = !1, ar) : Ze(We, ar, Mr, cr); + }), We; + } + function Ya(Ne, Ze) { + var We = Ne.length; + for (Ne.sort(Ze); We--; ) + Ne[We] = Ne[We].value; + return Ne; + } + function vi(Ne, Ze) { + for (var We, gt = -1, Bt = Ne.length; ++gt < Bt; ) { + var ar = Ze(Ne[gt]); + ar !== e && (We = We === e ? ar : We + ar); + } + return We; + } + function mi(Ne, Ze) { + for (var We = -1, gt = Array(Ne); ++We < Ne; ) + gt[We] = Ze(We); + return gt; + } + function Fc(Ne, Ze) { + return Oe(Ze, function(We) { + return [We, Ne[We]]; + }); + } + function Mf(Ne) { + return Ne && Ne.slice(0, Ff(Ne) + 1).replace(rt, ""); + } + function vn(Ne) { + return function(Ze) { + return Ne(Ze); + }; + } + function rs(Ne, Ze) { + return Oe(Ze, function(We) { + return Ne[We]; + }); + } + function Ea(Ne, Ze) { + return Ne.has(Ze); + } + function If(Ne, Ze) { + for (var We = -1, gt = Ne.length; ++We < gt && wr(Ze, Ne[We], 0) > -1; ) + ; + return We; + } + function Df(Ne, Ze) { + for (var We = Ne.length; We-- && wr(Ze, Ne[We], 0) > -1; ) + ; + return We; + } + function Bc(Ne, Ze) { + for (var We = Ne.length, gt = 0; We--; ) + Ne[We] === Ze && ++gt; + return gt; + } + var jc = yn(ti), Lc = yn(Ji); + function zc(Ne) { + return "\\" + Qi[Ne]; + } + function Hc(Ne, Ze) { + return Ne == null ? e : Ne[Ze]; + } + function ra(Ne) { + return ka.test(Ne); + } + function Xc(Ne) { + return kn.test(Ne); + } + function Uc(Ne) { + for (var Ze, We = []; !(Ze = Ne.next()).done; ) + We.push(Ze.value); + return We; + } + function ns(Ne) { + var Ze = -1, We = Array(Ne.size); + return Ne.forEach(function(gt, Bt) { + We[++Ze] = [Bt, gt]; + }), We; + } + function Nf(Ne, Ze) { + return function(We) { + return Ne(Ze(We)); + }; + } + function bi(Ne, Ze) { + for (var We = -1, gt = Ne.length, Bt = 0, ar = []; ++We < gt; ) { + var Mr = Ne[We]; + (Mr === Ze || Mr === f) && (Ne[We] = f, ar[Bt++] = We); + } + return ar; + } + function Za(Ne) { + var Ze = -1, We = Array(Ne.size); + return Ne.forEach(function(gt) { + We[++Ze] = gt; + }), We; + } + function $c(Ne) { + var Ze = -1, We = Array(Ne.size); + return Ne.forEach(function(gt) { + We[++Ze] = [gt, gt]; + }), We; + } + function Wc(Ne, Ze, We) { + for (var gt = We - 1, Bt = Ne.length; ++gt < Bt; ) + if (Ne[gt] === Ze) + return gt; + return -1; + } + function Vc(Ne, Ze, We) { + for (var gt = We + 1; gt--; ) + if (Ne[gt] === Ze) + return gt; + return gt; + } + function na(Ne) { + return ra(Ne) ? Gc(Ne) : Xt(Ne); + } + function Ln(Ne) { + return ra(Ne) ? Yc(Ne) : ir(Ne); + } + function Ff(Ne) { + for (var Ze = Ne.length; Ze-- && _t.test(Ne.charAt(Ze)); ) + ; + return Ze; + } + var Kc = yn(Oa); + function Gc(Ne) { + for (var Ze = Ri.lastIndex = 0; Ri.test(Ne); ) + ++Ze; + return Ze; + } + function Yc(Ne) { + return Ne.match(Ri) || []; + } + function Zc(Ne) { + return Ne.match(jn) || []; + } + var Jc = function Ne(Ze) { + Ze = Ze == null ? ht : ia.defaults(ht.Object(), Ze, ia.pick(ht, On)); + var We = Ze.Array, gt = Ze.Date, Bt = Ze.Error, ar = Ze.Function, Mr = Ze.Math, cr = Ze.Object, is = Ze.RegExp, Qc = Ze.String, Rn = Ze.TypeError, Ja = We.prototype, qc = ar.prototype, aa = cr.prototype, Qa = Ze["__core-js_shared__"], qa = qc.toString, sr = aa.hasOwnProperty, eh = 0, Bf = function() { + var S = /[^.]+$/.exec(Qa && Qa.keys && Qa.keys.IE_PROTO || ""); + return S ? "Symbol(src)_1." + S : ""; + }(), eo = aa.toString, th = qa.call(cr), rh = ht._, nh = is( + "^" + qa.call(sr).replace(st, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ), to = fr ? Ze.Buffer : e, gi = Ze.Symbol, ro = Ze.Uint8Array, jf = to ? to.allocUnsafe : e, no = Nf(cr.getPrototypeOf, cr), Lf = cr.create, zf = aa.propertyIsEnumerable, io = Ja.splice, Hf = gi ? gi.isConcatSpreadable : e, Ta = gi ? gi.iterator : e, Ci = gi ? gi.toStringTag : e, ao = function() { + try { + var S = Di(cr, "defineProperty"); + return S({}, "", {}), S; + } catch (T) { + } + }(), ih = Ze.clearTimeout !== ht.clearTimeout && Ze.clearTimeout, ah = gt && gt.now !== ht.Date.now && gt.now, oh = Ze.setTimeout !== ht.setTimeout && Ze.setTimeout, oo = Mr.ceil, so = Mr.floor, as = cr.getOwnPropertySymbols, sh = to ? to.isBuffer : e, Xf = Ze.isFinite, fh = Ja.join, uh = Nf(cr.keys, cr), Ir = Mr.max, Wr = Mr.min, lh = gt.now, ch = Ze.parseInt, Uf = Mr.random, hh = Ja.reverse, os = Di(Ze, "DataView"), Ra = Di(Ze, "Map"), ss = Di(Ze, "Promise"), oa = Di(Ze, "Set"), Ca = Di(Ze, "WeakMap"), Pa = Di(cr, "create"), fo = Ca && new Ca(), sa = {}, dh = Ni(os), ph = Ni(Ra), yh = Ni(ss), vh = Ni(oa), mh = Ni(Ca), uo = gi ? gi.prototype : e, Aa = uo ? uo.valueOf : e, $f = uo ? uo.toString : e; + function de(S) { + if (br(S) && !jt(S) && !(S instanceof Zt)) { + if (S instanceof Cn) + return S; + if (sr.call(S, "__wrapped__")) + return Wu(S); + } + return new Cn(S); + } + var fa = function() { + function S() { + } + return function(T) { + if (!vr(T)) + return {}; + if (Lf) + return Lf(T); + S.prototype = T; + var X = new S(); + return S.prototype = e, X; + }; + }(); + function lo() { + } + function Cn(S, T) { + this.__wrapped__ = S, this.__actions__ = [], this.__chain__ = !!T, this.__index__ = 0, this.__values__ = e; + } + de.templateSettings = { + /** + * Used to detect `data` property values to be HTML-escaped. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + escape: K, + /** + * Used to detect code to be evaluated. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + evaluate: Me, + /** + * Used to detect `data` property values to inject. + * + * @memberOf _.templateSettings + * @type {RegExp} + */ + interpolate: Le, + /** + * Used to reference the data object in the template text. + * + * @memberOf _.templateSettings + * @type {string} + */ + variable: "", + /** + * Used to import variables into the compiled template. + * + * @memberOf _.templateSettings + * @type {Object} + */ + imports: { + /** + * A reference to the `lodash` function. + * + * @memberOf _.templateSettings.imports + * @type {Function} + */ + _: de + } + }, de.prototype = lo.prototype, de.prototype.constructor = de, Cn.prototype = fa(lo.prototype), Cn.prototype.constructor = Cn; + function Zt(S) { + this.__wrapped__ = S, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = $, this.__views__ = []; + } + function bh() { + var S = new Zt(this.__wrapped__); + return S.__actions__ = nn(this.__actions__), S.__dir__ = this.__dir__, S.__filtered__ = this.__filtered__, S.__iteratees__ = nn(this.__iteratees__), S.__takeCount__ = this.__takeCount__, S.__views__ = nn(this.__views__), S; + } + function gh() { + if (this.__filtered__) { + var S = new Zt(this); + S.__dir__ = -1, S.__filtered__ = !0; + } else + S = this.clone(), S.__dir__ *= -1; + return S; + } + function _h() { + var S = this.__wrapped__.value(), T = this.__dir__, X = jt(S), Z = T < 0, ie = X ? S.length : 0, ye = Md(0, ie, this.__views__), Te = ye.start, Ae = ye.end, ze = Ae - Te, qe = Z ? Ae : Te - 1, et = this.__iteratees__, at = et.length, yt = 0, kt = Wr(ze, this.__takeCount__); + if (!X || !Z && ie == ze && kt == ze) + return pu(S, this.__actions__); + var Dt = []; + e: + for (; ze-- && yt < kt; ) { + qe += T; + for (var $t = -1, Nt = S[qe]; ++$t < at; ) { + var Gt = et[$t], qt = Gt.iteratee, gn = Gt.type, tn = qt(Nt); + if (gn == I) + Nt = tn; + else if (!tn) { + if (gn == M) + continue e; + break e; + } + } + Dt[yt++] = Nt; + } + return Dt; + } + Zt.prototype = fa(lo.prototype), Zt.prototype.constructor = Zt; + function Pi(S) { + var T = -1, X = S == null ? 0 : S.length; + for (this.clear(); ++T < X; ) { + var Z = S[T]; + this.set(Z[0], Z[1]); + } + } + function wh() { + this.__data__ = Pa ? Pa(null) : {}, this.size = 0; + } + function xh(S) { + var T = this.has(S) && delete this.__data__[S]; + return this.size -= T ? 1 : 0, T; + } + function Sh(S) { + var T = this.__data__; + if (Pa) { + var X = T[S]; + return X === b ? e : X; + } + return sr.call(T, S) ? T[S] : e; + } + function kh(S) { + var T = this.__data__; + return Pa ? T[S] !== e : sr.call(T, S); + } + function Oh(S, T) { + var X = this.__data__; + return this.size += this.has(S) ? 0 : 1, X[S] = Pa && T === e ? b : T, this; + } + Pi.prototype.clear = wh, Pi.prototype.delete = xh, Pi.prototype.get = Sh, Pi.prototype.has = kh, Pi.prototype.set = Oh; + function ri(S) { + var T = -1, X = S == null ? 0 : S.length; + for (this.clear(); ++T < X; ) { + var Z = S[T]; + this.set(Z[0], Z[1]); + } + } + function Eh() { + this.__data__ = [], this.size = 0; + } + function Th(S) { + var T = this.__data__, X = co(T, S); + if (X < 0) + return !1; + var Z = T.length - 1; + return X == Z ? T.pop() : io.call(T, X, 1), --this.size, !0; + } + function Rh(S) { + var T = this.__data__, X = co(T, S); + return X < 0 ? e : T[X][1]; + } + function Ch(S) { + return co(this.__data__, S) > -1; + } + function Ph(S, T) { + var X = this.__data__, Z = co(X, S); + return Z < 0 ? (++this.size, X.push([S, T])) : X[Z][1] = T, this; + } + ri.prototype.clear = Eh, ri.prototype.delete = Th, ri.prototype.get = Rh, ri.prototype.has = Ch, ri.prototype.set = Ph; + function ni(S) { + var T = -1, X = S == null ? 0 : S.length; + for (this.clear(); ++T < X; ) { + var Z = S[T]; + this.set(Z[0], Z[1]); + } + } + function Ah() { + this.size = 0, this.__data__ = { + hash: new Pi(), + map: new (Ra || ri)(), + string: new Pi() + }; + } + function Mh(S) { + var T = ko(this, S).delete(S); + return this.size -= T ? 1 : 0, T; + } + function Ih(S) { + return ko(this, S).get(S); + } + function Dh(S) { + return ko(this, S).has(S); + } + function Nh(S, T) { + var X = ko(this, S), Z = X.size; + return X.set(S, T), this.size += X.size == Z ? 0 : 1, this; + } + ni.prototype.clear = Ah, ni.prototype.delete = Mh, ni.prototype.get = Ih, ni.prototype.has = Dh, ni.prototype.set = Nh; + function Ai(S) { + var T = -1, X = S == null ? 0 : S.length; + for (this.__data__ = new ni(); ++T < X; ) + this.add(S[T]); + } + function Fh(S) { + return this.__data__.set(S, b), this; + } + function Bh(S) { + return this.__data__.has(S); + } + Ai.prototype.add = Ai.prototype.push = Fh, Ai.prototype.has = Bh; + function zn(S) { + var T = this.__data__ = new ri(S); + this.size = T.size; + } + function jh() { + this.__data__ = new ri(), this.size = 0; + } + function Lh(S) { + var T = this.__data__, X = T.delete(S); + return this.size = T.size, X; + } + function zh(S) { + return this.__data__.get(S); + } + function Hh(S) { + return this.__data__.has(S); + } + function Xh(S, T) { + var X = this.__data__; + if (X instanceof ri) { + var Z = X.__data__; + if (!Ra || Z.length < _ - 1) + return Z.push([S, T]), this.size = ++X.size, this; + X = this.__data__ = new ni(Z); + } + return X.set(S, T), this.size = X.size, this; + } + zn.prototype.clear = jh, zn.prototype.delete = Lh, zn.prototype.get = zh, zn.prototype.has = Hh, zn.prototype.set = Xh; + function Wf(S, T) { + var X = jt(S), Z = !X && Fi(S), ie = !X && !Z && ki(S), ye = !X && !Z && !ie && ha(S), Te = X || Z || ie || ye, Ae = Te ? mi(S.length, Qc) : [], ze = Ae.length; + for (var qe in S) + (T || sr.call(S, qe)) && !(Te && // Safari 9 has enumerable `arguments.length` in strict mode. + (qe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + ie && (qe == "offset" || qe == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + ye && (qe == "buffer" || qe == "byteLength" || qe == "byteOffset") || // Skip index properties. + si(qe, ze))) && Ae.push(qe); + return Ae; + } + function Vf(S) { + var T = S.length; + return T ? S[bs(0, T - 1)] : e; + } + function Uh(S, T) { + return Oo(nn(S), Mi(T, 0, S.length)); + } + function $h(S) { + return Oo(nn(S)); + } + function fs(S, T, X) { + (X !== e && !Hn(S[T], X) || X === e && !(T in S)) && ii(S, T, X); + } + function Ma(S, T, X) { + var Z = S[T]; + (!(sr.call(S, T) && Hn(Z, X)) || X === e && !(T in S)) && ii(S, T, X); + } + function co(S, T) { + for (var X = S.length; X--; ) + if (Hn(S[X][0], T)) + return X; + return -1; + } + function Wh(S, T, X, Z) { + return _i(S, function(ie, ye, Te) { + T(Z, ie, X(ie), Te); + }), Z; + } + function Kf(S, T) { + return S && Gn(T, jr(T), S); + } + function Vh(S, T) { + return S && Gn(T, on(T), S); + } + function ii(S, T, X) { + T == "__proto__" && ao ? ao(S, T, { + configurable: !0, + enumerable: !0, + value: X, + writable: !0 + }) : S[T] = X; + } + function us(S, T) { + for (var X = -1, Z = T.length, ie = We(Z), ye = S == null; ++X < Z; ) + ie[X] = ye ? e : Us(S, T[X]); + return ie; + } + function Mi(S, T, X) { + return S === S && (X !== e && (S = S <= X ? S : X), T !== e && (S = S >= T ? S : T)), S; + } + function Pn(S, T, X, Z, ie, ye) { + var Te, Ae = T & y, ze = T & h, qe = T & l; + if (X && (Te = ie ? X(S, Z, ie, ye) : X(S)), Te !== e) + return Te; + if (!vr(S)) + return S; + var et = jt(S); + if (et) { + if (Te = Dd(S), !Ae) + return nn(S, Te); + } else { + var at = Vr(S), yt = at == ge || at == oe; + if (ki(S)) + return mu(S, Ae); + if (at == ke || at == B || yt && !ie) { + if (Te = ze || yt ? {} : Fu(S), !Ae) + return ze ? Sd(S, Vh(Te, S)) : xd(S, Kf(Te, S)); + } else { + if (!er[at]) + return ie ? S : {}; + Te = Nd(S, at, Ae); + } + } + ye || (ye = new zn()); + var kt = ye.get(S); + if (kt) + return kt; + ye.set(S, Te), cl(S) ? S.forEach(function(Nt) { + Te.add(Pn(Nt, T, X, Nt, S, ye)); + }) : ul(S) && S.forEach(function(Nt, Gt) { + Te.set(Gt, Pn(Nt, T, X, Gt, S, ye)); + }); + var Dt = qe ? ze ? Cs : Rs : ze ? on : jr, $t = et ? e : Dt(S); + return mr($t || S, function(Nt, Gt) { + $t && (Gt = Nt, Nt = S[Gt]), Ma(Te, Gt, Pn(Nt, T, X, Gt, S, ye)); + }), Te; + } + function Kh(S) { + var T = jr(S); + return function(X) { + return Gf(X, S, T); + }; + } + function Gf(S, T, X) { + var Z = X.length; + if (S == null) + return !Z; + for (S = cr(S); Z--; ) { + var ie = X[Z], ye = T[ie], Te = S[ie]; + if (Te === e && !(ie in S) || !ye(Te)) + return !1; + } + return !0; + } + function Yf(S, T, X) { + if (typeof S != "function") + throw new Rn(m); + return La(function() { + S.apply(e, X); + }, T); + } + function Ia(S, T, X, Z) { + var ie = -1, ye = ta, Te = !0, Ae = S.length, ze = [], qe = T.length; + if (!Ae) + return ze; + X && (T = Oe(T, vn(X))), Z ? (ye = le, Te = !1) : T.length >= _ && (ye = Ea, Te = !1, T = new Ai(T)); + e: + for (; ++ie < Ae; ) { + var et = S[ie], at = X == null ? et : X(et); + if (et = Z || et !== 0 ? et : 0, Te && at === at) { + for (var yt = qe; yt--; ) + if (T[yt] === at) + continue e; + ze.push(et); + } else + ye(T, at, Z) || ze.push(et); + } + return ze; + } + var _i = xu(Kn), Zf = xu(cs, !0); + function Gh(S, T) { + var X = !0; + return _i(S, function(Z, ie, ye) { + return X = !!T(Z, ie, ye), X; + }), X; + } + function ho(S, T, X) { + for (var Z = -1, ie = S.length; ++Z < ie; ) { + var ye = S[Z], Te = T(ye); + if (Te != null && (Ae === e ? Te === Te && !bn(Te) : X(Te, Ae))) + var Ae = Te, ze = ye; + } + return ze; + } + function Yh(S, T, X, Z) { + var ie = S.length; + for (X = Ut(X), X < 0 && (X = -X > ie ? 0 : ie + X), Z = Z === e || Z > ie ? ie : Ut(Z), Z < 0 && (Z += ie), Z = X > Z ? 0 : dl(Z); X < Z; ) + S[X++] = T; + return S; + } + function Jf(S, T) { + var X = []; + return _i(S, function(Z, ie, ye) { + T(Z, ie, ye) && X.push(Z); + }), X; + } + function Hr(S, T, X, Z, ie) { + var ye = -1, Te = S.length; + for (X || (X = Bd), ie || (ie = []); ++ye < Te; ) { + var Ae = S[ye]; + T > 0 && X(Ae) ? T > 1 ? Hr(Ae, T - 1, X, Z, ie) : Xe(ie, Ae) : Z || (ie[ie.length] = Ae); + } + return ie; + } + var ls = Su(), Qf = Su(!0); + function Kn(S, T) { + return S && ls(S, T, jr); + } + function cs(S, T) { + return S && Qf(S, T, jr); + } + function po(S, T) { + return Zr(T, function(X) { + return fi(S[X]); + }); + } + function Ii(S, T) { + T = xi(T, S); + for (var X = 0, Z = T.length; S != null && X < Z; ) + S = S[Yn(T[X++])]; + return X && X == Z ? S : e; + } + function qf(S, T, X) { + var Z = T(S); + return jt(S) ? Z : Xe(Z, X(S)); + } + function qr(S) { + return S == null ? S === e ? fe : he : Ci && Ci in cr(S) ? Ad(S) : $d(S); + } + function hs(S, T) { + return S > T; + } + function Zh(S, T) { + return S != null && sr.call(S, T); + } + function Jh(S, T) { + return S != null && T in cr(S); + } + function Qh(S, T, X) { + return S >= Wr(T, X) && S < Ir(T, X); + } + function ds(S, T, X) { + for (var Z = X ? le : ta, ie = S[0].length, ye = S.length, Te = ye, Ae = We(ye), ze = 1 / 0, qe = []; Te--; ) { + var et = S[Te]; + Te && T && (et = Oe(et, vn(T))), ze = Wr(et.length, ze), Ae[Te] = !X && (T || ie >= 120 && et.length >= 120) ? new Ai(Te && et) : e; + } + et = S[0]; + var at = -1, yt = Ae[0]; + e: + for (; ++at < ie && qe.length < ze; ) { + var kt = et[at], Dt = T ? T(kt) : kt; + if (kt = X || kt !== 0 ? kt : 0, !(yt ? Ea(yt, Dt) : Z(qe, Dt, X))) { + for (Te = ye; --Te; ) { + var $t = Ae[Te]; + if (!($t ? Ea($t, Dt) : Z(S[Te], Dt, X))) + continue e; + } + yt && yt.push(Dt), qe.push(kt); + } + } + return qe; + } + function qh(S, T, X, Z) { + return Kn(S, function(ie, ye, Te) { + T(Z, X(ie), ye, Te); + }), Z; + } + function Da(S, T, X) { + T = xi(T, S), S = zu(S, T); + var Z = S == null ? S : S[Yn(Mn(T))]; + return Z == null ? e : pr(Z, S, X); + } + function eu(S) { + return br(S) && qr(S) == B; + } + function ed(S) { + return br(S) && qr(S) == je; + } + function td(S) { + return br(S) && qr(S) == ee; + } + function Na(S, T, X, Z, ie) { + return S === T ? !0 : S == null || T == null || !br(S) && !br(T) ? S !== S && T !== T : rd(S, T, X, Z, Na, ie); + } + function rd(S, T, X, Z, ie, ye) { + var Te = jt(S), Ae = jt(T), ze = Te ? j : Vr(S), qe = Ae ? j : Vr(T); + ze = ze == B ? ke : ze, qe = qe == B ? ke : qe; + var et = ze == ke, at = qe == ke, yt = ze == qe; + if (yt && ki(S)) { + if (!ki(T)) + return !1; + Te = !0, et = !1; + } + if (yt && !et) + return ye || (ye = new zn()), Te || ha(S) ? Iu(S, T, X, Z, ie, ye) : Cd(S, T, ze, X, Z, ie, ye); + if (!(X & d)) { + var kt = et && sr.call(S, "__wrapped__"), Dt = at && sr.call(T, "__wrapped__"); + if (kt || Dt) { + var $t = kt ? S.value() : S, Nt = Dt ? T.value() : T; + return ye || (ye = new zn()), ie($t, Nt, X, Z, ye); + } + } + return yt ? (ye || (ye = new zn()), Pd(S, T, X, Z, ie, ye)) : !1; + } + function nd(S) { + return br(S) && Vr(S) == J; + } + function ps(S, T, X, Z) { + var ie = X.length, ye = ie, Te = !Z; + if (S == null) + return !ye; + for (S = cr(S); ie--; ) { + var Ae = X[ie]; + if (Te && Ae[2] ? Ae[1] !== S[Ae[0]] : !(Ae[0] in S)) + return !1; + } + for (; ++ie < ye; ) { + Ae = X[ie]; + var ze = Ae[0], qe = S[ze], et = Ae[1]; + if (Te && Ae[2]) { + if (qe === e && !(ze in S)) + return !1; + } else { + var at = new zn(); + if (Z) + var yt = Z(qe, et, ze, S, T, at); + if (!(yt === e ? Na(et, qe, d | s, Z, at) : yt)) + return !1; + } + } + return !0; + } + function tu(S) { + if (!vr(S) || Ld(S)) + return !1; + var T = fi(S) ? nh : Ft; + return T.test(Ni(S)); + } + function id(S) { + return br(S) && qr(S) == Ce; + } + function ad(S) { + return br(S) && Vr(S) == q; + } + function od(S) { + return br(S) && Ao(S.length) && !!rr[qr(S)]; + } + function ru(S) { + return typeof S == "function" ? S : S == null ? sn : typeof S == "object" ? jt(S) ? au(S[0], S[1]) : iu(S) : kl(S); + } + function ys(S) { + if (!ja(S)) + return uh(S); + var T = []; + for (var X in cr(S)) + sr.call(S, X) && X != "constructor" && T.push(X); + return T; + } + function sd(S) { + if (!vr(S)) + return Ud(S); + var T = ja(S), X = []; + for (var Z in S) + Z == "constructor" && (T || !sr.call(S, Z)) || X.push(Z); + return X; + } + function vs(S, T) { + return S < T; + } + function nu(S, T) { + var X = -1, Z = an(S) ? We(S.length) : []; + return _i(S, function(ie, ye, Te) { + Z[++X] = T(ie, ye, Te); + }), Z; + } + function iu(S) { + var T = As(S); + return T.length == 1 && T[0][2] ? ju(T[0][0], T[0][1]) : function(X) { + return X === S || ps(X, S, T); + }; + } + function au(S, T) { + return Is(S) && Bu(T) ? ju(Yn(S), T) : function(X) { + var Z = Us(X, S); + return Z === e && Z === T ? $s(X, S) : Na(T, Z, d | s); + }; + } + function yo(S, T, X, Z, ie) { + S !== T && ls(T, function(ye, Te) { + if (ie || (ie = new zn()), vr(ye)) + fd(S, T, Te, X, yo, Z, ie); + else { + var Ae = Z ? Z(Ns(S, Te), ye, Te + "", S, T, ie) : e; + Ae === e && (Ae = ye), fs(S, Te, Ae); + } + }, on); + } + function fd(S, T, X, Z, ie, ye, Te) { + var Ae = Ns(S, X), ze = Ns(T, X), qe = Te.get(ze); + if (qe) { + fs(S, X, qe); + return; + } + var et = ye ? ye(Ae, ze, X + "", S, T, Te) : e, at = et === e; + if (at) { + var yt = jt(ze), kt = !yt && ki(ze), Dt = !yt && !kt && ha(ze); + et = ze, yt || kt || Dt ? jt(Ae) ? et = Ae : xr(Ae) ? et = nn(Ae) : kt ? (at = !1, et = mu(ze, !0)) : Dt ? (at = !1, et = bu(ze, !0)) : et = [] : za(ze) || Fi(ze) ? (et = Ae, Fi(Ae) ? et = pl(Ae) : (!vr(Ae) || fi(Ae)) && (et = Fu(ze))) : at = !1; + } + at && (Te.set(ze, et), ie(et, ze, Z, ye, Te), Te.delete(ze)), fs(S, X, et); + } + function ou(S, T) { + var X = S.length; + if (X) + return T += T < 0 ? X : 0, si(T, X) ? S[T] : e; + } + function su(S, T, X) { + T.length ? T = Oe(T, function(ye) { + return jt(ye) ? function(Te) { + return Ii(Te, ye.length === 1 ? ye[0] : ye); + } : ye; + }) : T = [sn]; + var Z = -1; + T = Oe(T, vn(It())); + var ie = nu(S, function(ye, Te, Ae) { + var ze = Oe(T, function(qe) { + return qe(ye); + }); + return { criteria: ze, index: ++Z, value: ye }; + }); + return Ya(ie, function(ye, Te) { + return wd(ye, Te, X); + }); + } + function ud(S, T) { + return fu(S, T, function(X, Z) { + return $s(S, Z); + }); + } + function fu(S, T, X) { + for (var Z = -1, ie = T.length, ye = {}; ++Z < ie; ) { + var Te = T[Z], Ae = Ii(S, Te); + X(Ae, Te) && Fa(ye, xi(Te, S), Ae); + } + return ye; + } + function ld(S) { + return function(T) { + return Ii(T, S); + }; + } + function ms(S, T, X, Z) { + var ie = Z ? Rr : wr, ye = -1, Te = T.length, Ae = S; + for (S === T && (T = nn(T)), X && (Ae = Oe(S, vn(X))); ++ye < Te; ) + for (var ze = 0, qe = T[ye], et = X ? X(qe) : qe; (ze = ie(Ae, et, ze, Z)) > -1; ) + Ae !== S && io.call(Ae, ze, 1), io.call(S, ze, 1); + return S; + } + function uu(S, T) { + for (var X = S ? T.length : 0, Z = X - 1; X--; ) { + var ie = T[X]; + if (X == Z || ie !== ye) { + var ye = ie; + si(ie) ? io.call(S, ie, 1) : ws(S, ie); + } + } + return S; + } + function bs(S, T) { + return S + so(Uf() * (T - S + 1)); + } + function cd(S, T, X, Z) { + for (var ie = -1, ye = Ir(oo((T - S) / (X || 1)), 0), Te = We(ye); ye--; ) + Te[Z ? ye : ++ie] = S, S += X; + return Te; + } + function gs(S, T) { + var X = ""; + if (!S || T < 1 || T > E) + return X; + do + T % 2 && (X += S), T = so(T / 2), T && (S += S); + while (T); + return X; + } + function Vt(S, T) { + return Fs(Lu(S, T, sn), S + ""); + } + function hd(S) { + return Vf(da(S)); + } + function dd(S, T) { + var X = da(S); + return Oo(X, Mi(T, 0, X.length)); + } + function Fa(S, T, X, Z) { + if (!vr(S)) + return S; + T = xi(T, S); + for (var ie = -1, ye = T.length, Te = ye - 1, Ae = S; Ae != null && ++ie < ye; ) { + var ze = Yn(T[ie]), qe = X; + if (ze === "__proto__" || ze === "constructor" || ze === "prototype") + return S; + if (ie != Te) { + var et = Ae[ze]; + qe = Z ? Z(et, ze, Ae) : e, qe === e && (qe = vr(et) ? et : si(T[ie + 1]) ? [] : {}); + } + Ma(Ae, ze, qe), Ae = Ae[ze]; + } + return S; + } + var lu = fo ? function(S, T) { + return fo.set(S, T), S; + } : sn, pd = ao ? function(S, T) { + return ao(S, "toString", { + configurable: !0, + enumerable: !1, + value: Vs(T), + writable: !0 + }); + } : sn; + function yd(S) { + return Oo(da(S)); + } + function An(S, T, X) { + var Z = -1, ie = S.length; + T < 0 && (T = -T > ie ? 0 : ie + T), X = X > ie ? ie : X, X < 0 && (X += ie), ie = T > X ? 0 : X - T >>> 0, T >>>= 0; + for (var ye = We(ie); ++Z < ie; ) + ye[Z] = S[Z + T]; + return ye; + } + function vd(S, T) { + var X; + return _i(S, function(Z, ie, ye) { + return X = T(Z, ie, ye), !X; + }), !!X; + } + function vo(S, T, X) { + var Z = 0, ie = S == null ? Z : S.length; + if (typeof T == "number" && T === T && ie <= U) { + for (; Z < ie; ) { + var ye = Z + ie >>> 1, Te = S[ye]; + Te !== null && !bn(Te) && (X ? Te <= T : Te < T) ? Z = ye + 1 : ie = ye; + } + return ie; + } + return _s(S, T, sn, X); + } + function _s(S, T, X, Z) { + var ie = 0, ye = S == null ? 0 : S.length; + if (ye === 0) + return 0; + T = X(T); + for (var Te = T !== T, Ae = T === null, ze = bn(T), qe = T === e; ie < ye; ) { + var et = so((ie + ye) / 2), at = X(S[et]), yt = at !== e, kt = at === null, Dt = at === at, $t = bn(at); + if (Te) + var Nt = Z || Dt; + else + qe ? Nt = Dt && (Z || yt) : Ae ? Nt = Dt && yt && (Z || !kt) : ze ? Nt = Dt && yt && !kt && (Z || !$t) : kt || $t ? Nt = !1 : Nt = Z ? at <= T : at < T; + Nt ? ie = et + 1 : ye = et; + } + return Wr(ye, W); + } + function cu(S, T) { + for (var X = -1, Z = S.length, ie = 0, ye = []; ++X < Z; ) { + var Te = S[X], Ae = T ? T(Te) : Te; + if (!X || !Hn(Ae, ze)) { + var ze = Ae; + ye[ie++] = Te === 0 ? 0 : Te; + } + } + return ye; + } + function hu(S) { + return typeof S == "number" ? S : bn(S) ? L : +S; + } + function mn(S) { + if (typeof S == "string") + return S; + if (jt(S)) + return Oe(S, mn) + ""; + if (bn(S)) + return $f ? $f.call(S) : ""; + var T = S + ""; + return T == "0" && 1 / S == -C ? "-0" : T; + } + function wi(S, T, X) { + var Z = -1, ie = ta, ye = S.length, Te = !0, Ae = [], ze = Ae; + if (X) + Te = !1, ie = le; + else if (ye >= _) { + var qe = T ? null : Td(S); + if (qe) + return Za(qe); + Te = !1, ie = Ea, ze = new Ai(); + } else + ze = T ? [] : Ae; + e: + for (; ++Z < ye; ) { + var et = S[Z], at = T ? T(et) : et; + if (et = X || et !== 0 ? et : 0, Te && at === at) { + for (var yt = ze.length; yt--; ) + if (ze[yt] === at) + continue e; + T && ze.push(at), Ae.push(et); + } else + ie(ze, at, X) || (ze !== Ae && ze.push(at), Ae.push(et)); + } + return Ae; + } + function ws(S, T) { + return T = xi(T, S), S = zu(S, T), S == null || delete S[Yn(Mn(T))]; + } + function du(S, T, X, Z) { + return Fa(S, T, X(Ii(S, T)), Z); + } + function mo(S, T, X, Z) { + for (var ie = S.length, ye = Z ? ie : -1; (Z ? ye-- : ++ye < ie) && T(S[ye], ye, S); ) + ; + return X ? An(S, Z ? 0 : ye, Z ? ye + 1 : ie) : An(S, Z ? ye + 1 : 0, Z ? ie : ye); + } + function pu(S, T) { + var X = S; + return X instanceof Zt && (X = X.value()), ft(T, function(Z, ie) { + return ie.func.apply(ie.thisArg, Xe([Z], ie.args)); + }, X); + } + function xs(S, T, X) { + var Z = S.length; + if (Z < 2) + return Z ? wi(S[0]) : []; + for (var ie = -1, ye = We(Z); ++ie < Z; ) + for (var Te = S[ie], Ae = -1; ++Ae < Z; ) + Ae != ie && (ye[ie] = Ia(ye[ie] || Te, S[Ae], T, X)); + return wi(Hr(ye, 1), T, X); + } + function yu(S, T, X) { + for (var Z = -1, ie = S.length, ye = T.length, Te = {}; ++Z < ie; ) { + var Ae = Z < ye ? T[Z] : e; + X(Te, S[Z], Ae); + } + return Te; + } + function Ss(S) { + return xr(S) ? S : []; + } + function ks(S) { + return typeof S == "function" ? S : sn; + } + function xi(S, T) { + return jt(S) ? S : Is(S, T) ? [S] : $u(or(S)); + } + var md = Vt; + function Si(S, T, X) { + var Z = S.length; + return X = X === e ? Z : X, !T && X >= Z ? S : An(S, T, X); + } + var vu = ih || function(S) { + return ht.clearTimeout(S); + }; + function mu(S, T) { + if (T) + return S.slice(); + var X = S.length, Z = jf ? jf(X) : new S.constructor(X); + return S.copy(Z), Z; + } + function Os(S) { + var T = new S.constructor(S.byteLength); + return new ro(T).set(new ro(S)), T; + } + function bd(S, T) { + var X = T ? Os(S.buffer) : S.buffer; + return new S.constructor(X, S.byteOffset, S.byteLength); + } + function gd(S) { + var T = new S.constructor(S.source, Kt.exec(S)); + return T.lastIndex = S.lastIndex, T; + } + function _d(S) { + return Aa ? cr(Aa.call(S)) : {}; + } + function bu(S, T) { + var X = T ? Os(S.buffer) : S.buffer; + return new S.constructor(X, S.byteOffset, S.length); + } + function gu(S, T) { + if (S !== T) { + var X = S !== e, Z = S === null, ie = S === S, ye = bn(S), Te = T !== e, Ae = T === null, ze = T === T, qe = bn(T); + if (!Ae && !qe && !ye && S > T || ye && Te && ze && !Ae && !qe || Z && Te && ze || !X && ze || !ie) + return 1; + if (!Z && !ye && !qe && S < T || qe && X && ie && !Z && !ye || Ae && X && ie || !Te && ie || !ze) + return -1; + } + return 0; + } + function wd(S, T, X) { + for (var Z = -1, ie = S.criteria, ye = T.criteria, Te = ie.length, Ae = X.length; ++Z < Te; ) { + var ze = gu(ie[Z], ye[Z]); + if (ze) { + if (Z >= Ae) + return ze; + var qe = X[Z]; + return ze * (qe == "desc" ? -1 : 1); + } + } + return S.index - T.index; + } + function _u(S, T, X, Z) { + for (var ie = -1, ye = S.length, Te = X.length, Ae = -1, ze = T.length, qe = Ir(ye - Te, 0), et = We(ze + qe), at = !Z; ++Ae < ze; ) + et[Ae] = T[Ae]; + for (; ++ie < Te; ) + (at || ie < ye) && (et[X[ie]] = S[ie]); + for (; qe--; ) + et[Ae++] = S[ie++]; + return et; + } + function wu(S, T, X, Z) { + for (var ie = -1, ye = S.length, Te = -1, Ae = X.length, ze = -1, qe = T.length, et = Ir(ye - Ae, 0), at = We(et + qe), yt = !Z; ++ie < et; ) + at[ie] = S[ie]; + for (var kt = ie; ++ze < qe; ) + at[kt + ze] = T[ze]; + for (; ++Te < Ae; ) + (yt || ie < ye) && (at[kt + X[Te]] = S[ie++]); + return at; + } + function nn(S, T) { + var X = -1, Z = S.length; + for (T || (T = We(Z)); ++X < Z; ) + T[X] = S[X]; + return T; + } + function Gn(S, T, X, Z) { + var ie = !X; + X || (X = {}); + for (var ye = -1, Te = T.length; ++ye < Te; ) { + var Ae = T[ye], ze = Z ? Z(X[Ae], S[Ae], Ae, X, S) : e; + ze === e && (ze = S[Ae]), ie ? ii(X, Ae, ze) : Ma(X, Ae, ze); + } + return X; + } + function xd(S, T) { + return Gn(S, Ms(S), T); + } + function Sd(S, T) { + return Gn(S, Du(S), T); + } + function bo(S, T) { + return function(X, Z) { + var ie = jt(X) ? pn : Wh, ye = T ? T() : {}; + return ie(X, S, It(Z, 2), ye); + }; + } + function ua(S) { + return Vt(function(T, X) { + var Z = -1, ie = X.length, ye = ie > 1 ? X[ie - 1] : e, Te = ie > 2 ? X[2] : e; + for (ye = S.length > 3 && typeof ye == "function" ? (ie--, ye) : e, Te && en(X[0], X[1], Te) && (ye = ie < 3 ? e : ye, ie = 1), T = cr(T); ++Z < ie; ) { + var Ae = X[Z]; + Ae && S(T, Ae, Z, ye); + } + return T; + }); + } + function xu(S, T) { + return function(X, Z) { + if (X == null) + return X; + if (!an(X)) + return S(X, Z); + for (var ie = X.length, ye = T ? ie : -1, Te = cr(X); (T ? ye-- : ++ye < ie) && Z(Te[ye], ye, Te) !== !1; ) + ; + return X; + }; + } + function Su(S) { + return function(T, X, Z) { + for (var ie = -1, ye = cr(T), Te = Z(T), Ae = Te.length; Ae--; ) { + var ze = Te[S ? Ae : ++ie]; + if (X(ye[ze], ze, ye) === !1) + break; + } + return T; + }; + } + function kd(S, T, X) { + var Z = T & v, ie = Ba(S); + function ye() { + var Te = this && this !== ht && this instanceof ye ? ie : S; + return Te.apply(Z ? X : this, arguments); + } + return ye; + } + function ku(S) { + return function(T) { + T = or(T); + var X = ra(T) ? Ln(T) : e, Z = X ? X[0] : T.charAt(0), ie = X ? Si(X, 1).join("") : T.slice(1); + return Z[S]() + ie; + }; + } + function la(S) { + return function(T) { + return ft(xl(wl(T).replace(Sn, "")), S, ""); + }; + } + function Ba(S) { + return function() { + var T = arguments; + switch (T.length) { + case 0: + return new S(); + case 1: + return new S(T[0]); + case 2: + return new S(T[0], T[1]); + case 3: + return new S(T[0], T[1], T[2]); + case 4: + return new S(T[0], T[1], T[2], T[3]); + case 5: + return new S(T[0], T[1], T[2], T[3], T[4]); + case 6: + return new S(T[0], T[1], T[2], T[3], T[4], T[5]); + case 7: + return new S(T[0], T[1], T[2], T[3], T[4], T[5], T[6]); + } + var X = fa(S.prototype), Z = S.apply(X, T); + return vr(Z) ? Z : X; + }; + } + function Od(S, T, X) { + var Z = Ba(S); + function ie() { + for (var ye = arguments.length, Te = We(ye), Ae = ye, ze = ca(ie); Ae--; ) + Te[Ae] = arguments[Ae]; + var qe = ye < 3 && Te[0] !== ze && Te[ye - 1] !== ze ? [] : bi(Te, ze); + if (ye -= qe.length, ye < X) + return Cu( + S, + T, + go, + ie.placeholder, + e, + Te, + qe, + e, + e, + X - ye + ); + var et = this && this !== ht && this instanceof ie ? Z : S; + return pr(et, this, Te); + } + return ie; + } + function Ou(S) { + return function(T, X, Z) { + var ie = cr(T); + if (!an(T)) { + var ye = It(X, 3); + T = jr(T), X = function(Ae) { + return ye(ie[Ae], Ae, ie); + }; + } + var Te = S(T, X, Z); + return Te > -1 ? ie[ye ? T[Te] : Te] : e; + }; + } + function Eu(S) { + return oi(function(T) { + var X = T.length, Z = X, ie = Cn.prototype.thru; + for (S && T.reverse(); Z--; ) { + var ye = T[Z]; + if (typeof ye != "function") + throw new Rn(m); + if (ie && !Te && So(ye) == "wrapper") + var Te = new Cn([], !0); + } + for (Z = Te ? Z : X; ++Z < X; ) { + ye = T[Z]; + var Ae = So(ye), ze = Ae == "wrapper" ? Ps(ye) : e; + ze && Ds(ze[0]) && ze[1] == (o | r | i | p) && !ze[4].length && ze[9] == 1 ? Te = Te[So(ze[0])].apply(Te, ze[3]) : Te = ye.length == 1 && Ds(ye) ? Te[Ae]() : Te.thru(ye); + } + return function() { + var qe = arguments, et = qe[0]; + if (Te && qe.length == 1 && jt(et)) + return Te.plant(et).value(); + for (var at = 0, yt = X ? T[at].apply(this, qe) : et; ++at < X; ) + yt = T[at].call(this, yt); + return yt; + }; + }); + } + function go(S, T, X, Z, ie, ye, Te, Ae, ze, qe) { + var et = T & o, at = T & v, yt = T & c, kt = T & (r | t), Dt = T & O, $t = yt ? e : Ba(S); + function Nt() { + for (var Gt = arguments.length, qt = We(Gt), gn = Gt; gn--; ) + qt[gn] = arguments[gn]; + if (kt) + var tn = ca(Nt), _n = Bc(qt, tn); + if (Z && (qt = _u(qt, Z, ie, kt)), ye && (qt = wu(qt, ye, Te, kt)), Gt -= _n, kt && Gt < qe) { + var Sr = bi(qt, tn); + return Cu( + S, + T, + go, + Nt.placeholder, + X, + qt, + Sr, + Ae, + ze, + qe - Gt + ); + } + var Xn = at ? X : this, li = yt ? Xn[S] : S; + return Gt = qt.length, Ae ? qt = Wd(qt, Ae) : Dt && Gt > 1 && qt.reverse(), et && ze < Gt && (qt.length = ze), this && this !== ht && this instanceof Nt && (li = $t || Ba(li)), li.apply(Xn, qt); + } + return Nt; + } + function Tu(S, T) { + return function(X, Z) { + return qh(X, S, T(Z), {}); + }; + } + function _o(S, T) { + return function(X, Z) { + var ie; + if (X === e && Z === e) + return T; + if (X !== e && (ie = X), Z !== e) { + if (ie === e) + return Z; + typeof X == "string" || typeof Z == "string" ? (X = mn(X), Z = mn(Z)) : (X = hu(X), Z = hu(Z)), ie = S(X, Z); + } + return ie; + }; + } + function Es(S) { + return oi(function(T) { + return T = Oe(T, vn(It())), Vt(function(X) { + var Z = this; + return S(T, function(ie) { + return pr(ie, Z, X); + }); + }); + }); + } + function wo(S, T) { + T = T === e ? " " : mn(T); + var X = T.length; + if (X < 2) + return X ? gs(T, S) : T; + var Z = gs(T, oo(S / na(T))); + return ra(T) ? Si(Ln(Z), 0, S).join("") : Z.slice(0, S); + } + function Ed(S, T, X, Z) { + var ie = T & v, ye = Ba(S); + function Te() { + for (var Ae = -1, ze = arguments.length, qe = -1, et = Z.length, at = We(et + ze), yt = this && this !== ht && this instanceof Te ? ye : S; ++qe < et; ) + at[qe] = Z[qe]; + for (; ze--; ) + at[qe++] = arguments[++Ae]; + return pr(yt, ie ? X : this, at); + } + return Te; + } + function Ru(S) { + return function(T, X, Z) { + return Z && typeof Z != "number" && en(T, X, Z) && (X = Z = e), T = ui(T), X === e ? (X = T, T = 0) : X = ui(X), Z = Z === e ? T < X ? 1 : -1 : ui(Z), cd(T, X, Z, S); + }; + } + function xo(S) { + return function(T, X) { + return typeof T == "string" && typeof X == "string" || (T = In(T), X = In(X)), S(T, X); + }; + } + function Cu(S, T, X, Z, ie, ye, Te, Ae, ze, qe) { + var et = T & r, at = et ? Te : e, yt = et ? e : Te, kt = et ? ye : e, Dt = et ? e : ye; + T |= et ? i : n, T &= ~(et ? n : i), T & a || (T &= ~(v | c)); + var $t = [ + S, + T, + ie, + kt, + at, + Dt, + yt, + Ae, + ze, + qe + ], Nt = X.apply(e, $t); + return Ds(S) && Hu(Nt, $t), Nt.placeholder = Z, Xu(Nt, S, T); + } + function Ts(S) { + var T = Mr[S]; + return function(X, Z) { + if (X = In(X), Z = Z == null ? 0 : Wr(Ut(Z), 292), Z && Xf(X)) { + var ie = (or(X) + "e").split("e"), ye = T(ie[0] + "e" + (+ie[1] + Z)); + return ie = (or(ye) + "e").split("e"), +(ie[0] + "e" + (+ie[1] - Z)); + } + return T(X); + }; + } + var Td = oa && 1 / Za(new oa([, -0]))[1] == C ? function(S) { + return new oa(S); + } : Ys; + function Pu(S) { + return function(T) { + var X = Vr(T); + return X == J ? ns(T) : X == q ? $c(T) : Fc(T, S(T)); + }; + } + function ai(S, T, X, Z, ie, ye, Te, Ae) { + var ze = T & c; + if (!ze && typeof S != "function") + throw new Rn(m); + var qe = Z ? Z.length : 0; + if (qe || (T &= ~(i | n), Z = ie = e), Te = Te === e ? Te : Ir(Ut(Te), 0), Ae = Ae === e ? Ae : Ut(Ae), qe -= ie ? ie.length : 0, T & n) { + var et = Z, at = ie; + Z = ie = e; + } + var yt = ze ? e : Ps(S), kt = [ + S, + T, + X, + Z, + ie, + et, + at, + ye, + Te, + Ae + ]; + if (yt && Xd(kt, yt), S = kt[0], T = kt[1], X = kt[2], Z = kt[3], ie = kt[4], Ae = kt[9] = kt[9] === e ? ze ? 0 : S.length : Ir(kt[9] - qe, 0), !Ae && T & (r | t) && (T &= ~(r | t)), !T || T == v) + var Dt = kd(S, T, X); + else + T == r || T == t ? Dt = Od(S, T, Ae) : (T == i || T == (v | i)) && !ie.length ? Dt = Ed(S, T, X, Z) : Dt = go.apply(e, kt); + var $t = yt ? lu : Hu; + return Xu($t(Dt, kt), S, T); + } + function Au(S, T, X, Z) { + return S === e || Hn(S, aa[X]) && !sr.call(Z, X) ? T : S; + } + function Mu(S, T, X, Z, ie, ye) { + return vr(S) && vr(T) && (ye.set(T, S), yo(S, T, e, Mu, ye), ye.delete(T)), S; + } + function Rd(S) { + return za(S) ? e : S; + } + function Iu(S, T, X, Z, ie, ye) { + var Te = X & d, Ae = S.length, ze = T.length; + if (Ae != ze && !(Te && ze > Ae)) + return !1; + var qe = ye.get(S), et = ye.get(T); + if (qe && et) + return qe == T && et == S; + var at = -1, yt = !0, kt = X & s ? new Ai() : e; + for (ye.set(S, T), ye.set(T, S); ++at < Ae; ) { + var Dt = S[at], $t = T[at]; + if (Z) + var Nt = Te ? Z($t, Dt, at, T, S, ye) : Z(Dt, $t, at, S, T, ye); + if (Nt !== e) { + if (Nt) + continue; + yt = !1; + break; + } + if (kt) { + if (!mt(T, function(Gt, qt) { + if (!Ea(kt, qt) && (Dt === Gt || ie(Dt, Gt, X, Z, ye))) + return kt.push(qt); + })) { + yt = !1; + break; + } + } else if (!(Dt === $t || ie(Dt, $t, X, Z, ye))) { + yt = !1; + break; + } + } + return ye.delete(S), ye.delete(T), yt; + } + function Cd(S, T, X, Z, ie, ye, Te) { + switch (X) { + case Ye: + if (S.byteLength != T.byteLength || S.byteOffset != T.byteOffset) + return !1; + S = S.buffer, T = T.buffer; + case je: + return !(S.byteLength != T.byteLength || !ye(new ro(S), new ro(T))); + case re: + case ee: + case Q: + return Hn(+S, +T); + case ve: + return S.name == T.name && S.message == T.message; + case Ce: + case G: + return S == T + ""; + case J: + var Ae = ns; + case q: + var ze = Z & d; + if (Ae || (Ae = Za), S.size != T.size && !ze) + return !1; + var qe = Te.get(S); + if (qe) + return qe == T; + Z |= s, Te.set(S, T); + var et = Iu(Ae(S), Ae(T), Z, ie, ye, Te); + return Te.delete(S), et; + case Y: + if (Aa) + return Aa.call(S) == Aa.call(T); + } + return !1; + } + function Pd(S, T, X, Z, ie, ye) { + var Te = X & d, Ae = Rs(S), ze = Ae.length, qe = Rs(T), et = qe.length; + if (ze != et && !Te) + return !1; + for (var at = ze; at--; ) { + var yt = Ae[at]; + if (!(Te ? yt in T : sr.call(T, yt))) + return !1; + } + var kt = ye.get(S), Dt = ye.get(T); + if (kt && Dt) + return kt == T && Dt == S; + var $t = !0; + ye.set(S, T), ye.set(T, S); + for (var Nt = Te; ++at < ze; ) { + yt = Ae[at]; + var Gt = S[yt], qt = T[yt]; + if (Z) + var gn = Te ? Z(qt, Gt, yt, T, S, ye) : Z(Gt, qt, yt, S, T, ye); + if (!(gn === e ? Gt === qt || ie(Gt, qt, X, Z, ye) : gn)) { + $t = !1; + break; + } + Nt || (Nt = yt == "constructor"); + } + if ($t && !Nt) { + var tn = S.constructor, _n = T.constructor; + tn != _n && "constructor" in S && "constructor" in T && !(typeof tn == "function" && tn instanceof tn && typeof _n == "function" && _n instanceof _n) && ($t = !1); + } + return ye.delete(S), ye.delete(T), $t; + } + function oi(S) { + return Fs(Lu(S, e, Gu), S + ""); + } + function Rs(S) { + return qf(S, jr, Ms); + } + function Cs(S) { + return qf(S, on, Du); + } + var Ps = fo ? function(S) { + return fo.get(S); + } : Ys; + function So(S) { + for (var T = S.name + "", X = sa[T], Z = sr.call(sa, T) ? X.length : 0; Z--; ) { + var ie = X[Z], ye = ie.func; + if (ye == null || ye == S) + return ie.name; + } + return T; + } + function ca(S) { + var T = sr.call(de, "placeholder") ? de : S; + return T.placeholder; + } + function It() { + var S = de.iteratee || Ks; + return S = S === Ks ? ru : S, arguments.length ? S(arguments[0], arguments[1]) : S; + } + function ko(S, T) { + var X = S.__data__; + return jd(T) ? X[typeof T == "string" ? "string" : "hash"] : X.map; + } + function As(S) { + for (var T = jr(S), X = T.length; X--; ) { + var Z = T[X], ie = S[Z]; + T[X] = [Z, ie, Bu(ie)]; + } + return T; + } + function Di(S, T) { + var X = Hc(S, T); + return tu(X) ? X : e; + } + function Ad(S) { + var T = sr.call(S, Ci), X = S[Ci]; + try { + S[Ci] = e; + var Z = !0; + } catch (ye) { + } + var ie = eo.call(S); + return Z && (T ? S[Ci] = X : delete S[Ci]), ie; + } + var Ms = as ? function(S) { + return S == null ? [] : (S = cr(S), Zr(as(S), function(T) { + return zf.call(S, T); + })); + } : Zs, Du = as ? function(S) { + for (var T = []; S; ) + Xe(T, Ms(S)), S = no(S); + return T; + } : Zs, Vr = qr; + (os && Vr(new os(new ArrayBuffer(1))) != Ye || Ra && Vr(new Ra()) != J || ss && Vr(ss.resolve()) != ne || oa && Vr(new oa()) != q || Ca && Vr(new Ca()) != we) && (Vr = function(S) { + var T = qr(S), X = T == ke ? S.constructor : e, Z = X ? Ni(X) : ""; + if (Z) + switch (Z) { + case dh: + return Ye; + case ph: + return J; + case yh: + return ne; + case vh: + return q; + case mh: + return we; + } + return T; + }); + function Md(S, T, X) { + for (var Z = -1, ie = X.length; ++Z < ie; ) { + var ye = X[Z], Te = ye.size; + switch (ye.type) { + case "drop": + S += Te; + break; + case "dropRight": + T -= Te; + break; + case "take": + T = Wr(T, S + Te); + break; + case "takeRight": + S = Ir(S, T - Te); + break; + } + } + return { start: S, end: T }; + } + function Id(S) { + var T = S.match(Ot); + return T ? T[1].split(pt) : []; + } + function Nu(S, T, X) { + T = xi(T, S); + for (var Z = -1, ie = T.length, ye = !1; ++Z < ie; ) { + var Te = Yn(T[Z]); + if (!(ye = S != null && X(S, Te))) + break; + S = S[Te]; + } + return ye || ++Z != ie ? ye : (ie = S == null ? 0 : S.length, !!ie && Ao(ie) && si(Te, ie) && (jt(S) || Fi(S))); + } + function Dd(S) { + var T = S.length, X = new S.constructor(T); + return T && typeof S[0] == "string" && sr.call(S, "index") && (X.index = S.index, X.input = S.input), X; + } + function Fu(S) { + return typeof S.constructor == "function" && !ja(S) ? fa(no(S)) : {}; + } + function Nd(S, T, X) { + var Z = S.constructor; + switch (T) { + case je: + return Os(S); + case re: + case ee: + return new Z(+S); + case Ye: + return bd(S, X); + case nt: + case ut: + case ot: + case Ue: + case Ve: + case Qe: + case tt: + case ae: + case Re: + return bu(S, X); + case J: + return new Z(); + case Q: + case G: + return new Z(S); + case Ce: + return gd(S); + case q: + return new Z(); + case Y: + return _d(S); + } + } + function Fd(S, T) { + var X = T.length; + if (!X) + return S; + var Z = X - 1; + return T[Z] = (X > 1 ? "& " : "") + T[Z], T = T.join(X > 2 ? ", " : " "), S.replace(wt, `{ +/* [wrapped with ` + T + `] */ +`); + } + function Bd(S) { + return jt(S) || Fi(S) || !!(Hf && S && S[Hf]); + } + function si(S, T) { + var X = typeof S; + return T = T == null ? E : T, !!T && (X == "number" || X != "symbol" && Et.test(S)) && S > -1 && S % 1 == 0 && S < T; + } + function en(S, T, X) { + if (!vr(X)) + return !1; + var Z = typeof T; + return (Z == "number" ? an(X) && si(T, X.length) : Z == "string" && T in X) ? Hn(X[T], S) : !1; + } + function Is(S, T) { + if (jt(S)) + return !1; + var X = typeof S; + return X == "number" || X == "symbol" || X == "boolean" || S == null || bn(S) ? !0 : Se.test(S) || !ue.test(S) || T != null && S in cr(T); + } + function jd(S) { + var T = typeof S; + return T == "string" || T == "number" || T == "symbol" || T == "boolean" ? S !== "__proto__" : S === null; + } + function Ds(S) { + var T = So(S), X = de[T]; + if (typeof X != "function" || !(T in Zt.prototype)) + return !1; + if (S === X) + return !0; + var Z = Ps(X); + return !!Z && S === Z[0]; + } + function Ld(S) { + return !!Bf && Bf in S; + } + var zd = Qa ? fi : Js; + function ja(S) { + var T = S && S.constructor, X = typeof T == "function" && T.prototype || aa; + return S === X; + } + function Bu(S) { + return S === S && !vr(S); + } + function ju(S, T) { + return function(X) { + return X == null ? !1 : X[S] === T && (T !== e || S in cr(X)); + }; + } + function Hd(S) { + var T = Co(S, function(Z) { + return X.size === w && X.clear(), Z; + }), X = T.cache; + return T; + } + function Xd(S, T) { + var X = S[1], Z = T[1], ie = X | Z, ye = ie < (v | c | o), Te = Z == o && X == r || Z == o && X == p && S[7].length <= T[8] || Z == (o | p) && T[7].length <= T[8] && X == r; + if (!(ye || Te)) + return S; + Z & v && (S[2] = T[2], ie |= X & v ? 0 : a); + var Ae = T[3]; + if (Ae) { + var ze = S[3]; + S[3] = ze ? _u(ze, Ae, T[4]) : Ae, S[4] = ze ? bi(S[3], f) : T[4]; + } + return Ae = T[5], Ae && (ze = S[5], S[5] = ze ? wu(ze, Ae, T[6]) : Ae, S[6] = ze ? bi(S[5], f) : T[6]), Ae = T[7], Ae && (S[7] = Ae), Z & o && (S[8] = S[8] == null ? T[8] : Wr(S[8], T[8])), S[9] == null && (S[9] = T[9]), S[0] = T[0], S[1] = ie, S; + } + function Ud(S) { + var T = []; + if (S != null) + for (var X in cr(S)) + T.push(X); + return T; + } + function $d(S) { + return eo.call(S); + } + function Lu(S, T, X) { + return T = Ir(T === e ? S.length - 1 : T, 0), function() { + for (var Z = arguments, ie = -1, ye = Ir(Z.length - T, 0), Te = We(ye); ++ie < ye; ) + Te[ie] = Z[T + ie]; + ie = -1; + for (var Ae = We(T + 1); ++ie < T; ) + Ae[ie] = Z[ie]; + return Ae[T] = X(Te), pr(S, this, Ae); + }; + } + function zu(S, T) { + return T.length < 2 ? S : Ii(S, An(T, 0, -1)); + } + function Wd(S, T) { + for (var X = S.length, Z = Wr(T.length, X), ie = nn(S); Z--; ) { + var ye = T[Z]; + S[Z] = si(ye, X) ? ie[ye] : e; + } + return S; + } + function Ns(S, T) { + if (!(T === "constructor" && typeof S[T] == "function") && T != "__proto__") + return S[T]; + } + var Hu = Uu(lu), La = oh || function(S, T) { + return ht.setTimeout(S, T); + }, Fs = Uu(pd); + function Xu(S, T, X) { + var Z = T + ""; + return Fs(S, Fd(Z, Vd(Id(Z), X))); + } + function Uu(S) { + var T = 0, X = 0; + return function() { + var Z = lh(), ie = N - (Z - X); + if (X = Z, ie > 0) { + if (++T >= z) + return arguments[0]; + } else + T = 0; + return S.apply(e, arguments); + }; + } + function Oo(S, T) { + var X = -1, Z = S.length, ie = Z - 1; + for (T = T === e ? Z : T; ++X < T; ) { + var ye = bs(X, ie), Te = S[ye]; + S[ye] = S[X], S[X] = Te; + } + return S.length = T, S; + } + var $u = Hd(function(S) { + var T = []; + return S.charCodeAt(0) === 46 && T.push(""), S.replace(Ie, function(X, Z, ie, ye) { + T.push(ie ? ye.replace(Pt, "$1") : Z || X); + }), T; + }); + function Yn(S) { + if (typeof S == "string" || bn(S)) + return S; + var T = S + ""; + return T == "0" && 1 / S == -C ? "-0" : T; + } + function Ni(S) { + if (S != null) { + try { + return qa.call(S); + } catch (T) { + } + try { + return S + ""; + } catch (T) { + } + } + return ""; + } + function Vd(S, T) { + return mr(D, function(X) { + var Z = "_." + X[0]; + T & X[1] && !ta(S, Z) && S.push(Z); + }), S.sort(); + } + function Wu(S) { + if (S instanceof Zt) + return S.clone(); + var T = new Cn(S.__wrapped__, S.__chain__); + return T.__actions__ = nn(S.__actions__), T.__index__ = S.__index__, T.__values__ = S.__values__, T; + } + function Kd(S, T, X) { + (X ? en(S, T, X) : T === e) ? T = 1 : T = Ir(Ut(T), 0); + var Z = S == null ? 0 : S.length; + if (!Z || T < 1) + return []; + for (var ie = 0, ye = 0, Te = We(oo(Z / T)); ie < Z; ) + Te[ye++] = An(S, ie, ie += T); + return Te; + } + function Gd(S) { + for (var T = -1, X = S == null ? 0 : S.length, Z = 0, ie = []; ++T < X; ) { + var ye = S[T]; + ye && (ie[Z++] = ye); + } + return ie; + } + function Yd() { + var S = arguments.length; + if (!S) + return []; + for (var T = We(S - 1), X = arguments[0], Z = S; Z--; ) + T[Z - 1] = arguments[Z]; + return Xe(jt(X) ? nn(X) : [X], Hr(T, 1)); + } + var Zd = Vt(function(S, T) { + return xr(S) ? Ia(S, Hr(T, 1, xr, !0)) : []; + }), Jd = Vt(function(S, T) { + var X = Mn(T); + return xr(X) && (X = e), xr(S) ? Ia(S, Hr(T, 1, xr, !0), It(X, 2)) : []; + }), Qd = Vt(function(S, T) { + var X = Mn(T); + return xr(X) && (X = e), xr(S) ? Ia(S, Hr(T, 1, xr, !0), e, X) : []; + }); + function qd(S, T, X) { + var Z = S == null ? 0 : S.length; + return Z ? (T = X || T === e ? 1 : Ut(T), An(S, T < 0 ? 0 : T, Z)) : []; + } + function ep(S, T, X) { + var Z = S == null ? 0 : S.length; + return Z ? (T = X || T === e ? 1 : Ut(T), T = Z - T, An(S, 0, T < 0 ? 0 : T)) : []; + } + function tp(S, T) { + return S && S.length ? mo(S, It(T, 3), !0, !0) : []; + } + function rp(S, T) { + return S && S.length ? mo(S, It(T, 3), !0) : []; + } + function np(S, T, X, Z) { + var ie = S == null ? 0 : S.length; + return ie ? (X && typeof X != "number" && en(S, T, X) && (X = 0, Z = ie), Yh(S, T, X, Z)) : []; + } + function Vu(S, T, X) { + var Z = S == null ? 0 : S.length; + if (!Z) + return -1; + var ie = X == null ? 0 : Ut(X); + return ie < 0 && (ie = Ir(Z + ie, 0)), Tr(S, It(T, 3), ie); + } + function Ku(S, T, X) { + var Z = S == null ? 0 : S.length; + if (!Z) + return -1; + var ie = Z - 1; + return X !== e && (ie = Ut(X), ie = X < 0 ? Ir(Z + ie, 0) : Wr(ie, Z - 1)), Tr(S, It(T, 3), ie, !0); + } + function Gu(S) { + var T = S == null ? 0 : S.length; + return T ? Hr(S, 1) : []; + } + function ip(S) { + var T = S == null ? 0 : S.length; + return T ? Hr(S, C) : []; + } + function ap(S, T) { + var X = S == null ? 0 : S.length; + return X ? (T = T === e ? 1 : Ut(T), Hr(S, T)) : []; + } + function op(S) { + for (var T = -1, X = S == null ? 0 : S.length, Z = {}; ++T < X; ) { + var ie = S[T]; + Z[ie[0]] = ie[1]; + } + return Z; + } + function Yu(S) { + return S && S.length ? S[0] : e; + } + function sp(S, T, X) { + var Z = S == null ? 0 : S.length; + if (!Z) + return -1; + var ie = X == null ? 0 : Ut(X); + return ie < 0 && (ie = Ir(Z + ie, 0)), wr(S, T, ie); + } + function fp(S) { + var T = S == null ? 0 : S.length; + return T ? An(S, 0, -1) : []; + } + var up = Vt(function(S) { + var T = Oe(S, Ss); + return T.length && T[0] === S[0] ? ds(T) : []; + }), lp = Vt(function(S) { + var T = Mn(S), X = Oe(S, Ss); + return T === Mn(X) ? T = e : X.pop(), X.length && X[0] === S[0] ? ds(X, It(T, 2)) : []; + }), cp = Vt(function(S) { + var T = Mn(S), X = Oe(S, Ss); + return T = typeof T == "function" ? T : e, T && X.pop(), X.length && X[0] === S[0] ? ds(X, e, T) : []; + }); + function hp(S, T) { + return S == null ? "" : fh.call(S, T); + } + function Mn(S) { + var T = S == null ? 0 : S.length; + return T ? S[T - 1] : e; + } + function dp(S, T, X) { + var Z = S == null ? 0 : S.length; + if (!Z) + return -1; + var ie = Z; + return X !== e && (ie = Ut(X), ie = ie < 0 ? Ir(Z + ie, 0) : Wr(ie, Z - 1)), T === T ? Vc(S, T, ie) : Tr(S, Jr, ie, !0); + } + function pp(S, T) { + return S && S.length ? ou(S, Ut(T)) : e; + } + var yp = Vt(Zu); + function Zu(S, T) { + return S && S.length && T && T.length ? ms(S, T) : S; + } + function vp(S, T, X) { + return S && S.length && T && T.length ? ms(S, T, It(X, 2)) : S; + } + function mp(S, T, X) { + return S && S.length && T && T.length ? ms(S, T, e, X) : S; + } + var bp = oi(function(S, T) { + var X = S == null ? 0 : S.length, Z = us(S, T); + return uu(S, Oe(T, function(ie) { + return si(ie, X) ? +ie : ie; + }).sort(gu)), Z; + }); + function gp(S, T) { + var X = []; + if (!(S && S.length)) + return X; + var Z = -1, ie = [], ye = S.length; + for (T = It(T, 3); ++Z < ye; ) { + var Te = S[Z]; + T(Te, Z, S) && (X.push(Te), ie.push(Z)); + } + return uu(S, ie), X; + } + function Bs(S) { + return S == null ? S : hh.call(S); + } + function _p(S, T, X) { + var Z = S == null ? 0 : S.length; + return Z ? (X && typeof X != "number" && en(S, T, X) ? (T = 0, X = Z) : (T = T == null ? 0 : Ut(T), X = X === e ? Z : Ut(X)), An(S, T, X)) : []; + } + function wp(S, T) { + return vo(S, T); + } + function xp(S, T, X) { + return _s(S, T, It(X, 2)); + } + function Sp(S, T) { + var X = S == null ? 0 : S.length; + if (X) { + var Z = vo(S, T); + if (Z < X && Hn(S[Z], T)) + return Z; + } + return -1; + } + function kp(S, T) { + return vo(S, T, !0); + } + function Op(S, T, X) { + return _s(S, T, It(X, 2), !0); + } + function Ep(S, T) { + var X = S == null ? 0 : S.length; + if (X) { + var Z = vo(S, T, !0) - 1; + if (Hn(S[Z], T)) + return Z; + } + return -1; + } + function Tp(S) { + return S && S.length ? cu(S) : []; + } + function Rp(S, T) { + return S && S.length ? cu(S, It(T, 2)) : []; + } + function Cp(S) { + var T = S == null ? 0 : S.length; + return T ? An(S, 1, T) : []; + } + function Pp(S, T, X) { + return S && S.length ? (T = X || T === e ? 1 : Ut(T), An(S, 0, T < 0 ? 0 : T)) : []; + } + function Ap(S, T, X) { + var Z = S == null ? 0 : S.length; + return Z ? (T = X || T === e ? 1 : Ut(T), T = Z - T, An(S, T < 0 ? 0 : T, Z)) : []; + } + function Mp(S, T) { + return S && S.length ? mo(S, It(T, 3), !1, !0) : []; + } + function Ip(S, T) { + return S && S.length ? mo(S, It(T, 3)) : []; + } + var Dp = Vt(function(S) { + return wi(Hr(S, 1, xr, !0)); + }), Np = Vt(function(S) { + var T = Mn(S); + return xr(T) && (T = e), wi(Hr(S, 1, xr, !0), It(T, 2)); + }), Fp = Vt(function(S) { + var T = Mn(S); + return T = typeof T == "function" ? T : e, wi(Hr(S, 1, xr, !0), e, T); + }); + function Bp(S) { + return S && S.length ? wi(S) : []; + } + function jp(S, T) { + return S && S.length ? wi(S, It(T, 2)) : []; + } + function Lp(S, T) { + return T = typeof T == "function" ? T : e, S && S.length ? wi(S, e, T) : []; + } + function js(S) { + if (!(S && S.length)) + return []; + var T = 0; + return S = Zr(S, function(X) { + if (xr(X)) + return T = Ir(X.length, T), !0; + }), mi(T, function(X) { + return Oe(S, Tn(X)); + }); + } + function Ju(S, T) { + if (!(S && S.length)) + return []; + var X = js(S); + return T == null ? X : Oe(X, function(Z) { + return pr(T, e, Z); + }); + } + var zp = Vt(function(S, T) { + return xr(S) ? Ia(S, T) : []; + }), Hp = Vt(function(S) { + return xs(Zr(S, xr)); + }), Xp = Vt(function(S) { + var T = Mn(S); + return xr(T) && (T = e), xs(Zr(S, xr), It(T, 2)); + }), Up = Vt(function(S) { + var T = Mn(S); + return T = typeof T == "function" ? T : e, xs(Zr(S, xr), e, T); + }), $p = Vt(js); + function Wp(S, T) { + return yu(S || [], T || [], Ma); + } + function Vp(S, T) { + return yu(S || [], T || [], Fa); + } + var Kp = Vt(function(S) { + var T = S.length, X = T > 1 ? S[T - 1] : e; + return X = typeof X == "function" ? (S.pop(), X) : e, Ju(S, X); + }); + function Qu(S) { + var T = de(S); + return T.__chain__ = !0, T; + } + function Gp(S, T) { + return T(S), S; + } + function Eo(S, T) { + return T(S); + } + var Yp = oi(function(S) { + var T = S.length, X = T ? S[0] : 0, Z = this.__wrapped__, ie = function(ye) { + return us(ye, S); + }; + return T > 1 || this.__actions__.length || !(Z instanceof Zt) || !si(X) ? this.thru(ie) : (Z = Z.slice(X, +X + (T ? 1 : 0)), Z.__actions__.push({ + func: Eo, + args: [ie], + thisArg: e + }), new Cn(Z, this.__chain__).thru(function(ye) { + return T && !ye.length && ye.push(e), ye; + })); + }); + function Zp() { + return Qu(this); + } + function Jp() { + return new Cn(this.value(), this.__chain__); + } + function Qp() { + this.__values__ === e && (this.__values__ = hl(this.value())); + var S = this.__index__ >= this.__values__.length, T = S ? e : this.__values__[this.__index__++]; + return { done: S, value: T }; + } + function qp() { + return this; + } + function e0(S) { + for (var T, X = this; X instanceof lo; ) { + var Z = Wu(X); + Z.__index__ = 0, Z.__values__ = e, T ? ie.__wrapped__ = Z : T = Z; + var ie = Z; + X = X.__wrapped__; + } + return ie.__wrapped__ = S, T; + } + function t0() { + var S = this.__wrapped__; + if (S instanceof Zt) { + var T = S; + return this.__actions__.length && (T = new Zt(this)), T = T.reverse(), T.__actions__.push({ + func: Eo, + args: [Bs], + thisArg: e + }), new Cn(T, this.__chain__); + } + return this.thru(Bs); + } + function r0() { + return pu(this.__wrapped__, this.__actions__); + } + var n0 = bo(function(S, T, X) { + sr.call(S, X) ? ++S[X] : ii(S, X, 1); + }); + function i0(S, T, X) { + var Z = jt(S) ? En : Gh; + return X && en(S, T, X) && (T = e), Z(S, It(T, 3)); + } + function a0(S, T) { + var X = jt(S) ? Zr : Jf; + return X(S, It(T, 3)); + } + var o0 = Ou(Vu), s0 = Ou(Ku); + function f0(S, T) { + return Hr(To(S, T), 1); + } + function u0(S, T) { + return Hr(To(S, T), C); + } + function l0(S, T, X) { + return X = X === e ? 1 : Ut(X), Hr(To(S, T), X); + } + function qu(S, T) { + var X = jt(S) ? mr : _i; + return X(S, It(T, 3)); + } + function el(S, T) { + var X = jt(S) ? ea : Zf; + return X(S, It(T, 3)); + } + var c0 = bo(function(S, T, X) { + sr.call(S, X) ? S[X].push(T) : ii(S, X, [T]); + }); + function h0(S, T, X, Z) { + S = an(S) ? S : da(S), X = X && !Z ? Ut(X) : 0; + var ie = S.length; + return X < 0 && (X = Ir(ie + X, 0)), Mo(S) ? X <= ie && S.indexOf(T, X) > -1 : !!ie && wr(S, T, X) > -1; + } + var d0 = Vt(function(S, T, X) { + var Z = -1, ie = typeof T == "function", ye = an(S) ? We(S.length) : []; + return _i(S, function(Te) { + ye[++Z] = ie ? pr(T, Te, X) : Da(Te, T, X); + }), ye; + }), p0 = bo(function(S, T, X) { + ii(S, X, T); + }); + function To(S, T) { + var X = jt(S) ? Oe : nu; + return X(S, It(T, 3)); + } + function y0(S, T, X, Z) { + return S == null ? [] : (jt(T) || (T = T == null ? [] : [T]), X = Z ? e : X, jt(X) || (X = X == null ? [] : [X]), su(S, T, X)); + } + var v0 = bo(function(S, T, X) { + S[X ? 0 : 1].push(T); + }, function() { + return [[], []]; + }); + function m0(S, T, X) { + var Z = jt(S) ? ft : Vn, ie = arguments.length < 3; + return Z(S, It(T, 4), X, ie, _i); + } + function b0(S, T, X) { + var Z = jt(S) ? Tt : Vn, ie = arguments.length < 3; + return Z(S, It(T, 4), X, ie, Zf); + } + function g0(S, T) { + var X = jt(S) ? Zr : Jf; + return X(S, Po(It(T, 3))); + } + function _0(S) { + var T = jt(S) ? Vf : hd; + return T(S); + } + function w0(S, T, X) { + (X ? en(S, T, X) : T === e) ? T = 1 : T = Ut(T); + var Z = jt(S) ? Uh : dd; + return Z(S, T); + } + function x0(S) { + var T = jt(S) ? $h : yd; + return T(S); + } + function S0(S) { + if (S == null) + return 0; + if (an(S)) + return Mo(S) ? na(S) : S.length; + var T = Vr(S); + return T == J || T == q ? S.size : ys(S).length; + } + function k0(S, T, X) { + var Z = jt(S) ? mt : vd; + return X && en(S, T, X) && (T = e), Z(S, It(T, 3)); + } + var O0 = Vt(function(S, T) { + if (S == null) + return []; + var X = T.length; + return X > 1 && en(S, T[0], T[1]) ? T = [] : X > 2 && en(T[0], T[1], T[2]) && (T = [T[0]]), su(S, Hr(T, 1), []); + }), Ro = ah || function() { + return ht.Date.now(); + }; + function E0(S, T) { + if (typeof T != "function") + throw new Rn(m); + return S = Ut(S), function() { + if (--S < 1) + return T.apply(this, arguments); + }; + } + function tl(S, T, X) { + return T = X ? e : T, T = S && T == null ? S.length : T, ai(S, o, e, e, e, e, T); + } + function rl(S, T) { + var X; + if (typeof T != "function") + throw new Rn(m); + return S = Ut(S), function() { + return --S > 0 && (X = T.apply(this, arguments)), S <= 1 && (T = e), X; + }; + } + var Ls = Vt(function(S, T, X) { + var Z = v; + if (X.length) { + var ie = bi(X, ca(Ls)); + Z |= i; + } + return ai(S, Z, T, X, ie); + }), nl = Vt(function(S, T, X) { + var Z = v | c; + if (X.length) { + var ie = bi(X, ca(nl)); + Z |= i; + } + return ai(T, Z, S, X, ie); + }); + function il(S, T, X) { + T = X ? e : T; + var Z = ai(S, r, e, e, e, e, e, T); + return Z.placeholder = il.placeholder, Z; + } + function al(S, T, X) { + T = X ? e : T; + var Z = ai(S, t, e, e, e, e, e, T); + return Z.placeholder = al.placeholder, Z; + } + function ol(S, T, X) { + var Z, ie, ye, Te, Ae, ze, qe = 0, et = !1, at = !1, yt = !0; + if (typeof S != "function") + throw new Rn(m); + T = In(T) || 0, vr(X) && (et = !!X.leading, at = "maxWait" in X, ye = at ? Ir(In(X.maxWait) || 0, T) : ye, yt = "trailing" in X ? !!X.trailing : yt); + function kt(Sr) { + var Xn = Z, li = ie; + return Z = ie = e, qe = Sr, Te = S.apply(li, Xn), Te; + } + function Dt(Sr) { + return qe = Sr, Ae = La(Gt, T), et ? kt(Sr) : Te; + } + function $t(Sr) { + var Xn = Sr - ze, li = Sr - qe, Ol = T - Xn; + return at ? Wr(Ol, ye - li) : Ol; + } + function Nt(Sr) { + var Xn = Sr - ze, li = Sr - qe; + return ze === e || Xn >= T || Xn < 0 || at && li >= ye; + } + function Gt() { + var Sr = Ro(); + if (Nt(Sr)) + return qt(Sr); + Ae = La(Gt, $t(Sr)); + } + function qt(Sr) { + return Ae = e, yt && Z ? kt(Sr) : (Z = ie = e, Te); + } + function gn() { + Ae !== e && vu(Ae), qe = 0, Z = ze = ie = Ae = e; + } + function tn() { + return Ae === e ? Te : qt(Ro()); + } + function _n() { + var Sr = Ro(), Xn = Nt(Sr); + if (Z = arguments, ie = this, ze = Sr, Xn) { + if (Ae === e) + return Dt(ze); + if (at) + return vu(Ae), Ae = La(Gt, T), kt(ze); + } + return Ae === e && (Ae = La(Gt, T)), Te; + } + return _n.cancel = gn, _n.flush = tn, _n; + } + var T0 = Vt(function(S, T) { + return Yf(S, 1, T); + }), R0 = Vt(function(S, T, X) { + return Yf(S, In(T) || 0, X); + }); + function C0(S) { + return ai(S, O); + } + function Co(S, T) { + if (typeof S != "function" || T != null && typeof T != "function") + throw new Rn(m); + var X = function() { + var Z = arguments, ie = T ? T.apply(this, Z) : Z[0], ye = X.cache; + if (ye.has(ie)) + return ye.get(ie); + var Te = S.apply(this, Z); + return X.cache = ye.set(ie, Te) || ye, Te; + }; + return X.cache = new (Co.Cache || ni)(), X; + } + Co.Cache = ni; + function Po(S) { + if (typeof S != "function") + throw new Rn(m); + return function() { + var T = arguments; + switch (T.length) { + case 0: + return !S.call(this); + case 1: + return !S.call(this, T[0]); + case 2: + return !S.call(this, T[0], T[1]); + case 3: + return !S.call(this, T[0], T[1], T[2]); + } + return !S.apply(this, T); + }; + } + function P0(S) { + return rl(2, S); + } + var A0 = md(function(S, T) { + T = T.length == 1 && jt(T[0]) ? Oe(T[0], vn(It())) : Oe(Hr(T, 1), vn(It())); + var X = T.length; + return Vt(function(Z) { + for (var ie = -1, ye = Wr(Z.length, X); ++ie < ye; ) + Z[ie] = T[ie].call(this, Z[ie]); + return pr(S, this, Z); + }); + }), zs = Vt(function(S, T) { + var X = bi(T, ca(zs)); + return ai(S, i, e, T, X); + }), sl = Vt(function(S, T) { + var X = bi(T, ca(sl)); + return ai(S, n, e, T, X); + }), M0 = oi(function(S, T) { + return ai(S, p, e, e, e, T); + }); + function I0(S, T) { + if (typeof S != "function") + throw new Rn(m); + return T = T === e ? T : Ut(T), Vt(S, T); + } + function D0(S, T) { + if (typeof S != "function") + throw new Rn(m); + return T = T == null ? 0 : Ir(Ut(T), 0), Vt(function(X) { + var Z = X[T], ie = Si(X, 0, T); + return Z && Xe(ie, Z), pr(S, this, ie); + }); + } + function N0(S, T, X) { + var Z = !0, ie = !0; + if (typeof S != "function") + throw new Rn(m); + return vr(X) && (Z = "leading" in X ? !!X.leading : Z, ie = "trailing" in X ? !!X.trailing : ie), ol(S, T, { + leading: Z, + maxWait: T, + trailing: ie + }); + } + function F0(S) { + return tl(S, 1); + } + function B0(S, T) { + return zs(ks(T), S); + } + function j0() { + if (!arguments.length) + return []; + var S = arguments[0]; + return jt(S) ? S : [S]; + } + function L0(S) { + return Pn(S, l); + } + function z0(S, T) { + return T = typeof T == "function" ? T : e, Pn(S, l, T); + } + function H0(S) { + return Pn(S, y | l); + } + function X0(S, T) { + return T = typeof T == "function" ? T : e, Pn(S, y | l, T); + } + function U0(S, T) { + return T == null || Gf(S, T, jr(T)); + } + function Hn(S, T) { + return S === T || S !== S && T !== T; + } + var $0 = xo(hs), W0 = xo(function(S, T) { + return S >= T; + }), Fi = eu(function() { + return arguments; + }()) ? eu : function(S) { + return br(S) && sr.call(S, "callee") && !zf.call(S, "callee"); + }, jt = We.isArray, V0 = ur ? vn(ur) : ed; + function an(S) { + return S != null && Ao(S.length) && !fi(S); + } + function xr(S) { + return br(S) && an(S); + } + function K0(S) { + return S === !0 || S === !1 || br(S) && qr(S) == re; + } + var ki = sh || Js, G0 = Pr ? vn(Pr) : td; + function Y0(S) { + return br(S) && S.nodeType === 1 && !za(S); + } + function Z0(S) { + if (S == null) + return !0; + if (an(S) && (jt(S) || typeof S == "string" || typeof S.splice == "function" || ki(S) || ha(S) || Fi(S))) + return !S.length; + var T = Vr(S); + if (T == J || T == q) + return !S.size; + if (ja(S)) + return !ys(S).length; + for (var X in S) + if (sr.call(S, X)) + return !1; + return !0; + } + function J0(S, T) { + return Na(S, T); + } + function Q0(S, T, X) { + X = typeof X == "function" ? X : e; + var Z = X ? X(S, T) : e; + return Z === e ? Na(S, T, e, X) : !!Z; + } + function Hs(S) { + if (!br(S)) + return !1; + var T = qr(S); + return T == ve || T == ce || typeof S.message == "string" && typeof S.name == "string" && !za(S); + } + function q0(S) { + return typeof S == "number" && Xf(S); + } + function fi(S) { + if (!vr(S)) + return !1; + var T = qr(S); + return T == ge || T == oe || T == V || T == se; + } + function fl(S) { + return typeof S == "number" && S == Ut(S); + } + function Ao(S) { + return typeof S == "number" && S > -1 && S % 1 == 0 && S <= E; + } + function vr(S) { + var T = typeof S; + return S != null && (T == "object" || T == "function"); + } + function br(S) { + return S != null && typeof S == "object"; + } + var ul = Br ? vn(Br) : nd; + function ey(S, T) { + return S === T || ps(S, T, As(T)); + } + function ty(S, T, X) { + return X = typeof X == "function" ? X : e, ps(S, T, As(T), X); + } + function ry(S) { + return ll(S) && S != +S; + } + function ny(S) { + if (zd(S)) + throw new Bt(u); + return tu(S); + } + function iy(S) { + return S === null; + } + function ay(S) { + return S == null; + } + function ll(S) { + return typeof S == "number" || br(S) && qr(S) == Q; + } + function za(S) { + if (!br(S) || qr(S) != ke) + return !1; + var T = no(S); + if (T === null) + return !0; + var X = sr.call(T, "constructor") && T.constructor; + return typeof X == "function" && X instanceof X && qa.call(X) == th; + } + var Xs = dr ? vn(dr) : id; + function oy(S) { + return fl(S) && S >= -E && S <= E; + } + var cl = Er ? vn(Er) : ad; + function Mo(S) { + return typeof S == "string" || !jt(S) && br(S) && qr(S) == G; + } + function bn(S) { + return typeof S == "symbol" || br(S) && qr(S) == Y; + } + var ha = Ar ? vn(Ar) : od; + function sy(S) { + return S === e; + } + function fy(S) { + return br(S) && Vr(S) == we; + } + function uy(S) { + return br(S) && qr(S) == _e; + } + var ly = xo(vs), cy = xo(function(S, T) { + return S <= T; + }); + function hl(S) { + if (!S) + return []; + if (an(S)) + return Mo(S) ? Ln(S) : nn(S); + if (Ta && S[Ta]) + return Uc(S[Ta]()); + var T = Vr(S), X = T == J ? ns : T == q ? Za : da; + return X(S); + } + function ui(S) { + if (!S) + return S === 0 ? S : 0; + if (S = In(S), S === C || S === -C) { + var T = S < 0 ? -1 : 1; + return T * A; + } + return S === S ? S : 0; + } + function Ut(S) { + var T = ui(S), X = T % 1; + return T === T ? X ? T - X : T : 0; + } + function dl(S) { + return S ? Mi(Ut(S), 0, $) : 0; + } + function In(S) { + if (typeof S == "number") + return S; + if (bn(S)) + return L; + if (vr(S)) { + var T = typeof S.valueOf == "function" ? S.valueOf() : S; + S = vr(T) ? T + "" : T; + } + if (typeof S != "string") + return S === 0 ? S : +S; + S = Mf(S); + var X = xt.test(S); + return X || Lt.test(S) ? xe(S.slice(2), X ? 2 : 8) : Ct.test(S) ? L : +S; + } + function pl(S) { + return Gn(S, on(S)); + } + function hy(S) { + return S ? Mi(Ut(S), -E, E) : S === 0 ? S : 0; + } + function or(S) { + return S == null ? "" : mn(S); + } + var dy = ua(function(S, T) { + if (ja(T) || an(T)) { + Gn(T, jr(T), S); + return; + } + for (var X in T) + sr.call(T, X) && Ma(S, X, T[X]); + }), yl = ua(function(S, T) { + Gn(T, on(T), S); + }), Io = ua(function(S, T, X, Z) { + Gn(T, on(T), S, Z); + }), py = ua(function(S, T, X, Z) { + Gn(T, jr(T), S, Z); + }), yy = oi(us); + function vy(S, T) { + var X = fa(S); + return T == null ? X : Kf(X, T); + } + var my = Vt(function(S, T) { + S = cr(S); + var X = -1, Z = T.length, ie = Z > 2 ? T[2] : e; + for (ie && en(T[0], T[1], ie) && (Z = 1); ++X < Z; ) + for (var ye = T[X], Te = on(ye), Ae = -1, ze = Te.length; ++Ae < ze; ) { + var qe = Te[Ae], et = S[qe]; + (et === e || Hn(et, aa[qe]) && !sr.call(S, qe)) && (S[qe] = ye[qe]); + } + return S; + }), by = Vt(function(S) { + return S.push(e, Mu), pr(vl, e, S); + }); + function gy(S, T) { + return _r(S, It(T, 3), Kn); + } + function _y(S, T) { + return _r(S, It(T, 3), cs); + } + function wy(S, T) { + return S == null ? S : ls(S, It(T, 3), on); + } + function xy(S, T) { + return S == null ? S : Qf(S, It(T, 3), on); + } + function Sy(S, T) { + return S && Kn(S, It(T, 3)); + } + function ky(S, T) { + return S && cs(S, It(T, 3)); + } + function Oy(S) { + return S == null ? [] : po(S, jr(S)); + } + function Ey(S) { + return S == null ? [] : po(S, on(S)); + } + function Us(S, T, X) { + var Z = S == null ? e : Ii(S, T); + return Z === e ? X : Z; + } + function Ty(S, T) { + return S != null && Nu(S, T, Zh); + } + function $s(S, T) { + return S != null && Nu(S, T, Jh); + } + var Ry = Tu(function(S, T, X) { + T != null && typeof T.toString != "function" && (T = eo.call(T)), S[T] = X; + }, Vs(sn)), Cy = Tu(function(S, T, X) { + T != null && typeof T.toString != "function" && (T = eo.call(T)), sr.call(S, T) ? S[T].push(X) : S[T] = [X]; + }, It), Py = Vt(Da); + function jr(S) { + return an(S) ? Wf(S) : ys(S); + } + function on(S) { + return an(S) ? Wf(S, !0) : sd(S); + } + function Ay(S, T) { + var X = {}; + return T = It(T, 3), Kn(S, function(Z, ie, ye) { + ii(X, T(Z, ie, ye), Z); + }), X; + } + function My(S, T) { + var X = {}; + return T = It(T, 3), Kn(S, function(Z, ie, ye) { + ii(X, ie, T(Z, ie, ye)); + }), X; + } + var Iy = ua(function(S, T, X) { + yo(S, T, X); + }), vl = ua(function(S, T, X, Z) { + yo(S, T, X, Z); + }), Dy = oi(function(S, T) { + var X = {}; + if (S == null) + return X; + var Z = !1; + T = Oe(T, function(ye) { + return ye = xi(ye, S), Z || (Z = ye.length > 1), ye; + }), Gn(S, Cs(S), X), Z && (X = Pn(X, y | h | l, Rd)); + for (var ie = T.length; ie--; ) + ws(X, T[ie]); + return X; + }); + function Ny(S, T) { + return ml(S, Po(It(T))); + } + var Fy = oi(function(S, T) { + return S == null ? {} : ud(S, T); + }); + function ml(S, T) { + if (S == null) + return {}; + var X = Oe(Cs(S), function(Z) { + return [Z]; + }); + return T = It(T), fu(S, X, function(Z, ie) { + return T(Z, ie[0]); + }); + } + function By(S, T, X) { + T = xi(T, S); + var Z = -1, ie = T.length; + for (ie || (ie = 1, S = e); ++Z < ie; ) { + var ye = S == null ? e : S[Yn(T[Z])]; + ye === e && (Z = ie, ye = X), S = fi(ye) ? ye.call(S) : ye; + } + return S; + } + function jy(S, T, X) { + return S == null ? S : Fa(S, T, X); + } + function Ly(S, T, X, Z) { + return Z = typeof Z == "function" ? Z : e, S == null ? S : Fa(S, T, X, Z); + } + var bl = Pu(jr), gl = Pu(on); + function zy(S, T, X) { + var Z = jt(S), ie = Z || ki(S) || ha(S); + if (T = It(T, 4), X == null) { + var ye = S && S.constructor; + ie ? X = Z ? new ye() : [] : vr(S) ? X = fi(ye) ? fa(no(S)) : {} : X = {}; + } + return (ie ? mr : Kn)(S, function(Te, Ae, ze) { + return T(X, Te, Ae, ze); + }), X; + } + function Hy(S, T) { + return S == null ? !0 : ws(S, T); + } + function Xy(S, T, X) { + return S == null ? S : du(S, T, ks(X)); + } + function Uy(S, T, X, Z) { + return Z = typeof Z == "function" ? Z : e, S == null ? S : du(S, T, ks(X), Z); + } + function da(S) { + return S == null ? [] : rs(S, jr(S)); + } + function $y(S) { + return S == null ? [] : rs(S, on(S)); + } + function Wy(S, T, X) { + return X === e && (X = T, T = e), X !== e && (X = In(X), X = X === X ? X : 0), T !== e && (T = In(T), T = T === T ? T : 0), Mi(In(S), T, X); + } + function Vy(S, T, X) { + return T = ui(T), X === e ? (X = T, T = 0) : X = ui(X), S = In(S), Qh(S, T, X); + } + function Ky(S, T, X) { + if (X && typeof X != "boolean" && en(S, T, X) && (T = X = e), X === e && (typeof T == "boolean" ? (X = T, T = e) : typeof S == "boolean" && (X = S, S = e)), S === e && T === e ? (S = 0, T = 1) : (S = ui(S), T === e ? (T = S, S = 0) : T = ui(T)), S > T) { + var Z = S; + S = T, T = Z; + } + if (X || S % 1 || T % 1) { + var ie = Uf(); + return Wr(S + ie * (T - S + qi("1e-" + ((ie + "").length - 1))), T); + } + return bs(S, T); + } + var Gy = la(function(S, T, X) { + return T = T.toLowerCase(), S + (X ? _l(T) : T); + }); + function _l(S) { + return Ws(or(S).toLowerCase()); + } + function wl(S) { + return S = or(S), S && S.replace(Dr, jc).replace(Yi, ""); + } + function Yy(S, T, X) { + S = or(S), T = mn(T); + var Z = S.length; + X = X === e ? Z : Mi(Ut(X), 0, Z); + var ie = X; + return X -= T.length, X >= 0 && S.slice(X, ie) == T; + } + function Zy(S) { + return S = or(S), S && it.test(S) ? S.replace(te, Lc) : S; + } + function Jy(S) { + return S = or(S), S && Ge.test(S) ? S.replace(st, "\\$&") : S; + } + var Qy = la(function(S, T, X) { + return S + (X ? "-" : "") + T.toLowerCase(); + }), qy = la(function(S, T, X) { + return S + (X ? " " : "") + T.toLowerCase(); + }), ev = ku("toLowerCase"); + function tv(S, T, X) { + S = or(S), T = Ut(T); + var Z = T ? na(S) : 0; + if (!T || Z >= T) + return S; + var ie = (T - Z) / 2; + return wo(so(ie), X) + S + wo(oo(ie), X); + } + function rv(S, T, X) { + S = or(S), T = Ut(T); + var Z = T ? na(S) : 0; + return T && Z < T ? S + wo(T - Z, X) : S; + } + function nv(S, T, X) { + S = or(S), T = Ut(T); + var Z = T ? na(S) : 0; + return T && Z < T ? wo(T - Z, X) + S : S; + } + function iv(S, T, X) { + return X || T == null ? T = 0 : T && (T = +T), ch(or(S).replace(rt, ""), T || 0); + } + function av(S, T, X) { + return (X ? en(S, T, X) : T === e) ? T = 1 : T = Ut(T), gs(or(S), T); + } + function ov() { + var S = arguments, T = or(S[0]); + return S.length < 3 ? T : T.replace(S[1], S[2]); + } + var sv = la(function(S, T, X) { + return S + (X ? "_" : "") + T.toLowerCase(); + }); + function fv(S, T, X) { + return X && typeof X != "number" && en(S, T, X) && (T = X = e), X = X === e ? $ : X >>> 0, X ? (S = or(S), S && (typeof T == "string" || T != null && !Xs(T)) && (T = mn(T), !T && ra(S)) ? Si(Ln(S), 0, X) : S.split(T, X)) : []; + } + var uv = la(function(S, T, X) { + return S + (X ? " " : "") + Ws(T); + }); + function lv(S, T, X) { + return S = or(S), X = X == null ? 0 : Mi(Ut(X), 0, S.length), T = mn(T), S.slice(X, X + T.length) == T; + } + function cv(S, T, X) { + var Z = de.templateSettings; + X && en(S, T, X) && (T = e), S = or(S), T = Io({}, T, Z, Au); + var ie = Io({}, T.imports, Z.imports, Au), ye = jr(ie), Te = rs(ie, ye), Ae, ze, qe = 0, et = T.interpolate || Or, at = "__p += '", yt = is( + (T.escape || Or).source + "|" + et.source + "|" + (et === Le ? bt : Or).source + "|" + (T.evaluate || Or).source + "|$", + "g" + ), kt = "//# sourceURL=" + (sr.call(T, "sourceURL") ? (T.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Zi + "]") + ` +`; + S.replace(yt, function(Nt, Gt, qt, gn, tn, _n) { + return qt || (qt = gn), at += S.slice(qe, _n).replace(Gr, zc), Gt && (Ae = !0, at += `' + +__e(` + Gt + `) + +'`), tn && (ze = !0, at += `'; +` + tn + `; +__p += '`), qt && (at += `' + +((__t = (` + qt + `)) == null ? '' : __t) + +'`), qe = _n + Nt.length, Nt; + }), at += `'; +`; + var Dt = sr.call(T, "variable") && T.variable; + if (!Dt) + at = `with (obj) { +` + at + ` +} +`; + else if (At.test(Dt)) + throw new Bt(g); + at = (ze ? at.replace(be, "") : at).replace(Ee, "$1").replace(pe, "$1;"), at = "function(" + (Dt || "obj") + `) { +` + (Dt ? "" : `obj || (obj = {}); +`) + "var __t, __p = ''" + (Ae ? ", __e = _.escape" : "") + (ze ? `, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +` : `; +`) + at + `return __p +}`; + var $t = Sl(function() { + return ar(ye, kt + "return " + at).apply(e, Te); + }); + if ($t.source = at, Hs($t)) + throw $t; + return $t; + } + function hv(S) { + return or(S).toLowerCase(); + } + function dv(S) { + return or(S).toUpperCase(); + } + function pv(S, T, X) { + if (S = or(S), S && (X || T === e)) + return Mf(S); + if (!S || !(T = mn(T))) + return S; + var Z = Ln(S), ie = Ln(T), ye = If(Z, ie), Te = Df(Z, ie) + 1; + return Si(Z, ye, Te).join(""); + } + function yv(S, T, X) { + if (S = or(S), S && (X || T === e)) + return S.slice(0, Ff(S) + 1); + if (!S || !(T = mn(T))) + return S; + var Z = Ln(S), ie = Df(Z, Ln(T)) + 1; + return Si(Z, 0, ie).join(""); + } + function vv(S, T, X) { + if (S = or(S), S && (X || T === e)) + return S.replace(rt, ""); + if (!S || !(T = mn(T))) + return S; + var Z = Ln(S), ie = If(Z, Ln(T)); + return Si(Z, ie).join(""); + } + function mv(S, T) { + var X = P, Z = F; + if (vr(T)) { + var ie = "separator" in T ? T.separator : ie; + X = "length" in T ? Ut(T.length) : X, Z = "omission" in T ? mn(T.omission) : Z; + } + S = or(S); + var ye = S.length; + if (ra(S)) { + var Te = Ln(S); + ye = Te.length; + } + if (X >= ye) + return S; + var Ae = X - na(Z); + if (Ae < 1) + return Z; + var ze = Te ? Si(Te, 0, Ae).join("") : S.slice(0, Ae); + if (ie === e) + return ze + Z; + if (Te && (Ae += ze.length - Ae), Xs(ie)) { + if (S.slice(Ae).search(ie)) { + var qe, et = ze; + for (ie.global || (ie = is(ie.source, or(Kt.exec(ie)) + "g")), ie.lastIndex = 0; qe = ie.exec(et); ) + var at = qe.index; + ze = ze.slice(0, at === e ? Ae : at); + } + } else if (S.indexOf(mn(ie), Ae) != Ae) { + var yt = ze.lastIndexOf(ie); + yt > -1 && (ze = ze.slice(0, yt)); + } + return ze + Z; + } + function bv(S) { + return S = or(S), S && He.test(S) ? S.replace(Pe, Kc) : S; + } + var gv = la(function(S, T, X) { + return S + (X ? " " : "") + T.toUpperCase(); + }), Ws = ku("toUpperCase"); + function xl(S, T, X) { + return S = or(S), T = X ? e : T, T === e ? Xc(S) ? Zc(S) : hr(S) : S.match(T) || []; + } + var Sl = Vt(function(S, T) { + try { + return pr(S, e, T); + } catch (X) { + return Hs(X) ? X : new Bt(X); + } + }), _v = oi(function(S, T) { + return mr(T, function(X) { + X = Yn(X), ii(S, X, Ls(S[X], S)); + }), S; + }); + function wv(S) { + var T = S == null ? 0 : S.length, X = It(); + return S = T ? Oe(S, function(Z) { + if (typeof Z[1] != "function") + throw new Rn(m); + return [X(Z[0]), Z[1]]; + }) : [], Vt(function(Z) { + for (var ie = -1; ++ie < T; ) { + var ye = S[ie]; + if (pr(ye[0], this, Z)) + return pr(ye[1], this, Z); + } + }); + } + function xv(S) { + return Kh(Pn(S, y)); + } + function Vs(S) { + return function() { + return S; + }; + } + function Sv(S, T) { + return S == null || S !== S ? T : S; + } + var kv = Eu(), Ov = Eu(!0); + function sn(S) { + return S; + } + function Ks(S) { + return ru(typeof S == "function" ? S : Pn(S, y)); + } + function Ev(S) { + return iu(Pn(S, y)); + } + function Tv(S, T) { + return au(S, Pn(T, y)); + } + var Rv = Vt(function(S, T) { + return function(X) { + return Da(X, S, T); + }; + }), Cv = Vt(function(S, T) { + return function(X) { + return Da(S, X, T); + }; + }); + function Gs(S, T, X) { + var Z = jr(T), ie = po(T, Z); + X == null && !(vr(T) && (ie.length || !Z.length)) && (X = T, T = S, S = this, ie = po(T, jr(T))); + var ye = !(vr(X) && "chain" in X) || !!X.chain, Te = fi(S); + return mr(ie, function(Ae) { + var ze = T[Ae]; + S[Ae] = ze, Te && (S.prototype[Ae] = function() { + var qe = this.__chain__; + if (ye || qe) { + var et = S(this.__wrapped__), at = et.__actions__ = nn(this.__actions__); + return at.push({ func: ze, args: arguments, thisArg: S }), et.__chain__ = qe, et; + } + return ze.apply(S, Xe([this.value()], arguments)); + }); + }), S; + } + function Pv() { + return ht._ === this && (ht._ = rh), this; + } + function Ys() { + } + function Av(S) { + return S = Ut(S), Vt(function(T) { + return ou(T, S); + }); + } + var Mv = Es(Oe), Iv = Es(En), Dv = Es(mt); + function kl(S) { + return Is(S) ? Tn(Yn(S)) : ld(S); + } + function Nv(S) { + return function(T) { + return S == null ? e : Ii(S, T); + }; + } + var Fv = Ru(), Bv = Ru(!0); + function Zs() { + return []; + } + function Js() { + return !1; + } + function jv() { + return {}; + } + function Lv() { + return ""; + } + function zv() { + return !0; + } + function Hv(S, T) { + if (S = Ut(S), S < 1 || S > E) + return []; + var X = $, Z = Wr(S, $); + T = It(T), S -= $; + for (var ie = mi(Z, T); ++X < S; ) + T(X); + return ie; + } + function Xv(S) { + return jt(S) ? Oe(S, Yn) : bn(S) ? [S] : nn($u(or(S))); + } + function Uv(S) { + var T = ++eh; + return or(S) + T; + } + var $v = _o(function(S, T) { + return S + T; + }, 0), Wv = Ts("ceil"), Vv = _o(function(S, T) { + return S / T; + }, 1), Kv = Ts("floor"); + function Gv(S) { + return S && S.length ? ho(S, sn, hs) : e; + } + function Yv(S, T) { + return S && S.length ? ho(S, It(T, 2), hs) : e; + } + function Zv(S) { + return Qr(S, sn); + } + function Jv(S, T) { + return Qr(S, It(T, 2)); + } + function Qv(S) { + return S && S.length ? ho(S, sn, vs) : e; + } + function qv(S, T) { + return S && S.length ? ho(S, It(T, 2), vs) : e; + } + var em = _o(function(S, T) { + return S * T; + }, 1), tm = Ts("round"), rm = _o(function(S, T) { + return S - T; + }, 0); + function nm(S) { + return S && S.length ? vi(S, sn) : 0; + } + function im(S, T) { + return S && S.length ? vi(S, It(T, 2)) : 0; + } + return de.after = E0, de.ary = tl, de.assign = dy, de.assignIn = yl, de.assignInWith = Io, de.assignWith = py, de.at = yy, de.before = rl, de.bind = Ls, de.bindAll = _v, de.bindKey = nl, de.castArray = j0, de.chain = Qu, de.chunk = Kd, de.compact = Gd, de.concat = Yd, de.cond = wv, de.conforms = xv, de.constant = Vs, de.countBy = n0, de.create = vy, de.curry = il, de.curryRight = al, de.debounce = ol, de.defaults = my, de.defaultsDeep = by, de.defer = T0, de.delay = R0, de.difference = Zd, de.differenceBy = Jd, de.differenceWith = Qd, de.drop = qd, de.dropRight = ep, de.dropRightWhile = tp, de.dropWhile = rp, de.fill = np, de.filter = a0, de.flatMap = f0, de.flatMapDeep = u0, de.flatMapDepth = l0, de.flatten = Gu, de.flattenDeep = ip, de.flattenDepth = ap, de.flip = C0, de.flow = kv, de.flowRight = Ov, de.fromPairs = op, de.functions = Oy, de.functionsIn = Ey, de.groupBy = c0, de.initial = fp, de.intersection = up, de.intersectionBy = lp, de.intersectionWith = cp, de.invert = Ry, de.invertBy = Cy, de.invokeMap = d0, de.iteratee = Ks, de.keyBy = p0, de.keys = jr, de.keysIn = on, de.map = To, de.mapKeys = Ay, de.mapValues = My, de.matches = Ev, de.matchesProperty = Tv, de.memoize = Co, de.merge = Iy, de.mergeWith = vl, de.method = Rv, de.methodOf = Cv, de.mixin = Gs, de.negate = Po, de.nthArg = Av, de.omit = Dy, de.omitBy = Ny, de.once = P0, de.orderBy = y0, de.over = Mv, de.overArgs = A0, de.overEvery = Iv, de.overSome = Dv, de.partial = zs, de.partialRight = sl, de.partition = v0, de.pick = Fy, de.pickBy = ml, de.property = kl, de.propertyOf = Nv, de.pull = yp, de.pullAll = Zu, de.pullAllBy = vp, de.pullAllWith = mp, de.pullAt = bp, de.range = Fv, de.rangeRight = Bv, de.rearg = M0, de.reject = g0, de.remove = gp, de.rest = I0, de.reverse = Bs, de.sampleSize = w0, de.set = jy, de.setWith = Ly, de.shuffle = x0, de.slice = _p, de.sortBy = O0, de.sortedUniq = Tp, de.sortedUniqBy = Rp, de.split = fv, de.spread = D0, de.tail = Cp, de.take = Pp, de.takeRight = Ap, de.takeRightWhile = Mp, de.takeWhile = Ip, de.tap = Gp, de.throttle = N0, de.thru = Eo, de.toArray = hl, de.toPairs = bl, de.toPairsIn = gl, de.toPath = Xv, de.toPlainObject = pl, de.transform = zy, de.unary = F0, de.union = Dp, de.unionBy = Np, de.unionWith = Fp, de.uniq = Bp, de.uniqBy = jp, de.uniqWith = Lp, de.unset = Hy, de.unzip = js, de.unzipWith = Ju, de.update = Xy, de.updateWith = Uy, de.values = da, de.valuesIn = $y, de.without = zp, de.words = xl, de.wrap = B0, de.xor = Hp, de.xorBy = Xp, de.xorWith = Up, de.zip = $p, de.zipObject = Wp, de.zipObjectDeep = Vp, de.zipWith = Kp, de.entries = bl, de.entriesIn = gl, de.extend = yl, de.extendWith = Io, Gs(de, de), de.add = $v, de.attempt = Sl, de.camelCase = Gy, de.capitalize = _l, de.ceil = Wv, de.clamp = Wy, de.clone = L0, de.cloneDeep = H0, de.cloneDeepWith = X0, de.cloneWith = z0, de.conformsTo = U0, de.deburr = wl, de.defaultTo = Sv, de.divide = Vv, de.endsWith = Yy, de.eq = Hn, de.escape = Zy, de.escapeRegExp = Jy, de.every = i0, de.find = o0, de.findIndex = Vu, de.findKey = gy, de.findLast = s0, de.findLastIndex = Ku, de.findLastKey = _y, de.floor = Kv, de.forEach = qu, de.forEachRight = el, de.forIn = wy, de.forInRight = xy, de.forOwn = Sy, de.forOwnRight = ky, de.get = Us, de.gt = $0, de.gte = W0, de.has = Ty, de.hasIn = $s, de.head = Yu, de.identity = sn, de.includes = h0, de.indexOf = sp, de.inRange = Vy, de.invoke = Py, de.isArguments = Fi, de.isArray = jt, de.isArrayBuffer = V0, de.isArrayLike = an, de.isArrayLikeObject = xr, de.isBoolean = K0, de.isBuffer = ki, de.isDate = G0, de.isElement = Y0, de.isEmpty = Z0, de.isEqual = J0, de.isEqualWith = Q0, de.isError = Hs, de.isFinite = q0, de.isFunction = fi, de.isInteger = fl, de.isLength = Ao, de.isMap = ul, de.isMatch = ey, de.isMatchWith = ty, de.isNaN = ry, de.isNative = ny, de.isNil = ay, de.isNull = iy, de.isNumber = ll, de.isObject = vr, de.isObjectLike = br, de.isPlainObject = za, de.isRegExp = Xs, de.isSafeInteger = oy, de.isSet = cl, de.isString = Mo, de.isSymbol = bn, de.isTypedArray = ha, de.isUndefined = sy, de.isWeakMap = fy, de.isWeakSet = uy, de.join = hp, de.kebabCase = Qy, de.last = Mn, de.lastIndexOf = dp, de.lowerCase = qy, de.lowerFirst = ev, de.lt = ly, de.lte = cy, de.max = Gv, de.maxBy = Yv, de.mean = Zv, de.meanBy = Jv, de.min = Qv, de.minBy = qv, de.stubArray = Zs, de.stubFalse = Js, de.stubObject = jv, de.stubString = Lv, de.stubTrue = zv, de.multiply = em, de.nth = pp, de.noConflict = Pv, de.noop = Ys, de.now = Ro, de.pad = tv, de.padEnd = rv, de.padStart = nv, de.parseInt = iv, de.random = Ky, de.reduce = m0, de.reduceRight = b0, de.repeat = av, de.replace = ov, de.result = By, de.round = tm, de.runInContext = Ne, de.sample = _0, de.size = S0, de.snakeCase = sv, de.some = k0, de.sortedIndex = wp, de.sortedIndexBy = xp, de.sortedIndexOf = Sp, de.sortedLastIndex = kp, de.sortedLastIndexBy = Op, de.sortedLastIndexOf = Ep, de.startCase = uv, de.startsWith = lv, de.subtract = rm, de.sum = nm, de.sumBy = im, de.template = cv, de.times = Hv, de.toFinite = ui, de.toInteger = Ut, de.toLength = dl, de.toLower = hv, de.toNumber = In, de.toSafeInteger = hy, de.toString = or, de.toUpper = dv, de.trim = pv, de.trimEnd = yv, de.trimStart = vv, de.truncate = mv, de.unescape = bv, de.uniqueId = Uv, de.upperCase = gv, de.upperFirst = Ws, de.each = qu, de.eachRight = el, de.first = Yu, Gs(de, function() { + var S = {}; + return Kn(de, function(T, X) { + sr.call(de.prototype, X) || (S[X] = T); + }), S; + }(), { chain: !1 }), de.VERSION = x, mr(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(S) { + de[S].placeholder = de; + }), mr(["drop", "take"], function(S, T) { + Zt.prototype[S] = function(X) { + X = X === e ? 1 : Ir(Ut(X), 0); + var Z = this.__filtered__ && !T ? new Zt(this) : this.clone(); + return Z.__filtered__ ? Z.__takeCount__ = Wr(X, Z.__takeCount__) : Z.__views__.push({ + size: Wr(X, $), + type: S + (Z.__dir__ < 0 ? "Right" : "") + }), Z; + }, Zt.prototype[S + "Right"] = function(X) { + return this.reverse()[S](X).reverse(); + }; + }), mr(["filter", "map", "takeWhile"], function(S, T) { + var X = T + 1, Z = X == M || X == R; + Zt.prototype[S] = function(ie) { + var ye = this.clone(); + return ye.__iteratees__.push({ + iteratee: It(ie, 3), + type: X + }), ye.__filtered__ = ye.__filtered__ || Z, ye; + }; + }), mr(["head", "last"], function(S, T) { + var X = "take" + (T ? "Right" : ""); + Zt.prototype[S] = function() { + return this[X](1).value()[0]; + }; + }), mr(["initial", "tail"], function(S, T) { + var X = "drop" + (T ? "" : "Right"); + Zt.prototype[S] = function() { + return this.__filtered__ ? new Zt(this) : this[X](1); + }; + }), Zt.prototype.compact = function() { + return this.filter(sn); + }, Zt.prototype.find = function(S) { + return this.filter(S).head(); + }, Zt.prototype.findLast = function(S) { + return this.reverse().find(S); + }, Zt.prototype.invokeMap = Vt(function(S, T) { + return typeof S == "function" ? new Zt(this) : this.map(function(X) { + return Da(X, S, T); + }); + }), Zt.prototype.reject = function(S) { + return this.filter(Po(It(S))); + }, Zt.prototype.slice = function(S, T) { + S = Ut(S); + var X = this; + return X.__filtered__ && (S > 0 || T < 0) ? new Zt(X) : (S < 0 ? X = X.takeRight(-S) : S && (X = X.drop(S)), T !== e && (T = Ut(T), X = T < 0 ? X.dropRight(-T) : X.take(T - S)), X); + }, Zt.prototype.takeRightWhile = function(S) { + return this.reverse().takeWhile(S).reverse(); + }, Zt.prototype.toArray = function() { + return this.take($); + }, Kn(Zt.prototype, function(S, T) { + var X = /^(?:filter|find|map|reject)|While$/.test(T), Z = /^(?:head|last)$/.test(T), ie = de[Z ? "take" + (T == "last" ? "Right" : "") : T], ye = Z || /^find/.test(T); + ie && (de.prototype[T] = function() { + var Te = this.__wrapped__, Ae = Z ? [1] : arguments, ze = Te instanceof Zt, qe = Ae[0], et = ze || jt(Te), at = function(Gt) { + var qt = ie.apply(de, Xe([Gt], Ae)); + return Z && yt ? qt[0] : qt; + }; + et && X && typeof qe == "function" && qe.length != 1 && (ze = et = !1); + var yt = this.__chain__, kt = !!this.__actions__.length, Dt = ye && !yt, $t = ze && !kt; + if (!ye && et) { + Te = $t ? Te : new Zt(this); + var Nt = S.apply(Te, Ae); + return Nt.__actions__.push({ func: Eo, args: [at], thisArg: e }), new Cn(Nt, yt); + } + return Dt && $t ? S.apply(this, Ae) : (Nt = this.thru(at), Dt ? Z ? Nt.value()[0] : Nt.value() : Nt); + }); + }), mr(["pop", "push", "shift", "sort", "splice", "unshift"], function(S) { + var T = Ja[S], X = /^(?:push|sort|unshift)$/.test(S) ? "tap" : "thru", Z = /^(?:pop|shift)$/.test(S); + de.prototype[S] = function() { + var ie = arguments; + if (Z && !this.__chain__) { + var ye = this.value(); + return T.apply(jt(ye) ? ye : [], ie); + } + return this[X](function(Te) { + return T.apply(jt(Te) ? Te : [], ie); + }); + }; + }), Kn(Zt.prototype, function(S, T) { + var X = de[T]; + if (X) { + var Z = X.name + ""; + sr.call(sa, Z) || (sa[Z] = []), sa[Z].push({ name: T, func: X }); + } + }), sa[go(e, c).name] = [{ + name: "wrapper", + func: e + }], Zt.prototype.clone = bh, Zt.prototype.reverse = gh, Zt.prototype.value = _h, de.prototype.at = Yp, de.prototype.chain = Zp, de.prototype.commit = Jp, de.prototype.next = Qp, de.prototype.plant = e0, de.prototype.reverse = t0, de.prototype.toJSON = de.prototype.valueOf = de.prototype.value = r0, de.prototype.first = de.prototype.head, Ta && (de.prototype[Ta] = qp), de; + }, ia = Jc(); + Mt ? ((Mt.exports = ia)._ = ia, Yt._ = ia) : ht._ = ia; + }).call(Wt); +})(y1, ga); +const v1 = ga; +function Dc(H) { + H = H.replace("#", ""); + for (var k = H.match(/../g), e = 0; e < 3; e++) + k[e] = parseInt(k[e], 16); + return k; +} +function Nc(H, k, e) { + for (var x = [H.toString(16), k.toString(16), e.toString(16)], _ = 0; _ < 3; _++) + x[_].length == 1 && (x[_] = "0" + x[_]); + return "#" + x.join(""); +} +function m1(H, k) { + for (var e = Dc(H), x = 0; x < 3; x++) + e[x] = Math.floor(e[x] * (1 - k)); + return Nc(e[0], e[1], e[2]); +} +function b1(H, k) { + for (var e = Dc(H), x = 0; x < 3; x++) + e[x] = Math.floor((255 - e[x]) * k + e[x]); + return Nc(e[0], e[1], e[2]); +} +var wf = {}, g1 = { + get exports() { + return wf; + }, + set exports(H) { + wf = H; + } +}; +(function(H, k) { + (function(e, x) { + H.exports = x(); + })(Wt, function() { + var e = 1e3, x = 6e4, _ = 36e5, u = "millisecond", m = "second", g = "minute", b = "hour", w = "day", f = "week", y = "month", h = "quarter", l = "year", d = "date", s = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, a = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) { + var M = ["th", "st", "nd", "rd"], I = N % 100; + return "[" + N + (M[(I - 20) % 10] || M[I] || M[0]) + "]"; + } }, r = function(N, M, I) { + var R = String(N); + return !R || R.length >= M ? N : "" + Array(M + 1 - R.length).join(I) + N; + }, t = { s: r, z: function(N) { + var M = -N.utcOffset(), I = Math.abs(M), R = Math.floor(I / 60), C = I % 60; + return (M <= 0 ? "+" : "-") + r(R, 2, "0") + ":" + r(C, 2, "0"); + }, m: function N(M, I) { + if (M.date() < I.date()) + return -N(I, M); + var R = 12 * (I.year() - M.year()) + (I.month() - M.month()), C = M.clone().add(R, y), E = I - C < 0, A = M.clone().add(R + (E ? -1 : 1), y); + return +(-(R + (I - C) / (E ? C - A : A - C)) || 0); + }, a: function(N) { + return N < 0 ? Math.ceil(N) || 0 : Math.floor(N); + }, p: function(N) { + return { M: y, y: l, w: f, d: w, D: d, h: b, m: g, s: m, ms: u, Q: h }[N] || String(N || "").toLowerCase().replace(/s$/, ""); + }, u: function(N) { + return N === void 0; + } }, i = "en", n = {}; + n[i] = a; + var o = function(N) { + return N instanceof F; + }, p = function N(M, I, R) { + var C; + if (!M) + return i; + if (typeof M == "string") { + var E = M.toLowerCase(); + n[E] && (C = E), I && (n[E] = I, C = E); + var A = M.split("-"); + if (!C && A.length > 1) + return N(A[0]); + } else { + var L = M.name; + n[L] = M, C = L; + } + return !R && C && (i = C), C || !R && i; + }, O = function(N, M) { + if (o(N)) + return N.clone(); + var I = typeof M == "object" ? M : {}; + return I.date = N, I.args = arguments, new F(I); + }, P = t; + P.l = p, P.i = o, P.w = function(N, M) { + return O(N, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset }); + }; + var F = function() { + function N(I) { + this.$L = p(I.locale, null, !0), this.parse(I); + } + var M = N.prototype; + return M.parse = function(I) { + this.$d = function(R) { + var C = R.date, E = R.utc; + if (C === null) + return /* @__PURE__ */ new Date(NaN); + if (P.u(C)) + return /* @__PURE__ */ new Date(); + if (C instanceof Date) + return new Date(C); + if (typeof C == "string" && !/Z$/i.test(C)) { + var A = C.match(v); + if (A) { + var L = A[2] - 1 || 0, $ = (A[7] || "0").substring(0, 3); + return E ? new Date(Date.UTC(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $)) : new Date(A[1], L, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, $); + } + } + return new Date(C); + }(I), this.$x = I.x || {}, this.init(); + }, M.init = function() { + var I = this.$d; + this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds(); + }, M.$utils = function() { + return P; + }, M.isValid = function() { + return this.$d.toString() !== s; + }, M.isSame = function(I, R) { + var C = O(I); + return this.startOf(R) <= C && C <= this.endOf(R); + }, M.isAfter = function(I, R) { + return O(I) < this.startOf(R); + }, M.isBefore = function(I, R) { + return this.endOf(R) < O(I); + }, M.$g = function(I, R, C) { + return P.u(I) ? this[R] : this.set(C, I); + }, M.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, M.valueOf = function() { + return this.$d.getTime(); + }, M.startOf = function(I, R) { + var C = this, E = !!P.u(R) || R, A = P.p(I), L = function(re, ee) { + var ce = P.w(C.$u ? Date.UTC(C.$y, ee, re) : new Date(C.$y, ee, re), C); + return E ? ce : ce.endOf(w); + }, $ = function(re, ee) { + return P.w(C.toDate()[re].apply(C.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), C); + }, W = this.$W, U = this.$M, D = this.$D, B = "set" + (this.$u ? "UTC" : ""); + switch (A) { + case l: + return E ? L(1, 0) : L(31, 11); + case y: + return E ? L(1, U) : L(0, U + 1); + case f: + var j = this.$locale().weekStart || 0, V = (W < j ? W + 7 : W) - j; + return L(E ? D - V : D + (6 - V), U); + case w: + case d: + return $(B + "Hours", 0); + case b: + return $(B + "Minutes", 1); + case g: + return $(B + "Seconds", 2); + case m: + return $(B + "Milliseconds", 3); + default: + return this.clone(); + } + }, M.endOf = function(I) { + return this.startOf(I, !1); + }, M.$set = function(I, R) { + var C, E = P.p(I), A = "set" + (this.$u ? "UTC" : ""), L = (C = {}, C[w] = A + "Date", C[d] = A + "Date", C[y] = A + "Month", C[l] = A + "FullYear", C[b] = A + "Hours", C[g] = A + "Minutes", C[m] = A + "Seconds", C[u] = A + "Milliseconds", C)[E], $ = E === w ? this.$D + (R - this.$W) : R; + if (E === y || E === l) { + var W = this.clone().set(d, 1); + W.$d[L]($), W.init(), this.$d = W.set(d, Math.min(this.$D, W.daysInMonth())).$d; + } else + L && this.$d[L]($); + return this.init(), this; + }, M.set = function(I, R) { + return this.clone().$set(I, R); + }, M.get = function(I) { + return this[P.p(I)](); + }, M.add = function(I, R) { + var C, E = this; + I = Number(I); + var A = P.p(R), L = function(U) { + var D = O(E); + return P.w(D.date(D.date() + Math.round(U * I)), E); + }; + if (A === y) + return this.set(y, this.$M + I); + if (A === l) + return this.set(l, this.$y + I); + if (A === w) + return L(1); + if (A === f) + return L(7); + var $ = (C = {}, C[g] = x, C[b] = _, C[m] = e, C)[A] || 1, W = this.$d.getTime() + I * $; + return P.w(W, this); + }, M.subtract = function(I, R) { + return this.add(-1 * I, R); + }, M.format = function(I) { + var R = this, C = this.$locale(); + if (!this.isValid()) + return C.invalidDate || s; + var E = I || "YYYY-MM-DDTHH:mm:ssZ", A = P.z(this), L = this.$H, $ = this.$m, W = this.$M, U = C.weekdays, D = C.months, B = function(ee, ce, ve, ge) { + return ee && (ee[ce] || ee(R, E)) || ve[ce].slice(0, ge); + }, j = function(ee) { + return P.s(L % 12 || 12, ee, "0"); + }, V = C.meridiem || function(ee, ce, ve) { + var ge = ee < 12 ? "AM" : "PM"; + return ve ? ge.toLowerCase() : ge; + }, re = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: W + 1, MM: P.s(W + 1, 2, "0"), MMM: B(C.monthsShort, W, D, 3), MMMM: B(D, W), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: B(C.weekdaysMin, this.$W, U, 2), ddd: B(C.weekdaysShort, this.$W, U, 3), dddd: U[this.$W], H: String(L), HH: P.s(L, 2, "0"), h: j(1), hh: j(2), a: V(L, $, !0), A: V(L, $, !1), m: String($), mm: P.s($, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: A }; + return E.replace(c, function(ee, ce) { + return ce || re[ee] || A.replace(":", ""); + }); + }, M.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, M.diff = function(I, R, C) { + var E, A = P.p(R), L = O(I), $ = (L.utcOffset() - this.utcOffset()) * x, W = this - L, U = P.m(this, L); + return U = (E = {}, E[l] = U / 12, E[y] = U, E[h] = U / 3, E[f] = (W - $) / 6048e5, E[w] = (W - $) / 864e5, E[b] = W / _, E[g] = W / x, E[m] = W / e, E)[A] || W, C ? U : P.a(U); + }, M.daysInMonth = function() { + return this.endOf(y).$D; + }, M.$locale = function() { + return n[this.$L]; + }, M.locale = function(I, R) { + if (!I) + return this.$L; + var C = this.clone(), E = p(I, R, !0); + return E && (C.$L = E), C; + }, M.clone = function() { + return P.w(this.$d, this); + }, M.toDate = function() { + return new Date(this.valueOf()); + }, M.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, M.toISOString = function() { + return this.$d.toISOString(); + }, M.toString = function() { + return this.$d.toUTCString(); + }, N; + }(), z = F.prototype; + return O.prototype = z, [["$ms", u], ["$s", m], ["$m", g], ["$H", b], ["$W", w], ["$M", y], ["$y", l], ["$D", d]].forEach(function(N) { + z[N[1]] = function(M) { + return this.$g(M, N[0], N[1]); + }; + }), O.extend = function(N, M) { + return N.$i || (N(M, F, O), N.$i = !0), O; + }, O.locale = p, O.isDayjs = o, O.unix = function(N) { + return O(1e3 * N); + }, O.en = n[i], O.Ls = n, O.p = {}, O; + }); +})(g1); +const Bi = wf, af = [ + "#FFFFFF", + "#000000", + "#BFBFBF", + "#323232", + "#4472C4", + "#ED7D31", + "#A5A5A5", + "#FFC000", + "#5B9BD5", + "#71AD47" +]; +let _1 = 80; +function uc(H, k = {}) { + return w1($g(H), k); +} +function w1(H, k) { + return new Promise(function(e, x) { + const _ = new XMLHttpRequest(); + _.open(k.method || "GET", H, !0), _.responseType = k.responseType || "arraybuffer", _.onload = function() { + _.status === 200 ? e(_.response) : x(_.status); + }, _.onerror = function() { + x(_.status); + }, _.withCredentials = k.withCredentials || !1, k.headers && Object.keys(k.headers).forEach(function(u) { + _.setRequestHeader(u, k.headers[u]); + }), _.send(k.body); + }); +} +function x1(H) { + try { + return new gf.Workbook().xlsx.load(H); + } catch (k) { + return console.warn(k), Promise.reject(k); + } +} +function S1(H, k, e) { + for (let x = 0; x < (H.columns || []).length; x++) + k.cols[x.toString()] = {}, H.columns[x].width ? k.cols[x.toString()].width = H.columns[x].width * 6 : k.cols[x.toString()].width = _1; + k.cols.len = Math.max(Object.keys(k.cols).length, e.minColLength || 0); +} +function k1(H) { + const { numFmt: k, value: e, type: x } = H; + switch (x) { + case 2: + return e + ""; + case 3: + return e; + case 4: + switch (k) { + case "yyyy-mm-dd;@": + return Bi(e).format("YYYY-MM-DD"); + case "mm-dd-yy": + return Bi(e).format("YYYY/MM/DD"); + case "[$-F800]dddd, mmmm dd, yyyy": + return Bi(e).format("YYYY年M月D日 ddd"); + case 'm"月"d"日";@': + return Bi(e).format("M月D日"); + case "yyyy/m/d h:mm;@": + case 'm/d/yy "h":mm': + return Bi(e).subtract(8, "hour").format("YYYY/M/DD HH:mm"); + case "h:mm;@": + return Bi(e).format("HH:mm"); + default: + return Bi(e).format("YYYY-MM-DD"); + } + case 6: + return H.result; + case 8: + return H.text; + default: + return e; + } +} +function of(H) { + if (typeof H == "object") + return "#000000"; + if (/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(H)) + return H.startsWith("#") ? H : "#" + H; + H = H.trim().toLowerCase(); + let k = {}; + try { + let e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(H); + return k.r = parseInt(e[2], 16), k.g = parseInt(e[3], 16), k.b = parseInt(e[4], 16), k.a = parseInt(e[1], 16) / 255, Rt(`rgba(${k.r}, ${k.g}, ${k.b}, ${k.a})`).toHexString(); + } catch (e) { + console.warn(e); + } +} +function sf(H, k) { + return H > 9 ? "#C7C9CC" : typeof k == "undefined" ? af[H] : k > 0 ? b1(af[H], k) : m1(af[H], Math.abs(k)); +} +function O1(H) { + H.style = ga.cloneDeep(H.style); + let k = null; + H.style.fill && H.style.fill.fgColor && (H.style.fill.fgColor.argb ? k = of(H.style.fill.fgColor.argb) : H.style.fill.fgColor.hasOwnProperty("theme") ? k = sf(H.style.fill.fgColor.theme, H.style.fill.fgColor.tint) : k = "#C7C9CC"), k && (H.style.bgcolor = k); + let e = null; + if (H.style.font && H.style.font.color && (H.style.font.color.argb ? e = of(H.style.font.color.argb) : H.style.font.color.hasOwnProperty("theme") ? e = sf(H.style.font.color.theme, H.style.font.color.tint) : e = "#000000"), e && (H.style.color = e), H.style.alignment && (H.style.alignment.horizontal && (H.style.align = H.style.alignment.horizontal), H.style.alignment.vertical && (H.style.valign = H.style.alignment.vertical)), H.style.alignment && H.style.alignment.wrapText && (H.style.textwrap = !0), H.style.border) { + let x = {}; + Object.keys(H.style.border).forEach((_) => { + let u = H.style.border[_], m = "#000000"; + typeof u.color == "string" ? m = u.color : u.color && (u.color.argb ? m = of(u.color.argb) : u.color.hasOwnProperty("theme") && (m = sf(u.color.theme, u.color.tint))), x[_] = [u.style || "thin", m]; + }), H.style.border2 = Qs({}, H.style.border), H.style.border = x; + } + return H.style; +} +function E1(H, k) { + let e = []; + return H.eachSheet((x) => { + let _ = { name: x.name, styles: [], rows: {}, cols: {}, merges: [], media: [] }, u = []; + for (let m in x._merges) { + _.merges.push(x._merges[m].shortRange); + let g = {}; + g.startAddress = x._merges[m].tl, g.endAddress = x._merges[m].br, g.YRange = x._merges[m].model.bottom - x._merges[m].model.top, g.XRange = x._merges[m].model.right - x._merges[m].model.left, u.push(g); + } + S1(x, _, k), (x._rows || []).forEach((m, g) => { + _.rows[g] = { cells: {} }, m.height && (_.rows[g].height = m.height), (m._cells || []).forEach((b, w) => { + _.rows[g].cells[w] = {}; + let f = v1.find(u, function(y) { + return y.startAddress == b._address; + }); + f && b.master.address != f.startAddress || (f && (_.rows[g].cells[w].merge = [f.YRange, f.XRange]), _.rows[g].cells[w].text = k1(b), _.styles.push(O1(b)), _.rows[g].cells[w].style = _.styles.length - 1); + }); + }), _._media && (_.media = _._media), _.rows.len = Math.max(Object.keys(_.rows).length, 100), e.push(_); + }), { + workbookData: e, + workbookSource: H, + medias: H.media || [] + }; +} +let $o = []; +function Ho(H, k, e, x) { + e && e._media.length && e._media.forEach((_) => { + let { imageId: u, range: m, type: g } = _; + if (g === "image") { + let b = T1(e, m, x); + R1(H, u, k[u], b); + } + }); +} +let Wo = 60, Vo = 25, ff = 80, uf = 24, Jn = window.devicePixelRatio; +function T1(H, k, e) { + var r, t, i, n, o, p, O, P, F, z, N, M, I, R; + let { tl: x = {}, br: _ = {} } = k, { nativeCol: u, nativeColOff: m, nativeRow: g, nativeRowOff: b } = x, w = Wo, f = Vo; + for (let C = 0; C < u; C++) + w += ((t = (r = H == null ? void 0 : H._columns) == null ? void 0 : r[C]) == null ? void 0 : t.width) * 6 || ff; + for (let C = 0; C < g; C++) + f += ((n = (i = H == null ? void 0 : H._rows) == null ? void 0 : i[C]) == null ? void 0 : n.height) || uf; + let y = w + m / 12700, h = f + b / 12700, { + nativeCol: l, + nativeColOff: d, + nativeRow: s, + nativeRowOff: v + } = _, c; + if (u === l) + c = (d - m) / 12700; + else { + c = (((p = (o = H == null ? void 0 : H._columns) == null ? void 0 : o[u]) == null ? void 0 : p.width) * 6 || ff) - m / 12700; + for (let C = u + 1; C < l; C++) + c += ((P = (O = H == null ? void 0 : H._columns) == null ? void 0 : O[C]) == null ? void 0 : P.width) * 6 || ff; + c += d / 12700; + } + let a; + if (g === s) + a = (v - b) / 12700; + else { + a = (((z = (F = H == null ? void 0 : H._rows) == null ? void 0 : F[g]) == null ? void 0 : z.height) || uf) - b / 12700; + for (let C = g + 1; C < s; C++) + a += ((M = (N = H == null ? void 0 : H._rows) == null ? void 0 : N[C]) == null ? void 0 : M.height) || uf; + a += v / 12700; + } + return { + x: (y - (((I = e == null ? void 0 : e.scroll) == null ? void 0 : I.x) || 0)) * Jn, + y: (h - (((R = e == null ? void 0 : e.scroll) == null ? void 0 : R.y) || 0)) * Jn, + width: c * Jn, + height: a * Jn + }; +} +function lc() { + $o = []; +} +function R1(H, k, e, x) { + C1(k, e).then((_) => { + let u = 0, m = 0, g = _.width, b = _.height, w = x.x, f = x.y, y = x.width, h = x.height, l = y / g, d = h / b; + if (w < Wo * Jn) { + let s = Wo * Jn - w; + w = Wo * Jn, y -= s, g -= s / l, u += s / l; + } + if (f < Vo * Jn) { + let s = Vo * Jn - f; + f = Vo * Jn, h -= s, b -= s / d, m += s / d; + } + H.drawImage(_, u, m, g, b, w, f, y, h); + }).catch((_) => { + }); +} +function C1(H, k) { + return new Promise((e, x) => { + if ($o[H]) + return e($o[H]); + const { buffer: _, extension: u } = k.buffer; + let m = new Blob([_], { type: "image/" + u }), g = URL.createObjectURL(m), b = new Image(); + b.src = g, b.onload = function() { + e(b), $o[H] = b; + }, b.onerror = function(w) { + x(w); + }; + }); +} +function P1(H) { + let k = H.value; + if (k) { + let e = k.querySelectorAll("input"); + for (let x of e) + x && !x.readOnly && (x.readOnly = !0); + document.activeElement && document.activeElement.blur(); + } +} +const A1 = (H, k) => { + const e = H.__vccOpts || H; + for (const [x, _] of k) + e[x] = _; + return e; +}, M1 = fm({ + name: "VueOfficeExcel", + props: { + src: [String, ArrayBuffer, Blob], + requestOptions: { + type: Object, + default: () => ({}) + }, + options: { + type: Object, + default: () => ({ + minColLength: 20 + }) + } + }, + emits: ["rendered", "error"], + setup(H, { emit: k }) { + const e = Cl(null), x = Cl(null); + let _ = { + _worksheets: [] + }, u = [], m = 1, g = null, b = null, w = null; + function f(d) { + x1(d).then((s) => { + if (!s._worksheets || s._worksheets.length === 0) + throw new Error("未获取到数据,可能文件格式不正确或文件已损坏"); + const { workbookData: v, medias: c, workbookSource: a } = E1(s, H.options); + u = c, _ = a, w = null, m = 1, lc(), b.loadData(v), Ho(g, u, _._worksheets[m], w), k("rendered"); + }).catch((s) => { + console.warn(s), u = [], _ = { + _worksheets: [] + }, lc(), b.loadData({}), k("error", s); + }); + } + const y = ga.debounce(P1, 200).bind(this, x), h = new MutationObserver(y), l = { attributes: !0, childList: !0, subtree: !0 }; + return um(() => { + lm(() => { + h.observe(x.value, l), y(x), window.xs = b = new Ac(x.value, { + mode: "read", + showToolbar: !1, + showContextmenu: H.options.showContextmenu || !1, + view: { + height: () => e.value && e.value.clientHeight || 300, + width: () => e.value && e.value.clientWidth || 300 + }, + row: { + height: 24, + len: 100 + }, + col: { + len: 26, + width: 80, + indexWidth: 60, + minWidth: 60 + }, + autoFocus: !1 + }).loadData({}); + let d = b.bottombar.swapFunc; + b.bottombar.swapFunc = function(a) { + d.call(b.bottombar, a), m = a + 1, setTimeout(() => { + b.reRender(), Ho(g, u, _._worksheets[m], w); + }); + }; + let s = b.sheet.editor.clear; + b.sheet.editor.clear = function(...a) { + s.apply(b.sheet.editor, a), setTimeout(() => { + Ho(g, u, _._worksheets[m], w); + }); + }; + let v = b.sheet.editor.setOffset; + b.sheet.editor.setOffset = function(...a) { + v.apply(b.sheet.editor, a), w = a[0], Ho(g, u, _._worksheets[m], w); + }, g = x.value.querySelector("canvas").getContext("2d"), H.src && uc(H.src, H.requestOptions).then(f).catch((a) => { + b.loadData({}), k("error", a); + }); + }); + }), cm(() => { + h.disconnect(), b = null; + }), hm(() => H.src, () => { + H.src ? uc(H.src, H.requestOptions).then(f).catch((d) => { + b.loadData({}), k("error", d); + }) : b.loadData({}); + }), { + wrapperRef: e, + rootRef: x + }; + } +}), I1 = { + class: "vue-office-excel", + ref: "wrapperRef" +}, D1 = { + class: "vue-office-excel-main", + ref: "rootRef" +}; +function N1(H, k, e, x, _, u) { + return dm(), pm("div", I1, [ + ym("div", D1, null, 512) + ], 512); +} +const lf = /* @__PURE__ */ A1(M1, [["render", N1]]); +lf.install = function(H) { + H.component(lf.name, lf); +}; +export { + lf as default +}; diff --git a/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js b/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js new file mode 100644 index 00000000..5a0de1f7 --- /dev/null +++ b/code/WebApp/vanilla/lib/@vue/devtools-api/shim.js @@ -0,0 +1,160 @@ +// node_modules/@vue/devtools-api/lib/esm/env.js +function getDevtoolsGlobalHook() { + return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__; +} +function getTarget() { + return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}; +} +var isProxyAvailable = typeof Proxy === "function"; + +// node_modules/@vue/devtools-api/lib/esm/const.js +var HOOK_SETUP = "devtools-plugin:setup"; +var HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set"; + +// node_modules/@vue/devtools-api/lib/esm/time.js +var supported; +var perf; +function isPerformanceSupported() { + var _a; + if (supported !== void 0) { + return supported; + } + if (typeof window !== "undefined" && window.performance) { + supported = true; + perf = window.performance; + } else if (typeof global !== "undefined" && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) { + supported = true; + perf = global.perf_hooks.performance; + } else { + supported = false; + } + return supported; +} +function now() { + return isPerformanceSupported() ? perf.now() : Date.now(); +} + +// node_modules/@vue/devtools-api/lib/esm/proxy.js +var ApiProxy = class { + constructor(plugin, hook) { + this.target = null; + this.targetQueue = []; + this.onQueue = []; + this.plugin = plugin; + this.hook = hook; + const defaultSettings = {}; + if (plugin.settings) { + for (const id in plugin.settings) { + const item = plugin.settings[id]; + defaultSettings[id] = item.defaultValue; + } + } + const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`; + let currentSettings = Object.assign({}, defaultSettings); + try { + const raw = localStorage.getItem(localSettingsSaveId); + const data = JSON.parse(raw); + Object.assign(currentSettings, data); + } catch (e) { + } + this.fallbacks = { + getSettings() { + return currentSettings; + }, + setSettings(value) { + try { + localStorage.setItem(localSettingsSaveId, JSON.stringify(value)); + } catch (e) { + } + currentSettings = value; + }, + now() { + return now(); + } + }; + if (hook) { + hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => { + if (pluginId === this.plugin.id) { + this.fallbacks.setSettings(value); + } + }); + } + this.proxiedOn = new Proxy({}, { + get: (_target, prop) => { + if (this.target) { + return this.target.on[prop]; + } else { + return (...args) => { + this.onQueue.push({ + method: prop, + args + }); + }; + } + } + }); + this.proxiedTarget = new Proxy({}, { + get: (_target, prop) => { + if (this.target) { + return this.target[prop]; + } else if (prop === "on") { + return this.proxiedOn; + } else if (Object.keys(this.fallbacks).includes(prop)) { + return (...args) => { + this.targetQueue.push({ + method: prop, + args, + resolve: () => { + } + }); + return this.fallbacks[prop](...args); + }; + } else { + return (...args) => { + return new Promise((resolve) => { + this.targetQueue.push({ + method: prop, + args, + resolve + }); + }); + }; + } + } + }); + } + async setRealTarget(target) { + this.target = target; + for (const item of this.onQueue) { + this.target.on[item.method](...item.args); + } + for (const item of this.targetQueue) { + item.resolve(await this.target[item.method](...item.args)); + } + } +}; + +// node_modules/@vue/devtools-api/lib/esm/index.js +function setupDevtoolsPlugin(pluginDescriptor, setupFn) { + const descriptor = pluginDescriptor; + const target = getTarget(); + const hook = getDevtoolsGlobalHook(); + const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy; + if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) { + hook.emit(HOOK_SETUP, pluginDescriptor, setupFn); + } else { + const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null; + const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || []; + list.push({ + pluginDescriptor: descriptor, + setupFn, + proxy + }); + if (proxy) + setupFn(proxy.proxiedTarget); + } +} + +export { + setupDevtoolsPlugin +}; diff --git a/code/WebApp/vanilla/lib/@vueuse/core/index.mjs b/code/WebApp/vanilla/lib/@vueuse/core/index.mjs new file mode 100644 index 00000000..57c429a9 --- /dev/null +++ b/code/WebApp/vanilla/lib/@vueuse/core/index.mjs @@ -0,0 +1,7387 @@ +import { noop, makeDestructurable, toValue, isClient, tryOnScopeDispose, isIOS, tryOnMounted, computedWithControl, isObject, objectOmit, promiseTimeout, until, toRef, increaseWithUnit, objectEntries, useTimeoutFn, pausableWatch, createEventHook, timestamp, pausableFilter, watchIgnorable, debounceFilter, createFilterWrapper, bypassFilter, createSingletonPromise, toRefs, notNullish, containsProp, hasOwn, throttleFilter, useDebounceFn, useThrottleFn, useIntervalFn, clamp, syncRef, objectPick, tryOnUnmounted, watchWithFilter, identity, isDef } from '@vueuse/shared'; +export * from '@vueuse/shared'; +import { isRef, ref, shallowRef, watchEffect, computed, inject, isVue3, version, defineComponent, h, TransitionGroup, shallowReactive, Fragment, watch, getCurrentInstance, customRef, onUpdated, onMounted, readonly, nextTick, reactive, markRaw, getCurrentScope, isVue2, set, del, isReadonly, onBeforeUpdate } from 'vue-demi'; + +function computedAsync(evaluationCallback, initialState, optionsOrRef) { + let options; + if (isRef(optionsOrRef)) { + options = { + evaluating: optionsOrRef + }; + } else { + options = optionsOrRef || {}; + } + const { + lazy = false, + evaluating = void 0, + shallow = true, + onError = noop + } = options; + const started = ref(!lazy); + const current = shallow ? shallowRef(initialState) : ref(initialState); + let counter = 0; + watchEffect(async (onInvalidate) => { + if (!started.value) + return; + counter++; + const counterAtBeginning = counter; + let hasFinished = false; + if (evaluating) { + Promise.resolve().then(() => { + evaluating.value = true; + }); + } + try { + const result = await evaluationCallback((cancelCallback) => { + onInvalidate(() => { + if (evaluating) + evaluating.value = false; + if (!hasFinished) + cancelCallback(); + }); + }); + if (counterAtBeginning === counter) + current.value = result; + } catch (e) { + onError(e); + } finally { + if (evaluating && counterAtBeginning === counter) + evaluating.value = false; + hasFinished = true; + } + }); + if (lazy) { + return computed(() => { + started.value = true; + return current.value; + }); + } else { + return current; + } +} + +function computedInject(key, options, defaultSource, treatDefaultAsFactory) { + let source = inject(key); + if (defaultSource) + source = inject(key, defaultSource); + if (treatDefaultAsFactory) + source = inject(key, defaultSource, treatDefaultAsFactory); + if (typeof options === "function") { + return computed((ctx) => options(source, ctx)); + } else { + return computed({ + get: (ctx) => options.get(source, ctx), + set: options.set + }); + } +} + +var __defProp$p = Object.defineProperty; +var __defProps$c = Object.defineProperties; +var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$s = Object.getOwnPropertySymbols; +var __hasOwnProp$s = Object.prototype.hasOwnProperty; +var __propIsEnum$s = Object.prototype.propertyIsEnumerable; +var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$p = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$s.call(b, prop)) + __defNormalProp$p(a, prop, b[prop]); + if (__getOwnPropSymbols$s) + for (var prop of __getOwnPropSymbols$s(b)) { + if (__propIsEnum$s.call(b, prop)) + __defNormalProp$p(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b)); +function createReusableTemplate() { + if (!isVue3 && !version.startsWith("2.7.")) { + if (process.env.NODE_ENV !== "production") + throw new Error("[VueUse] createReusableTemplate only works in Vue 2.7 or above."); + return; + } + const render = shallowRef(); + const define = /* #__PURE__ */ defineComponent({ + setup(_, { slots }) { + return () => { + render.value = slots.default; + }; + } + }); + const reuse = /* #__PURE__ */ defineComponent({ + inheritAttrs: false, + setup(_, { attrs, slots }) { + return () => { + var _a; + if (!render.value && process.env.NODE_ENV !== "production") + throw new Error("[VueUse] Failed to find the definition of reusable template"); + return (_a = render.value) == null ? void 0 : _a.call(render, __spreadProps$c(__spreadValues$p({}, attrs), { $slots: slots })); + }; + } + }); + return makeDestructurable( + { define, reuse }, + [define, reuse] + ); +} + +function createTemplatePromise(options = {}) { + if (!isVue3) { + if (process.env.NODE_ENV !== "production") + throw new Error("[VueUse] createTemplatePromise only works in Vue 3 or above."); + return; + } + let index = 0; + const instances = ref([]); + function create(...args) { + const props = shallowReactive({ + key: index++, + args, + promise: void 0, + resolve: () => { + }, + reject: () => { + }, + isResolving: false, + options + }); + instances.value.push(props); + props.promise = new Promise((_resolve, _reject) => { + props.resolve = (v) => { + props.isResolving = true; + return _resolve(v); + }; + props.reject = _reject; + }).finally(() => { + props.promise = void 0; + const index2 = instances.value.indexOf(props); + if (index2 !== -1) + instances.value.splice(index2, 1); + }); + return props.promise; + } + function start(...args) { + if (options.singleton && instances.value.length > 0) + return instances.value[0].promise; + return create(...args); + } + const component = /* #__PURE__ */ defineComponent((_, { slots }) => { + const renderList = () => instances.value.map((props) => { + var _a; + return h(Fragment, { key: props.key }, (_a = slots.default) == null ? void 0 : _a.call(slots, props)); + }); + if (options.transition) + return () => h(TransitionGroup, options.transition, renderList); + return renderList; + }); + component.start = start; + return component; +} + +function createUnrefFn(fn) { + return function(...args) { + return fn.apply(this, args.map((i) => toValue(i))); + }; +} + +function unrefElement(elRef) { + var _a; + const plain = toValue(elRef); + return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain; +} + +const defaultWindow = isClient ? window : void 0; +const defaultDocument = isClient ? window.document : void 0; +const defaultNavigator = isClient ? window.navigator : void 0; +const defaultLocation = isClient ? window.location : void 0; + +function useEventListener(...args) { + let target; + let events; + let listeners; + let options; + if (typeof args[0] === "string" || Array.isArray(args[0])) { + [events, listeners, options] = args; + target = defaultWindow; + } else { + [target, events, listeners, options] = args; + } + if (!target) + return noop; + if (!Array.isArray(events)) + events = [events]; + if (!Array.isArray(listeners)) + listeners = [listeners]; + const cleanups = []; + const cleanup = () => { + cleanups.forEach((fn) => fn()); + cleanups.length = 0; + }; + const register = (el, event, listener, options2) => { + el.addEventListener(event, listener, options2); + return () => el.removeEventListener(event, listener, options2); + }; + const stopWatch = watch( + () => [unrefElement(target), toValue(options)], + ([el, options2]) => { + cleanup(); + if (!el) + return; + cleanups.push( + ...events.flatMap((event) => { + return listeners.map((listener) => register(el, event, listener, options2)); + }) + ); + }, + { immediate: true, flush: "post" } + ); + const stop = () => { + stopWatch(); + cleanup(); + }; + tryOnScopeDispose(stop); + return stop; +} + +let _iOSWorkaround = false; +function onClickOutside(target, handler, options = {}) { + const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options; + if (!window) + return; + if (isIOS && !_iOSWorkaround) { + _iOSWorkaround = true; + Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop)); + } + let shouldListen = true; + const shouldIgnore = (event) => { + return ignore.some((target2) => { + if (typeof target2 === "string") { + return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el)); + } else { + const el = unrefElement(target2); + return el && (event.target === el || event.composedPath().includes(el)); + } + }); + }; + const listener = (event) => { + const el = unrefElement(target); + if (!el || el === event.target || event.composedPath().includes(el)) + return; + if (event.detail === 0) + shouldListen = !shouldIgnore(event); + if (!shouldListen) { + shouldListen = true; + return; + } + handler(event); + }; + const cleanup = [ + useEventListener(window, "click", listener, { passive: true, capture }), + useEventListener(window, "pointerdown", (e) => { + const el = unrefElement(target); + if (el) + shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e); + }, { passive: true }), + detectIframe && useEventListener(window, "blur", (event) => { + var _a; + const el = unrefElement(target); + if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement))) + handler(event); + }) + ].filter(Boolean); + const stop = () => cleanup.forEach((fn) => fn()); + return stop; +} + +var __defProp$o = Object.defineProperty; +var __defProps$b = Object.defineProperties; +var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$r = Object.getOwnPropertySymbols; +var __hasOwnProp$r = Object.prototype.hasOwnProperty; +var __propIsEnum$r = Object.prototype.propertyIsEnumerable; +var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$o = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$r.call(b, prop)) + __defNormalProp$o(a, prop, b[prop]); + if (__getOwnPropSymbols$r) + for (var prop of __getOwnPropSymbols$r(b)) { + if (__propIsEnum$r.call(b, prop)) + __defNormalProp$o(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b)); +function createKeyPredicate(keyFilter) { + if (typeof keyFilter === "function") + return keyFilter; + else if (typeof keyFilter === "string") + return (event) => event.key === keyFilter; + else if (Array.isArray(keyFilter)) + return (event) => keyFilter.includes(event.key); + return () => true; +} +function onKeyStroke(...args) { + let key; + let handler; + let options = {}; + if (args.length === 3) { + key = args[0]; + handler = args[1]; + options = args[2]; + } else if (args.length === 2) { + if (typeof args[1] === "object") { + key = true; + handler = args[0]; + options = args[1]; + } else { + key = args[0]; + handler = args[1]; + } + } else { + key = true; + handler = args[0]; + } + const { + target = defaultWindow, + eventName = "keydown", + passive = false, + dedupe = false + } = options; + const predicate = createKeyPredicate(key); + const listener = (e) => { + if (e.repeat && toValue(dedupe)) + return; + if (predicate(e)) + handler(e); + }; + return useEventListener(target, eventName, listener, passive); +} +function onKeyDown(key, handler, options = {}) { + return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keydown" })); +} +function onKeyPressed(key, handler, options = {}) { + return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keypress" })); +} +function onKeyUp(key, handler, options = {}) { + return onKeyStroke(key, handler, __spreadProps$b(__spreadValues$o({}, options), { eventName: "keyup" })); +} + +const DEFAULT_DELAY = 500; +function onLongPress(target, handler, options) { + var _a, _b; + const elementRef = computed(() => unrefElement(target)); + let timeout; + function clear() { + if (timeout) { + clearTimeout(timeout); + timeout = void 0; + } + } + function onDown(ev) { + var _a2, _b2, _c, _d; + if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) + return; + clear(); + if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) + ev.preventDefault(); + if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) + ev.stopPropagation(); + timeout = setTimeout( + () => handler(ev), + (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY + ); + } + const listenerOptions = { + capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture, + once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once + }; + useEventListener(elementRef, "pointerdown", onDown, listenerOptions); + useEventListener(elementRef, "pointerup", clear, listenerOptions); + useEventListener(elementRef, "pointerleave", clear, listenerOptions); +} + +function isFocusedElementEditable() { + const { activeElement, body } = document; + if (!activeElement) + return false; + if (activeElement === body) + return false; + switch (activeElement.tagName) { + case "INPUT": + case "TEXTAREA": + return true; + } + return activeElement.hasAttribute("contenteditable"); +} +function isTypedCharValid({ + keyCode, + metaKey, + ctrlKey, + altKey +}) { + if (metaKey || ctrlKey || altKey) + return false; + if (keyCode >= 48 && keyCode <= 57) + return true; + if (keyCode >= 65 && keyCode <= 90) + return true; + if (keyCode >= 97 && keyCode <= 122) + return true; + return false; +} +function onStartTyping(callback, options = {}) { + const { document: document2 = defaultDocument } = options; + const keydown = (event) => { + !isFocusedElementEditable() && isTypedCharValid(event) && callback(event); + }; + if (document2) + useEventListener(document2, "keydown", keydown, { passive: true }); +} + +function templateRef(key, initialValue = null) { + const instance = getCurrentInstance(); + let _trigger = () => { + }; + const element = customRef((track, trigger) => { + _trigger = trigger; + return { + get() { + var _a, _b; + track(); + return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue; + }, + set() { + } + }; + }); + tryOnMounted(_trigger); + onUpdated(_trigger); + return element; +} + +function useActiveElement(options = {}) { + var _a; + const { window = defaultWindow } = options; + const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document; + const activeElement = computedWithControl( + () => null, + () => document == null ? void 0 : document.activeElement + ); + if (window) { + useEventListener(window, "blur", (event) => { + if (event.relatedTarget !== null) + return; + activeElement.trigger(); + }, true); + useEventListener(window, "focus", activeElement.trigger, true); + } + return activeElement; +} + +function useMounted() { + const isMounted = ref(false); + if (getCurrentInstance()) { + onMounted(() => { + isMounted.value = true; + }); + } + return isMounted; +} + +function useSupported(callback) { + const isMounted = useMounted(); + return computed(() => { + isMounted.value; + return Boolean(callback()); + }); +} + +function useRafFn(fn, options = {}) { + const { + immediate = true, + window = defaultWindow + } = options; + const isActive = ref(false); + let previousFrameTimestamp = 0; + let rafId = null; + function loop(timestamp) { + if (!isActive.value || !window) + return; + const delta = timestamp - previousFrameTimestamp; + fn({ delta, timestamp }); + previousFrameTimestamp = timestamp; + rafId = window.requestAnimationFrame(loop); + } + function resume() { + if (!isActive.value && window) { + isActive.value = true; + rafId = window.requestAnimationFrame(loop); + } + } + function pause() { + isActive.value = false; + if (rafId != null && window) { + window.cancelAnimationFrame(rafId); + rafId = null; + } + } + if (immediate) + resume(); + tryOnScopeDispose(pause); + return { + isActive: readonly(isActive), + pause, + resume + }; +} + +function useAnimate(target, keyframes, options) { + let config; + let animateOptions; + if (isObject(options)) { + config = options; + animateOptions = objectOmit(options, ["window", "immediate", "commitStyles", "persist", "onReady", "onError"]); + } else { + config = { duration: options }; + animateOptions = options; + } + const { + window = defaultWindow, + immediate = true, + commitStyles, + persist, + playbackRate: _playbackRate = 1, + onReady, + onError = (e) => { + console.error(e); + } + } = config; + const isSupported = useSupported(() => window && HTMLElement && "animate" in HTMLElement.prototype); + const animate = shallowRef(void 0); + const store = shallowReactive({ + startTime: null, + currentTime: null, + timeline: null, + playbackRate: _playbackRate, + pending: false, + playState: immediate ? "idle" : "paused", + replaceState: "active" + }); + const pending = computed(() => store.pending); + const playState = computed(() => store.playState); + const replaceState = computed(() => store.replaceState); + const startTime = computed({ + get() { + return store.startTime; + }, + set(value) { + store.startTime = value; + if (animate.value) + animate.value.startTime = value; + } + }); + const currentTime = computed({ + get() { + return store.currentTime; + }, + set(value) { + store.currentTime = value; + if (animate.value) { + animate.value.currentTime = value; + syncResume(); + } + } + }); + const timeline = computed({ + get() { + return store.timeline; + }, + set(value) { + store.timeline = value; + if (animate.value) + animate.value.timeline = value; + } + }); + const playbackRate = computed({ + get() { + return store.playbackRate; + }, + set(value) { + store.playbackRate = value; + if (animate.value) + animate.value.playbackRate = value; + } + }); + const play = () => { + if (animate.value) { + try { + animate.value.play(); + syncResume(); + } catch (e) { + syncPause(); + onError(e); + } + } else { + update(); + } + }; + const pause = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.pause(); + syncPause(); + } catch (e) { + onError(e); + } + }; + const reverse = () => { + var _a; + !animate.value && update(); + try { + (_a = animate.value) == null ? void 0 : _a.reverse(); + syncResume(); + } catch (e) { + syncPause(); + onError(e); + } + }; + const finish = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.finish(); + syncPause(); + } catch (e) { + onError(e); + } + }; + const cancel = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.cancel(); + syncPause(); + } catch (e) { + onError(e); + } + }; + watch(() => unrefElement(target), (el) => { + el && update(); + }); + watch(() => keyframes, (value) => { + !animate.value && update(); + if (!unrefElement(target) && animate.value) { + animate.value.effect = new KeyframeEffect( + unrefElement(target), + toValue(value), + animateOptions + ); + } + }, { deep: true }); + tryOnMounted(() => { + nextTick(() => update(true)); + }); + tryOnScopeDispose(cancel); + function update(init) { + const el = unrefElement(target); + if (!isSupported.value || !el) + return; + animate.value = el.animate(toValue(keyframes), animateOptions); + if (commitStyles) + animate.value.commitStyles(); + if (persist) + animate.value.persist(); + if (_playbackRate !== 1) + animate.value.playbackRate = _playbackRate; + if (init && !immediate) + animate.value.pause(); + else + syncResume(); + onReady == null ? void 0 : onReady(animate.value); + } + useEventListener(animate, "cancel", syncPause); + useEventListener(animate, "finish", syncPause); + useEventListener(animate, "remove", syncPause); + const { resume: resumeRef, pause: pauseRef } = useRafFn(() => { + if (!animate.value) + return; + store.pending = animate.value.pending; + store.playState = animate.value.playState; + store.replaceState = animate.value.replaceState; + store.startTime = animate.value.startTime; + store.currentTime = animate.value.currentTime; + store.timeline = animate.value.timeline; + store.playbackRate = animate.value.playbackRate; + }, { immediate: false }); + function syncResume() { + if (isSupported.value) + resumeRef(); + } + function syncPause() { + if (isSupported.value && window) + window.requestAnimationFrame(pauseRef); + } + return { + isSupported, + animate, + // actions + play, + pause, + reverse, + finish, + cancel, + // state + pending, + playState, + replaceState, + startTime, + currentTime, + timeline, + playbackRate + }; +} + +function useAsyncQueue(tasks, options = {}) { + const { + interrupt = true, + onError = noop, + onFinished = noop + } = options; + const promiseState = { + pending: "pending", + rejected: "rejected", + fulfilled: "fulfilled" + }; + const initialResult = Array.from(new Array(tasks.length), () => ({ state: promiseState.pending, data: null })); + const result = reactive(initialResult); + const activeIndex = ref(-1); + if (!tasks || tasks.length === 0) { + onFinished(); + return { + activeIndex, + result + }; + } + function updateResult(state, res) { + activeIndex.value++; + result[activeIndex.value].data = res; + result[activeIndex.value].state = state; + } + tasks.reduce((prev, curr) => { + return prev.then((prevRes) => { + var _a; + if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) { + onFinished(); + return; + } + return curr(prevRes).then((currentRes) => { + updateResult(promiseState.fulfilled, currentRes); + activeIndex.value === tasks.length - 1 && onFinished(); + return currentRes; + }); + }).catch((e) => { + updateResult(promiseState.rejected, e); + onError(); + return e; + }); + }, Promise.resolve()); + return { + activeIndex, + result + }; +} + +var __defProp$n = Object.defineProperty; +var __defProps$a = Object.defineProperties; +var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$q = Object.getOwnPropertySymbols; +var __hasOwnProp$q = Object.prototype.hasOwnProperty; +var __propIsEnum$q = Object.prototype.propertyIsEnumerable; +var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$n = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$q.call(b, prop)) + __defNormalProp$n(a, prop, b[prop]); + if (__getOwnPropSymbols$q) + for (var prop of __getOwnPropSymbols$q(b)) { + if (__propIsEnum$q.call(b, prop)) + __defNormalProp$n(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b)); +function useAsyncState(promise, initialState, options) { + const { + immediate = true, + delay = 0, + onError = noop, + onSuccess = noop, + resetOnExecute = true, + shallow = true, + throwError + } = options != null ? options : {}; + const state = shallow ? shallowRef(initialState) : ref(initialState); + const isReady = ref(false); + const isLoading = ref(false); + const error = shallowRef(void 0); + async function execute(delay2 = 0, ...args) { + if (resetOnExecute) + state.value = initialState; + error.value = void 0; + isReady.value = false; + isLoading.value = true; + if (delay2 > 0) + await promiseTimeout(delay2); + const _promise = typeof promise === "function" ? promise(...args) : promise; + try { + const data = await _promise; + state.value = data; + isReady.value = true; + onSuccess(data); + } catch (e) { + error.value = e; + onError(e); + if (throwError) + throw e; + } finally { + isLoading.value = false; + } + return state.value; + } + if (immediate) + execute(delay); + const shell = { + state, + isReady, + isLoading, + error, + execute + }; + function waitUntilIsLoaded() { + return new Promise((resolve, reject) => { + until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject); + }); + } + return __spreadProps$a(__spreadValues$n({}, shell), { + then(onFulfilled, onRejected) { + return waitUntilIsLoaded().then(onFulfilled, onRejected); + } + }); +} + +const defaults = { + array: (v) => JSON.stringify(v), + object: (v) => JSON.stringify(v), + set: (v) => JSON.stringify(Array.from(v)), + map: (v) => JSON.stringify(Object.fromEntries(v)), + null: () => "" +}; +function getDefaultSerialization(target) { + if (!target) + return defaults.null; + if (target instanceof Map) + return defaults.map; + else if (target instanceof Set) + return defaults.set; + else if (Array.isArray(target)) + return defaults.array; + else + return defaults.object; +} + +function useBase64(target, options) { + const base64 = ref(""); + const promise = ref(); + function execute() { + if (!isClient) + return; + promise.value = new Promise((resolve, reject) => { + try { + const _target = toValue(target); + if (_target == null) { + resolve(""); + } else if (typeof _target === "string") { + resolve(blobToBase64(new Blob([_target], { type: "text/plain" }))); + } else if (_target instanceof Blob) { + resolve(blobToBase64(_target)); + } else if (_target instanceof ArrayBuffer) { + resolve(window.btoa(String.fromCharCode(...new Uint8Array(_target)))); + } else if (_target instanceof HTMLCanvasElement) { + resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality)); + } else if (_target instanceof HTMLImageElement) { + const img = _target.cloneNode(false); + img.crossOrigin = "Anonymous"; + imgLoaded(img).then(() => { + const canvas = document.createElement("canvas"); + const ctx = canvas.getContext("2d"); + canvas.width = img.width; + canvas.height = img.height; + ctx.drawImage(img, 0, 0, canvas.width, canvas.height); + resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality)); + }).catch(reject); + } else if (typeof _target === "object") { + const _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target); + const serialized = _serializeFn(_target); + return resolve(blobToBase64(new Blob([serialized], { type: "application/json" }))); + } else { + reject(new Error("target is unsupported types")); + } + } catch (error) { + reject(error); + } + }); + promise.value.then((res) => base64.value = res); + return promise.value; + } + if (isRef(target) || typeof target === "function") + watch(target, execute, { immediate: true }); + else + execute(); + return { + base64, + promise, + execute + }; +} +function imgLoaded(img) { + return new Promise((resolve, reject) => { + if (!img.complete) { + img.onload = () => { + resolve(); + }; + img.onerror = reject; + } else { + resolve(); + } + }); +} +function blobToBase64(blob) { + return new Promise((resolve, reject) => { + const fr = new FileReader(); + fr.onload = (e) => { + resolve(e.target.result); + }; + fr.onerror = reject; + fr.readAsDataURL(blob); + }); +} + +function useBattery({ navigator = defaultNavigator } = {}) { + const events = ["chargingchange", "chargingtimechange", "dischargingtimechange", "levelchange"]; + const isSupported = useSupported(() => navigator && "getBattery" in navigator); + const charging = ref(false); + const chargingTime = ref(0); + const dischargingTime = ref(0); + const level = ref(1); + let battery; + function updateBatteryInfo() { + charging.value = this.charging; + chargingTime.value = this.chargingTime || 0; + dischargingTime.value = this.dischargingTime || 0; + level.value = this.level; + } + if (isSupported.value) { + navigator.getBattery().then((_battery) => { + battery = _battery; + updateBatteryInfo.call(battery); + for (const event of events) + useEventListener(battery, event, updateBatteryInfo, { passive: true }); + }); + } + return { + isSupported, + charging, + chargingTime, + dischargingTime, + level + }; +} + +function useBluetooth(options) { + let { + acceptAllDevices = false + } = options || {}; + const { + filters = void 0, + optionalServices = void 0, + navigator = defaultNavigator + } = options || {}; + const isSupported = useSupported(() => navigator && "bluetooth" in navigator); + const device = shallowRef(void 0); + const error = shallowRef(null); + watch(device, () => { + connectToBluetoothGATTServer(); + }); + async function requestDevice() { + if (!isSupported.value) + return; + error.value = null; + if (filters && filters.length > 0) + acceptAllDevices = false; + try { + device.value = await (navigator == null ? void 0 : navigator.bluetooth.requestDevice({ + acceptAllDevices, + filters, + optionalServices + })); + } catch (err) { + error.value = err; + } + } + const server = ref(); + const isConnected = computed(() => { + var _a; + return ((_a = server.value) == null ? void 0 : _a.connected) || false; + }); + async function connectToBluetoothGATTServer() { + error.value = null; + if (device.value && device.value.gatt) { + device.value.addEventListener("gattserverdisconnected", () => { + }); + try { + server.value = await device.value.gatt.connect(); + } catch (err) { + error.value = err; + } + } + } + tryOnMounted(() => { + var _a; + if (device.value) + (_a = device.value.gatt) == null ? void 0 : _a.connect(); + }); + tryOnScopeDispose(() => { + var _a; + if (device.value) + (_a = device.value.gatt) == null ? void 0 : _a.disconnect(); + }); + return { + isSupported, + isConnected, + // Device: + device, + requestDevice, + // Server: + server, + // Errors: + error + }; +} + +function useMediaQuery(query, options = {}) { + const { window = defaultWindow } = options; + const isSupported = useSupported(() => window && "matchMedia" in window && typeof window.matchMedia === "function"); + let mediaQuery; + const matches = ref(false); + const cleanup = () => { + if (!mediaQuery) + return; + if ("removeEventListener" in mediaQuery) + mediaQuery.removeEventListener("change", update); + else + mediaQuery.removeListener(update); + }; + const update = () => { + if (!isSupported.value) + return; + cleanup(); + mediaQuery = window.matchMedia(toRef(query).value); + matches.value = !!(mediaQuery == null ? void 0 : mediaQuery.matches); + if (!mediaQuery) + return; + if ("addEventListener" in mediaQuery) + mediaQuery.addEventListener("change", update); + else + mediaQuery.addListener(update); + }; + watchEffect(update); + tryOnScopeDispose(() => cleanup()); + return matches; +} + +const breakpointsTailwind = { + "sm": 640, + "md": 768, + "lg": 1024, + "xl": 1280, + "2xl": 1536 +}; +const breakpointsBootstrapV5 = { + sm: 576, + md: 768, + lg: 992, + xl: 1200, + xxl: 1400 +}; +const breakpointsVuetify = { + xs: 600, + sm: 960, + md: 1264, + lg: 1904 +}; +const breakpointsAntDesign = { + xs: 480, + sm: 576, + md: 768, + lg: 992, + xl: 1200, + xxl: 1600 +}; +const breakpointsQuasar = { + xs: 600, + sm: 1024, + md: 1440, + lg: 1920 +}; +const breakpointsSematic = { + mobileS: 320, + mobileM: 375, + mobileL: 425, + tablet: 768, + laptop: 1024, + laptopL: 1440, + desktop4K: 2560 +}; +const breakpointsMasterCss = { + "3xs": 360, + "2xs": 480, + "xs": 600, + "sm": 768, + "md": 1024, + "lg": 1280, + "xl": 1440, + "2xl": 1600, + "3xl": 1920, + "4xl": 2560 +}; + +function useBreakpoints(breakpoints, options = {}) { + function getValue(k, delta) { + let v = breakpoints[k]; + if (delta != null) + v = increaseWithUnit(v, delta); + if (typeof v === "number") + v = `${v}px`; + return v; + } + const { window = defaultWindow } = options; + function match(query) { + if (!window) + return false; + return window.matchMedia(query).matches; + } + const greaterOrEqual = (k) => { + return useMediaQuery(`(min-width: ${getValue(k)})`, options); + }; + const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => { + Object.defineProperty(shortcuts, k, { + get: () => greaterOrEqual(k), + enumerable: true, + configurable: true + }); + return shortcuts; + }, {}); + return Object.assign(shortcutMethods, { + greater(k) { + return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options); + }, + greaterOrEqual, + smaller(k) { + return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options); + }, + smallerOrEqual(k) { + return useMediaQuery(`(max-width: ${getValue(k)})`, options); + }, + between(a, b) { + return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options); + }, + isGreater(k) { + return match(`(min-width: ${getValue(k, 0.1)})`); + }, + isGreaterOrEqual(k) { + return match(`(min-width: ${getValue(k)})`); + }, + isSmaller(k) { + return match(`(max-width: ${getValue(k, -0.1)})`); + }, + isSmallerOrEqual(k) { + return match(`(max-width: ${getValue(k)})`); + }, + isInBetween(a, b) { + return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`); + }, + current() { + const points = Object.keys(breakpoints).map((i) => [i, greaterOrEqual(i)]); + return computed(() => points.filter(([, v]) => v.value).map(([k]) => k)); + } + }); +} + +function useBroadcastChannel(options) { + const { + name, + window = defaultWindow + } = options; + const isSupported = useSupported(() => window && "BroadcastChannel" in window); + const isClosed = ref(false); + const channel = ref(); + const data = ref(); + const error = shallowRef(null); + const post = (data2) => { + if (channel.value) + channel.value.postMessage(data2); + }; + const close = () => { + if (channel.value) + channel.value.close(); + isClosed.value = true; + }; + if (isSupported.value) { + tryOnMounted(() => { + error.value = null; + channel.value = new BroadcastChannel(name); + channel.value.addEventListener("message", (e) => { + data.value = e.data; + }, { passive: true }); + channel.value.addEventListener("messageerror", (e) => { + error.value = e; + }, { passive: true }); + channel.value.addEventListener("close", () => { + isClosed.value = true; + }); + }); + } + tryOnScopeDispose(() => { + close(); + }); + return { + isSupported, + channel, + data, + post, + close, + error, + isClosed + }; +} + +var __defProp$m = Object.defineProperty; +var __getOwnPropSymbols$p = Object.getOwnPropertySymbols; +var __hasOwnProp$p = Object.prototype.hasOwnProperty; +var __propIsEnum$p = Object.prototype.propertyIsEnumerable; +var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$m = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$p.call(b, prop)) + __defNormalProp$m(a, prop, b[prop]); + if (__getOwnPropSymbols$p) + for (var prop of __getOwnPropSymbols$p(b)) { + if (__propIsEnum$p.call(b, prop)) + __defNormalProp$m(a, prop, b[prop]); + } + return a; +}; +const WRITABLE_PROPERTIES = [ + "hash", + "host", + "hostname", + "href", + "pathname", + "port", + "protocol", + "search" +]; +function useBrowserLocation({ window = defaultWindow } = {}) { + const refs = Object.fromEntries( + WRITABLE_PROPERTIES.map((key) => [key, ref()]) + ); + for (const [key, ref2] of objectEntries(refs)) { + watch(ref2, (value) => { + if (!(window == null ? void 0 : window.location) || window.location[key] === value) + return; + window.location[key] = value; + }); + } + const buildState = (trigger) => { + var _a; + const { state: state2, length } = (window == null ? void 0 : window.history) || {}; + const { origin } = (window == null ? void 0 : window.location) || {}; + for (const key of WRITABLE_PROPERTIES) + refs[key].value = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a[key]; + return reactive(__spreadValues$m({ + trigger, + state: state2, + length, + origin + }, refs)); + }; + const state = ref(buildState("load")); + if (window) { + useEventListener(window, "popstate", () => state.value = buildState("popstate"), { passive: true }); + useEventListener(window, "hashchange", () => state.value = buildState("hashchange"), { passive: true }); + } + return state; +} + +function useCached(refValue, comparator = (a, b) => a === b, watchOptions) { + const cachedValue = ref(refValue.value); + watch(() => refValue.value, (value) => { + if (!comparator(value, cachedValue.value)) + cachedValue.value = value; + }, watchOptions); + return cachedValue; +} + +function useClipboard(options = {}) { + const { + navigator = defaultNavigator, + read = false, + source, + copiedDuring = 1500, + legacy = false + } = options; + const events = ["copy", "cut"]; + const isClipboardApiSupported = useSupported(() => navigator && "clipboard" in navigator); + const isSupported = computed(() => isClipboardApiSupported.value || legacy); + const text = ref(""); + const copied = ref(false); + const timeout = useTimeoutFn(() => copied.value = false, copiedDuring); + function updateText() { + if (isClipboardApiSupported.value) { + navigator.clipboard.readText().then((value) => { + text.value = value; + }); + } else { + text.value = legacyRead(); + } + } + if (isSupported.value && read) { + for (const event of events) + useEventListener(event, updateText); + } + async function copy(value = toValue(source)) { + if (isSupported.value && value != null) { + if (isClipboardApiSupported.value) + await navigator.clipboard.writeText(value); + else + legacyCopy(value); + text.value = value; + copied.value = true; + timeout.start(); + } + } + function legacyCopy(value) { + const ta = document.createElement("textarea"); + ta.value = value != null ? value : ""; + ta.style.position = "absolute"; + ta.style.opacity = "0"; + document.body.appendChild(ta); + ta.select(); + document.execCommand("copy"); + ta.remove(); + } + function legacyRead() { + var _a, _b, _c; + return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : ""; + } + return { + isSupported, + text, + copied, + copy + }; +} + +var __defProp$l = Object.defineProperty; +var __defProps$9 = Object.defineProperties; +var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$o = Object.getOwnPropertySymbols; +var __hasOwnProp$o = Object.prototype.hasOwnProperty; +var __propIsEnum$o = Object.prototype.propertyIsEnumerable; +var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$l = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$o.call(b, prop)) + __defNormalProp$l(a, prop, b[prop]); + if (__getOwnPropSymbols$o) + for (var prop of __getOwnPropSymbols$o(b)) { + if (__propIsEnum$o.call(b, prop)) + __defNormalProp$l(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b)); +function cloneFnJSON(source) { + return JSON.parse(JSON.stringify(source)); +} +function useCloned(source, options = {}) { + const cloned = ref({}); + const { + manual, + clone = cloneFnJSON, + // watch options + deep = true, + immediate = true + } = options; + function sync() { + cloned.value = clone(toValue(source)); + } + if (!manual && isRef(source)) { + watch(source, sync, __spreadProps$9(__spreadValues$l({}, options), { + deep, + immediate + })); + } else { + sync(); + } + return { cloned, sync }; +} + +const _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; +const globalKey = "__vueuse_ssr_handlers__"; +const handlers = /* @__PURE__ */ getHandlers(); +function getHandlers() { + if (!(globalKey in _global)) + _global[globalKey] = _global[globalKey] || {}; + return _global[globalKey]; +} +function getSSRHandler(key, fallback) { + return handlers[key] || fallback; +} +function setSSRHandler(key, fn) { + handlers[key] = fn; +} + +function guessSerializerType(rawInit) { + return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any"; +} + +var __defProp$k = Object.defineProperty; +var __getOwnPropSymbols$n = Object.getOwnPropertySymbols; +var __hasOwnProp$n = Object.prototype.hasOwnProperty; +var __propIsEnum$n = Object.prototype.propertyIsEnumerable; +var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$k = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$n.call(b, prop)) + __defNormalProp$k(a, prop, b[prop]); + if (__getOwnPropSymbols$n) + for (var prop of __getOwnPropSymbols$n(b)) { + if (__propIsEnum$n.call(b, prop)) + __defNormalProp$k(a, prop, b[prop]); + } + return a; +}; +const StorageSerializers = { + boolean: { + read: (v) => v === "true", + write: (v) => String(v) + }, + object: { + read: (v) => JSON.parse(v), + write: (v) => JSON.stringify(v) + }, + number: { + read: (v) => Number.parseFloat(v), + write: (v) => String(v) + }, + any: { + read: (v) => v, + write: (v) => String(v) + }, + string: { + read: (v) => v, + write: (v) => String(v) + }, + map: { + read: (v) => new Map(JSON.parse(v)), + write: (v) => JSON.stringify(Array.from(v.entries())) + }, + set: { + read: (v) => new Set(JSON.parse(v)), + write: (v) => JSON.stringify(Array.from(v)) + }, + date: { + read: (v) => new Date(v), + write: (v) => v.toISOString() + } +}; +const customStorageEventName = "vueuse-storage"; +function useStorage(key, defaults, storage, options = {}) { + var _a; + const { + flush = "pre", + deep = true, + listenToStorageChanges = true, + writeDefaults = true, + mergeDefaults = false, + shallow, + window = defaultWindow, + eventFilter, + onError = (e) => { + console.error(e); + } + } = options; + const data = (shallow ? shallowRef : ref)(defaults); + if (!storage) { + try { + storage = getSSRHandler("getDefaultStorage", () => { + var _a2; + return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage; + })(); + } catch (e) { + onError(e); + } + } + if (!storage) + return data; + const rawInit = toValue(defaults); + const type = guessSerializerType(rawInit); + const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type]; + const { pause: pauseWatch, resume: resumeWatch } = pausableWatch( + data, + () => write(data.value), + { flush, deep, eventFilter } + ); + if (window && listenToStorageChanges) { + useEventListener(window, "storage", update); + useEventListener(window, customStorageEventName, updateFromCustomEvent); + } + update(); + return data; + function write(v) { + try { + if (v == null) { + storage.removeItem(key); + } else { + const serialized = serializer.write(v); + const oldValue = storage.getItem(key); + if (oldValue !== serialized) { + storage.setItem(key, serialized); + if (window) { + window.dispatchEvent(new CustomEvent(customStorageEventName, { + detail: { + key, + oldValue, + newValue: serialized, + storageArea: storage + } + })); + } + } + } + } catch (e) { + onError(e); + } + } + function read(event) { + const rawValue = event ? event.newValue : storage.getItem(key); + if (rawValue == null) { + if (writeDefaults && rawInit !== null) + storage.setItem(key, serializer.write(rawInit)); + return rawInit; + } else if (!event && mergeDefaults) { + const value = serializer.read(rawValue); + if (typeof mergeDefaults === "function") + return mergeDefaults(value, rawInit); + else if (type === "object" && !Array.isArray(value)) + return __spreadValues$k(__spreadValues$k({}, rawInit), value); + return value; + } else if (typeof rawValue !== "string") { + return rawValue; + } else { + return serializer.read(rawValue); + } + } + function updateFromCustomEvent(event) { + update(event.detail); + } + function update(event) { + if (event && event.storageArea !== storage) + return; + if (event && event.key == null) { + data.value = rawInit; + return; + } + if (event && event.key !== key) + return; + pauseWatch(); + try { + data.value = read(event); + } catch (e) { + onError(e); + } finally { + if (event) + nextTick(resumeWatch); + else + resumeWatch(); + } + } +} + +function usePreferredDark(options) { + return useMediaQuery("(prefers-color-scheme: dark)", options); +} + +var __defProp$j = Object.defineProperty; +var __getOwnPropSymbols$m = Object.getOwnPropertySymbols; +var __hasOwnProp$m = Object.prototype.hasOwnProperty; +var __propIsEnum$m = Object.prototype.propertyIsEnumerable; +var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$j = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$m.call(b, prop)) + __defNormalProp$j(a, prop, b[prop]); + if (__getOwnPropSymbols$m) + for (var prop of __getOwnPropSymbols$m(b)) { + if (__propIsEnum$m.call(b, prop)) + __defNormalProp$j(a, prop, b[prop]); + } + return a; +}; +function useColorMode(options = {}) { + const { + selector = "html", + attribute = "class", + initialValue = "auto", + window = defaultWindow, + storage, + storageKey = "vueuse-color-scheme", + listenToStorageChanges = true, + storageRef, + emitAuto, + disableTransition = true + } = options; + const modes = __spreadValues$j({ + auto: "", + light: "light", + dark: "dark" + }, options.modes || {}); + const preferredDark = usePreferredDark({ window }); + const system = computed(() => preferredDark.value ? "dark" : "light"); + const store = storageRef || (storageKey == null ? toRef(initialValue) : useStorage(storageKey, initialValue, storage, { window, listenToStorageChanges })); + const state = computed( + () => store.value === "auto" ? system.value : store.value + ); + const updateHTMLAttrs = getSSRHandler( + "updateHTMLAttrs", + (selector2, attribute2, value) => { + const el = typeof selector2 === "string" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2); + if (!el) + return; + let style; + if (disableTransition) { + style = window.document.createElement("style"); + style.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")); + window.document.head.appendChild(style); + } + if (attribute2 === "class") { + const current = value.split(/\s/g); + Object.values(modes).flatMap((i) => (i || "").split(/\s/g)).filter(Boolean).forEach((v) => { + if (current.includes(v)) + el.classList.add(v); + else + el.classList.remove(v); + }); + } else { + el.setAttribute(attribute2, value); + } + if (disableTransition) { + window.getComputedStyle(style).opacity; + document.head.removeChild(style); + } + } + ); + function defaultOnChanged(mode) { + var _a; + updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode); + } + function onChanged(mode) { + if (options.onChanged) + options.onChanged(mode, defaultOnChanged); + else + defaultOnChanged(mode); + } + watch(state, onChanged, { flush: "post", immediate: true }); + tryOnMounted(() => onChanged(state.value)); + const auto = computed({ + get() { + return emitAuto ? store.value : state.value; + }, + set(v) { + store.value = v; + } + }); + try { + return Object.assign(auto, { store, system, state }); + } catch (e) { + return auto; + } +} + +function useConfirmDialog(revealed = ref(false)) { + const confirmHook = createEventHook(); + const cancelHook = createEventHook(); + const revealHook = createEventHook(); + let _resolve = noop; + const reveal = (data) => { + revealHook.trigger(data); + revealed.value = true; + return new Promise((resolve) => { + _resolve = resolve; + }); + }; + const confirm = (data) => { + revealed.value = false; + confirmHook.trigger(data); + _resolve({ data, isCanceled: false }); + }; + const cancel = (data) => { + revealed.value = false; + cancelHook.trigger(data); + _resolve({ data, isCanceled: true }); + }; + return { + isRevealed: computed(() => revealed.value), + reveal, + confirm, + cancel, + onReveal: revealHook.on, + onConfirm: confirmHook.on, + onCancel: cancelHook.on + }; +} + +var __getOwnPropSymbols$l = Object.getOwnPropertySymbols; +var __hasOwnProp$l = Object.prototype.hasOwnProperty; +var __propIsEnum$l = Object.prototype.propertyIsEnumerable; +var __objRest$3 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$l) + for (var prop of __getOwnPropSymbols$l(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function useMutationObserver(target, callback, options = {}) { + const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$3(_a, ["window"]); + let observer; + const isSupported = useSupported(() => window && "MutationObserver" in window); + const cleanup = () => { + if (observer) { + observer.disconnect(); + observer = void 0; + } + }; + const stopWatch = watch( + () => unrefElement(target), + (el) => { + cleanup(); + if (isSupported.value && window && el) { + observer = new MutationObserver(callback); + observer.observe(el, mutationOptions); + } + }, + { immediate: true } + ); + const stop = () => { + cleanup(); + stopWatch(); + }; + tryOnScopeDispose(stop); + return { + isSupported, + stop + }; +} + +function useCssVar(prop, target, options = {}) { + const { window = defaultWindow, initialValue = "", observe = false } = options; + const variable = ref(initialValue); + const elRef = computed(() => { + var _a; + return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement); + }); + function updateCssVar() { + var _a; + const key = toValue(prop); + const el = toValue(elRef); + if (el && window) { + const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim(); + variable.value = value || initialValue; + } + } + if (observe) { + useMutationObserver(elRef, updateCssVar, { + attributes: true, + window + }); + } + watch( + [elRef, () => toValue(prop)], + updateCssVar, + { immediate: true } + ); + watch( + variable, + (val) => { + var _a; + if ((_a = elRef.value) == null ? void 0 : _a.style) + elRef.value.style.setProperty(toValue(prop), val); + } + ); + return variable; +} + +function useCurrentElement() { + const vm = getCurrentInstance(); + const currentElement = computedWithControl( + () => null, + () => vm.proxy.$el + ); + onUpdated(currentElement.trigger); + onMounted(currentElement.trigger); + return currentElement; +} + +function useCycleList(list, options) { + const state = shallowRef(getInitialValue()); + const listRef = toRef(list); + const index = computed({ + get() { + var _a; + const targetList = listRef.value; + let index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value); + if (index2 < 0) + index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0; + return index2; + }, + set(v) { + set(v); + } + }); + function set(i) { + const targetList = listRef.value; + const length = targetList.length; + const index2 = (i % length + length) % length; + const value = targetList[index2]; + state.value = value; + return value; + } + function shift(delta = 1) { + return set(index.value + delta); + } + function next(n = 1) { + return shift(n); + } + function prev(n = 1) { + return shift(-n); + } + function getInitialValue() { + var _a, _b; + return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0; + } + watch(listRef, () => set(index.value)); + return { + state, + index, + next, + prev + }; +} + +var __defProp$i = Object.defineProperty; +var __defProps$8 = Object.defineProperties; +var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$k = Object.getOwnPropertySymbols; +var __hasOwnProp$k = Object.prototype.hasOwnProperty; +var __propIsEnum$k = Object.prototype.propertyIsEnumerable; +var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$i = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$k.call(b, prop)) + __defNormalProp$i(a, prop, b[prop]); + if (__getOwnPropSymbols$k) + for (var prop of __getOwnPropSymbols$k(b)) { + if (__propIsEnum$k.call(b, prop)) + __defNormalProp$i(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b)); +function useDark(options = {}) { + const { + valueDark = "dark", + valueLight = "" + } = options; + const mode = useColorMode(__spreadProps$8(__spreadValues$i({}, options), { + onChanged: (mode2, defaultHandler) => { + var _a; + if (options.onChanged) + (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === "dark", defaultHandler, mode2); + else + defaultHandler(mode2); + }, + modes: { + dark: valueDark, + light: valueLight + } + })); + const isDark = computed({ + get() { + return mode.value === "dark"; + }, + set(v) { + const modeVal = v ? "dark" : "light"; + if (mode.system.value === modeVal) + mode.value = "auto"; + else + mode.value = modeVal; + } + }); + return isDark; +} + +function fnBypass(v) { + return v; +} +function fnSetSource(source, value) { + return source.value = value; +} +function defaultDump(clone) { + return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass; +} +function defaultParse(clone) { + return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass; +} +function useManualRefHistory(source, options = {}) { + const { + clone = false, + dump = defaultDump(clone), + parse = defaultParse(clone), + setSource = fnSetSource + } = options; + function _createHistoryRecord() { + return markRaw({ + snapshot: dump(source.value), + timestamp: timestamp() + }); + } + const last = ref(_createHistoryRecord()); + const undoStack = ref([]); + const redoStack = ref([]); + const _setSource = (record) => { + setSource(source, parse(record.snapshot)); + last.value = record; + }; + const commit = () => { + undoStack.value.unshift(last.value); + last.value = _createHistoryRecord(); + if (options.capacity && undoStack.value.length > options.capacity) + undoStack.value.splice(options.capacity, Infinity); + if (redoStack.value.length) + redoStack.value.splice(0, redoStack.value.length); + }; + const clear = () => { + undoStack.value.splice(0, undoStack.value.length); + redoStack.value.splice(0, redoStack.value.length); + }; + const undo = () => { + const state = undoStack.value.shift(); + if (state) { + redoStack.value.unshift(last.value); + _setSource(state); + } + }; + const redo = () => { + const state = redoStack.value.shift(); + if (state) { + undoStack.value.unshift(last.value); + _setSource(state); + } + }; + const reset = () => { + _setSource(last.value); + }; + const history = computed(() => [last.value, ...undoStack.value]); + const canUndo = computed(() => undoStack.value.length > 0); + const canRedo = computed(() => redoStack.value.length > 0); + return { + source, + undoStack, + redoStack, + last, + history, + canUndo, + canRedo, + clear, + commit, + reset, + undo, + redo + }; +} + +var __defProp$h = Object.defineProperty; +var __defProps$7 = Object.defineProperties; +var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$j = Object.getOwnPropertySymbols; +var __hasOwnProp$j = Object.prototype.hasOwnProperty; +var __propIsEnum$j = Object.prototype.propertyIsEnumerable; +var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$h = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$j.call(b, prop)) + __defNormalProp$h(a, prop, b[prop]); + if (__getOwnPropSymbols$j) + for (var prop of __getOwnPropSymbols$j(b)) { + if (__propIsEnum$j.call(b, prop)) + __defNormalProp$h(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b)); +function useRefHistory(source, options = {}) { + const { + deep = false, + flush = "pre", + eventFilter + } = options; + const { + eventFilter: composedFilter, + pause, + resume: resumeTracking, + isActive: isTracking + } = pausableFilter(eventFilter); + const { + ignoreUpdates, + ignorePrevAsyncUpdates, + stop + } = watchIgnorable( + source, + commit, + { deep, flush, eventFilter: composedFilter } + ); + function setSource(source2, value) { + ignorePrevAsyncUpdates(); + ignoreUpdates(() => { + source2.value = value; + }); + } + const manualHistory = useManualRefHistory(source, __spreadProps$7(__spreadValues$h({}, options), { clone: options.clone || deep, setSource })); + const { clear, commit: manualCommit } = manualHistory; + function commit() { + ignorePrevAsyncUpdates(); + manualCommit(); + } + function resume(commitNow) { + resumeTracking(); + if (commitNow) + commit(); + } + function batch(fn) { + let canceled = false; + const cancel = () => canceled = true; + ignoreUpdates(() => { + fn(cancel); + }); + if (!canceled) + commit(); + } + function dispose() { + stop(); + clear(); + } + return __spreadProps$7(__spreadValues$h({}, manualHistory), { + isTracking, + pause, + resume, + commit, + batch, + dispose + }); +} + +var __defProp$g = Object.defineProperty; +var __defProps$6 = Object.defineProperties; +var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$i = Object.getOwnPropertySymbols; +var __hasOwnProp$i = Object.prototype.hasOwnProperty; +var __propIsEnum$i = Object.prototype.propertyIsEnumerable; +var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$g = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$i.call(b, prop)) + __defNormalProp$g(a, prop, b[prop]); + if (__getOwnPropSymbols$i) + for (var prop of __getOwnPropSymbols$i(b)) { + if (__propIsEnum$i.call(b, prop)) + __defNormalProp$g(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b)); +function useDebouncedRefHistory(source, options = {}) { + const filter = options.debounce ? debounceFilter(options.debounce) : void 0; + const history = useRefHistory(source, __spreadProps$6(__spreadValues$g({}, options), { eventFilter: filter })); + return __spreadValues$g({}, history); +} + +function useDeviceMotion(options = {}) { + const { + window = defaultWindow, + eventFilter = bypassFilter + } = options; + const acceleration = ref({ x: null, y: null, z: null }); + const rotationRate = ref({ alpha: null, beta: null, gamma: null }); + const interval = ref(0); + const accelerationIncludingGravity = ref({ + x: null, + y: null, + z: null + }); + if (window) { + const onDeviceMotion = createFilterWrapper( + eventFilter, + (event) => { + acceleration.value = event.acceleration; + accelerationIncludingGravity.value = event.accelerationIncludingGravity; + rotationRate.value = event.rotationRate; + interval.value = event.interval; + } + ); + useEventListener(window, "devicemotion", onDeviceMotion); + } + return { + acceleration, + accelerationIncludingGravity, + rotationRate, + interval + }; +} + +function useDeviceOrientation(options = {}) { + const { window = defaultWindow } = options; + const isSupported = useSupported(() => window && "DeviceOrientationEvent" in window); + const isAbsolute = ref(false); + const alpha = ref(null); + const beta = ref(null); + const gamma = ref(null); + if (window && isSupported.value) { + useEventListener(window, "deviceorientation", (event) => { + isAbsolute.value = event.absolute; + alpha.value = event.alpha; + beta.value = event.beta; + gamma.value = event.gamma; + }); + } + return { + isSupported, + isAbsolute, + alpha, + beta, + gamma + }; +} + +function useDevicePixelRatio({ + window = defaultWindow +} = {}) { + const pixelRatio = ref(1); + if (window) { + let observe = function() { + pixelRatio.value = window.devicePixelRatio; + cleanup(); + media = window.matchMedia(`(resolution: ${pixelRatio.value}dppx)`); + media.addEventListener("change", observe, { once: true }); + }, cleanup = function() { + media == null ? void 0 : media.removeEventListener("change", observe); + }; + let media; + observe(); + tryOnScopeDispose(cleanup); + } + return { pixelRatio }; +} + +function usePermission(permissionDesc, options = {}) { + const { + controls = false, + navigator = defaultNavigator + } = options; + const isSupported = useSupported(() => navigator && "permissions" in navigator); + let permissionStatus; + const desc = typeof permissionDesc === "string" ? { name: permissionDesc } : permissionDesc; + const state = ref(); + const onChange = () => { + if (permissionStatus) + state.value = permissionStatus.state; + }; + const query = createSingletonPromise(async () => { + if (!isSupported.value) + return; + if (!permissionStatus) { + try { + permissionStatus = await navigator.permissions.query(desc); + useEventListener(permissionStatus, "change", onChange); + onChange(); + } catch (e) { + state.value = "prompt"; + } + } + return permissionStatus; + }); + query(); + if (controls) { + return { + state, + isSupported, + query + }; + } else { + return state; + } +} + +function useDevicesList(options = {}) { + const { + navigator = defaultNavigator, + requestPermissions = false, + constraints = { audio: true, video: true }, + onUpdated + } = options; + const devices = ref([]); + const videoInputs = computed(() => devices.value.filter((i) => i.kind === "videoinput")); + const audioInputs = computed(() => devices.value.filter((i) => i.kind === "audioinput")); + const audioOutputs = computed(() => devices.value.filter((i) => i.kind === "audiooutput")); + const isSupported = useSupported(() => navigator && navigator.mediaDevices && navigator.mediaDevices.enumerateDevices); + const permissionGranted = ref(false); + let stream; + async function update() { + if (!isSupported.value) + return; + devices.value = await navigator.mediaDevices.enumerateDevices(); + onUpdated == null ? void 0 : onUpdated(devices.value); + if (stream) { + stream.getTracks().forEach((t) => t.stop()); + stream = null; + } + } + async function ensurePermissions() { + if (!isSupported.value) + return false; + if (permissionGranted.value) + return true; + const { state, query } = usePermission("camera", { controls: true }); + await query(); + if (state.value !== "granted") { + stream = await navigator.mediaDevices.getUserMedia(constraints); + update(); + permissionGranted.value = true; + } else { + permissionGranted.value = true; + } + return permissionGranted.value; + } + if (isSupported.value) { + if (requestPermissions) + ensurePermissions(); + useEventListener(navigator.mediaDevices, "devicechange", update); + update(); + } + return { + devices, + ensurePermissions, + permissionGranted, + videoInputs, + audioInputs, + audioOutputs, + isSupported + }; +} + +function useDisplayMedia(options = {}) { + var _a; + const enabled = ref((_a = options.enabled) != null ? _a : false); + const video = options.video; + const audio = options.audio; + const { navigator = defaultNavigator } = options; + const isSupported = useSupported(() => { + var _a2; + return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getDisplayMedia; + }); + const constraint = { audio, video }; + const stream = shallowRef(); + async function _start() { + if (!isSupported.value || stream.value) + return; + stream.value = await navigator.mediaDevices.getDisplayMedia(constraint); + return stream.value; + } + async function _stop() { + var _a2; + (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop()); + stream.value = void 0; + } + function stop() { + _stop(); + enabled.value = false; + } + async function start() { + await _start(); + if (stream.value) + enabled.value = true; + return stream.value; + } + watch( + enabled, + (v) => { + if (v) + _start(); + else + _stop(); + }, + { immediate: true } + ); + return { + isSupported, + stream, + start, + stop, + enabled + }; +} + +function useDocumentVisibility({ document = defaultDocument } = {}) { + if (!document) + return ref("visible"); + const visibility = ref(document.visibilityState); + useEventListener(document, "visibilitychange", () => { + visibility.value = document.visibilityState; + }); + return visibility; +} + +var __defProp$f = Object.defineProperty; +var __defProps$5 = Object.defineProperties; +var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$h = Object.getOwnPropertySymbols; +var __hasOwnProp$h = Object.prototype.hasOwnProperty; +var __propIsEnum$h = Object.prototype.propertyIsEnumerable; +var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$f = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$h.call(b, prop)) + __defNormalProp$f(a, prop, b[prop]); + if (__getOwnPropSymbols$h) + for (var prop of __getOwnPropSymbols$h(b)) { + if (__propIsEnum$h.call(b, prop)) + __defNormalProp$f(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b)); +function useDraggable(target, options = {}) { + var _a, _b; + const { + pointerTypes, + preventDefault, + stopPropagation, + exact, + onMove, + onEnd, + onStart, + initialValue, + axis = "both", + draggingElement = defaultWindow, + handle: draggingHandle = target + } = options; + const position = ref( + (_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 } + ); + const pressedDelta = ref(); + const filterEvent = (e) => { + if (pointerTypes) + return pointerTypes.includes(e.pointerType); + return true; + }; + const handleEvent = (e) => { + if (toValue(preventDefault)) + e.preventDefault(); + if (toValue(stopPropagation)) + e.stopPropagation(); + }; + const start = (e) => { + if (!filterEvent(e)) + return; + if (toValue(exact) && e.target !== toValue(target)) + return; + const rect = toValue(target).getBoundingClientRect(); + const pos = { + x: e.clientX - rect.left, + y: e.clientY - rect.top + }; + if ((onStart == null ? void 0 : onStart(pos, e)) === false) + return; + pressedDelta.value = pos; + handleEvent(e); + }; + const move = (e) => { + if (!filterEvent(e)) + return; + if (!pressedDelta.value) + return; + let { x, y } = position.value; + if (axis === "x" || axis === "both") + x = e.clientX - pressedDelta.value.x; + if (axis === "y" || axis === "both") + y = e.clientY - pressedDelta.value.y; + position.value = { + x, + y + }; + onMove == null ? void 0 : onMove(position.value, e); + handleEvent(e); + }; + const end = (e) => { + if (!filterEvent(e)) + return; + if (!pressedDelta.value) + return; + pressedDelta.value = void 0; + onEnd == null ? void 0 : onEnd(position.value, e); + handleEvent(e); + }; + if (isClient) { + const config = { capture: (_b = options.capture) != null ? _b : true }; + useEventListener(draggingHandle, "pointerdown", start, config); + useEventListener(draggingElement, "pointermove", move, config); + useEventListener(draggingElement, "pointerup", end, config); + } + return __spreadProps$5(__spreadValues$f({}, toRefs(position)), { + position, + isDragging: computed(() => !!pressedDelta.value), + style: computed( + () => `left:${position.value.x}px;top:${position.value.y}px;` + ) + }); +} + +function useDropZone(target, onDrop) { + const isOverDropZone = ref(false); + let counter = 0; + if (isClient) { + useEventListener(target, "dragenter", (event) => { + event.preventDefault(); + counter += 1; + isOverDropZone.value = true; + }); + useEventListener(target, "dragover", (event) => { + event.preventDefault(); + }); + useEventListener(target, "dragleave", (event) => { + event.preventDefault(); + counter -= 1; + if (counter === 0) + isOverDropZone.value = false; + }); + useEventListener(target, "drop", (event) => { + var _a, _b; + event.preventDefault(); + counter = 0; + isOverDropZone.value = false; + const files = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []); + onDrop == null ? void 0 : onDrop(files.length === 0 ? null : files); + }); + } + return { + isOverDropZone + }; +} + +var __getOwnPropSymbols$g = Object.getOwnPropertySymbols; +var __hasOwnProp$g = Object.prototype.hasOwnProperty; +var __propIsEnum$g = Object.prototype.propertyIsEnumerable; +var __objRest$2 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$g) + for (var prop of __getOwnPropSymbols$g(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function useResizeObserver(target, callback, options = {}) { + const _a = options, { window = defaultWindow } = _a, observerOptions = __objRest$2(_a, ["window"]); + let observer; + const isSupported = useSupported(() => window && "ResizeObserver" in window); + const cleanup = () => { + if (observer) { + observer.disconnect(); + observer = void 0; + } + }; + const targets = computed( + () => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)] + ); + const stopWatch = watch( + targets, + (els) => { + cleanup(); + if (isSupported.value && window) { + observer = new ResizeObserver(callback); + for (const _el of els) + _el && observer.observe(_el, observerOptions); + } + }, + { immediate: true, flush: "post", deep: true } + ); + const stop = () => { + cleanup(); + stopWatch(); + }; + tryOnScopeDispose(stop); + return { + isSupported, + stop + }; +} + +function useElementBounding(target, options = {}) { + const { + reset = true, + windowResize = true, + windowScroll = true, + immediate = true + } = options; + const height = ref(0); + const bottom = ref(0); + const left = ref(0); + const right = ref(0); + const top = ref(0); + const width = ref(0); + const x = ref(0); + const y = ref(0); + function update() { + const el = unrefElement(target); + if (!el) { + if (reset) { + height.value = 0; + bottom.value = 0; + left.value = 0; + right.value = 0; + top.value = 0; + width.value = 0; + x.value = 0; + y.value = 0; + } + return; + } + const rect = el.getBoundingClientRect(); + height.value = rect.height; + bottom.value = rect.bottom; + left.value = rect.left; + right.value = rect.right; + top.value = rect.top; + width.value = rect.width; + x.value = rect.x; + y.value = rect.y; + } + useResizeObserver(target, update); + watch(() => unrefElement(target), (ele) => !ele && update()); + if (windowScroll) + useEventListener("scroll", update, { capture: true, passive: true }); + if (windowResize) + useEventListener("resize", update, { passive: true }); + tryOnMounted(() => { + if (immediate) + update(); + }); + return { + height, + bottom, + left, + right, + top, + width, + x, + y, + update + }; +} + +var __defProp$e = Object.defineProperty; +var __getOwnPropSymbols$f = Object.getOwnPropertySymbols; +var __hasOwnProp$f = Object.prototype.hasOwnProperty; +var __propIsEnum$f = Object.prototype.propertyIsEnumerable; +var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$e = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$f.call(b, prop)) + __defNormalProp$e(a, prop, b[prop]); + if (__getOwnPropSymbols$f) + for (var prop of __getOwnPropSymbols$f(b)) { + if (__propIsEnum$f.call(b, prop)) + __defNormalProp$e(a, prop, b[prop]); + } + return a; +}; +function useElementByPoint(options) { + const element = ref(null); + const { x, y, document = defaultDocument } = options; + const controls = useRafFn(() => { + element.value = (document == null ? void 0 : document.elementFromPoint(toValue(x), toValue(y))) || null; + }); + return __spreadValues$e({ + element + }, controls); +} + +function useElementHover(el, options = {}) { + const { + delayEnter = 0, + delayLeave = 0, + window = defaultWindow + } = options; + const isHovered = ref(false); + let timer; + const toggle = (entering) => { + const delay = entering ? delayEnter : delayLeave; + if (timer) { + clearTimeout(timer); + timer = void 0; + } + if (delay) + timer = setTimeout(() => isHovered.value = entering, delay); + else + isHovered.value = entering; + }; + if (!window) + return isHovered; + useEventListener(el, "mouseenter", () => toggle(true), { passive: true }); + useEventListener(el, "mouseleave", () => toggle(false), { passive: true }); + return isHovered; +} + +function useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) { + const { window = defaultWindow, box = "content-box" } = options; + const isSVG = computed(() => { + var _a, _b; + return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg"); + }); + const width = ref(initialSize.width); + const height = ref(initialSize.height); + useResizeObserver( + target, + ([entry]) => { + const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize; + if (window && isSVG.value) { + const $elem = unrefElement(target); + if ($elem) { + const styles = window.getComputedStyle($elem); + width.value = parseFloat(styles.width); + height.value = parseFloat(styles.height); + } + } else { + if (boxSize) { + const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize]; + width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0); + height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0); + } else { + width.value = entry.contentRect.width; + height.value = entry.contentRect.height; + } + } + }, + options + ); + watch( + () => unrefElement(target), + (ele) => { + width.value = ele ? initialSize.width : 0; + height.value = ele ? initialSize.height : 0; + } + ); + return { + width, + height + }; +} + +function useIntersectionObserver(target, callback, options = {}) { + const { + root, + rootMargin = "0px", + threshold = 0.1, + window = defaultWindow, + immediate = true + } = options; + const isSupported = useSupported(() => window && "IntersectionObserver" in window); + const targets = computed(() => { + const _target = toValue(target); + return (Array.isArray(_target) ? _target : [_target]).map(unrefElement).filter(notNullish); + }); + let cleanup = noop; + const isActive = ref(immediate); + const stopWatch = isSupported.value ? watch( + () => [targets.value, unrefElement(root), isActive.value], + ([targets2, root2]) => { + cleanup(); + if (!isActive.value) + return; + if (!targets2.length) + return; + const observer = new IntersectionObserver( + callback, + { + root: unrefElement(root2), + rootMargin, + threshold + } + ); + targets2.forEach((el) => el && observer.observe(el)); + cleanup = () => { + observer.disconnect(); + cleanup = noop; + }; + }, + { immediate, flush: "post" } + ) : noop; + const stop = () => { + cleanup(); + stopWatch(); + isActive.value = false; + }; + tryOnScopeDispose(stop); + return { + isSupported, + isActive, + pause() { + cleanup(); + isActive.value = false; + }, + resume() { + isActive.value = true; + }, + stop + }; +} + +function useElementVisibility(element, { window = defaultWindow, scrollTarget } = {}) { + const elementIsVisible = ref(false); + useIntersectionObserver( + element, + ([{ isIntersecting }]) => { + elementIsVisible.value = isIntersecting; + }, + { + root: scrollTarget, + window + } + ); + return elementIsVisible; +} + +const events = /* @__PURE__ */ new Map(); + +function useEventBus(key) { + const scope = getCurrentScope(); + function on(listener) { + var _a; + const listeners = events.get(key) || /* @__PURE__ */ new Set(); + listeners.add(listener); + events.set(key, listeners); + const _off = () => off(listener); + (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off); + return _off; + } + function once(listener) { + function _listener(...args) { + off(_listener); + listener(...args); + } + return on(_listener); + } + function off(listener) { + const listeners = events.get(key); + if (!listeners) + return; + listeners.delete(listener); + if (!listeners.size) + reset(); + } + function reset() { + events.delete(key); + } + function emit(event, payload) { + var _a; + (_a = events.get(key)) == null ? void 0 : _a.forEach((v) => v(event, payload)); + } + return { on, once, off, emit, reset }; +} + +function useEventSource(url, events = [], options = {}) { + const event = ref(null); + const data = ref(null); + const status = ref("CONNECTING"); + const eventSource = ref(null); + const error = shallowRef(null); + const { + withCredentials = false + } = options; + const close = () => { + if (eventSource.value) { + eventSource.value.close(); + eventSource.value = null; + status.value = "CLOSED"; + } + }; + const es = new EventSource(url, { withCredentials }); + eventSource.value = es; + es.onopen = () => { + status.value = "OPEN"; + error.value = null; + }; + es.onerror = (e) => { + status.value = "CLOSED"; + error.value = e; + }; + es.onmessage = (e) => { + event.value = null; + data.value = e.data; + }; + for (const event_name of events) { + useEventListener(es, event_name, (e) => { + event.value = event_name; + data.value = e.data || null; + }); + } + tryOnScopeDispose(() => { + close(); + }); + return { + eventSource, + event, + data, + status, + error, + close + }; +} + +function useEyeDropper(options = {}) { + const { initialValue = "" } = options; + const isSupported = useSupported(() => typeof window !== "undefined" && "EyeDropper" in window); + const sRGBHex = ref(initialValue); + async function open(openOptions) { + if (!isSupported.value) + return; + const eyeDropper = new window.EyeDropper(); + const result = await eyeDropper.open(openOptions); + sRGBHex.value = result.sRGBHex; + return result; + } + return { isSupported, sRGBHex, open }; +} + +function useFavicon(newIcon = null, options = {}) { + const { + baseUrl = "", + rel = "icon", + document = defaultDocument + } = options; + const favicon = toRef(newIcon); + const applyIcon = (icon) => { + document == null ? void 0 : document.head.querySelectorAll(`link[rel*="${rel}"]`).forEach((el) => el.href = `${baseUrl}${icon}`); + }; + watch( + favicon, + (i, o) => { + if (typeof i === "string" && i !== o) + applyIcon(i); + }, + { immediate: true } + ); + return favicon; +} + +var __defProp$d = Object.defineProperty; +var __defProps$4 = Object.defineProperties; +var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$e = Object.getOwnPropertySymbols; +var __hasOwnProp$e = Object.prototype.hasOwnProperty; +var __propIsEnum$e = Object.prototype.propertyIsEnumerable; +var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$d = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$e.call(b, prop)) + __defNormalProp$d(a, prop, b[prop]); + if (__getOwnPropSymbols$e) + for (var prop of __getOwnPropSymbols$e(b)) { + if (__propIsEnum$e.call(b, prop)) + __defNormalProp$d(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b)); +const payloadMapping = { + json: "application/json", + text: "text/plain" +}; +function isFetchOptions(obj) { + return obj && containsProp(obj, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch"); +} +function isAbsoluteURL(url) { + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +} +function headersToObject(headers) { + if (typeof Headers !== "undefined" && headers instanceof Headers) + return Object.fromEntries([...headers.entries()]); + return headers; +} +function combineCallbacks(combination, ...callbacks) { + if (combination === "overwrite") { + return async (ctx) => { + const callback = callbacks[callbacks.length - 1]; + if (callback) + return __spreadValues$d(__spreadValues$d({}, ctx), await callback(ctx)); + return ctx; + }; + } else { + return async (ctx) => { + for (const callback of callbacks) { + if (callback) + ctx = __spreadValues$d(__spreadValues$d({}, ctx), await callback(ctx)); + } + return ctx; + }; + } +} +function createFetch(config = {}) { + const _combination = config.combination || "chain"; + const _options = config.options || {}; + const _fetchOptions = config.fetchOptions || {}; + function useFactoryFetch(url, ...args) { + const computedUrl = computed(() => { + const baseUrl = toValue(config.baseUrl); + const targetUrl = toValue(url); + return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl; + }); + let options = _options; + let fetchOptions = _fetchOptions; + if (args.length > 0) { + if (isFetchOptions(args[0])) { + options = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, options), args[0]), { + beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch), + afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch), + onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError) + }); + } else { + fetchOptions = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, fetchOptions), args[0]), { + headers: __spreadValues$d(__spreadValues$d({}, headersToObject(fetchOptions.headers) || {}), headersToObject(args[0].headers) || {}) + }); + } + } + if (args.length > 1 && isFetchOptions(args[1])) { + options = __spreadProps$4(__spreadValues$d(__spreadValues$d({}, options), args[1]), { + beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch), + afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch), + onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError) + }); + } + return useFetch(computedUrl, fetchOptions, options); + } + return useFactoryFetch; +} +function useFetch(url, ...args) { + var _a; + const supportsAbort = typeof AbortController === "function"; + let fetchOptions = {}; + let options = { immediate: true, refetch: false, timeout: 0 }; + const config = { + method: "GET", + type: "text", + payload: void 0 + }; + if (args.length > 0) { + if (isFetchOptions(args[0])) + options = __spreadValues$d(__spreadValues$d({}, options), args[0]); + else + fetchOptions = args[0]; + } + if (args.length > 1) { + if (isFetchOptions(args[1])) + options = __spreadValues$d(__spreadValues$d({}, options), args[1]); + } + const { + fetch = (_a = defaultWindow) == null ? void 0 : _a.fetch, + initialData, + timeout + } = options; + const responseEvent = createEventHook(); + const errorEvent = createEventHook(); + const finallyEvent = createEventHook(); + const isFinished = ref(false); + const isFetching = ref(false); + const aborted = ref(false); + const statusCode = ref(null); + const response = shallowRef(null); + const error = shallowRef(null); + const data = shallowRef(initialData || null); + const canAbort = computed(() => supportsAbort && isFetching.value); + let controller; + let timer; + const abort = () => { + if (supportsAbort) { + controller == null ? void 0 : controller.abort(); + controller = new AbortController(); + controller.signal.onabort = () => aborted.value = true; + fetchOptions = __spreadProps$4(__spreadValues$d({}, fetchOptions), { + signal: controller.signal + }); + } + }; + const loading = (isLoading) => { + isFetching.value = isLoading; + isFinished.value = !isLoading; + }; + if (timeout) + timer = useTimeoutFn(abort, timeout, { immediate: false }); + const execute = async (throwOnFailed = false) => { + var _a2; + abort(); + loading(true); + error.value = null; + statusCode.value = null; + aborted.value = false; + const defaultFetchOptions = { + method: config.method, + headers: {} + }; + if (config.payload) { + const headers = headersToObject(defaultFetchOptions.headers); + if (config.payloadType) + headers["Content-Type"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType; + const payload = toValue(config.payload); + defaultFetchOptions.body = config.payloadType === "json" ? JSON.stringify(payload) : payload; + } + let isCanceled = false; + const context = { + url: toValue(url), + options: __spreadValues$d(__spreadValues$d({}, defaultFetchOptions), fetchOptions), + cancel: () => { + isCanceled = true; + } + }; + if (options.beforeFetch) + Object.assign(context, await options.beforeFetch(context)); + if (isCanceled || !fetch) { + loading(false); + return Promise.resolve(null); + } + let responseData = null; + if (timer) + timer.start(); + return new Promise((resolve, reject) => { + var _a3; + fetch( + context.url, + __spreadProps$4(__spreadValues$d(__spreadValues$d({}, defaultFetchOptions), context.options), { + headers: __spreadValues$d(__spreadValues$d({}, headersToObject(defaultFetchOptions.headers)), headersToObject((_a3 = context.options) == null ? void 0 : _a3.headers)) + }) + ).then(async (fetchResponse) => { + response.value = fetchResponse; + statusCode.value = fetchResponse.status; + responseData = await fetchResponse[config.type](); + if (!fetchResponse.ok) { + data.value = initialData || null; + throw new Error(fetchResponse.statusText); + } + if (options.afterFetch) + ({ data: responseData } = await options.afterFetch({ data: responseData, response: fetchResponse })); + data.value = responseData; + responseEvent.trigger(fetchResponse); + return resolve(fetchResponse); + }).catch(async (fetchError) => { + let errorData = fetchError.message || fetchError.name; + if (options.onFetchError) + ({ error: errorData } = await options.onFetchError({ data: responseData, error: fetchError, response: response.value })); + error.value = errorData; + errorEvent.trigger(fetchError); + if (throwOnFailed) + return reject(fetchError); + return resolve(null); + }).finally(() => { + loading(false); + if (timer) + timer.stop(); + finallyEvent.trigger(null); + }); + }); + }; + const refetch = toRef(options.refetch); + watch( + [ + refetch, + toRef(url) + ], + ([refetch2]) => refetch2 && execute(), + { deep: true } + ); + const shell = { + isFinished, + statusCode, + response, + error, + data, + isFetching, + canAbort, + aborted, + abort, + execute, + onFetchResponse: responseEvent.on, + onFetchError: errorEvent.on, + onFetchFinally: finallyEvent.on, + // method + get: setMethod("GET"), + put: setMethod("PUT"), + post: setMethod("POST"), + delete: setMethod("DELETE"), + patch: setMethod("PATCH"), + head: setMethod("HEAD"), + options: setMethod("OPTIONS"), + // type + json: setType("json"), + text: setType("text"), + blob: setType("blob"), + arrayBuffer: setType("arrayBuffer"), + formData: setType("formData") + }; + function setMethod(method) { + return (payload, payloadType) => { + if (!isFetching.value) { + config.method = method; + config.payload = payload; + config.payloadType = payloadType; + if (isRef(config.payload)) { + watch( + [ + refetch, + toRef(config.payload) + ], + ([refetch2]) => refetch2 && execute(), + { deep: true } + ); + } + const rawPayload = toValue(config.payload); + if (!payloadType && rawPayload && Object.getPrototypeOf(rawPayload) === Object.prototype && !(rawPayload instanceof FormData)) + config.payloadType = "json"; + return __spreadProps$4(__spreadValues$d({}, shell), { + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }); + } + return void 0; + }; + } + function waitUntilFinished() { + return new Promise((resolve, reject) => { + until(isFinished).toBe(true).then(() => resolve(shell)).catch((error2) => reject(error2)); + }); + } + function setType(type) { + return () => { + if (!isFetching.value) { + config.type = type; + return __spreadProps$4(__spreadValues$d({}, shell), { + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }); + } + return void 0; + }; + } + if (options.immediate) + Promise.resolve().then(() => execute()); + return __spreadProps$4(__spreadValues$d({}, shell), { + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }); +} +function joinPaths(start, end) { + if (!start.endsWith("/") && !end.startsWith("/")) + return `${start}/${end}`; + return `${start}${end}`; +} + +var __defProp$c = Object.defineProperty; +var __getOwnPropSymbols$d = Object.getOwnPropertySymbols; +var __hasOwnProp$d = Object.prototype.hasOwnProperty; +var __propIsEnum$d = Object.prototype.propertyIsEnumerable; +var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$c = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$d.call(b, prop)) + __defNormalProp$c(a, prop, b[prop]); + if (__getOwnPropSymbols$d) + for (var prop of __getOwnPropSymbols$d(b)) { + if (__propIsEnum$d.call(b, prop)) + __defNormalProp$c(a, prop, b[prop]); + } + return a; +}; +const DEFAULT_OPTIONS = { + multiple: true, + accept: "*" +}; +function useFileDialog(options = {}) { + const { + document = defaultDocument + } = options; + const files = ref(null); + const { on: onChange, trigger } = createEventHook(); + let input; + if (document) { + input = document.createElement("input"); + input.type = "file"; + input.onchange = (event) => { + const result = event.target; + files.value = result.files; + trigger(files.value); + }; + } + const open = (localOptions) => { + if (!input) + return; + const _options = __spreadValues$c(__spreadValues$c(__spreadValues$c({}, DEFAULT_OPTIONS), options), localOptions); + input.multiple = _options.multiple; + input.accept = _options.accept; + if (hasOwn(_options, "capture")) + input.capture = _options.capture; + input.click(); + }; + const reset = () => { + files.value = null; + if (input) + input.value = ""; + }; + return { + files: readonly(files), + open, + reset, + onChange + }; +} + +var __defProp$b = Object.defineProperty; +var __getOwnPropSymbols$c = Object.getOwnPropertySymbols; +var __hasOwnProp$c = Object.prototype.hasOwnProperty; +var __propIsEnum$c = Object.prototype.propertyIsEnumerable; +var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$b = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$c.call(b, prop)) + __defNormalProp$b(a, prop, b[prop]); + if (__getOwnPropSymbols$c) + for (var prop of __getOwnPropSymbols$c(b)) { + if (__propIsEnum$c.call(b, prop)) + __defNormalProp$b(a, prop, b[prop]); + } + return a; +}; +function useFileSystemAccess(options = {}) { + const { + window: _window = defaultWindow, + dataType = "Text" + } = options; + const window = _window; + const isSupported = useSupported(() => window && "showSaveFilePicker" in window && "showOpenFilePicker" in window); + const fileHandle = ref(); + const data = ref(); + const file = ref(); + const fileName = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : ""; + }); + const fileMIME = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : ""; + }); + const fileSize = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0; + }); + const fileLastModified = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0; + }); + async function open(_options = {}) { + if (!isSupported.value) + return; + const [handle] = await window.showOpenFilePicker(__spreadValues$b(__spreadValues$b({}, toValue(options)), _options)); + fileHandle.value = handle; + await updateFile(); + await updateData(); + } + async function create(_options = {}) { + if (!isSupported.value) + return; + fileHandle.value = await window.showSaveFilePicker(__spreadValues$b(__spreadValues$b({}, options), _options)); + data.value = void 0; + await updateFile(); + await updateData(); + } + async function save(_options = {}) { + if (!isSupported.value) + return; + if (!fileHandle.value) + return saveAs(_options); + if (data.value) { + const writableStream = await fileHandle.value.createWritable(); + await writableStream.write(data.value); + await writableStream.close(); + } + await updateFile(); + } + async function saveAs(_options = {}) { + if (!isSupported.value) + return; + fileHandle.value = await window.showSaveFilePicker(__spreadValues$b(__spreadValues$b({}, options), _options)); + if (data.value) { + const writableStream = await fileHandle.value.createWritable(); + await writableStream.write(data.value); + await writableStream.close(); + } + await updateFile(); + } + async function updateFile() { + var _a; + file.value = await ((_a = fileHandle.value) == null ? void 0 : _a.getFile()); + } + async function updateData() { + var _a, _b; + const type = toValue(dataType); + if (type === "Text") + data.value = await ((_a = file.value) == null ? void 0 : _a.text()); + else if (type === "ArrayBuffer") + data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer()); + else if (type === "Blob") + data.value = file.value; + } + watch(() => toValue(dataType), updateData); + return { + isSupported, + data, + file, + fileName, + fileMIME, + fileSize, + fileLastModified, + open, + create, + save, + saveAs, + updateData + }; +} + +function useFocus(target, options = {}) { + const { initialValue = false } = options; + const innerFocused = ref(false); + const targetElement = computed(() => unrefElement(target)); + useEventListener(targetElement, "focus", () => innerFocused.value = true); + useEventListener(targetElement, "blur", () => innerFocused.value = false); + const focused = computed({ + get: () => innerFocused.value, + set(value) { + var _a, _b; + if (!value && innerFocused.value) + (_a = targetElement.value) == null ? void 0 : _a.blur(); + else if (value && !innerFocused.value) + (_b = targetElement.value) == null ? void 0 : _b.focus(); + } + }); + watch( + targetElement, + () => { + focused.value = initialValue; + }, + { immediate: true, flush: "post" } + ); + return { focused }; +} + +function useFocusWithin(target, options = {}) { + const activeElement = useActiveElement(options); + const targetElement = computed(() => unrefElement(target)); + const focused = computed(() => targetElement.value && activeElement.value ? targetElement.value.contains(activeElement.value) : false); + return { focused }; +} + +function useFps(options) { + var _a; + const fps = ref(0); + if (typeof performance === "undefined") + return fps; + const every = (_a = options == null ? void 0 : options.every) != null ? _a : 10; + let last = performance.now(); + let ticks = 0; + useRafFn(() => { + ticks += 1; + if (ticks >= every) { + const now = performance.now(); + const diff = now - last; + fps.value = Math.round(1e3 / (diff / ticks)); + last = now; + ticks = 0; + } + }); + return fps; +} + +const eventHandlers = [ + "fullscreenchange", + "webkitfullscreenchange", + "webkitendfullscreen", + "mozfullscreenchange", + "MSFullscreenChange" +]; +function useFullscreen(target, options = {}) { + const { + document = defaultDocument, + autoExit = false + } = options; + const targetRef = computed(() => { + var _a; + return (_a = unrefElement(target)) != null ? _a : document == null ? void 0 : document.querySelector("html"); + }); + const isFullscreen = ref(false); + const requestMethod = computed(() => { + return [ + "requestFullscreen", + "webkitRequestFullscreen", + "webkitEnterFullscreen", + "webkitEnterFullScreen", + "webkitRequestFullScreen", + "mozRequestFullScreen", + "msRequestFullscreen" + ].find((m) => document && m in document || targetRef.value && m in targetRef.value); + }); + const exitMethod = computed(() => { + return [ + "exitFullscreen", + "webkitExitFullscreen", + "webkitExitFullScreen", + "webkitCancelFullScreen", + "mozCancelFullScreen", + "msExitFullscreen" + ].find((m) => document && m in document || targetRef.value && m in targetRef.value); + }); + const fullscreenEnabled = computed(() => { + return [ + "fullScreen", + "webkitIsFullScreen", + "webkitDisplayingFullscreen", + "mozFullScreen", + "msFullscreenElement" + ].find((m) => document && m in document || targetRef.value && m in targetRef.value); + }); + const fullscreenElementMethod = [ + "fullscreenElement", + "webkitFullscreenElement", + "mozFullScreenElement", + "msFullscreenElement" + ].find((m) => document && m in document); + const isSupported = useSupported( + () => targetRef.value && document && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0 + ); + const isCurrentElementFullScreen = () => { + if (fullscreenElementMethod) + return (document == null ? void 0 : document[fullscreenElementMethod]) === targetRef.value; + return false; + }; + const isElementFullScreen = () => { + if (fullscreenEnabled.value) { + if (document && document[fullscreenEnabled.value] != null) { + return document[fullscreenEnabled.value]; + } else { + const target2 = targetRef.value; + if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) { + return Boolean(target2[fullscreenEnabled.value]); + } + } + } + return false; + }; + async function exit() { + if (!isSupported.value) + return; + if (exitMethod.value) { + if ((document == null ? void 0 : document[exitMethod.value]) != null) { + await document[exitMethod.value](); + } else { + const target2 = targetRef.value; + if ((target2 == null ? void 0 : target2[exitMethod.value]) != null) + await target2[exitMethod.value](); + } + } + isFullscreen.value = false; + } + async function enter() { + if (!isSupported.value) + return; + if (isElementFullScreen()) + await exit(); + const target2 = targetRef.value; + if (requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null) { + await target2[requestMethod.value](); + isFullscreen.value = true; + } + } + async function toggle() { + await (isFullscreen.value ? exit() : enter()); + } + const handlerCallback = () => { + const isElementFullScreenValue = isElementFullScreen(); + if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen()) + isFullscreen.value = isElementFullScreenValue; + }; + useEventListener(document, eventHandlers, handlerCallback, false); + useEventListener(() => unrefElement(targetRef), eventHandlers, handlerCallback, false); + if (autoExit) + tryOnScopeDispose(exit); + return { + isSupported, + isFullscreen, + enter, + exit, + toggle + }; +} + +function mapGamepadToXbox360Controller(gamepad) { + return computed(() => { + if (gamepad.value) { + return { + buttons: { + a: gamepad.value.buttons[0], + b: gamepad.value.buttons[1], + x: gamepad.value.buttons[2], + y: gamepad.value.buttons[3] + }, + bumper: { + left: gamepad.value.buttons[4], + right: gamepad.value.buttons[5] + }, + triggers: { + left: gamepad.value.buttons[6], + right: gamepad.value.buttons[7] + }, + stick: { + left: { + horizontal: gamepad.value.axes[0], + vertical: gamepad.value.axes[1], + button: gamepad.value.buttons[10] + }, + right: { + horizontal: gamepad.value.axes[2], + vertical: gamepad.value.axes[3], + button: gamepad.value.buttons[11] + } + }, + dpad: { + up: gamepad.value.buttons[12], + down: gamepad.value.buttons[13], + left: gamepad.value.buttons[14], + right: gamepad.value.buttons[15] + }, + back: gamepad.value.buttons[8], + start: gamepad.value.buttons[9] + }; + } + return null; + }); +} +function useGamepad(options = {}) { + const { + navigator = defaultNavigator + } = options; + const isSupported = useSupported(() => navigator && "getGamepads" in navigator); + const gamepads = ref([]); + const onConnectedHook = createEventHook(); + const onDisconnectedHook = createEventHook(); + const stateFromGamepad = (gamepad) => { + const hapticActuators = []; + const vibrationActuator = "vibrationActuator" in gamepad ? gamepad.vibrationActuator : null; + if (vibrationActuator) + hapticActuators.push(vibrationActuator); + if (gamepad.hapticActuators) + hapticActuators.push(...gamepad.hapticActuators); + return { + id: gamepad.id, + hapticActuators, + index: gamepad.index, + mapping: gamepad.mapping, + connected: gamepad.connected, + timestamp: gamepad.timestamp, + axes: gamepad.axes.map((axes) => axes), + buttons: gamepad.buttons.map((button) => ({ pressed: button.pressed, touched: button.touched, value: button.value })) + }; + }; + const updateGamepadState = () => { + const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || []; + for (let i = 0; i < _gamepads.length; ++i) { + const gamepad = _gamepads[i]; + if (gamepad) { + const index = gamepads.value.findIndex(({ index: index2 }) => index2 === gamepad.index); + if (index > -1) + gamepads.value[index] = stateFromGamepad(gamepad); + } + } + }; + const { isActive, pause, resume } = useRafFn(updateGamepadState); + const onGamepadConnected = (gamepad) => { + if (!gamepads.value.some(({ index }) => index === gamepad.index)) { + gamepads.value.push(stateFromGamepad(gamepad)); + onConnectedHook.trigger(gamepad.index); + } + resume(); + }; + const onGamepadDisconnected = (gamepad) => { + gamepads.value = gamepads.value.filter((x) => x.index !== gamepad.index); + onDisconnectedHook.trigger(gamepad.index); + }; + useEventListener("gamepadconnected", (e) => onGamepadConnected(e.gamepad)); + useEventListener("gamepaddisconnected", (e) => onGamepadDisconnected(e.gamepad)); + tryOnMounted(() => { + const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || []; + if (_gamepads) { + for (let i = 0; i < _gamepads.length; ++i) { + const gamepad = _gamepads[i]; + if (gamepad) + onGamepadConnected(gamepad); + } + } + }); + pause(); + return { + isSupported, + onConnected: onConnectedHook.on, + onDisconnected: onDisconnectedHook.on, + gamepads, + pause, + resume, + isActive + }; +} + +function useGeolocation(options = {}) { + const { + enableHighAccuracy = true, + maximumAge = 3e4, + timeout = 27e3, + navigator = defaultNavigator, + immediate = true + } = options; + const isSupported = useSupported(() => navigator && "geolocation" in navigator); + const locatedAt = ref(null); + const error = shallowRef(null); + const coords = ref({ + accuracy: 0, + latitude: Infinity, + longitude: Infinity, + altitude: null, + altitudeAccuracy: null, + heading: null, + speed: null + }); + function updatePosition(position) { + locatedAt.value = position.timestamp; + coords.value = position.coords; + error.value = null; + } + let watcher; + function resume() { + if (isSupported.value) { + watcher = navigator.geolocation.watchPosition( + updatePosition, + (err) => error.value = err, + { + enableHighAccuracy, + maximumAge, + timeout + } + ); + } + } + if (immediate) + resume(); + function pause() { + if (watcher && navigator) + navigator.geolocation.clearWatch(watcher); + } + tryOnScopeDispose(() => { + pause(); + }); + return { + isSupported, + coords, + locatedAt, + error, + resume, + pause + }; +} + +const defaultEvents$1 = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"]; +const oneMinute = 6e4; +function useIdle(timeout = oneMinute, options = {}) { + const { + initialState = false, + listenForVisibilityChange = true, + events = defaultEvents$1, + window = defaultWindow, + eventFilter = throttleFilter(50) + } = options; + const idle = ref(initialState); + const lastActive = ref(timestamp()); + let timer; + const reset = () => { + idle.value = false; + clearTimeout(timer); + timer = setTimeout(() => idle.value = true, timeout); + }; + const onEvent = createFilterWrapper( + eventFilter, + () => { + lastActive.value = timestamp(); + reset(); + } + ); + if (window) { + const document = window.document; + for (const event of events) + useEventListener(window, event, onEvent, { passive: true }); + if (listenForVisibilityChange) { + useEventListener(document, "visibilitychange", () => { + if (!document.hidden) + onEvent(); + }); + } + reset(); + } + return { + idle, + lastActive, + reset + }; +} + +var __defProp$a = Object.defineProperty; +var __getOwnPropSymbols$b = Object.getOwnPropertySymbols; +var __hasOwnProp$b = Object.prototype.hasOwnProperty; +var __propIsEnum$b = Object.prototype.propertyIsEnumerable; +var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$a = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$b.call(b, prop)) + __defNormalProp$a(a, prop, b[prop]); + if (__getOwnPropSymbols$b) + for (var prop of __getOwnPropSymbols$b(b)) { + if (__propIsEnum$b.call(b, prop)) + __defNormalProp$a(a, prop, b[prop]); + } + return a; +}; +async function loadImage(options) { + return new Promise((resolve, reject) => { + const img = new Image(); + const { src, srcset, sizes, class: clazz, loading, crossorigin } = options; + img.src = src; + if (srcset) + img.srcset = srcset; + if (sizes) + img.sizes = sizes; + if (clazz) + img.className = clazz; + if (loading) + img.loading = loading; + if (crossorigin) + img.crossOrigin = crossorigin; + img.onload = () => resolve(img); + img.onerror = reject; + }); +} +function useImage(options, asyncStateOptions = {}) { + const state = useAsyncState( + () => loadImage(toValue(options)), + void 0, + __spreadValues$a({ + resetOnExecute: true + }, asyncStateOptions) + ); + watch( + () => toValue(options), + () => state.execute(asyncStateOptions.delay), + { deep: true } + ); + return state; +} + +const ARRIVED_STATE_THRESHOLD_PIXELS = 1; +function useScroll(element, options = {}) { + const { + throttle = 0, + idle = 200, + onStop = noop, + onScroll = noop, + offset = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }, + eventListenerOptions = { + capture: false, + passive: true + }, + behavior = "auto" + } = options; + const internalX = ref(0); + const internalY = ref(0); + const x = computed({ + get() { + return internalX.value; + }, + set(x2) { + scrollTo(x2, void 0); + } + }); + const y = computed({ + get() { + return internalY.value; + }, + set(y2) { + scrollTo(void 0, y2); + } + }); + function scrollTo(_x, _y) { + var _a, _b, _c; + const _element = toValue(element); + if (!_element) + return; + (_c = _element instanceof Document ? document.body : _element) == null ? void 0 : _c.scrollTo({ + top: (_a = toValue(_y)) != null ? _a : y.value, + left: (_b = toValue(_x)) != null ? _b : x.value, + behavior: toValue(behavior) + }); + } + const isScrolling = ref(false); + const arrivedState = reactive({ + left: true, + right: false, + top: true, + bottom: false + }); + const directions = reactive({ + left: false, + right: false, + top: false, + bottom: false + }); + const onScrollEnd = (e) => { + if (!isScrolling.value) + return; + isScrolling.value = false; + directions.left = false; + directions.right = false; + directions.top = false; + directions.bottom = false; + onStop(e); + }; + const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle); + const setArrivedState = (target) => { + const el = target === document ? target.documentElement : target; + const { display, flexDirection } = getComputedStyle(el); + const scrollLeft = el.scrollLeft; + directions.left = scrollLeft < internalX.value; + directions.right = scrollLeft > internalX.value; + const left = Math.abs(scrollLeft) <= 0 + (offset.left || 0); + const right = Math.abs(scrollLeft) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS; + if (display === "flex" && flexDirection === "row-reverse") { + arrivedState.left = right; + arrivedState.right = left; + } else { + arrivedState.left = left; + arrivedState.right = right; + } + internalX.value = scrollLeft; + let scrollTop = el.scrollTop; + if (target === document && !scrollTop) + scrollTop = document.body.scrollTop; + directions.top = scrollTop < internalY.value; + directions.bottom = scrollTop > internalY.value; + const top = Math.abs(scrollTop) <= 0 + (offset.top || 0); + const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS; + if (display === "flex" && flexDirection === "column-reverse") { + arrivedState.top = bottom; + arrivedState.bottom = top; + } else { + arrivedState.top = top; + arrivedState.bottom = bottom; + } + internalY.value = scrollTop; + }; + const onScrollHandler = (e) => { + const eventTarget = e.target === document ? e.target.documentElement : e.target; + setArrivedState(eventTarget); + isScrolling.value = true; + onScrollEndDebounced(e); + onScroll(e); + }; + useEventListener( + element, + "scroll", + throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler, + eventListenerOptions + ); + useEventListener( + element, + "scrollend", + onScrollEnd, + eventListenerOptions + ); + return { + x, + y, + isScrolling, + arrivedState, + directions, + measure() { + const _element = toValue(element); + if (_element) + setArrivedState(_element); + } + }; +} + +var __defProp$9 = Object.defineProperty; +var __defProps$3 = Object.defineProperties; +var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$a = Object.getOwnPropertySymbols; +var __hasOwnProp$a = Object.prototype.hasOwnProperty; +var __propIsEnum$a = Object.prototype.propertyIsEnumerable; +var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$9 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$a.call(b, prop)) + __defNormalProp$9(a, prop, b[prop]); + if (__getOwnPropSymbols$a) + for (var prop of __getOwnPropSymbols$a(b)) { + if (__propIsEnum$a.call(b, prop)) + __defNormalProp$9(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b)); +function useInfiniteScroll(element, onLoadMore, options = {}) { + var _a; + const { + direction = "bottom", + interval = 100 + } = options; + const state = reactive(useScroll( + element, + __spreadProps$3(__spreadValues$9({}, options), { + offset: __spreadValues$9({ + [direction]: (_a = options.distance) != null ? _a : 0 + }, options.offset) + }) + )); + const promise = ref(); + const isLoading = computed(() => !!promise.value); + function checkAndLoad() { + state.measure(); + const el = toValue(element); + if (!el) + return; + const isNarrower = direction === "bottom" || direction === "top" ? el.scrollHeight <= el.clientHeight : el.scrollWidth <= el.clientWidth; + if (state.arrivedState[direction] || isNarrower) { + if (!promise.value) { + promise.value = Promise.all([ + onLoadMore(state), + new Promise((resolve) => setTimeout(resolve, interval)) + ]).finally(() => { + promise.value = null; + nextTick(() => checkAndLoad()); + }); + } + } + } + watch( + () => [state.arrivedState[direction], toValue(element)], + checkAndLoad, + { immediate: true } + ); + return { + isLoading + }; +} + +const defaultEvents = ["mousedown", "mouseup", "keydown", "keyup"]; +function useKeyModifier(modifier, options = {}) { + const { + events = defaultEvents, + document = defaultDocument, + initial = null + } = options; + const state = ref(initial); + if (document) { + events.forEach((listenerEvent) => { + useEventListener(document, listenerEvent, (evt) => { + if (typeof evt.getModifierState === "function") + state.value = evt.getModifierState(modifier); + }); + }); + } + return state; +} + +function useLocalStorage(key, initialValue, options = {}) { + const { window = defaultWindow } = options; + return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options); +} + +const DefaultMagicKeysAliasMap = { + ctrl: "control", + command: "meta", + cmd: "meta", + option: "alt", + up: "arrowup", + down: "arrowdown", + left: "arrowleft", + right: "arrowright" +}; + +function useMagicKeys(options = {}) { + const { + reactive: useReactive = false, + target = defaultWindow, + aliasMap = DefaultMagicKeysAliasMap, + passive = true, + onEventFired = noop + } = options; + const current = reactive(/* @__PURE__ */ new Set()); + const obj = { + toJSON() { + return {}; + }, + current + }; + const refs = useReactive ? reactive(obj) : obj; + const metaDeps = /* @__PURE__ */ new Set(); + const usedKeys = /* @__PURE__ */ new Set(); + function setRefs(key, value) { + if (key in refs) { + if (useReactive) + refs[key] = value; + else + refs[key].value = value; + } + } + function reset() { + current.clear(); + for (const key of usedKeys) + setRefs(key, false); + } + function updateRefs(e, value) { + var _a, _b; + const key = (_a = e.key) == null ? void 0 : _a.toLowerCase(); + const code = (_b = e.code) == null ? void 0 : _b.toLowerCase(); + const values = [code, key].filter(Boolean); + if (key) { + if (value) + current.add(key); + else + current.delete(key); + } + for (const key2 of values) { + usedKeys.add(key2); + setRefs(key2, value); + } + if (key === "meta" && !value) { + metaDeps.forEach((key2) => { + current.delete(key2); + setRefs(key2, false); + }); + metaDeps.clear(); + } else if (typeof e.getModifierState === "function" && e.getModifierState("Meta") && value) { + [...current, ...values].forEach((key2) => metaDeps.add(key2)); + } + } + useEventListener(target, "keydown", (e) => { + updateRefs(e, true); + return onEventFired(e); + }, { passive }); + useEventListener(target, "keyup", (e) => { + updateRefs(e, false); + return onEventFired(e); + }, { passive }); + useEventListener("blur", reset, { passive: true }); + useEventListener("focus", reset, { passive: true }); + const proxy = new Proxy( + refs, + { + get(target2, prop, rec) { + if (typeof prop !== "string") + return Reflect.get(target2, prop, rec); + prop = prop.toLowerCase(); + if (prop in aliasMap) + prop = aliasMap[prop]; + if (!(prop in refs)) { + if (/[+_-]/.test(prop)) { + const keys = prop.split(/[+_-]/g).map((i) => i.trim()); + refs[prop] = computed(() => keys.every((key) => toValue(proxy[key]))); + } else { + refs[prop] = ref(false); + } + } + const r = Reflect.get(target2, prop, rec); + return useReactive ? toValue(r) : r; + } + } + ); + return proxy; +} + +var __defProp$8 = Object.defineProperty; +var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols; +var __hasOwnProp$9 = Object.prototype.hasOwnProperty; +var __propIsEnum$9 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$8 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$9.call(b, prop)) + __defNormalProp$8(a, prop, b[prop]); + if (__getOwnPropSymbols$9) + for (var prop of __getOwnPropSymbols$9(b)) { + if (__propIsEnum$9.call(b, prop)) + __defNormalProp$8(a, prop, b[prop]); + } + return a; +}; +function usingElRef(source, cb) { + if (toValue(source)) + cb(toValue(source)); +} +function timeRangeToArray(timeRanges) { + let ranges = []; + for (let i = 0; i < timeRanges.length; ++i) + ranges = [...ranges, [timeRanges.start(i), timeRanges.end(i)]]; + return ranges; +} +function tracksToArray(tracks) { + return Array.from(tracks).map(({ label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }, id) => ({ id, label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType })); +} +const defaultOptions = { + src: "", + tracks: [] +}; +function useMediaControls(target, options = {}) { + options = __spreadValues$8(__spreadValues$8({}, defaultOptions), options); + const { + document = defaultDocument + } = options; + const currentTime = ref(0); + const duration = ref(0); + const seeking = ref(false); + const volume = ref(1); + const waiting = ref(false); + const ended = ref(false); + const playing = ref(false); + const rate = ref(1); + const stalled = ref(false); + const buffered = ref([]); + const tracks = ref([]); + const selectedTrack = ref(-1); + const isPictureInPicture = ref(false); + const muted = ref(false); + const supportsPictureInPicture = document && "pictureInPictureEnabled" in document; + const sourceErrorEvent = createEventHook(); + const disableTrack = (track) => { + usingElRef(target, (el) => { + if (track) { + const id = typeof track === "number" ? track : track.id; + el.textTracks[id].mode = "disabled"; + } else { + for (let i = 0; i < el.textTracks.length; ++i) + el.textTracks[i].mode = "disabled"; + } + selectedTrack.value = -1; + }); + }; + const enableTrack = (track, disableTracks = true) => { + usingElRef(target, (el) => { + const id = typeof track === "number" ? track : track.id; + if (disableTracks) + disableTrack(); + el.textTracks[id].mode = "showing"; + selectedTrack.value = id; + }); + }; + const togglePictureInPicture = () => { + return new Promise((resolve, reject) => { + usingElRef(target, async (el) => { + if (supportsPictureInPicture) { + if (!isPictureInPicture.value) { + el.requestPictureInPicture().then(resolve).catch(reject); + } else { + document.exitPictureInPicture().then(resolve).catch(reject); + } + } + }); + }); + }; + watchEffect(() => { + if (!document) + return; + const el = toValue(target); + if (!el) + return; + const src = toValue(options.src); + let sources = []; + if (!src) + return; + if (typeof src === "string") + sources = [{ src }]; + else if (Array.isArray(src)) + sources = src; + else if (isObject(src)) + sources = [src]; + el.querySelectorAll("source").forEach((e) => { + e.removeEventListener("error", sourceErrorEvent.trigger); + e.remove(); + }); + sources.forEach(({ src: src2, type }) => { + const source = document.createElement("source"); + source.setAttribute("src", src2); + source.setAttribute("type", type || ""); + source.addEventListener("error", sourceErrorEvent.trigger); + el.appendChild(source); + }); + el.load(); + }); + tryOnScopeDispose(() => { + const el = toValue(target); + if (!el) + return; + el.querySelectorAll("source").forEach((e) => e.removeEventListener("error", sourceErrorEvent.trigger)); + }); + watch([target, volume], () => { + const el = toValue(target); + if (!el) + return; + el.volume = volume.value; + }); + watch([target, muted], () => { + const el = toValue(target); + if (!el) + return; + el.muted = muted.value; + }); + watch([target, rate], () => { + const el = toValue(target); + if (!el) + return; + el.playbackRate = rate.value; + }); + watchEffect(() => { + if (!document) + return; + const textTracks = toValue(options.tracks); + const el = toValue(target); + if (!textTracks || !textTracks.length || !el) + return; + el.querySelectorAll("track").forEach((e) => e.remove()); + textTracks.forEach(({ default: isDefault, kind, label, src, srcLang }, i) => { + const track = document.createElement("track"); + track.default = isDefault || false; + track.kind = kind; + track.label = label; + track.src = src; + track.srclang = srcLang; + if (track.default) + selectedTrack.value = i; + el.appendChild(track); + }); + }); + const { ignoreUpdates: ignoreCurrentTimeUpdates } = watchIgnorable(currentTime, (time) => { + const el = toValue(target); + if (!el) + return; + el.currentTime = time; + }); + const { ignoreUpdates: ignorePlayingUpdates } = watchIgnorable(playing, (isPlaying) => { + const el = toValue(target); + if (!el) + return; + isPlaying ? el.play() : el.pause(); + }); + useEventListener(target, "timeupdate", () => ignoreCurrentTimeUpdates(() => currentTime.value = toValue(target).currentTime)); + useEventListener(target, "durationchange", () => duration.value = toValue(target).duration); + useEventListener(target, "progress", () => buffered.value = timeRangeToArray(toValue(target).buffered)); + useEventListener(target, "seeking", () => seeking.value = true); + useEventListener(target, "seeked", () => seeking.value = false); + useEventListener(target, "waiting", () => waiting.value = true); + useEventListener(target, "playing", () => { + waiting.value = false; + ended.value = false; + }); + useEventListener(target, "ratechange", () => rate.value = toValue(target).playbackRate); + useEventListener(target, "stalled", () => stalled.value = true); + useEventListener(target, "ended", () => ended.value = true); + useEventListener(target, "pause", () => ignorePlayingUpdates(() => playing.value = false)); + useEventListener(target, "play", () => ignorePlayingUpdates(() => playing.value = true)); + useEventListener(target, "enterpictureinpicture", () => isPictureInPicture.value = true); + useEventListener(target, "leavepictureinpicture", () => isPictureInPicture.value = false); + useEventListener(target, "volumechange", () => { + const el = toValue(target); + if (!el) + return; + volume.value = el.volume; + muted.value = el.muted; + }); + const listeners = []; + const stop = watch([target], () => { + const el = toValue(target); + if (!el) + return; + stop(); + listeners[0] = useEventListener(el.textTracks, "addtrack", () => tracks.value = tracksToArray(el.textTracks)); + listeners[1] = useEventListener(el.textTracks, "removetrack", () => tracks.value = tracksToArray(el.textTracks)); + listeners[2] = useEventListener(el.textTracks, "change", () => tracks.value = tracksToArray(el.textTracks)); + }); + tryOnScopeDispose(() => listeners.forEach((listener) => listener())); + return { + currentTime, + duration, + waiting, + seeking, + ended, + stalled, + buffered, + playing, + rate, + // Volume + volume, + muted, + // Tracks + tracks, + selectedTrack, + enableTrack, + disableTrack, + // Picture in Picture + supportsPictureInPicture, + togglePictureInPicture, + isPictureInPicture, + // Events + onSourceError: sourceErrorEvent.on + }; +} + +function getMapVue2Compat() { + const data = reactive({}); + return { + get: (key) => data[key], + set: (key, value) => set(data, key, value), + has: (key) => hasOwn(data, key), + delete: (key) => del(data, key), + clear: () => { + Object.keys(data).forEach((key) => { + del(data, key); + }); + } + }; +} +function useMemoize(resolver, options) { + const initCache = () => { + if (options == null ? void 0 : options.cache) + return reactive(options.cache); + if (isVue2) + return getMapVue2Compat(); + return reactive(/* @__PURE__ */ new Map()); + }; + const cache = initCache(); + const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args); + const _loadData = (key, ...args) => { + cache.set(key, resolver(...args)); + return cache.get(key); + }; + const loadData = (...args) => _loadData(generateKey(...args), ...args); + const deleteData = (...args) => { + cache.delete(generateKey(...args)); + }; + const clearData = () => { + cache.clear(); + }; + const memoized = (...args) => { + const key = generateKey(...args); + if (cache.has(key)) + return cache.get(key); + return _loadData(key, ...args); + }; + memoized.load = loadData; + memoized.delete = deleteData; + memoized.clear = clearData; + memoized.generateKey = generateKey; + memoized.cache = cache; + return memoized; +} + +function useMemory(options = {}) { + const memory = ref(); + const isSupported = useSupported(() => typeof performance !== "undefined" && "memory" in performance); + if (isSupported.value) { + const { interval = 1e3 } = options; + useIntervalFn(() => { + memory.value = performance.memory; + }, interval, { immediate: options.immediate, immediateCallback: options.immediateCallback }); + } + return { isSupported, memory }; +} + +const BuiltinExtractors = { + page: (event) => [event.pageX, event.pageY], + client: (event) => [event.clientX, event.clientY], + screen: (event) => [event.screenX, event.screenY], + movement: (event) => event instanceof Touch ? null : [event.movementX, event.movementY] +}; +function useMouse(options = {}) { + const { + type = "page", + touch = true, + resetOnTouchEnds = false, + initialValue = { x: 0, y: 0 }, + window = defaultWindow, + target = window, + eventFilter + } = options; + const x = ref(initialValue.x); + const y = ref(initialValue.y); + const sourceType = ref(null); + const extractor = typeof type === "function" ? type : BuiltinExtractors[type]; + const mouseHandler = (event) => { + const result = extractor(event); + if (result) { + [x.value, y.value] = result; + sourceType.value = "mouse"; + } + }; + const touchHandler = (event) => { + if (event.touches.length > 0) { + const result = extractor(event.touches[0]); + if (result) { + [x.value, y.value] = result; + sourceType.value = "touch"; + } + } + }; + const reset = () => { + x.value = initialValue.x; + y.value = initialValue.y; + }; + const mouseHandlerWrapper = eventFilter ? (event) => eventFilter(() => mouseHandler(event), {}) : (event) => mouseHandler(event); + const touchHandlerWrapper = eventFilter ? (event) => eventFilter(() => touchHandler(event), {}) : (event) => touchHandler(event); + if (target) { + useEventListener(target, "mousemove", mouseHandlerWrapper, { passive: true }); + useEventListener(target, "dragover", mouseHandlerWrapper, { passive: true }); + if (touch && type !== "movement") { + useEventListener(target, "touchstart", touchHandlerWrapper, { passive: true }); + useEventListener(target, "touchmove", touchHandlerWrapper, { passive: true }); + if (resetOnTouchEnds) + useEventListener(target, "touchend", reset, { passive: true }); + } + } + return { + x, + y, + sourceType + }; +} + +function useMouseInElement(target, options = {}) { + const { + handleOutside = true, + window = defaultWindow + } = options; + const { x, y, sourceType } = useMouse(options); + const targetRef = ref(target != null ? target : window == null ? void 0 : window.document.body); + const elementX = ref(0); + const elementY = ref(0); + const elementPositionX = ref(0); + const elementPositionY = ref(0); + const elementHeight = ref(0); + const elementWidth = ref(0); + const isOutside = ref(true); + let stop = () => { + }; + if (window) { + stop = watch( + [targetRef, x, y], + () => { + const el = unrefElement(targetRef); + if (!el) + return; + const { + left, + top, + width, + height + } = el.getBoundingClientRect(); + elementPositionX.value = left + window.pageXOffset; + elementPositionY.value = top + window.pageYOffset; + elementHeight.value = height; + elementWidth.value = width; + const elX = x.value - elementPositionX.value; + const elY = y.value - elementPositionY.value; + isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height; + if (handleOutside || !isOutside.value) { + elementX.value = elX; + elementY.value = elY; + } + }, + { immediate: true } + ); + useEventListener(document, "mouseleave", () => { + isOutside.value = true; + }); + } + return { + x, + y, + sourceType, + elementX, + elementY, + elementPositionX, + elementPositionY, + elementHeight, + elementWidth, + isOutside, + stop + }; +} + +function useMousePressed(options = {}) { + const { + touch = true, + drag = true, + initialValue = false, + window = defaultWindow + } = options; + const pressed = ref(initialValue); + const sourceType = ref(null); + if (!window) { + return { + pressed, + sourceType + }; + } + const onPressed = (srcType) => () => { + pressed.value = true; + sourceType.value = srcType; + }; + const onReleased = () => { + pressed.value = false; + sourceType.value = null; + }; + const target = computed(() => unrefElement(options.target) || window); + useEventListener(target, "mousedown", onPressed("mouse"), { passive: true }); + useEventListener(window, "mouseleave", onReleased, { passive: true }); + useEventListener(window, "mouseup", onReleased, { passive: true }); + if (drag) { + useEventListener(target, "dragstart", onPressed("mouse"), { passive: true }); + useEventListener(window, "drop", onReleased, { passive: true }); + useEventListener(window, "dragend", onReleased, { passive: true }); + } + if (touch) { + useEventListener(target, "touchstart", onPressed("touch"), { passive: true }); + useEventListener(window, "touchend", onReleased, { passive: true }); + useEventListener(window, "touchcancel", onReleased, { passive: true }); + } + return { + pressed, + sourceType + }; +} + +function useNavigatorLanguage(options = {}) { + const { window = defaultWindow } = options; + const navigator = window == null ? void 0 : window.navigator; + const isSupported = useSupported(() => navigator && "language" in navigator); + const language = ref(navigator == null ? void 0 : navigator.language); + useEventListener(window, "languagechange", () => { + if (navigator) + language.value = navigator.language; + }); + return { + isSupported, + language + }; +} + +function useNetwork(options = {}) { + const { window = defaultWindow } = options; + const navigator = window == null ? void 0 : window.navigator; + const isSupported = useSupported(() => navigator && "connection" in navigator); + const isOnline = ref(true); + const saveData = ref(false); + const offlineAt = ref(void 0); + const onlineAt = ref(void 0); + const downlink = ref(void 0); + const downlinkMax = ref(void 0); + const rtt = ref(void 0); + const effectiveType = ref(void 0); + const type = ref("unknown"); + const connection = isSupported.value && navigator.connection; + function updateNetworkInformation() { + if (!navigator) + return; + isOnline.value = navigator.onLine; + offlineAt.value = isOnline.value ? void 0 : Date.now(); + onlineAt.value = isOnline.value ? Date.now() : void 0; + if (connection) { + downlink.value = connection.downlink; + downlinkMax.value = connection.downlinkMax; + effectiveType.value = connection.effectiveType; + rtt.value = connection.rtt; + saveData.value = connection.saveData; + type.value = connection.type; + } + } + if (window) { + useEventListener(window, "offline", () => { + isOnline.value = false; + offlineAt.value = Date.now(); + }); + useEventListener(window, "online", () => { + isOnline.value = true; + onlineAt.value = Date.now(); + }); + } + if (connection) + useEventListener(connection, "change", updateNetworkInformation, false); + updateNetworkInformation(); + return { + isSupported, + isOnline, + saveData, + offlineAt, + onlineAt, + downlink, + downlinkMax, + effectiveType, + rtt, + type + }; +} + +var __defProp$7 = Object.defineProperty; +var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols; +var __hasOwnProp$8 = Object.prototype.hasOwnProperty; +var __propIsEnum$8 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$7 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$8.call(b, prop)) + __defNormalProp$7(a, prop, b[prop]); + if (__getOwnPropSymbols$8) + for (var prop of __getOwnPropSymbols$8(b)) { + if (__propIsEnum$8.call(b, prop)) + __defNormalProp$7(a, prop, b[prop]); + } + return a; +}; +function useNow(options = {}) { + const { + controls: exposeControls = false, + interval = "requestAnimationFrame" + } = options; + const now = ref(/* @__PURE__ */ new Date()); + const update = () => now.value = /* @__PURE__ */ new Date(); + const controls = interval === "requestAnimationFrame" ? useRafFn(update, { immediate: true }) : useIntervalFn(update, interval, { immediate: true }); + if (exposeControls) { + return __spreadValues$7({ + now + }, controls); + } else { + return now; + } +} + +function useObjectUrl(object) { + const url = ref(); + const release = () => { + if (url.value) + URL.revokeObjectURL(url.value); + url.value = void 0; + }; + watch( + () => toValue(object), + (newObject) => { + release(); + if (newObject) + url.value = URL.createObjectURL(newObject); + }, + { immediate: true } + ); + tryOnScopeDispose(release); + return readonly(url); +} + +function useClamp(value, min, max) { + if (typeof value === "function" || isReadonly(value)) + return computed(() => clamp(toValue(value), toValue(min), toValue(max))); + const _value = ref(value); + return computed({ + get() { + return _value.value = clamp(_value.value, toValue(min), toValue(max)); + }, + set(value2) { + _value.value = clamp(value2, toValue(min), toValue(max)); + } + }); +} + +function useOffsetPagination(options) { + const { + total = Infinity, + pageSize = 10, + page = 1, + onPageChange = noop, + onPageSizeChange = noop, + onPageCountChange = noop + } = options; + const currentPageSize = useClamp(pageSize, 1, Infinity); + const pageCount = computed(() => Math.max( + 1, + Math.ceil(toValue(total) / toValue(currentPageSize)) + )); + const currentPage = useClamp(page, 1, pageCount); + const isFirstPage = computed(() => currentPage.value === 1); + const isLastPage = computed(() => currentPage.value === pageCount.value); + if (isRef(page)) + syncRef(page, currentPage); + if (isRef(pageSize)) + syncRef(pageSize, currentPageSize); + function prev() { + currentPage.value--; + } + function next() { + currentPage.value++; + } + const returnValue = { + currentPage, + currentPageSize, + pageCount, + isFirstPage, + isLastPage, + prev, + next + }; + watch(currentPage, () => { + onPageChange(reactive(returnValue)); + }); + watch(currentPageSize, () => { + onPageSizeChange(reactive(returnValue)); + }); + watch(pageCount, () => { + onPageCountChange(reactive(returnValue)); + }); + return returnValue; +} + +function useOnline(options = {}) { + const { isOnline } = useNetwork(options); + return isOnline; +} + +function usePageLeave(options = {}) { + const { window = defaultWindow } = options; + const isLeft = ref(false); + const handler = (event) => { + if (!window) + return; + event = event || window.event; + const from = event.relatedTarget || event.toElement; + isLeft.value = !from; + }; + if (window) { + useEventListener(window, "mouseout", handler, { passive: true }); + useEventListener(window.document, "mouseleave", handler, { passive: true }); + useEventListener(window.document, "mouseenter", handler, { passive: true }); + } + return isLeft; +} + +function useParallax(target, options = {}) { + const { + deviceOrientationTiltAdjust = (i) => i, + deviceOrientationRollAdjust = (i) => i, + mouseTiltAdjust = (i) => i, + mouseRollAdjust = (i) => i, + window = defaultWindow + } = options; + const orientation = reactive(useDeviceOrientation({ window })); + const { + elementX: x, + elementY: y, + elementWidth: width, + elementHeight: height + } = useMouseInElement(target, { handleOutside: false, window }); + const source = computed(() => { + if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0)) + return "deviceOrientation"; + return "mouse"; + }); + const roll = computed(() => { + if (source.value === "deviceOrientation") { + const value = -orientation.beta / 90; + return deviceOrientationRollAdjust(value); + } else { + const value = -(y.value - height.value / 2) / height.value; + return mouseRollAdjust(value); + } + }); + const tilt = computed(() => { + if (source.value === "deviceOrientation") { + const value = orientation.gamma / 90; + return deviceOrientationTiltAdjust(value); + } else { + const value = (x.value - width.value / 2) / width.value; + return mouseTiltAdjust(value); + } + }); + return { roll, tilt, source }; +} + +function useParentElement(element = useCurrentElement()) { + const parentElement = shallowRef(); + const update = () => { + const el = unrefElement(element); + if (el) + parentElement.value = el.parentElement; + }; + tryOnMounted(update); + watch(() => toValue(element), update); + return parentElement; +} + +var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols; +var __hasOwnProp$7 = Object.prototype.hasOwnProperty; +var __propIsEnum$7 = Object.prototype.propertyIsEnumerable; +var __objRest$1 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$7) + for (var prop of __getOwnPropSymbols$7(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function usePerformanceObserver(options, callback) { + const _a = options, { + window = defaultWindow, + immediate = true + } = _a, performanceOptions = __objRest$1(_a, [ + "window", + "immediate" + ]); + const isSupported = useSupported(() => window && "PerformanceObserver" in window); + let observer; + const stop = () => { + observer == null ? void 0 : observer.disconnect(); + }; + const start = () => { + if (isSupported.value) { + stop(); + observer = new PerformanceObserver(callback); + observer.observe(performanceOptions); + } + }; + tryOnScopeDispose(stop); + if (immediate) + start(); + return { + isSupported, + start, + stop + }; +} + +var __defProp$6 = Object.defineProperty; +var __defProps$2 = Object.defineProperties; +var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols; +var __hasOwnProp$6 = Object.prototype.hasOwnProperty; +var __propIsEnum$6 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$6 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$6.call(b, prop)) + __defNormalProp$6(a, prop, b[prop]); + if (__getOwnPropSymbols$6) + for (var prop of __getOwnPropSymbols$6(b)) { + if (__propIsEnum$6.call(b, prop)) + __defNormalProp$6(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b)); +const defaultState = { + x: 0, + y: 0, + pointerId: 0, + pressure: 0, + tiltX: 0, + tiltY: 0, + width: 0, + height: 0, + twist: 0, + pointerType: null +}; +const keys = /* @__PURE__ */ Object.keys(defaultState); +function usePointer(options = {}) { + const { + target = defaultWindow + } = options; + const isInside = ref(false); + const state = ref(options.initialValue || {}); + Object.assign(state.value, defaultState, state.value); + const handler = (event) => { + isInside.value = true; + if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType)) + return; + state.value = objectPick(event, keys, false); + }; + if (target) { + useEventListener(target, "pointerdown", handler, { passive: true }); + useEventListener(target, "pointermove", handler, { passive: true }); + useEventListener(target, "pointerleave", () => isInside.value = false, { passive: true }); + } + return __spreadProps$2(__spreadValues$6({}, toRefs(state)), { + isInside + }); +} + +function usePointerLock(target, options = {}) { + const { document = defaultDocument, pointerLockOptions } = options; + const isSupported = useSupported(() => document && "pointerLockElement" in document); + const element = ref(); + const triggerElement = ref(); + let targetElement; + if (isSupported.value) { + useEventListener(document, "pointerlockchange", () => { + var _a; + const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value; + if (targetElement && currentElement === targetElement) { + element.value = document.pointerLockElement; + if (!element.value) + targetElement = triggerElement.value = null; + } + }); + useEventListener(document, "pointerlockerror", () => { + var _a; + const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value; + if (targetElement && currentElement === targetElement) { + const action = document.pointerLockElement ? "release" : "acquire"; + throw new Error(`Failed to ${action} pointer lock.`); + } + }); + } + async function lock(e, options2) { + var _a; + if (!isSupported.value) + throw new Error("Pointer Lock API is not supported by your browser."); + triggerElement.value = e instanceof Event ? e.currentTarget : null; + targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e); + if (!targetElement) + throw new Error("Target element undefined."); + targetElement.requestPointerLock(options2 != null ? options2 : pointerLockOptions); + return await until(element).toBe(targetElement); + } + async function unlock() { + if (!element.value) + return false; + document.exitPointerLock(); + await until(element).toBeNull(); + return true; + } + return { + isSupported, + element, + triggerElement, + lock, + unlock + }; +} + +function usePointerSwipe(target, options = {}) { + const targetRef = toRef(target); + const { + threshold = 50, + onSwipe, + onSwipeEnd, + onSwipeStart + } = options; + const posStart = reactive({ x: 0, y: 0 }); + const updatePosStart = (x, y) => { + posStart.x = x; + posStart.y = y; + }; + const posEnd = reactive({ x: 0, y: 0 }); + const updatePosEnd = (x, y) => { + posEnd.x = x; + posEnd.y = y; + }; + const distanceX = computed(() => posStart.x - posEnd.x); + const distanceY = computed(() => posStart.y - posEnd.y); + const { max, abs } = Math; + const isThresholdExceeded = computed(() => max(abs(distanceX.value), abs(distanceY.value)) >= threshold); + const isSwiping = ref(false); + const isPointerDown = ref(false); + const direction = computed(() => { + if (!isThresholdExceeded.value) + return "none"; + if (abs(distanceX.value) > abs(distanceY.value)) { + return distanceX.value > 0 ? "left" : "right"; + } else { + return distanceY.value > 0 ? "up" : "down"; + } + }); + const eventIsAllowed = (e) => { + var _a, _b, _c; + const isReleasingButton = e.buttons === 0; + const isPrimaryButton = e.buttons === 1; + return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true; + }; + const stops = [ + useEventListener(target, "pointerdown", (e) => { + var _a, _b; + if (!eventIsAllowed(e)) + return; + isPointerDown.value = true; + (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "none"); + const eventTarget = e.target; + eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId); + const { clientX: x, clientY: y } = e; + updatePosStart(x, y); + updatePosEnd(x, y); + onSwipeStart == null ? void 0 : onSwipeStart(e); + }), + useEventListener(target, "pointermove", (e) => { + if (!eventIsAllowed(e)) + return; + if (!isPointerDown.value) + return; + const { clientX: x, clientY: y } = e; + updatePosEnd(x, y); + if (!isSwiping.value && isThresholdExceeded.value) + isSwiping.value = true; + if (isSwiping.value) + onSwipe == null ? void 0 : onSwipe(e); + }), + useEventListener(target, "pointerup", (e) => { + var _a, _b; + if (!eventIsAllowed(e)) + return; + if (isSwiping.value) + onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value); + isPointerDown.value = false; + isSwiping.value = false; + (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "initial"); + }) + ]; + const stop = () => stops.forEach((s) => s()); + return { + isSwiping: readonly(isSwiping), + direction: readonly(direction), + posStart: readonly(posStart), + posEnd: readonly(posEnd), + distanceX, + distanceY, + stop + }; +} + +function usePreferredColorScheme(options) { + const isLight = useMediaQuery("(prefers-color-scheme: light)", options); + const isDark = useMediaQuery("(prefers-color-scheme: dark)", options); + return computed(() => { + if (isDark.value) + return "dark"; + if (isLight.value) + return "light"; + return "no-preference"; + }); +} + +function usePreferredContrast(options) { + const isMore = useMediaQuery("(prefers-contrast: more)", options); + const isLess = useMediaQuery("(prefers-contrast: less)", options); + const isCustom = useMediaQuery("(prefers-contrast: custom)", options); + return computed(() => { + if (isMore.value) + return "more"; + if (isLess.value) + return "less"; + if (isCustom.value) + return "custom"; + return "no-preference"; + }); +} + +function usePreferredLanguages(options = {}) { + const { window = defaultWindow } = options; + if (!window) + return ref(["en"]); + const navigator = window.navigator; + const value = ref(navigator.languages); + useEventListener(window, "languagechange", () => { + value.value = navigator.languages; + }); + return value; +} + +function usePreferredReducedMotion(options) { + const isReduced = useMediaQuery("(prefers-reduced-motion: reduce)", options); + return computed(() => { + if (isReduced.value) + return "reduce"; + return "no-preference"; + }); +} + +function usePrevious(value, initialValue) { + const previous = shallowRef(initialValue); + watch( + toRef(value), + (_, oldValue) => { + previous.value = oldValue; + }, + { flush: "sync" } + ); + return readonly(previous); +} + +function useScreenOrientation(options = {}) { + const { + window = defaultWindow + } = options; + const isSupported = useSupported(() => window && "screen" in window && "orientation" in window.screen); + const screenOrientation = isSupported.value ? window.screen.orientation : {}; + const orientation = ref(screenOrientation.type); + const angle = ref(screenOrientation.angle || 0); + if (isSupported.value) { + useEventListener(window, "orientationchange", () => { + orientation.value = screenOrientation.type; + angle.value = screenOrientation.angle; + }); + } + const lockOrientation = (type) => { + if (!isSupported.value) + return Promise.reject(new Error("Not supported")); + return screenOrientation.lock(type); + }; + const unlockOrientation = () => { + if (isSupported.value) + screenOrientation.unlock(); + }; + return { + isSupported, + orientation, + angle, + lockOrientation, + unlockOrientation + }; +} + +const topVarName = "--vueuse-safe-area-top"; +const rightVarName = "--vueuse-safe-area-right"; +const bottomVarName = "--vueuse-safe-area-bottom"; +const leftVarName = "--vueuse-safe-area-left"; +function useScreenSafeArea() { + const top = ref(""); + const right = ref(""); + const bottom = ref(""); + const left = ref(""); + if (isClient) { + const topCssVar = useCssVar(topVarName); + const rightCssVar = useCssVar(rightVarName); + const bottomCssVar = useCssVar(bottomVarName); + const leftCssVar = useCssVar(leftVarName); + topCssVar.value = "env(safe-area-inset-top, 0px)"; + rightCssVar.value = "env(safe-area-inset-right, 0px)"; + bottomCssVar.value = "env(safe-area-inset-bottom, 0px)"; + leftCssVar.value = "env(safe-area-inset-left, 0px)"; + update(); + useEventListener("resize", useDebounceFn(update)); + } + function update() { + top.value = getValue(topVarName); + right.value = getValue(rightVarName); + bottom.value = getValue(bottomVarName); + left.value = getValue(leftVarName); + } + return { + top, + right, + bottom, + left, + update + }; +} +function getValue(position) { + return getComputedStyle(document.documentElement).getPropertyValue(position); +} + +function useScriptTag(src, onLoaded = noop, options = {}) { + const { + immediate = true, + manual = false, + type = "text/javascript", + async = true, + crossOrigin, + referrerPolicy, + noModule, + defer, + document = defaultDocument, + attrs = {} + } = options; + const scriptTag = ref(null); + let _promise = null; + const loadScript = (waitForScriptLoad) => new Promise((resolve, reject) => { + const resolveWithElement = (el2) => { + scriptTag.value = el2; + resolve(el2); + return el2; + }; + if (!document) { + resolve(false); + return; + } + let shouldAppend = false; + let el = document.querySelector(`script[src="${toValue(src)}"]`); + if (!el) { + el = document.createElement("script"); + el.type = type; + el.async = async; + el.src = toValue(src); + if (defer) + el.defer = defer; + if (crossOrigin) + el.crossOrigin = crossOrigin; + if (noModule) + el.noModule = noModule; + if (referrerPolicy) + el.referrerPolicy = referrerPolicy; + Object.entries(attrs).forEach(([name, value]) => el == null ? void 0 : el.setAttribute(name, value)); + shouldAppend = true; + } else if (el.hasAttribute("data-loaded")) { + resolveWithElement(el); + } + el.addEventListener("error", (event) => reject(event)); + el.addEventListener("abort", (event) => reject(event)); + el.addEventListener("load", () => { + el.setAttribute("data-loaded", "true"); + onLoaded(el); + resolveWithElement(el); + }); + if (shouldAppend) + el = document.head.appendChild(el); + if (!waitForScriptLoad) + resolveWithElement(el); + }); + const load = (waitForScriptLoad = true) => { + if (!_promise) + _promise = loadScript(waitForScriptLoad); + return _promise; + }; + const unload = () => { + if (!document) + return; + _promise = null; + if (scriptTag.value) + scriptTag.value = null; + const el = document.querySelector(`script[src="${toValue(src)}"]`); + if (el) + document.head.removeChild(el); + }; + if (immediate && !manual) + tryOnMounted(load); + if (!manual) + tryOnUnmounted(unload); + return { scriptTag, load, unload }; +} + +function checkOverflowScroll(ele) { + const style = window.getComputedStyle(ele); + if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientHeight < ele.scrollHeight || style.overflowY === "auto" && ele.clientWidth < ele.scrollWidth) { + return true; + } else { + const parent = ele.parentNode; + if (!parent || parent.tagName === "BODY") + return false; + return checkOverflowScroll(parent); + } +} +function preventDefault(rawEvent) { + const e = rawEvent || window.event; + const _target = e.target; + if (checkOverflowScroll(_target)) + return false; + if (e.touches.length > 1) + return true; + if (e.preventDefault) + e.preventDefault(); + return false; +} +function useScrollLock(element, initialState = false) { + const isLocked = ref(initialState); + let stopTouchMoveListener = null; + let initialOverflow; + watch(toRef(element), (el) => { + if (el) { + const ele = el; + initialOverflow = ele.style.overflow; + if (isLocked.value) + ele.style.overflow = "hidden"; + } + }, { + immediate: true + }); + const lock = () => { + const ele = toValue(element); + if (!ele || isLocked.value) + return; + if (isIOS) { + stopTouchMoveListener = useEventListener( + ele, + "touchmove", + (e) => { + preventDefault(e); + }, + { passive: false } + ); + } + ele.style.overflow = "hidden"; + isLocked.value = true; + }; + const unlock = () => { + const ele = toValue(element); + if (!ele || !isLocked.value) + return; + isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener()); + ele.style.overflow = initialOverflow; + isLocked.value = false; + }; + tryOnScopeDispose(unlock); + return computed({ + get() { + return isLocked.value; + }, + set(v) { + if (v) + lock(); + else + unlock(); + } + }); +} + +function useSessionStorage(key, initialValue, options = {}) { + const { window = defaultWindow } = options; + return useStorage(key, initialValue, window == null ? void 0 : window.sessionStorage, options); +} + +var __defProp$5 = Object.defineProperty; +var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols; +var __hasOwnProp$5 = Object.prototype.hasOwnProperty; +var __propIsEnum$5 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$5 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$5.call(b, prop)) + __defNormalProp$5(a, prop, b[prop]); + if (__getOwnPropSymbols$5) + for (var prop of __getOwnPropSymbols$5(b)) { + if (__propIsEnum$5.call(b, prop)) + __defNormalProp$5(a, prop, b[prop]); + } + return a; +}; +function useShare(shareOptions = {}, options = {}) { + const { navigator = defaultNavigator } = options; + const _navigator = navigator; + const isSupported = useSupported(() => _navigator && "canShare" in _navigator); + const share = async (overrideOptions = {}) => { + if (isSupported.value) { + const data = __spreadValues$5(__spreadValues$5({}, toValue(shareOptions)), toValue(overrideOptions)); + let granted = true; + if (data.files && _navigator.canShare) + granted = _navigator.canShare({ files: data.files }); + if (granted) + return _navigator.share(data); + } + }; + return { + isSupported, + share + }; +} + +const defaultSortFn = (source, compareFn) => source.sort(compareFn); +const defaultCompare = (a, b) => a - b; +function useSorted(...args) { + var _a, _b, _c, _d; + const [source] = args; + let compareFn = defaultCompare; + let options = {}; + if (args.length === 2) { + if (typeof args[1] === "object") { + options = args[1]; + compareFn = (_a = options.compareFn) != null ? _a : defaultCompare; + } else { + compareFn = (_b = args[1]) != null ? _b : defaultCompare; + } + } else if (args.length > 2) { + compareFn = (_c = args[1]) != null ? _c : defaultCompare; + options = (_d = args[2]) != null ? _d : {}; + } + const { + dirty = false, + sortFn = defaultSortFn + } = options; + if (!dirty) + return computed(() => sortFn([...toValue(source)], compareFn)); + watchEffect(() => { + const result = sortFn(toValue(source), compareFn); + if (isRef(source)) + source.value = result; + else + source.splice(0, source.length, ...result); + }); + return source; +} + +function useSpeechRecognition(options = {}) { + const { + interimResults = true, + continuous = true, + window = defaultWindow + } = options; + const lang = toRef(options.lang || "en-US"); + const isListening = ref(false); + const isFinal = ref(false); + const result = ref(""); + const error = shallowRef(void 0); + const toggle = (value = !isListening.value) => { + isListening.value = value; + }; + const start = () => { + isListening.value = true; + }; + const stop = () => { + isListening.value = false; + }; + const SpeechRecognition = window && (window.SpeechRecognition || window.webkitSpeechRecognition); + const isSupported = useSupported(() => SpeechRecognition); + let recognition; + if (isSupported.value) { + recognition = new SpeechRecognition(); + recognition.continuous = continuous; + recognition.interimResults = interimResults; + recognition.lang = toValue(lang); + recognition.onstart = () => { + isFinal.value = false; + }; + watch(lang, (lang2) => { + if (recognition && !isListening.value) + recognition.lang = lang2; + }); + recognition.onresult = (event) => { + const transcript = Array.from(event.results).map((result2) => { + isFinal.value = result2.isFinal; + return result2[0]; + }).map((result2) => result2.transcript).join(""); + result.value = transcript; + error.value = void 0; + }; + recognition.onerror = (event) => { + error.value = event; + }; + recognition.onend = () => { + isListening.value = false; + recognition.lang = toValue(lang); + }; + watch(isListening, () => { + if (isListening.value) + recognition.start(); + else + recognition.stop(); + }); + } + tryOnScopeDispose(() => { + isListening.value = false; + }); + return { + isSupported, + isListening, + isFinal, + recognition, + result, + error, + toggle, + start, + stop + }; +} + +function useSpeechSynthesis(text, options = {}) { + const { + pitch = 1, + rate = 1, + volume = 1, + window = defaultWindow + } = options; + const synth = window && window.speechSynthesis; + const isSupported = useSupported(() => synth); + const isPlaying = ref(false); + const status = ref("init"); + const spokenText = toRef(text || ""); + const lang = toRef(options.lang || "en-US"); + const error = shallowRef(void 0); + const toggle = (value = !isPlaying.value) => { + isPlaying.value = value; + }; + const bindEventsForUtterance = (utterance2) => { + utterance2.lang = toValue(lang); + utterance2.voice = toValue(options.voice) || null; + utterance2.pitch = pitch; + utterance2.rate = rate; + utterance2.volume = volume; + utterance2.onstart = () => { + isPlaying.value = true; + status.value = "play"; + }; + utterance2.onpause = () => { + isPlaying.value = false; + status.value = "pause"; + }; + utterance2.onresume = () => { + isPlaying.value = true; + status.value = "play"; + }; + utterance2.onend = () => { + isPlaying.value = false; + status.value = "end"; + }; + utterance2.onerror = (event) => { + error.value = event; + }; + }; + const utterance = computed(() => { + isPlaying.value = false; + status.value = "init"; + const newUtterance = new SpeechSynthesisUtterance(spokenText.value); + bindEventsForUtterance(newUtterance); + return newUtterance; + }); + const speak = () => { + synth.cancel(); + utterance && synth.speak(utterance.value); + }; + const stop = () => { + synth.cancel(); + isPlaying.value = false; + }; + if (isSupported.value) { + bindEventsForUtterance(utterance.value); + watch(lang, (lang2) => { + if (utterance.value && !isPlaying.value) + utterance.value.lang = lang2; + }); + if (options.voice) { + watch(options.voice, () => { + synth.cancel(); + }); + } + watch(isPlaying, () => { + if (isPlaying.value) + synth.resume(); + else + synth.pause(); + }); + } + tryOnScopeDispose(() => { + isPlaying.value = false; + }); + return { + isSupported, + isPlaying, + status, + utterance, + error, + stop, + toggle, + speak + }; +} + +function useStepper(steps, initialStep) { + const stepsRef = ref(steps); + const stepNames = computed(() => Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value)); + const index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0])); + const current = computed(() => at(index.value)); + const isFirst = computed(() => index.value === 0); + const isLast = computed(() => index.value === stepNames.value.length - 1); + const next = computed(() => stepNames.value[index.value + 1]); + const previous = computed(() => stepNames.value[index.value - 1]); + function at(index2) { + if (Array.isArray(stepsRef.value)) + return stepsRef.value[index2]; + return stepsRef.value[stepNames.value[index2]]; + } + function get(step) { + if (!stepNames.value.includes(step)) + return; + return at(stepNames.value.indexOf(step)); + } + function goTo(step) { + if (stepNames.value.includes(step)) + index.value = stepNames.value.indexOf(step); + } + function goToNext() { + if (isLast.value) + return; + index.value++; + } + function goToPrevious() { + if (isFirst.value) + return; + index.value--; + } + function goBackTo(step) { + if (isAfter(step)) + goTo(step); + } + function isNext(step) { + return stepNames.value.indexOf(step) === index.value + 1; + } + function isPrevious(step) { + return stepNames.value.indexOf(step) === index.value - 1; + } + function isCurrent(step) { + return stepNames.value.indexOf(step) === index.value; + } + function isBefore(step) { + return index.value < stepNames.value.indexOf(step); + } + function isAfter(step) { + return index.value > stepNames.value.indexOf(step); + } + return { + steps: stepsRef, + stepNames, + index, + current, + next, + previous, + isFirst, + isLast, + at, + get, + goTo, + goToNext, + goToPrevious, + goBackTo, + isNext, + isPrevious, + isCurrent, + isBefore, + isAfter + }; +} + +var __defProp$4 = Object.defineProperty; +var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols; +var __hasOwnProp$4 = Object.prototype.hasOwnProperty; +var __propIsEnum$4 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$4 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$4.call(b, prop)) + __defNormalProp$4(a, prop, b[prop]); + if (__getOwnPropSymbols$4) + for (var prop of __getOwnPropSymbols$4(b)) { + if (__propIsEnum$4.call(b, prop)) + __defNormalProp$4(a, prop, b[prop]); + } + return a; +}; +function useStorageAsync(key, initialValue, storage, options = {}) { + var _a; + const { + flush = "pre", + deep = true, + listenToStorageChanges = true, + writeDefaults = true, + mergeDefaults = false, + shallow, + window = defaultWindow, + eventFilter, + onError = (e) => { + console.error(e); + } + } = options; + const rawInit = toValue(initialValue); + const type = guessSerializerType(rawInit); + const data = (shallow ? shallowRef : ref)(initialValue); + const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type]; + if (!storage) { + try { + storage = getSSRHandler("getDefaultStorage", () => { + var _a2; + return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage; + })(); + } catch (e) { + onError(e); + } + } + async function read(event) { + if (!storage || event && event.key !== key) + return; + try { + const rawValue = event ? event.newValue : await storage.getItem(key); + if (rawValue == null) { + data.value = rawInit; + if (writeDefaults && rawInit !== null) + await storage.setItem(key, await serializer.write(rawInit)); + } else if (mergeDefaults) { + const value = await serializer.read(rawValue); + if (typeof mergeDefaults === "function") + data.value = mergeDefaults(value, rawInit); + else if (type === "object" && !Array.isArray(value)) + data.value = __spreadValues$4(__spreadValues$4({}, rawInit), value); + else + data.value = value; + } else { + data.value = await serializer.read(rawValue); + } + } catch (e) { + onError(e); + } + } + read(); + if (window && listenToStorageChanges) + useEventListener(window, "storage", (e) => Promise.resolve().then(() => read(e))); + if (storage) { + watchWithFilter( + data, + async () => { + try { + if (data.value == null) + await storage.removeItem(key); + else + await storage.setItem(key, await serializer.write(data.value)); + } catch (e) { + onError(e); + } + }, + { + flush, + deep, + eventFilter + } + ); + } + return data; +} + +let _id = 0; +function useStyleTag(css, options = {}) { + const isLoaded = ref(false); + const { + document = defaultDocument, + immediate = true, + manual = false, + id = `vueuse_styletag_${++_id}` + } = options; + const cssRef = ref(css); + let stop = () => { + }; + const load = () => { + if (!document) + return; + const el = document.getElementById(id) || document.createElement("style"); + if (!el.isConnected) { + el.type = "text/css"; + el.id = id; + if (options.media) + el.media = options.media; + document.head.appendChild(el); + } + if (isLoaded.value) + return; + stop = watch( + cssRef, + (value) => { + el.textContent = value; + }, + { immediate: true } + ); + isLoaded.value = true; + }; + const unload = () => { + if (!document || !isLoaded.value) + return; + stop(); + document.head.removeChild(document.getElementById(id)); + isLoaded.value = false; + }; + if (immediate && !manual) + tryOnMounted(load); + if (!manual) + tryOnScopeDispose(unload); + return { + id, + css: cssRef, + unload, + load, + isLoaded: readonly(isLoaded) + }; +} + +function useSwipe(target, options = {}) { + const { + threshold = 50, + onSwipe, + onSwipeEnd, + onSwipeStart, + passive = true, + window = defaultWindow + } = options; + const coordsStart = reactive({ x: 0, y: 0 }); + const coordsEnd = reactive({ x: 0, y: 0 }); + const diffX = computed(() => coordsStart.x - coordsEnd.x); + const diffY = computed(() => coordsStart.y - coordsEnd.y); + const { max, abs } = Math; + const isThresholdExceeded = computed(() => max(abs(diffX.value), abs(diffY.value)) >= threshold); + const isSwiping = ref(false); + const direction = computed(() => { + if (!isThresholdExceeded.value) + return "none"; + if (abs(diffX.value) > abs(diffY.value)) { + return diffX.value > 0 ? "left" : "right"; + } else { + return diffY.value > 0 ? "up" : "down"; + } + }); + const getTouchEventCoords = (e) => [e.touches[0].clientX, e.touches[0].clientY]; + const updateCoordsStart = (x, y) => { + coordsStart.x = x; + coordsStart.y = y; + }; + const updateCoordsEnd = (x, y) => { + coordsEnd.x = x; + coordsEnd.y = y; + }; + let listenerOptions; + const isPassiveEventSupported = checkPassiveEventSupport(window == null ? void 0 : window.document); + if (!passive) + listenerOptions = isPassiveEventSupported ? { passive: false, capture: true } : { capture: true }; + else + listenerOptions = isPassiveEventSupported ? { passive: true } : { capture: false }; + const onTouchEnd = (e) => { + if (isSwiping.value) + onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value); + isSwiping.value = false; + }; + const stops = [ + useEventListener(target, "touchstart", (e) => { + if (e.touches.length !== 1) + return; + if (listenerOptions.capture && !listenerOptions.passive) + e.preventDefault(); + const [x, y] = getTouchEventCoords(e); + updateCoordsStart(x, y); + updateCoordsEnd(x, y); + onSwipeStart == null ? void 0 : onSwipeStart(e); + }, listenerOptions), + useEventListener(target, "touchmove", (e) => { + if (e.touches.length !== 1) + return; + const [x, y] = getTouchEventCoords(e); + updateCoordsEnd(x, y); + if (!isSwiping.value && isThresholdExceeded.value) + isSwiping.value = true; + if (isSwiping.value) + onSwipe == null ? void 0 : onSwipe(e); + }, listenerOptions), + useEventListener(target, "touchend", onTouchEnd, listenerOptions), + useEventListener(target, "touchcancel", onTouchEnd, listenerOptions) + ]; + const stop = () => stops.forEach((s) => s()); + return { + isPassiveEventSupported, + isSwiping, + direction, + coordsStart, + coordsEnd, + lengthX: diffX, + lengthY: diffY, + stop + }; +} +function checkPassiveEventSupport(document) { + if (!document) + return false; + let supportsPassive = false; + const optionsBlock = { + get passive() { + supportsPassive = true; + return false; + } + }; + document.addEventListener("x", noop, optionsBlock); + document.removeEventListener("x", noop); + return supportsPassive; +} + +function useTemplateRefsList() { + const refs = ref([]); + refs.value.set = (el) => { + if (el) + refs.value.push(el); + }; + onBeforeUpdate(() => { + refs.value.length = 0; + }); + return refs; +} + +function useTextDirection(options = {}) { + const { + document = defaultDocument, + selector = "html", + observe = false, + initialValue = "ltr" + } = options; + function getValue() { + var _a, _b; + return (_b = (_a = document == null ? void 0 : document.querySelector(selector)) == null ? void 0 : _a.getAttribute("dir")) != null ? _b : initialValue; + } + const dir = ref(getValue()); + tryOnMounted(() => dir.value = getValue()); + if (observe && document) { + useMutationObserver( + document.querySelector(selector), + () => dir.value = getValue(), + { attributes: true } + ); + } + return computed({ + get() { + return dir.value; + }, + set(v) { + var _a, _b; + dir.value = v; + if (!document) + return; + if (dir.value) + (_a = document.querySelector(selector)) == null ? void 0 : _a.setAttribute("dir", dir.value); + else + (_b = document.querySelector(selector)) == null ? void 0 : _b.removeAttribute("dir"); + } + }); +} + +function getRangesFromSelection(selection) { + var _a; + const rangeCount = (_a = selection.rangeCount) != null ? _a : 0; + const ranges = new Array(rangeCount); + for (let i = 0; i < rangeCount; i++) { + const range = selection.getRangeAt(i); + ranges[i] = range; + } + return ranges; +} +function useTextSelection(options = {}) { + const { + window = defaultWindow + } = options; + const selection = ref(null); + const text = computed(() => { + var _a, _b; + return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : ""; + }); + const ranges = computed(() => selection.value ? getRangesFromSelection(selection.value) : []); + const rects = computed(() => ranges.value.map((range) => range.getBoundingClientRect())); + function onSelectionChange() { + selection.value = null; + if (window) + selection.value = window.getSelection(); + } + if (window) + useEventListener(window.document, "selectionchange", onSelectionChange); + return { + text, + rects, + ranges, + selection + }; +} + +function useTextareaAutosize(options) { + const textarea = ref(options == null ? void 0 : options.element); + const input = ref(options == null ? void 0 : options.input); + const textareaScrollHeight = ref(1); + function triggerResize() { + var _a, _b; + if (!textarea.value) + return; + let height = ""; + textarea.value.style.height = "1px"; + textareaScrollHeight.value = (_a = textarea.value) == null ? void 0 : _a.scrollHeight; + if (options == null ? void 0 : options.styleTarget) + toValue(options.styleTarget).style.height = `${textareaScrollHeight.value}px`; + else + height = `${textareaScrollHeight.value}px`; + textarea.value.style.height = height; + (_b = options == null ? void 0 : options.onResize) == null ? void 0 : _b.call(options); + } + watch([input, textarea], triggerResize, { immediate: true }); + useResizeObserver(textarea, () => triggerResize()); + if (options == null ? void 0 : options.watch) + watch(options.watch, triggerResize, { immediate: true, deep: true }); + return { + textarea, + input, + triggerResize + }; +} + +var __defProp$3 = Object.defineProperty; +var __defProps$1 = Object.defineProperties; +var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols; +var __hasOwnProp$3 = Object.prototype.hasOwnProperty; +var __propIsEnum$3 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$3 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$3.call(b, prop)) + __defNormalProp$3(a, prop, b[prop]); + if (__getOwnPropSymbols$3) + for (var prop of __getOwnPropSymbols$3(b)) { + if (__propIsEnum$3.call(b, prop)) + __defNormalProp$3(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b)); +function useThrottledRefHistory(source, options = {}) { + const { throttle = 200, trailing = true } = options; + const filter = throttleFilter(throttle, trailing); + const history = useRefHistory(source, __spreadProps$1(__spreadValues$3({}, options), { eventFilter: filter })); + return __spreadValues$3({}, history); +} + +var __defProp$2 = Object.defineProperty; +var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols; +var __hasOwnProp$2 = Object.prototype.hasOwnProperty; +var __propIsEnum$2 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$2 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$2.call(b, prop)) + __defNormalProp$2(a, prop, b[prop]); + if (__getOwnPropSymbols$2) + for (var prop of __getOwnPropSymbols$2(b)) { + if (__propIsEnum$2.call(b, prop)) + __defNormalProp$2(a, prop, b[prop]); + } + return a; +}; +var __objRest = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$2) + for (var prop of __getOwnPropSymbols$2(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +const DEFAULT_UNITS = [ + { max: 6e4, value: 1e3, name: "second" }, + { max: 276e4, value: 6e4, name: "minute" }, + { max: 72e6, value: 36e5, name: "hour" }, + { max: 5184e5, value: 864e5, name: "day" }, + { max: 24192e5, value: 6048e5, name: "week" }, + { max: 28512e6, value: 2592e6, name: "month" }, + { max: Infinity, value: 31536e6, name: "year" } +]; +const DEFAULT_MESSAGES = { + justNow: "just now", + past: (n) => n.match(/\d/) ? `${n} ago` : n, + future: (n) => n.match(/\d/) ? `in ${n}` : n, + month: (n, past) => n === 1 ? past ? "last month" : "next month" : `${n} month${n > 1 ? "s" : ""}`, + year: (n, past) => n === 1 ? past ? "last year" : "next year" : `${n} year${n > 1 ? "s" : ""}`, + day: (n, past) => n === 1 ? past ? "yesterday" : "tomorrow" : `${n} day${n > 1 ? "s" : ""}`, + week: (n, past) => n === 1 ? past ? "last week" : "next week" : `${n} week${n > 1 ? "s" : ""}`, + hour: (n) => `${n} hour${n > 1 ? "s" : ""}`, + minute: (n) => `${n} minute${n > 1 ? "s" : ""}`, + second: (n) => `${n} second${n > 1 ? "s" : ""}`, + invalid: "" +}; +function DEFAULT_FORMATTER(date) { + return date.toISOString().slice(0, 10); +} +function useTimeAgo(time, options = {}) { + const { + controls: exposeControls = false, + updateInterval = 3e4 + } = options; + const _a = useNow({ interval: updateInterval, controls: true }), { now } = _a, controls = __objRest(_a, ["now"]); + const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now.value))); + if (exposeControls) { + return __spreadValues$2({ + timeAgo + }, controls); + } else { + return timeAgo; + } +} +function formatTimeAgo(from, options = {}, now = Date.now()) { + var _a; + const { + max, + messages = DEFAULT_MESSAGES, + fullDateFormatter = DEFAULT_FORMATTER, + units = DEFAULT_UNITS, + showSecond = false, + rounding = "round" + } = options; + const roundFn = typeof rounding === "number" ? (n) => +n.toFixed(rounding) : Math[rounding]; + const diff = +now - +from; + const absDiff = Math.abs(diff); + function getValue(diff2, unit) { + return roundFn(Math.abs(diff2) / unit.value); + } + function format(diff2, unit) { + const val = getValue(diff2, unit); + const past = diff2 > 0; + const str = applyFormat(unit.name, val, past); + return applyFormat(past ? "past" : "future", str, past); + } + function applyFormat(name, val, isPast) { + const formatter = messages[name]; + if (typeof formatter === "function") + return formatter(val, isPast); + return formatter.replace("{0}", val.toString()); + } + if (absDiff < 6e4 && !showSecond) + return messages.justNow; + if (typeof max === "number" && absDiff > max) + return fullDateFormatter(new Date(from)); + if (typeof max === "string") { + const unitMax = (_a = units.find((i) => i.name === max)) == null ? void 0 : _a.max; + if (unitMax && absDiff > unitMax) + return fullDateFormatter(new Date(from)); + } + for (const [idx, unit] of units.entries()) { + const val = getValue(diff, unit); + if (val <= 0 && units[idx - 1]) + return format(diff, units[idx - 1]); + if (absDiff < unit.max) + return format(diff, unit); + } + return messages.invalid; +} + +function useTimeoutPoll(fn, interval, timeoutPollOptions) { + const { start } = useTimeoutFn(loop, interval); + const isActive = ref(false); + async function loop() { + if (!isActive.value) + return; + await fn(); + start(); + } + function resume() { + if (!isActive.value) { + isActive.value = true; + loop(); + } + } + function pause() { + isActive.value = false; + } + if (timeoutPollOptions == null ? void 0 : timeoutPollOptions.immediate) + resume(); + tryOnScopeDispose(pause); + return { + isActive, + pause, + resume + }; +} + +var __defProp$1 = Object.defineProperty; +var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols; +var __hasOwnProp$1 = Object.prototype.hasOwnProperty; +var __propIsEnum$1 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$1 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$1.call(b, prop)) + __defNormalProp$1(a, prop, b[prop]); + if (__getOwnPropSymbols$1) + for (var prop of __getOwnPropSymbols$1(b)) { + if (__propIsEnum$1.call(b, prop)) + __defNormalProp$1(a, prop, b[prop]); + } + return a; +}; +function useTimestamp(options = {}) { + const { + controls: exposeControls = false, + offset = 0, + immediate = true, + interval = "requestAnimationFrame", + callback + } = options; + const ts = ref(timestamp() + offset); + const update = () => ts.value = timestamp() + offset; + const cb = callback ? () => { + update(); + callback(ts.value); + } : update; + const controls = interval === "requestAnimationFrame" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate }); + if (exposeControls) { + return __spreadValues$1({ + timestamp: ts + }, controls); + } else { + return ts; + } +} + +function useTitle(newTitle = null, options = {}) { + var _a, _b; + const { + document = defaultDocument + } = options; + const title = toRef((_a = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _a : null); + const isReadonly = newTitle && typeof newTitle === "function"; + function format(t) { + if (!("titleTemplate" in options)) + return t; + const template = options.titleTemplate || "%s"; + return typeof template === "function" ? template(t) : toValue(template).replace(/%s/g, t); + } + watch( + title, + (t, o) => { + if (t !== o && document) + document.title = format(typeof t === "string" ? t : ""); + }, + { immediate: true } + ); + if (options.observe && !options.titleTemplate && document && !isReadonly) { + useMutationObserver( + (_b = document.head) == null ? void 0 : _b.querySelector("title"), + () => { + if (document && document.title !== title.value) + title.value = format(document.title); + }, + { childList: true } + ); + } + return title; +} + +var __defProp = Object.defineProperty; +var __defProps = Object.defineProperties; +var __getOwnPropDescs = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols = Object.getOwnPropertySymbols; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __propIsEnum = Object.prototype.propertyIsEnumerable; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp.call(b, prop)) + __defNormalProp(a, prop, b[prop]); + if (__getOwnPropSymbols) + for (var prop of __getOwnPropSymbols(b)) { + if (__propIsEnum.call(b, prop)) + __defNormalProp(a, prop, b[prop]); + } + return a; +}; +var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); +const _TransitionPresets = { + easeInSine: [0.12, 0, 0.39, 0], + easeOutSine: [0.61, 1, 0.88, 1], + easeInOutSine: [0.37, 0, 0.63, 1], + easeInQuad: [0.11, 0, 0.5, 0], + easeOutQuad: [0.5, 1, 0.89, 1], + easeInOutQuad: [0.45, 0, 0.55, 1], + easeInCubic: [0.32, 0, 0.67, 0], + easeOutCubic: [0.33, 1, 0.68, 1], + easeInOutCubic: [0.65, 0, 0.35, 1], + easeInQuart: [0.5, 0, 0.75, 0], + easeOutQuart: [0.25, 1, 0.5, 1], + easeInOutQuart: [0.76, 0, 0.24, 1], + easeInQuint: [0.64, 0, 0.78, 0], + easeOutQuint: [0.22, 1, 0.36, 1], + easeInOutQuint: [0.83, 0, 0.17, 1], + easeInExpo: [0.7, 0, 0.84, 0], + easeOutExpo: [0.16, 1, 0.3, 1], + easeInOutExpo: [0.87, 0, 0.13, 1], + easeInCirc: [0.55, 0, 1, 0.45], + easeOutCirc: [0, 0.55, 0.45, 1], + easeInOutCirc: [0.85, 0, 0.15, 1], + easeInBack: [0.36, 0, 0.66, -0.56], + easeOutBack: [0.34, 1.56, 0.64, 1], + easeInOutBack: [0.68, -0.6, 0.32, 1.6] +}; +const TransitionPresets = /* @__PURE__ */ Object.assign({}, { linear: identity }, _TransitionPresets); +function createEasingFunction([p0, p1, p2, p3]) { + const a = (a1, a2) => 1 - 3 * a2 + 3 * a1; + const b = (a1, a2) => 3 * a2 - 6 * a1; + const c = (a1) => 3 * a1; + const calcBezier = (t, a1, a2) => ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t; + const getSlope = (t, a1, a2) => 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1); + const getTforX = (x) => { + let aGuessT = x; + for (let i = 0; i < 4; ++i) { + const currentSlope = getSlope(aGuessT, p0, p2); + if (currentSlope === 0) + return aGuessT; + const currentX = calcBezier(aGuessT, p0, p2) - x; + aGuessT -= currentX / currentSlope; + } + return aGuessT; + }; + return (x) => p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3); +} +function lerp(a, b, alpha) { + return a + alpha * (b - a); +} +function toVec(t) { + return (typeof t === "number" ? [t] : t) || []; +} +function executeTransition(source, from, to, options = {}) { + var _a, _b; + const fromVal = toValue(from); + const toVal = toValue(to); + const v1 = toVec(fromVal); + const v2 = toVec(toVal); + const duration = (_a = toValue(options.duration)) != null ? _a : 1e3; + const startedAt = Date.now(); + const endAt = Date.now() + duration; + const trans = typeof options.transition === "function" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity; + const ease = typeof trans === "function" ? trans : createEasingFunction(trans); + return new Promise((resolve) => { + source.value = fromVal; + const tick = () => { + var _a2; + if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) { + resolve(); + return; + } + const now = Date.now(); + const alpha = ease((now - startedAt) / duration); + const arr = toVec(source.value).map((n, i) => lerp(v1[i], v2[i], alpha)); + if (Array.isArray(source.value)) + source.value = arr.map((n, i) => { + var _a3, _b2; + return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha); + }); + else if (typeof source.value === "number") + source.value = arr[0]; + if (now < endAt) { + requestAnimationFrame(tick); + } else { + source.value = toVal; + resolve(); + } + }; + tick(); + }); +} +function useTransition(source, options = {}) { + let currentId = 0; + const sourceVal = () => { + const v = toValue(source); + return typeof v === "number" ? v : v.map(toValue); + }; + const outputRef = ref(sourceVal()); + watch(sourceVal, async (to) => { + var _a, _b; + if (toValue(options.disabled)) + return; + const id = ++currentId; + if (options.delay) + await promiseTimeout(toValue(options.delay)); + if (id !== currentId) + return; + const toVal = Array.isArray(to) ? to.map(toValue) : toValue(to); + (_a = options.onStarted) == null ? void 0 : _a.call(options); + await executeTransition(outputRef, outputRef.value, toVal, __spreadProps(__spreadValues({}, options), { + abort: () => { + var _a2; + return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options)); + } + })); + (_b = options.onFinished) == null ? void 0 : _b.call(options); + }, { deep: true }); + watch(() => toValue(options.disabled), (disabled) => { + if (disabled) { + currentId++; + outputRef.value = sourceVal(); + } + }); + tryOnScopeDispose(() => { + currentId++; + }); + return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value); +} + +function useUrlSearchParams(mode = "history", options = {}) { + const { + initialValue = {}, + removeNullishValues = true, + removeFalsyValues = false, + write: enableWrite = true, + window = defaultWindow + } = options; + if (!window) + return reactive(initialValue); + const state = reactive({}); + function getRawParams() { + if (mode === "history") { + return window.location.search || ""; + } else if (mode === "hash") { + const hash = window.location.hash || ""; + const index = hash.indexOf("?"); + return index > 0 ? hash.slice(index) : ""; + } else { + return (window.location.hash || "").replace(/^#/, ""); + } + } + function constructQuery(params) { + const stringified = params.toString(); + if (mode === "history") + return `${stringified ? `?${stringified}` : ""}${window.location.hash || ""}`; + if (mode === "hash-params") + return `${window.location.search || ""}${stringified ? `#${stringified}` : ""}`; + const hash = window.location.hash || "#"; + const index = hash.indexOf("?"); + if (index > 0) + return `${hash.slice(0, index)}${stringified ? `?${stringified}` : ""}`; + return `${hash}${stringified ? `?${stringified}` : ""}`; + } + function read() { + return new URLSearchParams(getRawParams()); + } + function updateState(params) { + const unusedKeys = new Set(Object.keys(state)); + for (const key of params.keys()) { + const paramsForKey = params.getAll(key); + state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || ""; + unusedKeys.delete(key); + } + Array.from(unusedKeys).forEach((key) => delete state[key]); + } + const { pause, resume } = pausableWatch( + state, + () => { + const params = new URLSearchParams(""); + Object.keys(state).forEach((key) => { + const mapEntry = state[key]; + if (Array.isArray(mapEntry)) + mapEntry.forEach((value) => params.append(key, value)); + else if (removeNullishValues && mapEntry == null) + params.delete(key); + else if (removeFalsyValues && !mapEntry) + params.delete(key); + else + params.set(key, mapEntry); + }); + write(params); + }, + { deep: true } + ); + function write(params, shouldUpdate) { + pause(); + if (shouldUpdate) + updateState(params); + window.history.replaceState( + window.history.state, + window.document.title, + window.location.pathname + constructQuery(params) + ); + resume(); + } + function onChanged() { + if (!enableWrite) + return; + write(read(), true); + } + useEventListener(window, "popstate", onChanged, false); + if (mode !== "history") + useEventListener(window, "hashchange", onChanged, false); + const initial = read(); + if (initial.keys().next().value) + updateState(initial); + else + Object.assign(state, initialValue); + return state; +} + +function useUserMedia(options = {}) { + var _a, _b; + const enabled = ref((_a = options.enabled) != null ? _a : false); + const autoSwitch = ref((_b = options.autoSwitch) != null ? _b : true); + const constraints = ref(options.constraints); + const { navigator = defaultNavigator } = options; + const isSupported = useSupported(() => { + var _a2; + return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getUserMedia; + }); + const stream = shallowRef(); + function getDeviceOptions(type) { + switch (type) { + case "video": { + if (constraints.value) + return constraints.value.video || false; + break; + } + case "audio": { + if (constraints.value) + return constraints.value.audio || false; + break; + } + } + } + async function _start() { + if (!isSupported.value || stream.value) + return; + stream.value = await navigator.mediaDevices.getUserMedia({ + video: getDeviceOptions("video"), + audio: getDeviceOptions("audio") + }); + return stream.value; + } + function _stop() { + var _a2; + (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop()); + stream.value = void 0; + } + function stop() { + _stop(); + enabled.value = false; + } + async function start() { + await _start(); + if (stream.value) + enabled.value = true; + return stream.value; + } + async function restart() { + _stop(); + return await start(); + } + watch( + enabled, + (v) => { + if (v) + _start(); + else + _stop(); + }, + { immediate: true } + ); + watch( + constraints, + () => { + if (autoSwitch.value && stream.value) + restart(); + }, + { immediate: true } + ); + return { + isSupported, + stream, + start, + stop, + restart, + constraints, + enabled, + autoSwitch + }; +} + +function useVModel(props, key, emit, options = {}) { + var _a, _b, _c, _d, _e; + const { + clone = false, + passive = false, + eventName, + deep = false, + defaultValue, + shouldEmit + } = options; + const vm = getCurrentInstance(); + const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy)); + let event = eventName; + if (!key) { + if (isVue2) { + const modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model; + key = (modelOptions == null ? void 0 : modelOptions.value) || "value"; + if (!eventName) + event = (modelOptions == null ? void 0 : modelOptions.event) || "input"; + } else { + key = "modelValue"; + } + } + event = eventName || event || `update:${key.toString()}`; + const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val); + const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue; + const triggerEmit = (value) => { + if (shouldEmit) { + if (shouldEmit(value)) + _emit(event, value); + } else { + _emit(event, value); + } + }; + if (passive) { + const initialValue = getValue(); + const proxy = ref(initialValue); + watch( + () => props[key], + (v) => proxy.value = cloneFn(v) + ); + watch( + proxy, + (v) => { + if (v !== props[key] || deep) + triggerEmit(v); + }, + { deep } + ); + return proxy; + } else { + return computed({ + get() { + return getValue(); + }, + set(value) { + triggerEmit(value); + } + }); + } +} + +function useVModels(props, emit, options = {}) { + const ret = {}; + for (const key in props) + ret[key] = useVModel(props, key, emit, options); + return ret; +} + +function useVibrate(options) { + const { + pattern = [], + interval = 0, + navigator = defaultNavigator + } = options || {}; + const isSupported = useSupported(() => typeof navigator !== "undefined" && "vibrate" in navigator); + const patternRef = toRef(pattern); + let intervalControls; + const vibrate = (pattern2 = patternRef.value) => { + if (isSupported.value) + navigator.vibrate(pattern2); + }; + const stop = () => { + if (isSupported.value) + navigator.vibrate(0); + intervalControls == null ? void 0 : intervalControls.pause(); + }; + if (interval > 0) { + intervalControls = useIntervalFn( + vibrate, + interval, + { + immediate: false, + immediateCallback: false + } + ); + } + return { + isSupported, + pattern, + intervalControls, + vibrate, + stop + }; +} + +function useVirtualList(list, options) { + const { containerStyle, wrapperProps, scrollTo, calculateRange, currentList, containerRef } = "itemHeight" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list); + return { + list: currentList, + scrollTo, + containerProps: { + ref: containerRef, + onScroll: () => { + calculateRange(); + }, + style: containerStyle + }, + wrapperProps + }; +} +function useVirtualListResources(list) { + const containerRef = ref(null); + const size = useElementSize(containerRef); + const currentList = ref([]); + const source = shallowRef(list); + const state = ref({ start: 0, end: 10 }); + return { state, source, currentList, size, containerRef }; +} +function createGetViewCapacity(state, source, itemSize) { + return (containerSize) => { + if (typeof itemSize === "number") + return Math.ceil(containerSize / itemSize); + const { start = 0 } = state.value; + let sum = 0; + let capacity = 0; + for (let i = start; i < source.value.length; i++) { + const size = itemSize(i); + sum += size; + capacity = i; + if (sum > containerSize) + break; + } + return capacity - start; + }; +} +function createGetOffset(source, itemSize) { + return (scrollDirection) => { + if (typeof itemSize === "number") + return Math.floor(scrollDirection / itemSize) + 1; + let sum = 0; + let offset = 0; + for (let i = 0; i < source.value.length; i++) { + const size = itemSize(i); + sum += size; + if (sum >= scrollDirection) { + offset = i; + break; + } + } + return offset + 1; + }; +} +function createCalculateRange(type, overscan, getOffset, getViewCapacity, { containerRef, state, currentList, source }) { + return () => { + const element = containerRef.value; + if (element) { + const offset = getOffset(type === "vertical" ? element.scrollTop : element.scrollLeft); + const viewCapacity = getViewCapacity(type === "vertical" ? element.clientHeight : element.clientWidth); + const from = offset - overscan; + const to = offset + viewCapacity + overscan; + state.value = { + start: from < 0 ? 0 : from, + end: to > source.value.length ? source.value.length : to + }; + currentList.value = source.value.slice(state.value.start, state.value.end).map((ele, index) => ({ + data: ele, + index: index + state.value.start + })); + } + }; +} +function createGetDistance(itemSize, source) { + return (index) => { + if (typeof itemSize === "number") { + const size2 = index * itemSize; + return size2; + } + const size = source.value.slice(0, index).reduce((sum, _, i) => sum + itemSize(i), 0); + return size; + }; +} +function useWatchForSizes(size, list, calculateRange) { + watch([size.width, size.height, list], () => { + calculateRange(); + }); +} +function createComputedTotalSize(itemSize, source) { + return computed(() => { + if (typeof itemSize === "number") + return source.value.length * itemSize; + return source.value.reduce((sum, _, index) => sum + itemSize(index), 0); + }); +} +const scrollToDictionaryForElementScrollKey = { + horizontal: "scrollLeft", + vertical: "scrollTop" +}; +function createScrollTo(type, calculateRange, getDistance, containerRef) { + return (index) => { + if (containerRef.value) { + containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index); + calculateRange(); + } + }; +} +function useHorizontalVirtualList(options, list) { + const resources = useVirtualListResources(list); + const { state, source, currentList, size, containerRef } = resources; + const containerStyle = { overflowX: "auto" }; + const { itemWidth, overscan = 5 } = options; + const getViewCapacity = createGetViewCapacity(state, source, itemWidth); + const getOffset = createGetOffset(source, itemWidth); + const calculateRange = createCalculateRange("horizontal", overscan, getOffset, getViewCapacity, resources); + const getDistanceLeft = createGetDistance(itemWidth, source); + const offsetLeft = computed(() => getDistanceLeft(state.value.start)); + const totalWidth = createComputedTotalSize(itemWidth, source); + useWatchForSizes(size, list, calculateRange); + const scrollTo = createScrollTo("horizontal", calculateRange, getDistanceLeft, containerRef); + const wrapperProps = computed(() => { + return { + style: { + height: "100%", + width: `${totalWidth.value - offsetLeft.value}px`, + marginLeft: `${offsetLeft.value}px`, + display: "flex" + } + }; + }); + return { + scrollTo, + calculateRange, + wrapperProps, + containerStyle, + currentList, + containerRef + }; +} +function useVerticalVirtualList(options, list) { + const resources = useVirtualListResources(list); + const { state, source, currentList, size, containerRef } = resources; + const containerStyle = { overflowY: "auto" }; + const { itemHeight, overscan = 5 } = options; + const getViewCapacity = createGetViewCapacity(state, source, itemHeight); + const getOffset = createGetOffset(source, itemHeight); + const calculateRange = createCalculateRange("vertical", overscan, getOffset, getViewCapacity, resources); + const getDistanceTop = createGetDistance(itemHeight, source); + const offsetTop = computed(() => getDistanceTop(state.value.start)); + const totalHeight = createComputedTotalSize(itemHeight, source); + useWatchForSizes(size, list, calculateRange); + const scrollTo = createScrollTo("vertical", calculateRange, getDistanceTop, containerRef); + const wrapperProps = computed(() => { + return { + style: { + width: "100%", + height: `${totalHeight.value - offsetTop.value}px`, + marginTop: `${offsetTop.value}px` + } + }; + }); + return { + calculateRange, + scrollTo, + containerStyle, + wrapperProps, + currentList, + containerRef + }; +} + +function useWakeLock(options = {}) { + const { + navigator = defaultNavigator, + document = defaultDocument + } = options; + let wakeLock; + const isSupported = useSupported(() => navigator && "wakeLock" in navigator); + const isActive = ref(false); + async function onVisibilityChange() { + if (!isSupported.value || !wakeLock) + return; + if (document && document.visibilityState === "visible") + wakeLock = await navigator.wakeLock.request("screen"); + isActive.value = !wakeLock.released; + } + if (document) + useEventListener(document, "visibilitychange", onVisibilityChange, { passive: true }); + async function request(type) { + if (!isSupported.value) + return; + wakeLock = await navigator.wakeLock.request(type); + isActive.value = !wakeLock.released; + } + async function release() { + if (!isSupported.value || !wakeLock) + return; + await wakeLock.release(); + isActive.value = !wakeLock.released; + wakeLock = null; + } + return { + isSupported, + isActive, + request, + release + }; +} + +function useWebNotification(defaultOptions = {}) { + const { + window = defaultWindow + } = defaultOptions; + const isSupported = useSupported(() => !!window && "Notification" in window); + const notification = ref(null); + const requestPermission = async () => { + if (!isSupported.value) + return; + if ("permission" in Notification && Notification.permission !== "denied") + await Notification.requestPermission(); + }; + const { on: onClick, trigger: clickTrigger } = createEventHook(); + const { on: onShow, trigger: showTrigger } = createEventHook(); + const { on: onError, trigger: errorTrigger } = createEventHook(); + const { on: onClose, trigger: closeTrigger } = createEventHook(); + const show = async (overrides) => { + if (!isSupported.value) + return; + await requestPermission(); + const options = Object.assign({}, defaultOptions, overrides); + notification.value = new Notification(options.title || "", options); + notification.value.onclick = clickTrigger; + notification.value.onshow = showTrigger; + notification.value.onerror = errorTrigger; + notification.value.onclose = closeTrigger; + return notification.value; + }; + const close = () => { + if (notification.value) + notification.value.close(); + notification.value = null; + }; + tryOnMounted(async () => { + if (isSupported.value) + await requestPermission(); + }); + tryOnScopeDispose(close); + if (isSupported.value && window) { + const document = window.document; + useEventListener(document, "visibilitychange", (e) => { + e.preventDefault(); + if (document.visibilityState === "visible") { + close(); + } + }); + } + return { + isSupported, + notification, + show, + close, + onClick, + onShow, + onError, + onClose + }; +} + +const DEFAULT_PING_MESSAGE = "ping"; +function resolveNestedOptions(options) { + if (options === true) + return {}; + return options; +} +function useWebSocket(url, options = {}) { + const { + onConnected, + onDisconnected, + onError, + onMessage, + immediate = true, + autoClose = true, + protocols = [] + } = options; + const data = ref(null); + const status = ref("CLOSED"); + const wsRef = ref(); + const urlRef = toRef(url); + let heartbeatPause; + let heartbeatResume; + let explicitlyClosed = false; + let retried = 0; + let bufferedData = []; + let pongTimeoutWait; + const close = (code = 1e3, reason) => { + if (!wsRef.value) + return; + explicitlyClosed = true; + heartbeatPause == null ? void 0 : heartbeatPause(); + wsRef.value.close(code, reason); + }; + const _sendBuffer = () => { + if (bufferedData.length && wsRef.value && status.value === "OPEN") { + for (const buffer of bufferedData) + wsRef.value.send(buffer); + bufferedData = []; + } + }; + const resetHeartbeat = () => { + clearTimeout(pongTimeoutWait); + pongTimeoutWait = void 0; + }; + const send = (data2, useBuffer = true) => { + if (!wsRef.value || status.value !== "OPEN") { + if (useBuffer) + bufferedData.push(data2); + return false; + } + _sendBuffer(); + wsRef.value.send(data2); + return true; + }; + const _init = () => { + if (explicitlyClosed || typeof urlRef.value === "undefined") + return; + const ws = new WebSocket(urlRef.value, protocols); + wsRef.value = ws; + status.value = "CONNECTING"; + ws.onopen = () => { + status.value = "OPEN"; + onConnected == null ? void 0 : onConnected(ws); + heartbeatResume == null ? void 0 : heartbeatResume(); + _sendBuffer(); + }; + ws.onclose = (ev) => { + status.value = "CLOSED"; + wsRef.value = void 0; + onDisconnected == null ? void 0 : onDisconnected(ws, ev); + if (!explicitlyClosed && options.autoReconnect) { + const { + retries = -1, + delay = 1e3, + onFailed + } = resolveNestedOptions(options.autoReconnect); + retried += 1; + if (typeof retries === "number" && (retries < 0 || retried < retries)) + setTimeout(_init, delay); + else if (typeof retries === "function" && retries()) + setTimeout(_init, delay); + else + onFailed == null ? void 0 : onFailed(); + } + }; + ws.onerror = (e) => { + onError == null ? void 0 : onError(ws, e); + }; + ws.onmessage = (e) => { + if (options.heartbeat) { + resetHeartbeat(); + const { + message = DEFAULT_PING_MESSAGE + } = resolveNestedOptions(options.heartbeat); + if (e.data === message) + return; + } + data.value = e.data; + onMessage == null ? void 0 : onMessage(ws, e); + }; + }; + if (options.heartbeat) { + const { + message = DEFAULT_PING_MESSAGE, + interval = 1e3, + pongTimeout = 1e3 + } = resolveNestedOptions(options.heartbeat); + const { pause, resume } = useIntervalFn( + () => { + send(message, false); + if (pongTimeoutWait != null) + return; + pongTimeoutWait = setTimeout(() => { + close(); + }, pongTimeout); + }, + interval, + { immediate: false } + ); + heartbeatPause = pause; + heartbeatResume = resume; + } + if (autoClose) { + useEventListener(window, "beforeunload", () => close()); + tryOnScopeDispose(close); + } + const open = () => { + close(); + explicitlyClosed = false; + retried = 0; + _init(); + }; + if (immediate) + watch(urlRef, open, { immediate: true }); + return { + data, + status, + close, + send, + open, + ws: wsRef + }; +} + +function useWebWorker(arg0, workerOptions, options) { + const { + window = defaultWindow + } = options != null ? options : {}; + const data = ref(null); + const worker = shallowRef(); + const post = function post2(val) { + if (!worker.value) + return; + worker.value.postMessage(val); + }; + const terminate = function terminate2() { + if (!worker.value) + return; + worker.value.terminate(); + }; + if (window) { + if (typeof arg0 === "string") + worker.value = new Worker(arg0, workerOptions); + else if (typeof arg0 === "function") + worker.value = arg0(); + else + worker.value = arg0; + worker.value.onmessage = (e) => { + data.value = e.data; + }; + tryOnScopeDispose(() => { + if (worker.value) + worker.value.terminate(); + }); + } + return { + data, + post, + terminate, + worker + }; +} + +function jobRunner(userFunc) { + return (e) => { + const userFuncArgs = e.data[0]; + return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then((result) => { + postMessage(["SUCCESS", result]); + }).catch((error) => { + postMessage(["ERROR", error]); + }); + }; +} + +function depsParser(deps) { + if (deps.length === 0) + return ""; + const depsString = deps.map((dep) => `'${dep}'`).toString(); + return `importScripts(${depsString})`; +} + +function createWorkerBlobUrl(fn, deps) { + const blobCode = `${depsParser(deps)}; onmessage=(${jobRunner})(${fn})`; + const blob = new Blob([blobCode], { type: "text/javascript" }); + const url = URL.createObjectURL(blob); + return url; +} + +function useWebWorkerFn(fn, options = {}) { + const { + dependencies = [], + timeout, + window = defaultWindow + } = options; + const worker = ref(); + const workerStatus = ref("PENDING"); + const promise = ref({}); + const timeoutId = ref(); + const workerTerminate = (status = "PENDING") => { + if (worker.value && worker.value._url && window) { + worker.value.terminate(); + URL.revokeObjectURL(worker.value._url); + promise.value = {}; + worker.value = void 0; + window.clearTimeout(timeoutId.value); + workerStatus.value = status; + } + }; + workerTerminate(); + tryOnScopeDispose(workerTerminate); + const generateWorker = () => { + const blobUrl = createWorkerBlobUrl(fn, dependencies); + const newWorker = new Worker(blobUrl); + newWorker._url = blobUrl; + newWorker.onmessage = (e) => { + const { resolve = () => { + }, reject = () => { + } } = promise.value; + const [status, result] = e.data; + switch (status) { + case "SUCCESS": + resolve(result); + workerTerminate(status); + break; + default: + reject(result); + workerTerminate("ERROR"); + break; + } + }; + newWorker.onerror = (e) => { + const { reject = () => { + } } = promise.value; + reject(e); + workerTerminate("ERROR"); + }; + if (timeout) { + timeoutId.value = setTimeout( + () => workerTerminate("TIMEOUT_EXPIRED"), + timeout + ); + } + return newWorker; + }; + const callWorker = (...fnArgs) => new Promise((resolve, reject) => { + promise.value = { + resolve, + reject + }; + worker.value && worker.value.postMessage([[...fnArgs]]); + workerStatus.value = "RUNNING"; + }); + const workerFn = (...fnArgs) => { + if (workerStatus.value === "RUNNING") { + console.error( + "[useWebWorkerFn] You can only run one instance of the worker at a time." + ); + return Promise.reject(); + } + worker.value = generateWorker(); + return callWorker(...fnArgs); + }; + return { + workerFn, + workerStatus, + workerTerminate + }; +} + +function useWindowFocus({ window = defaultWindow } = {}) { + if (!window) + return ref(false); + const focused = ref(window.document.hasFocus()); + useEventListener(window, "blur", () => { + focused.value = false; + }); + useEventListener(window, "focus", () => { + focused.value = true; + }); + return focused; +} + +function useWindowScroll({ window = defaultWindow } = {}) { + if (!window) { + return { + x: ref(0), + y: ref(0) + }; + } + const x = ref(window.scrollX); + const y = ref(window.scrollY); + useEventListener( + window, + "scroll", + () => { + x.value = window.scrollX; + y.value = window.scrollY; + }, + { + capture: false, + passive: true + } + ); + return { x, y }; +} + +function useWindowSize(options = {}) { + const { + window = defaultWindow, + initialWidth = Infinity, + initialHeight = Infinity, + listenOrientation = true, + includeScrollbar = true + } = options; + const width = ref(initialWidth); + const height = ref(initialHeight); + const update = () => { + if (window) { + if (includeScrollbar) { + width.value = window.innerWidth; + height.value = window.innerHeight; + } else { + width.value = window.document.documentElement.clientWidth; + height.value = window.document.documentElement.clientHeight; + } + } + }; + update(); + tryOnMounted(update); + useEventListener("resize", update, { passive: true }); + if (listenOrientation) { + const matches = useMediaQuery("(orientation: portrait)"); + watch(matches, () => update()); + } + return { width, height }; +} + +export { DefaultMagicKeysAliasMap, StorageSerializers, TransitionPresets, computedAsync as asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsMasterCss, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useCloned, useColorMode, useConfirmDialog, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useRafFn, useRefHistory, useResizeObserver, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker, useWebWorkerFn, useWindowFocus, useWindowScroll, useWindowSize }; diff --git a/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs b/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs new file mode 100644 index 00000000..0862b217 --- /dev/null +++ b/code/WebApp/vanilla/lib/@vueuse/shared/index.mjs @@ -0,0 +1,1790 @@ +import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, provide, inject, isVue3, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, isVue2, set as set$1, getCurrentInstance, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi'; + +var __defProp$b = Object.defineProperty; +var __defProps$8 = Object.defineProperties; +var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$d = Object.getOwnPropertySymbols; +var __hasOwnProp$d = Object.prototype.hasOwnProperty; +var __propIsEnum$d = Object.prototype.propertyIsEnumerable; +var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$b = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$d.call(b, prop)) + __defNormalProp$b(a, prop, b[prop]); + if (__getOwnPropSymbols$d) + for (var prop of __getOwnPropSymbols$d(b)) { + if (__propIsEnum$d.call(b, prop)) + __defNormalProp$b(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b)); +function computedEager(fn, options) { + var _a; + const result = shallowRef(); + watchEffect(() => { + result.value = fn(); + }, __spreadProps$8(__spreadValues$b({}, options), { + flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync" + })); + return readonly(result); +} + +function computedWithControl(source, fn) { + let v = void 0; + let track; + let trigger; + const dirty = ref(true); + const update = () => { + dirty.value = true; + trigger(); + }; + watch(source, update, { flush: "sync" }); + const get = typeof fn === "function" ? fn : fn.get; + const set = typeof fn === "function" ? void 0 : fn.set; + const result = customRef((_track, _trigger) => { + track = _track; + trigger = _trigger; + return { + get() { + if (dirty.value) { + v = get(); + dirty.value = false; + } + track(); + return v; + }, + set(v2) { + set == null ? void 0 : set(v2); + } + }; + }); + if (Object.isExtensible(result)) + result.trigger = update; + return result; +} + +function tryOnScopeDispose(fn) { + if (getCurrentScope()) { + onScopeDispose(fn); + return true; + } + return false; +} + +function createEventHook() { + const fns = /* @__PURE__ */ new Set(); + const off = (fn) => { + fns.delete(fn); + }; + const on = (fn) => { + fns.add(fn); + const offFn = () => off(fn); + tryOnScopeDispose(offFn); + return { + off: offFn + }; + }; + const trigger = (param) => { + return Promise.all(Array.from(fns).map((fn) => fn(param))); + }; + return { + on, + off, + trigger + }; +} + +function createGlobalState(stateFactory) { + let initialized = false; + let state; + const scope = effectScope(true); + return (...args) => { + if (!initialized) { + state = scope.run(() => stateFactory(...args)); + initialized = true; + } + return state; + }; +} + +function createInjectionState(composable) { + const key = Symbol("InjectionState"); + const useProvidingState = (...args) => { + const state = composable(...args); + provide(key, state); + return state; + }; + const useInjectedState = () => inject(key); + return [useProvidingState, useInjectedState]; +} + +function createSharedComposable(composable) { + let subscribers = 0; + let state; + let scope; + const dispose = () => { + subscribers -= 1; + if (scope && subscribers <= 0) { + scope.stop(); + state = void 0; + scope = void 0; + } + }; + return (...args) => { + subscribers += 1; + if (!state) { + scope = effectScope(true); + state = scope.run(() => composable(...args)); + } + tryOnScopeDispose(dispose); + return state; + }; +} + +function extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) { + if (!isVue3 && !version.startsWith("2.7.")) { + if (process.env.NODE_ENV !== "production") + throw new Error("[VueUse] extendRef only works in Vue 2.7 or above."); + return; + } + for (const [key, value] of Object.entries(extend)) { + if (key === "value") + continue; + if (isRef(value) && unwrap) { + Object.defineProperty(ref, key, { + get() { + return value.value; + }, + set(v) { + value.value = v; + }, + enumerable + }); + } else { + Object.defineProperty(ref, key, { value, enumerable }); + } + } + return ref; +} + +function get(obj, key) { + if (key == null) + return unref(obj); + return unref(obj)[key]; +} + +function isDefined(v) { + return unref(v) != null; +} + +var __defProp$a = Object.defineProperty; +var __getOwnPropSymbols$c = Object.getOwnPropertySymbols; +var __hasOwnProp$c = Object.prototype.hasOwnProperty; +var __propIsEnum$c = Object.prototype.propertyIsEnumerable; +var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$a = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$c.call(b, prop)) + __defNormalProp$a(a, prop, b[prop]); + if (__getOwnPropSymbols$c) + for (var prop of __getOwnPropSymbols$c(b)) { + if (__propIsEnum$c.call(b, prop)) + __defNormalProp$a(a, prop, b[prop]); + } + return a; +}; +function makeDestructurable(obj, arr) { + if (typeof Symbol !== "undefined") { + const clone = __spreadValues$a({}, obj); + Object.defineProperty(clone, Symbol.iterator, { + enumerable: false, + value() { + let index = 0; + return { + next: () => ({ + value: arr[index++], + done: index > arr.length + }) + }; + } + }); + return clone; + } else { + return Object.assign([...arr], obj); + } +} + +function toValue(r) { + return typeof r === "function" ? r() : unref(r); +} +const resolveUnref = toValue; + +function reactify(fn, options) { + const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue; + return function(...args) { + return computed(() => fn.apply(this, args.map((i) => unrefFn(i)))); + }; +} + +function reactifyObject(obj, optionsOrKeys = {}) { + let keys = []; + let options; + if (Array.isArray(optionsOrKeys)) { + keys = optionsOrKeys; + } else { + options = optionsOrKeys; + const { includeOwnProperties = true } = optionsOrKeys; + keys.push(...Object.keys(obj)); + if (includeOwnProperties) + keys.push(...Object.getOwnPropertyNames(obj)); + } + return Object.fromEntries( + keys.map((key) => { + const value = obj[key]; + return [ + key, + typeof value === "function" ? reactify(value.bind(obj), options) : value + ]; + }) + ); +} + +function toReactive(objectRef) { + if (!isRef(objectRef)) + return reactive(objectRef); + const proxy = new Proxy({}, { + get(_, p, receiver) { + return unref(Reflect.get(objectRef.value, p, receiver)); + }, + set(_, p, value) { + if (isRef(objectRef.value[p]) && !isRef(value)) + objectRef.value[p].value = value; + else + objectRef.value[p] = value; + return true; + }, + deleteProperty(_, p) { + return Reflect.deleteProperty(objectRef.value, p); + }, + has(_, p) { + return Reflect.has(objectRef.value, p); + }, + ownKeys() { + return Object.keys(objectRef.value); + }, + getOwnPropertyDescriptor() { + return { + enumerable: true, + configurable: true + }; + } + }); + return reactive(proxy); +} + +function reactiveComputed(fn) { + return toReactive(computed(fn)); +} + +function reactiveOmit(obj, ...keys) { + const flatKeys = keys.flat(); + const predicate = flatKeys[0]; + return reactiveComputed( + () => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0]))) + ); +} + +const isClient = typeof window !== "undefined"; +const isDef = (val) => typeof val !== "undefined"; +const notNullish = (val) => val != null; +const assert = (condition, ...infos) => { + if (!condition) + console.warn(...infos); +}; +const toString = Object.prototype.toString; +const isObject = (val) => toString.call(val) === "[object Object]"; +const now = () => Date.now(); +const timestamp = () => +Date.now(); +const clamp = (n, min, max) => Math.min(max, Math.max(min, n)); +const noop = () => { +}; +const rand = (min, max) => { + min = Math.ceil(min); + max = Math.floor(max); + return Math.floor(Math.random() * (max - min + 1)) + min; +}; +const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key); +const isIOS = /* @__PURE__ */ getIsIOS(); +function getIsIOS() { + var _a; + return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent); +} + +function createFilterWrapper(filter, fn) { + function wrapper(...args) { + return new Promise((resolve, reject) => { + Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject); + }); + } + return wrapper; +} +const bypassFilter = (invoke) => { + return invoke(); +}; +function debounceFilter(ms, options = {}) { + let timer; + let maxTimer; + let lastRejector = noop; + const _clearTimeout = (timer2) => { + clearTimeout(timer2); + lastRejector(); + lastRejector = noop; + }; + const filter = (invoke) => { + const duration = toValue(ms); + const maxDuration = toValue(options.maxWait); + if (timer) + _clearTimeout(timer); + if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) { + if (maxTimer) { + _clearTimeout(maxTimer); + maxTimer = null; + } + return Promise.resolve(invoke()); + } + return new Promise((resolve, reject) => { + lastRejector = options.rejectOnCancel ? reject : resolve; + if (maxDuration && !maxTimer) { + maxTimer = setTimeout(() => { + if (timer) + _clearTimeout(timer); + maxTimer = null; + resolve(invoke()); + }, maxDuration); + } + timer = setTimeout(() => { + if (maxTimer) + _clearTimeout(maxTimer); + maxTimer = null; + resolve(invoke()); + }, duration); + }); + }; + return filter; +} +function throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) { + let lastExec = 0; + let timer; + let isLeading = true; + let lastRejector = noop; + let lastValue; + const clear = () => { + if (timer) { + clearTimeout(timer); + timer = void 0; + lastRejector(); + lastRejector = noop; + } + }; + const filter = (_invoke) => { + const duration = toValue(ms); + const elapsed = Date.now() - lastExec; + const invoke = () => { + return lastValue = _invoke(); + }; + clear(); + if (duration <= 0) { + lastExec = Date.now(); + return invoke(); + } + if (elapsed > duration && (leading || !isLeading)) { + lastExec = Date.now(); + invoke(); + } else if (trailing) { + lastValue = new Promise((resolve, reject) => { + lastRejector = rejectOnCancel ? reject : resolve; + timer = setTimeout(() => { + lastExec = Date.now(); + isLeading = true; + resolve(invoke()); + clear(); + }, Math.max(0, duration - elapsed)); + }); + } + if (!leading && !timer) + timer = setTimeout(() => isLeading = true, duration); + isLeading = false; + return lastValue; + }; + return filter; +} +function pausableFilter(extendFilter = bypassFilter) { + const isActive = ref(true); + function pause() { + isActive.value = false; + } + function resume() { + isActive.value = true; + } + const eventFilter = (...args) => { + if (isActive.value) + extendFilter(...args); + }; + return { isActive: readonly(isActive), pause, resume, eventFilter }; +} + +const directiveHooks = { + mounted: isVue3 ? "mounted" : "inserted", + updated: isVue3 ? "updated" : "componentUpdated", + unmounted: isVue3 ? "unmounted" : "unbind" +}; + +function promiseTimeout(ms, throwOnTimeout = false, reason = "Timeout") { + return new Promise((resolve, reject) => { + if (throwOnTimeout) + setTimeout(() => reject(reason), ms); + else + setTimeout(resolve, ms); + }); +} +function identity(arg) { + return arg; +} +function createSingletonPromise(fn) { + let _promise; + function wrapper() { + if (!_promise) + _promise = fn(); + return _promise; + } + wrapper.reset = async () => { + const _prev = _promise; + _promise = void 0; + if (_prev) + await _prev; + }; + return wrapper; +} +function invoke(fn) { + return fn(); +} +function containsProp(obj, ...props) { + return props.some((k) => k in obj); +} +function increaseWithUnit(target, delta) { + var _a; + if (typeof target === "number") + return target + delta; + const value = ((_a = target.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : _a[0]) || ""; + const unit = target.slice(value.length); + const result = parseFloat(value) + delta; + if (Number.isNaN(result)) + return target; + return result + unit; +} +function objectPick(obj, keys, omitUndefined = false) { + return keys.reduce((n, k) => { + if (k in obj) { + if (!omitUndefined || obj[k] !== void 0) + n[k] = obj[k]; + } + return n; + }, {}); +} +function objectOmit(obj, keys, omitUndefined = false) { + return Object.fromEntries(Object.entries(obj).filter(([key, value]) => { + return (!omitUndefined || value !== void 0) && !keys.includes(key); + })); +} +function objectEntries(obj) { + return Object.entries(obj); +} + +function toRef(...args) { + if (args.length !== 1) + return toRef$1(...args); + const r = args[0]; + return typeof r === "function" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r); +} +const resolveRef = toRef; + +function reactivePick(obj, ...keys) { + const flatKeys = keys.flat(); + const predicate = flatKeys[0]; + return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)]))); +} + +function refAutoReset(defaultValue, afterMs = 1e4) { + return customRef((track, trigger) => { + let value = defaultValue; + let timer; + const resetAfter = () => setTimeout(() => { + value = defaultValue; + trigger(); + }, toValue(afterMs)); + tryOnScopeDispose(() => { + clearTimeout(timer); + }); + return { + get() { + track(); + return value; + }, + set(newValue) { + value = newValue; + trigger(); + clearTimeout(timer); + timer = resetAfter(); + } + }; + }); +} + +function useDebounceFn(fn, ms = 200, options = {}) { + return createFilterWrapper( + debounceFilter(ms, options), + fn + ); +} + +function refDebounced(value, ms = 200, options = {}) { + const debounced = ref(value.value); + const updater = useDebounceFn(() => { + debounced.value = value.value; + }, ms, options); + watch(value, () => updater()); + return debounced; +} + +function refDefault(source, defaultValue) { + return computed({ + get() { + var _a; + return (_a = source.value) != null ? _a : defaultValue; + }, + set(value) { + source.value = value; + } + }); +} + +function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) { + return createFilterWrapper( + throttleFilter(ms, trailing, leading, rejectOnCancel), + fn + ); +} + +function refThrottled(value, delay = 200, trailing = true, leading = true) { + if (delay <= 0) + return value; + const throttled = ref(value.value); + const updater = useThrottleFn(() => { + throttled.value = value.value; + }, delay, trailing, leading); + watch(value, () => updater()); + return throttled; +} + +function refWithControl(initial, options = {}) { + let source = initial; + let track; + let trigger; + const ref = customRef((_track, _trigger) => { + track = _track; + trigger = _trigger; + return { + get() { + return get(); + }, + set(v) { + set(v); + } + }; + }); + function get(tracking = true) { + if (tracking) + track(); + return source; + } + function set(value, triggering = true) { + var _a, _b; + if (value === source) + return; + const old = source; + if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false) + return; + source = value; + (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old); + if (triggering) + trigger(); + } + const untrackedGet = () => get(false); + const silentSet = (v) => set(v, false); + const peek = () => get(false); + const lay = (v) => set(v, false); + return extendRef( + ref, + { + get, + set, + untrackedGet, + silentSet, + peek, + lay + }, + { enumerable: true } + ); +} +const controlledRef = refWithControl; + +function set(...args) { + if (args.length === 2) { + const [ref, value] = args; + ref.value = value; + } + if (args.length === 3) { + if (isVue2) { + set$1(...args); + } else { + const [target, key, value] = args; + target[key] = value; + } + } +} + +function syncRef(left, right, options = {}) { + var _a, _b; + const { + flush = "sync", + deep = false, + immediate = true, + direction = "both", + transform = {} + } = options; + let watchLeft; + let watchRight; + const transformLTR = (_a = transform.ltr) != null ? _a : (v) => v; + const transformRTL = (_b = transform.rtl) != null ? _b : (v) => v; + if (direction === "both" || direction === "ltr") { + watchLeft = watch( + left, + (newValue) => right.value = transformLTR(newValue), + { flush, deep, immediate } + ); + } + if (direction === "both" || direction === "rtl") { + watchRight = watch( + right, + (newValue) => left.value = transformRTL(newValue), + { flush, deep, immediate } + ); + } + return () => { + watchLeft == null ? void 0 : watchLeft(); + watchRight == null ? void 0 : watchRight(); + }; +} + +function syncRefs(source, targets, options = {}) { + const { + flush = "sync", + deep = false, + immediate = true + } = options; + if (!Array.isArray(targets)) + targets = [targets]; + return watch( + source, + (newValue) => targets.forEach((target) => target.value = newValue), + { flush, deep, immediate } + ); +} + +var __defProp$9 = Object.defineProperty; +var __defProps$7 = Object.defineProperties; +var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$b = Object.getOwnPropertySymbols; +var __hasOwnProp$b = Object.prototype.hasOwnProperty; +var __propIsEnum$b = Object.prototype.propertyIsEnumerable; +var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$9 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$b.call(b, prop)) + __defNormalProp$9(a, prop, b[prop]); + if (__getOwnPropSymbols$b) + for (var prop of __getOwnPropSymbols$b(b)) { + if (__propIsEnum$b.call(b, prop)) + __defNormalProp$9(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b)); +function toRefs(objectRef) { + if (!isRef(objectRef)) + return toRefs$1(objectRef); + const result = Array.isArray(objectRef.value) ? new Array(objectRef.value.length) : {}; + for (const key in objectRef.value) { + result[key] = customRef(() => ({ + get() { + return objectRef.value[key]; + }, + set(v) { + if (Array.isArray(objectRef.value)) { + const copy = [...objectRef.value]; + copy[key] = v; + objectRef.value = copy; + } else { + const newObject = __spreadProps$7(__spreadValues$9({}, objectRef.value), { [key]: v }); + Object.setPrototypeOf(newObject, objectRef.value); + objectRef.value = newObject; + } + } + })); + } + return result; +} + +function tryOnBeforeMount(fn, sync = true) { + if (getCurrentInstance()) + onBeforeMount(fn); + else if (sync) + fn(); + else + nextTick(fn); +} + +function tryOnBeforeUnmount(fn) { + if (getCurrentInstance()) + onBeforeUnmount(fn); +} + +function tryOnMounted(fn, sync = true) { + if (getCurrentInstance()) + onMounted(fn); + else if (sync) + fn(); + else + nextTick(fn); +} + +function tryOnUnmounted(fn) { + if (getCurrentInstance()) + onUnmounted(fn); +} + +function createUntil(r, isNot = false) { + function toMatch(condition, { flush = "sync", deep = false, timeout, throwOnTimeout } = {}) { + let stop = null; + const watcher = new Promise((resolve) => { + stop = watch( + r, + (v) => { + if (condition(v) !== isNot) { + stop == null ? void 0 : stop(); + resolve(v); + } + }, + { + flush, + deep, + immediate: true + } + ); + }); + const promises = [watcher]; + if (timeout != null) { + promises.push( + promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop()) + ); + } + return Promise.race(promises); + } + function toBe(value, options) { + if (!isRef(value)) + return toMatch((v) => v === value, options); + const { flush = "sync", deep = false, timeout, throwOnTimeout } = options != null ? options : {}; + let stop = null; + const watcher = new Promise((resolve) => { + stop = watch( + [r, value], + ([v1, v2]) => { + if (isNot !== (v1 === v2)) { + stop == null ? void 0 : stop(); + resolve(v1); + } + }, + { + flush, + deep, + immediate: true + } + ); + }); + const promises = [watcher]; + if (timeout != null) { + promises.push( + promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => { + stop == null ? void 0 : stop(); + return toValue(r); + }) + ); + } + return Promise.race(promises); + } + function toBeTruthy(options) { + return toMatch((v) => Boolean(v), options); + } + function toBeNull(options) { + return toBe(null, options); + } + function toBeUndefined(options) { + return toBe(void 0, options); + } + function toBeNaN(options) { + return toMatch(Number.isNaN, options); + } + function toContains(value, options) { + return toMatch((v) => { + const array = Array.from(v); + return array.includes(value) || array.includes(toValue(value)); + }, options); + } + function changed(options) { + return changedTimes(1, options); + } + function changedTimes(n = 1, options) { + let count = -1; + return toMatch(() => { + count += 1; + return count >= n; + }, options); + } + if (Array.isArray(toValue(r))) { + const instance = { + toMatch, + toContains, + changed, + changedTimes, + get not() { + return createUntil(r, !isNot); + } + }; + return instance; + } else { + const instance = { + toMatch, + toBe, + toBeTruthy, + toBeNull, + toBeNaN, + toBeUndefined, + changed, + changedTimes, + get not() { + return createUntil(r, !isNot); + } + }; + return instance; + } +} +function until(r) { + return createUntil(r); +} + +function defaultComparator(value, othVal) { + return value === othVal; +} +function useArrayDifference(...args) { + var _a; + const list = args[0]; + const values = args[1]; + let compareFn = (_a = args[2]) != null ? _a : defaultComparator; + if (typeof compareFn === "string") { + const key = compareFn; + compareFn = (value, othVal) => value[key] === othVal[key]; + } + return computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1)); +} + +function useArrayEvery(list, fn) { + return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array))); +} + +function useArrayFilter(list, fn) { + return computed(() => toValue(list).map((i) => toValue(i)).filter(fn)); +} + +function useArrayFind(list, fn) { + return computed( + () => toValue( + toValue(list).find((element, index, array) => fn(toValue(element), index, array)) + ) + ); +} + +function useArrayFindIndex(list, fn) { + return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array))); +} + +function findLast(arr, cb) { + let index = arr.length; + while (index-- > 0) { + if (cb(arr[index], index, arr)) + return arr[index]; + } + return void 0; +} +function useArrayFindLast(list, fn) { + return computed( + () => toValue( + !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array)) + ) + ); +} + +function isArrayIncludesOptions(obj) { + return isObject(obj) && containsProp(obj, "formIndex", "comparator"); +} +function useArrayIncludes(...args) { + var _a; + const list = args[0]; + const value = args[1]; + let comparator = args[2]; + let formIndex = 0; + if (isArrayIncludesOptions(comparator)) { + formIndex = (_a = comparator.fromIndex) != null ? _a : 0; + comparator = comparator.comparator; + } + if (typeof comparator === "string") { + const key = comparator; + comparator = (element, value2) => element[key] === toValue(value2); + } + comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2); + return computed( + () => toValue(list).slice(formIndex).some( + (element, index, array) => comparator(toValue(element), toValue(value), index, toValue(array)) + ) + ); +} + +function useArrayJoin(list, separator) { + return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator))); +} + +function useArrayMap(list, fn) { + return computed(() => toValue(list).map((i) => toValue(i)).map(fn)); +} + +function useArrayReduce(list, reducer, ...args) { + const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index); + return computed(() => { + const resolved = toValue(list); + return args.length ? resolved.reduce(reduceCallback, toValue(args[0])) : resolved.reduce(reduceCallback); + }); +} + +function useArraySome(list, fn) { + return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array))); +} + +function uniq(array) { + return Array.from(new Set(array)); +} +function uniqueElementsBy(array, fn) { + return array.reduce((acc, v) => { + if (!acc.some((x) => fn(v, x, array))) + acc.push(v); + return acc; + }, []); +} +function useArrayUnique(list, compareFn) { + return computed(() => { + const resolvedList = toValue(list).map((element) => toValue(element)); + return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList); + }); +} + +function useCounter(initialValue = 0, options = {}) { + const count = ref(initialValue); + const { + max = Infinity, + min = -Infinity + } = options; + const inc = (delta = 1) => count.value = Math.min(max, count.value + delta); + const dec = (delta = 1) => count.value = Math.max(min, count.value - delta); + const get = () => count.value; + const set = (val) => count.value = Math.max(min, Math.min(max, val)); + const reset = (val = initialValue) => { + initialValue = val; + return set(val); + }; + return { count, inc, dec, get, set, reset }; +} + +const REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/; +const REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g; +function defaultMeridiem(hours, minutes, isLowercase, hasPeriod) { + let m = hours < 12 ? "AM" : "PM"; + if (hasPeriod) + m = m.split("").reduce((acc, curr) => acc += `${curr}.`, ""); + return isLowercase ? m.toLowerCase() : m; +} +function formatDate(date, formatStr, options = {}) { + var _a; + const years = date.getFullYear(); + const month = date.getMonth(); + const days = date.getDate(); + const hours = date.getHours(); + const minutes = date.getMinutes(); + const seconds = date.getSeconds(); + const milliseconds = date.getMilliseconds(); + const day = date.getDay(); + const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem; + const matches = { + YY: () => String(years).slice(-2), + YYYY: () => years, + M: () => month + 1, + MM: () => `${month + 1}`.padStart(2, "0"), + MMM: () => date.toLocaleDateString(options.locales, { month: "short" }), + MMMM: () => date.toLocaleDateString(options.locales, { month: "long" }), + D: () => String(days), + DD: () => `${days}`.padStart(2, "0"), + H: () => String(hours), + HH: () => `${hours}`.padStart(2, "0"), + h: () => `${hours % 12 || 12}`.padStart(1, "0"), + hh: () => `${hours % 12 || 12}`.padStart(2, "0"), + m: () => String(minutes), + mm: () => `${minutes}`.padStart(2, "0"), + s: () => String(seconds), + ss: () => `${seconds}`.padStart(2, "0"), + SSS: () => `${milliseconds}`.padStart(3, "0"), + d: () => day, + dd: () => date.toLocaleDateString(options.locales, { weekday: "narrow" }), + ddd: () => date.toLocaleDateString(options.locales, { weekday: "short" }), + dddd: () => date.toLocaleDateString(options.locales, { weekday: "long" }), + A: () => meridiem(hours, minutes), + AA: () => meridiem(hours, minutes, false, true), + a: () => meridiem(hours, minutes, true), + aa: () => meridiem(hours, minutes, true, true) + }; + return formatStr.replace(REGEX_FORMAT, (match, $1) => { + var _a2; + return $1 || ((_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) || match; + }); +} +function normalizeDate(date) { + if (date === null) + return /* @__PURE__ */ new Date(NaN); + if (date === void 0) + return /* @__PURE__ */ new Date(); + if (date instanceof Date) + return new Date(date); + if (typeof date === "string" && !/Z$/i.test(date)) { + const d = date.match(REGEX_PARSE); + if (d) { + const m = d[2] - 1 || 0; + const ms = (d[7] || "0").substring(0, 3); + return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms); + } + } + return new Date(date); +} +function useDateFormat(date, formatStr = "HH:mm:ss", options = {}) { + return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options)); +} + +function useIntervalFn(cb, interval = 1e3, options = {}) { + const { + immediate = true, + immediateCallback = false + } = options; + let timer = null; + const isActive = ref(false); + function clean() { + if (timer) { + clearInterval(timer); + timer = null; + } + } + function pause() { + isActive.value = false; + clean(); + } + function resume() { + const intervalValue = toValue(interval); + if (intervalValue <= 0) + return; + isActive.value = true; + if (immediateCallback) + cb(); + clean(); + timer = setInterval(cb, intervalValue); + } + if (immediate && isClient) + resume(); + if (isRef(interval) || typeof interval === "function") { + const stopWatch = watch(interval, () => { + if (isActive.value && isClient) + resume(); + }); + tryOnScopeDispose(stopWatch); + } + tryOnScopeDispose(pause); + return { + isActive, + pause, + resume + }; +} + +var __defProp$8 = Object.defineProperty; +var __getOwnPropSymbols$a = Object.getOwnPropertySymbols; +var __hasOwnProp$a = Object.prototype.hasOwnProperty; +var __propIsEnum$a = Object.prototype.propertyIsEnumerable; +var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$8 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$a.call(b, prop)) + __defNormalProp$8(a, prop, b[prop]); + if (__getOwnPropSymbols$a) + for (var prop of __getOwnPropSymbols$a(b)) { + if (__propIsEnum$a.call(b, prop)) + __defNormalProp$8(a, prop, b[prop]); + } + return a; +}; +function useInterval(interval = 1e3, options = {}) { + const { + controls: exposeControls = false, + immediate = true, + callback + } = options; + const counter = ref(0); + const update = () => counter.value += 1; + const reset = () => { + counter.value = 0; + }; + const controls = useIntervalFn( + callback ? () => { + update(); + callback(counter.value); + } : update, + interval, + { immediate } + ); + if (exposeControls) { + return __spreadValues$8({ + counter, + reset + }, controls); + } else { + return counter; + } +} + +function useLastChanged(source, options = {}) { + var _a; + const ms = ref((_a = options.initialValue) != null ? _a : null); + watch( + source, + () => ms.value = timestamp(), + options + ); + return ms; +} + +function useTimeoutFn(cb, interval, options = {}) { + const { + immediate = true + } = options; + const isPending = ref(false); + let timer = null; + function clear() { + if (timer) { + clearTimeout(timer); + timer = null; + } + } + function stop() { + isPending.value = false; + clear(); + } + function start(...args) { + clear(); + isPending.value = true; + timer = setTimeout(() => { + isPending.value = false; + timer = null; + cb(...args); + }, toValue(interval)); + } + if (immediate) { + isPending.value = true; + if (isClient) + start(); + } + tryOnScopeDispose(stop); + return { + isPending: readonly(isPending), + start, + stop + }; +} + +var __defProp$7 = Object.defineProperty; +var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols; +var __hasOwnProp$9 = Object.prototype.hasOwnProperty; +var __propIsEnum$9 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$7 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$9.call(b, prop)) + __defNormalProp$7(a, prop, b[prop]); + if (__getOwnPropSymbols$9) + for (var prop of __getOwnPropSymbols$9(b)) { + if (__propIsEnum$9.call(b, prop)) + __defNormalProp$7(a, prop, b[prop]); + } + return a; +}; +function useTimeout(interval = 1e3, options = {}) { + const { + controls: exposeControls = false, + callback + } = options; + const controls = useTimeoutFn( + callback != null ? callback : noop, + interval, + options + ); + const ready = computed(() => !controls.isPending.value); + if (exposeControls) { + return __spreadValues$7({ + ready + }, controls); + } else { + return ready; + } +} + +function useToNumber(value, options = {}) { + const { + method = "parseFloat", + radix, + nanToZero + } = options; + return computed(() => { + let resolved = toValue(value); + if (typeof resolved === "string") + resolved = Number[method](resolved, radix); + if (nanToZero && isNaN(resolved)) + resolved = 0; + return resolved; + }); +} + +function useToString(value) { + return computed(() => `${toValue(value)}`); +} + +function useToggle(initialValue = false, options = {}) { + const { + truthyValue = true, + falsyValue = false + } = options; + const valueIsRef = isRef(initialValue); + const _value = ref(initialValue); + function toggle(value) { + if (arguments.length) { + _value.value = value; + return _value.value; + } else { + const truthy = toValue(truthyValue); + _value.value = _value.value === truthy ? toValue(falsyValue) : truthy; + return _value.value; + } + } + if (valueIsRef) + return toggle; + else + return [_value, toggle]; +} + +function watchArray(source, cb, options) { + let oldList = (options == null ? void 0 : options.immediate) ? [] : [ + ...source instanceof Function ? source() : Array.isArray(source) ? source : toValue(source) + ]; + return watch(source, (newList, _, onCleanup) => { + const oldListRemains = new Array(oldList.length); + const added = []; + for (const obj of newList) { + let found = false; + for (let i = 0; i < oldList.length; i++) { + if (!oldListRemains[i] && obj === oldList[i]) { + oldListRemains[i] = true; + found = true; + break; + } + } + if (!found) + added.push(obj); + } + const removed = oldList.filter((_2, i) => !oldListRemains[i]); + cb(newList, oldList, added, removed, onCleanup); + oldList = [...newList]; + }, options); +} + +var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols; +var __hasOwnProp$8 = Object.prototype.hasOwnProperty; +var __propIsEnum$8 = Object.prototype.propertyIsEnumerable; +var __objRest$5 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$8) + for (var prop of __getOwnPropSymbols$8(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchWithFilter(source, cb, options = {}) { + const _a = options, { + eventFilter = bypassFilter + } = _a, watchOptions = __objRest$5(_a, [ + "eventFilter" + ]); + return watch( + source, + createFilterWrapper( + eventFilter, + cb + ), + watchOptions + ); +} + +var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols; +var __hasOwnProp$7 = Object.prototype.hasOwnProperty; +var __propIsEnum$7 = Object.prototype.propertyIsEnumerable; +var __objRest$4 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$7) + for (var prop of __getOwnPropSymbols$7(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchAtMost(source, cb, options) { + const _a = options, { + count + } = _a, watchOptions = __objRest$4(_a, [ + "count" + ]); + const current = ref(0); + const stop = watchWithFilter( + source, + (...args) => { + current.value += 1; + if (current.value >= toValue(count)) + nextTick(() => stop()); + cb(...args); + }, + watchOptions + ); + return { count: current, stop }; +} + +var __defProp$6 = Object.defineProperty; +var __defProps$6 = Object.defineProperties; +var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols; +var __hasOwnProp$6 = Object.prototype.hasOwnProperty; +var __propIsEnum$6 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$6 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$6.call(b, prop)) + __defNormalProp$6(a, prop, b[prop]); + if (__getOwnPropSymbols$6) + for (var prop of __getOwnPropSymbols$6(b)) { + if (__propIsEnum$6.call(b, prop)) + __defNormalProp$6(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b)); +var __objRest$3 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$6) + for (var prop of __getOwnPropSymbols$6(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchDebounced(source, cb, options = {}) { + const _a = options, { + debounce = 0, + maxWait = void 0 + } = _a, watchOptions = __objRest$3(_a, [ + "debounce", + "maxWait" + ]); + return watchWithFilter( + source, + cb, + __spreadProps$6(__spreadValues$6({}, watchOptions), { + eventFilter: debounceFilter(debounce, { maxWait }) + }) + ); +} + +var __defProp$5 = Object.defineProperty; +var __defProps$5 = Object.defineProperties; +var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols; +var __hasOwnProp$5 = Object.prototype.hasOwnProperty; +var __propIsEnum$5 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$5 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$5.call(b, prop)) + __defNormalProp$5(a, prop, b[prop]); + if (__getOwnPropSymbols$5) + for (var prop of __getOwnPropSymbols$5(b)) { + if (__propIsEnum$5.call(b, prop)) + __defNormalProp$5(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b)); +function watchDeep(source, cb, options) { + return watch( + source, + cb, + __spreadProps$5(__spreadValues$5({}, options), { + deep: true + }) + ); +} + +var __defProp$4 = Object.defineProperty; +var __defProps$4 = Object.defineProperties; +var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols; +var __hasOwnProp$4 = Object.prototype.hasOwnProperty; +var __propIsEnum$4 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$4 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$4.call(b, prop)) + __defNormalProp$4(a, prop, b[prop]); + if (__getOwnPropSymbols$4) + for (var prop of __getOwnPropSymbols$4(b)) { + if (__propIsEnum$4.call(b, prop)) + __defNormalProp$4(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b)); +var __objRest$2 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$4) + for (var prop of __getOwnPropSymbols$4(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchIgnorable(source, cb, options = {}) { + const _a = options, { + eventFilter = bypassFilter + } = _a, watchOptions = __objRest$2(_a, [ + "eventFilter" + ]); + const filteredCb = createFilterWrapper( + eventFilter, + cb + ); + let ignoreUpdates; + let ignorePrevAsyncUpdates; + let stop; + if (watchOptions.flush === "sync") { + const ignore = ref(false); + ignorePrevAsyncUpdates = () => { + }; + ignoreUpdates = (updater) => { + ignore.value = true; + updater(); + ignore.value = false; + }; + stop = watch( + source, + (...args) => { + if (!ignore.value) + filteredCb(...args); + }, + watchOptions + ); + } else { + const disposables = []; + const ignoreCounter = ref(0); + const syncCounter = ref(0); + ignorePrevAsyncUpdates = () => { + ignoreCounter.value = syncCounter.value; + }; + disposables.push( + watch( + source, + () => { + syncCounter.value++; + }, + __spreadProps$4(__spreadValues$4({}, watchOptions), { flush: "sync" }) + ) + ); + ignoreUpdates = (updater) => { + const syncCounterPrev = syncCounter.value; + updater(); + ignoreCounter.value += syncCounter.value - syncCounterPrev; + }; + disposables.push( + watch( + source, + (...args) => { + const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value; + ignoreCounter.value = 0; + syncCounter.value = 0; + if (ignore) + return; + filteredCb(...args); + }, + watchOptions + ) + ); + stop = () => { + disposables.forEach((fn) => fn()); + }; + } + return { stop, ignoreUpdates, ignorePrevAsyncUpdates }; +} + +var __defProp$3 = Object.defineProperty; +var __defProps$3 = Object.defineProperties; +var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols; +var __hasOwnProp$3 = Object.prototype.hasOwnProperty; +var __propIsEnum$3 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$3 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$3.call(b, prop)) + __defNormalProp$3(a, prop, b[prop]); + if (__getOwnPropSymbols$3) + for (var prop of __getOwnPropSymbols$3(b)) { + if (__propIsEnum$3.call(b, prop)) + __defNormalProp$3(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b)); +function watchImmediate(source, cb, options) { + return watch( + source, + cb, + __spreadProps$3(__spreadValues$3({}, options), { + immediate: true + }) + ); +} + +function watchOnce(source, cb, options) { + const stop = watch(source, (...args) => { + nextTick(() => stop()); + return cb(...args); + }, options); +} + +var __defProp$2 = Object.defineProperty; +var __defProps$2 = Object.defineProperties; +var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols; +var __hasOwnProp$2 = Object.prototype.hasOwnProperty; +var __propIsEnum$2 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$2 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$2.call(b, prop)) + __defNormalProp$2(a, prop, b[prop]); + if (__getOwnPropSymbols$2) + for (var prop of __getOwnPropSymbols$2(b)) { + if (__propIsEnum$2.call(b, prop)) + __defNormalProp$2(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b)); +var __objRest$1 = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$2) + for (var prop of __getOwnPropSymbols$2(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchPausable(source, cb, options = {}) { + const _a = options, { + eventFilter: filter + } = _a, watchOptions = __objRest$1(_a, [ + "eventFilter" + ]); + const { eventFilter, pause, resume, isActive } = pausableFilter(filter); + const stop = watchWithFilter( + source, + cb, + __spreadProps$2(__spreadValues$2({}, watchOptions), { + eventFilter + }) + ); + return { stop, pause, resume, isActive }; +} + +var __defProp$1 = Object.defineProperty; +var __defProps$1 = Object.defineProperties; +var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols; +var __hasOwnProp$1 = Object.prototype.hasOwnProperty; +var __propIsEnum$1 = Object.prototype.propertyIsEnumerable; +var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues$1 = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp$1.call(b, prop)) + __defNormalProp$1(a, prop, b[prop]); + if (__getOwnPropSymbols$1) + for (var prop of __getOwnPropSymbols$1(b)) { + if (__propIsEnum$1.call(b, prop)) + __defNormalProp$1(a, prop, b[prop]); + } + return a; +}; +var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b)); +var __objRest = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols$1) + for (var prop of __getOwnPropSymbols$1(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; +function watchThrottled(source, cb, options = {}) { + const _a = options, { + throttle = 0, + trailing = true, + leading = true + } = _a, watchOptions = __objRest(_a, [ + "throttle", + "trailing", + "leading" + ]); + return watchWithFilter( + source, + cb, + __spreadProps$1(__spreadValues$1({}, watchOptions), { + eventFilter: throttleFilter(throttle, trailing, leading) + }) + ); +} + +var __defProp = Object.defineProperty; +var __defProps = Object.defineProperties; +var __getOwnPropDescs = Object.getOwnPropertyDescriptors; +var __getOwnPropSymbols = Object.getOwnPropertySymbols; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __propIsEnum = Object.prototype.propertyIsEnumerable; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __spreadValues = (a, b) => { + for (var prop in b || (b = {})) + if (__hasOwnProp.call(b, prop)) + __defNormalProp(a, prop, b[prop]); + if (__getOwnPropSymbols) + for (var prop of __getOwnPropSymbols(b)) { + if (__propIsEnum.call(b, prop)) + __defNormalProp(a, prop, b[prop]); + } + return a; +}; +var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); +function watchTriggerable(source, cb, options = {}) { + let cleanupFn; + function onEffect() { + if (!cleanupFn) + return; + const fn = cleanupFn; + cleanupFn = void 0; + fn(); + } + function onCleanup(callback) { + cleanupFn = callback; + } + const _cb = (value, oldValue) => { + onEffect(); + return cb(value, oldValue, onCleanup); + }; + const res = watchIgnorable(source, _cb, options); + const { ignoreUpdates } = res; + const trigger = () => { + let res2; + ignoreUpdates(() => { + res2 = _cb(getWatchSources(source), getOldValue(source)); + }); + return res2; + }; + return __spreadProps(__spreadValues({}, res), { + trigger + }); +} +function getWatchSources(sources) { + if (isReactive(sources)) + return sources; + if (Array.isArray(sources)) + return sources.map((item) => toValue(item)); + return toValue(sources); +} +function getOldValue(source) { + return Array.isArray(source) ? source.map(() => void 0) : void 0; +} + +function whenever(source, cb, options) { + return watch( + source, + (v, ov, onInvalidate) => { + if (v) + cb(v, ov, onInvalidate); + }, + options + ); +} + +export { assert, refAutoReset as autoResetRef, bypassFilter, clamp, computedEager, computedWithControl, containsProp, computedWithControl as controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, reactify as createReactiveFn, createSharedComposable, createSingletonPromise, debounceFilter, refDebounced as debouncedRef, watchDebounced as debouncedWatch, directiveHooks, computedEager as eagerComputed, extendRef, formatDate, get, hasOwn, identity, watchIgnorable as ignorableWatch, increaseWithUnit, invoke, isClient, isDef, isDefined, isIOS, isObject, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, watchPausable as pausableWatch, promiseTimeout, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refThrottled, refWithControl, resolveRef, resolveUnref, set, syncRef, syncRefs, throttleFilter, refThrottled as throttledRef, watchThrottled as throttledWatch, timestamp, toReactive, toRef, toRefs, toValue, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, refDebounced as useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, refThrottled as useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever }; diff --git a/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js b/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js new file mode 100644 index 00000000..5a3faea0 --- /dev/null +++ b/code/WebApp/vanilla/lib/better-mock/mock.browser.esm.js @@ -0,0 +1,8842 @@ +/*! + * better-mock v0.3.6 (mock.browser.esm.js) + * (c) 2019-2022 lavyun@163.com + * Released under the MIT License. + */ + +var constant = { + GUID: 1, + RE_KEY: /(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/, + RE_TRANSFER_TYPE: /#(.*)$/, + RE_RANGE: /([\+\-]?\d+)-?([\+\-]?\d+)?/, + RE_PLACEHOLDER: /\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g +}; + +/* type-coverage:ignore-next-line */ +var type = function (value) { + return isDef(value) + ? Object.prototype.toString.call(value).match(/\[object (\w+)\]/)[1].toLowerCase() + : String(value); +}; +var isDef = function (value) { + return value !== undefined && value !== null; +}; +var isString = function (value) { + return type(value) === 'string'; +}; +var isNumber = function (value) { + return type(value) === 'number'; +}; +var isObject = function (value) { + return type(value) === 'object'; +}; +var isArray = function (value) { + return type(value) === 'array'; +}; +var isRegExp = function (value) { + return type(value) === 'regexp'; +}; +var isFunction = function (value) { + return type(value) === 'function'; +}; +var keys = function (obj) { + var keys = []; + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + keys.push(key); + } + } + return keys; +}; +var values = function (obj) { + var values = []; + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + values.push(obj[key]); + } + } + return values; +}; +/** + * Mock.heredoc(fn) + * 以直观、安全的方式书写(多行)HTML 模板。 + * http://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript + */ +var heredoc = function (fn) { + // 1. 移除起始的 function(){ /*! + // 2. 移除末尾的 */ } + // 3. 移除起始和末尾的空格 + return fn + .toString() + .replace(/^[^\/]+\/\*!?/, '') + .replace(/\*\/[^\/]+$/, '') + .replace(/^[\s\xA0]+/, '') + .replace(/[\s\xA0]+$/, ''); // .trim() +}; +var noop = function () { }; +var assert = function (condition, error) { + if (!condition) { + throw new Error('[better-mock] ' + error); + } +}; +/** + * 创建一个自定义事件,兼容 IE + * @param type 一个字符串,表示事件名称。 + * @param bubbles 一个布尔值,表示该事件能否冒泡。 + * @param cancelable 一个布尔值,表示该事件是否可以取消。 + * @param detail 一个任意类型,传递给事件的自定义数据。 + */ +var createCustomEvent = function (type, bubbles, cancelable, detail) { + if (bubbles === void 0) { bubbles = false; } + if (cancelable === void 0) { cancelable = false; } + try { + return new CustomEvent(type, { bubbles: bubbles, cancelable: cancelable, detail: detail }); + } + catch (e) { + var event_1 = document.createEvent('CustomEvent'); + event_1.initCustomEvent(type, bubbles, cancelable, detail); + return event_1; + } +}; + +var Util = /*#__PURE__*/Object.freeze({ + __proto__: null, + type: type, + isDef: isDef, + isString: isString, + isNumber: isNumber, + isObject: isObject, + isArray: isArray, + isRegExp: isRegExp, + isFunction: isFunction, + keys: keys, + values: values, + heredoc: heredoc, + noop: noop, + assert: assert, + createCustomEvent: createCustomEvent +}); + +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __awaiter(thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +function __spreadArrays() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; +} + +var MAX_NATURE_NUMBER = 9007199254740992; +var MIN_NATURE_NUMBER = -9007199254740992; +// 返回一个随机的布尔值。 +var boolean = function (min, max, current) { + if (min === void 0) { min = 1; } + if (max === void 0) { max = 1; } + if (isDef(current)) { + if (isDef(min)) { + min = !isNaN(min) ? parseInt(min.toString(), 10) : 1; + } + if (isDef(max)) { + max = !isNaN(max) ? parseInt(max.toString(), 10) : 1; + } + return Math.random() > 1.0 / (min + max) * min ? !current : current; + } + return Math.random() >= 0.5; +}; +var bool = boolean; +// 返回一个随机的自然数(大于等于 0 的整数)。 +var natural = function (min, max) { + if (min === void 0) { min = 0; } + if (max === void 0) { max = MAX_NATURE_NUMBER; } + min = parseInt(min.toString(), 10); + max = parseInt(max.toString(), 10); + return Math.round(Math.random() * (max - min)) + min; +}; +// 返回一个随机的整数。 +var integer = function (min, max) { + if (min === void 0) { min = MIN_NATURE_NUMBER; } + if (max === void 0) { max = MAX_NATURE_NUMBER; } + min = parseInt(min.toString(), 10); + max = parseInt(max.toString(), 10); + return Math.round(Math.random() * (max - min)) + min; +}; +var int = integer; +// 返回一个随机的浮点数。 +var float = function (min, max, dmin, dmax) { + dmin = isDef(dmin) ? dmin : 0; + dmin = Math.max(Math.min(dmin, 17), 0); + dmax = isDef(dmax) ? dmax : 17; + dmax = Math.max(Math.min(dmax, 17), 0); + var ret = integer(min, max) + '.'; + for (var i = 0, dcount = natural(dmin, dmax); i < dcount; i++) { + // 最后一位不能为 0:如果最后一位为 0,会被 JS 引擎忽略掉。 + var num = i < dcount - 1 ? character('number') : character('123456789'); + ret += num; + } + return parseFloat(ret); +}; +// 返回一个随机字符。 +var character = function (pool) { + if (pool === void 0) { pool = ''; } + var lower = 'abcdefghijklmnopqrstuvwxyz'; + var upper = lower.toUpperCase(); + var number = '0123456789'; + var symbol = '!@#$%^&*()[]'; + var pools = { + lower: lower, + upper: upper, + number: number, + symbol: symbol, + alpha: lower + upper + }; + if (!pool) { + pool = lower + upper + number + symbol; + } + else { + pool = pools[pool.toLowerCase()] || pool; + } + return pool.charAt(natural(0, pool.length - 1)); +}; +var char = character; +// 返回一个随机字符串。 +var string = function (pool, min, max) { + var len; + switch (arguments.length) { + case 0: // () + len = natural(3, 7); + break; + case 1: // ( length ) + len = pool; + pool = undefined; + break; + case 2: + // ( pool, length ) + if (typeof arguments[0] === 'string') { + len = min; + } + else { + // ( min, max ) + len = natural(pool, min); + pool = undefined; + } + break; + case 3: + len = natural(min, max); + break; + } + var text = ''; + for (var i = 0; i < len; i++) { + text += character(pool); + } + return text; +}; +var str = string; +// 返回一个整型数组。 +var range = function (start, stop, step) { + if (step === void 0) { step = 1; } + // range( stop ) + if (arguments.length <= 1) { + stop = start || 0; + start = 0; + } + start = +start; + stop = +stop; + step = +step; + var idx = 0; + var len = Math.max(Math.ceil((stop - start) / step), 0); + var range = new Array(len); + while (idx < len) { + range[idx++] = start; + start += step; + } + return range; +}; + +var basic = /*#__PURE__*/Object.freeze({ + __proto__: null, + boolean: boolean, + bool: bool, + natural: natural, + integer: integer, + int: int, + float: float, + character: character, + char: char, + string: string, + str: str, + range: range +}); + +// Date +var _padZero = function (value) { + return value < 10 ? '0' + value : value.toString(); +}; +var patternLetters = { + yyyy: 'getFullYear', + yy: function (date) { + return date.getFullYear().toString().slice(2); + }, + y: 'yy', + MM: function (date) { + return _padZero(date.getMonth() + 1); + }, + M: function (date) { + return (date.getMonth() + 1).toString(); + }, + dd: function (date) { + return _padZero(date.getDate()); + }, + d: 'getDate', + HH: function (date) { + return _padZero(date.getHours()); + }, + H: 'getHours', + hh: function (date) { + return _padZero(date.getHours() % 12); + }, + h: function (date) { + return (date.getHours() % 12).toString(); + }, + mm: function (date) { + return _padZero(date.getMinutes()); + }, + m: 'getMinutes', + ss: function (date) { + return _padZero(date.getSeconds()); + }, + s: 'getSeconds', + SS: function (date) { + var ms = date.getMilliseconds(); + return ms < 10 && '00' + ms || ms < 100 && '0' + ms || ms.toString(); + }, + S: 'getMilliseconds', + A: function (date) { + return date.getHours() < 12 ? 'AM' : 'PM'; + }, + a: function (date) { + return date.getHours() < 12 ? 'am' : 'pm'; + }, + T: 'getTime' +}; +var _createFormatRE = function () { + var re = keys(patternLetters); + return '(' + re.join('|') + ')'; +}; +var _formatDate = function (date, format) { + var formatRE = new RegExp(_createFormatRE(), 'g'); + return format.replace(formatRE, function createNewSubString($0, flag) { + return typeof patternLetters[flag] === 'function' + ? patternLetters[flag](date) + : patternLetters[flag] in patternLetters + ? createNewSubString($0, patternLetters[flag]) + : date[patternLetters[flag]](); + }); +}; +// 生成一个随机的 Date 对象。 +var _randomDate = function (min, max) { + if (min === void 0) { min = new Date(0); } + if (max === void 0) { max = new Date(); } + var randomTS = Math.random() * (max.getTime() - min.getTime()); + return new Date(randomTS); +}; +// 返回一个随机的日期字符串。 +var date = function (format) { + if (format === void 0) { format = 'yyyy-MM-dd'; } + return _formatDate(_randomDate(), format); +}; +// 返回一个随机的时间字符串。 +var time = function (format) { + if (format === void 0) { format = 'HH:mm:ss'; } + return _formatDate(_randomDate(), format); +}; +// 返回一个随机的日期和时间字符串。 +var datetime = function (format) { + if (format === void 0) { format = 'yyyy-MM-dd HH:mm:ss'; } + return _formatDate(_randomDate(), format); +}; +// 返回一个随机的时间戳 +var timestamp = function () { + return Number(_formatDate(_randomDate(), 'T')); +}; +// 返回当前的日期和时间字符串。 +var now = function (unit, format) { + // now(unit) now(format) + if (arguments.length === 1) { + // now(format) + if (!/year|month|day|hour|minute|second|week/.test(unit)) { + format = unit; + unit = ''; + } + } + unit = (unit || '').toLowerCase(); + format = format || 'yyyy-MM-dd HH:mm:ss'; + var date = new Date(); + // 参考自 http://momentjs.cn/docs/#/manipulating/start-of/ + switch (unit) { + case 'year': + date.setMonth(0); + break; + case 'month': + date.setDate(1); + break; + case 'week': + date.setDate(date.getDate() - date.getDay()); + break; + case 'day': + date.setHours(0); + break; + case 'hour': + date.setMinutes(0); + break; + case 'minute': + date.setSeconds(0); + break; + case 'second': + date.setMilliseconds(0); + } + return _formatDate(date, format); +}; + +var date$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + date: date, + time: time, + datetime: datetime, + timestamp: timestamp, + now: now +}); + +// 把字符串的第一个字母转换为大写。 +var capitalize = function (word) { + word = word + ''; + return word.charAt(0).toUpperCase() + word.substr(1); +}; +// 把字符串转换为大写。 +var upper = function (str) { + return (str + '').toUpperCase(); +}; +// 把字符串转换为小写。 +var lower = function (str) { + return (str + '').toLowerCase(); +}; +// 从数组中随机选择一个 +var pickOne = function (arr) { + return arr[natural(0, arr.length - 1)]; +}; +function pick(arr, min, max) { + if (min === void 0) { min = 1; } + // pick( item1, item2 ... ) + if (!isArray(arr)) { + return pickOne(Array.from(arguments)); + } + // pick( [ item1, item2 ... ], count ) + if (!isDef(max)) { + max = min; + } + if (min === 1 && max === 1) { + return pickOne(arr); + } + // pick( [ item1, item2 ... ], min, max ) + return shuffle(arr, min, max); +} +// 从map中随机选择一个 +var pickMap = function (map) { + return pick(values(map)); +}; +// 打乱数组中元素的顺序,并按照 min - max 返回。 +var shuffle = function (arr, min, max) { + if (!Array.isArray(arr)) { + return []; + } + var copy = arr.slice(); + var length = arr.length; + for (var i = 0; i < length; i++) { + var swapIndex = natural(0, length - 1); + var swapValue = copy[swapIndex]; + copy[swapIndex] = copy[i]; + copy[i] = swapValue; + } + if (min && max) { + return copy.slice(0, natural(min, max)); + } + if (min) { + return copy.slice(0, min); + } + return copy; +}; + +var helper = /*#__PURE__*/Object.freeze({ + __proto__: null, + capitalize: capitalize, + upper: upper, + lower: lower, + pickOne: pickOne, + pick: pick, + pickMap: pickMap, + shuffle: shuffle +}); + +// image +// 常见图片尺寸 +var imageSize = [ + '150x100', '300x200', '400x300', '600x450', '800x600', + '100x150', '200x300', '300x400', '450x600', '600x800', + '100x100', '200x200', '300x300', '450x450', '600x600' +]; +/** + * 随机生成一个图片,使用:http://iph.href.lu,例如: + * https://iph.href.lu/600x400?fg=cc00cc&bg=470047&text=hello + * @param size 图片大小 + * @param background 背景色 + * @param foreground 文字颜色 + * @param format 图片格式 + * @param text 文字 + */ +var image = function (size, background, foreground, format, text) { + if (size === void 0) { size = ''; } + if (background === void 0) { background = ''; } + if (foreground === void 0) { foreground = ''; } + if (format === void 0) { format = ''; } + if (text === void 0) { text = ''; } + // Random.image( size, background, foreground, text ) + if (arguments.length === 4) { + text = format; + format = ''; + } + // Random.image( size, background, text ) + if (arguments.length === 3) { + text = foreground; + foreground = ''; + } + // Random.image( size, text ) + if (arguments.length === 2) { + text = background; + background = ''; + } + // Random.image() + size = size || pick(imageSize); + if (background && ~background.indexOf('#')) { + background = background.slice(1); + } + if (foreground && ~foreground.indexOf('#')) { + foreground = foreground.slice(1); + } + return format + ? ('https://dummyimage.com/' + + size + + (background ? '/' + background : '') + + (foreground ? '/' + foreground : '') + + (format ? '.' + format : '') + + (text ? '?text=' + encodeURIComponent(text) : '')) + : "https://iph.href.lu/" + size + "?bg=" + background + "&fg=" + foreground + "&text=" + text; +}; +var img = image; +/** + * 生成一个随机的base64图片 + * @param size 图片宽高 + * @param text 图片上的文字 + */ +var dataImage = function (size, text) { + size = size || pick(imageSize); + text = text || size; + var background = pick([ + '#171515', '#e47911', '#183693', '#720e9e', '#c4302b', '#dd4814', + '#00acee', '#0071c5', '#3d9ae8', '#ec6231', '#003580', '#e51937' + ]); + var sizes = size.split('x'); + var width = parseInt(sizes[0], 10); + var height = parseInt(sizes[1], 10); + assert(isNumber(width) && isNumber(height), 'Invalid size, expected INTxINT, e.g. 300x400'); + { + return createBrowserDataImage(width, height, background, text); + } +}; +// browser 端生成 base64 图片 +function createBrowserDataImage(width, height, background, text) { + var canvas = document.createElement('canvas'); + var ctx = canvas && canvas.getContext && canvas.getContext('2d'); + if (!canvas || !ctx) { + return ''; + } + canvas.width = width; + canvas.height = height; + ctx.textAlign = 'center'; + ctx.textBaseline = 'middle'; + ctx.fillStyle = background; + ctx.fillRect(0, 0, width, height); + ctx.fillStyle = '#FFFFFF'; + ctx.font = 'bold 14px sans-serif'; + ctx.fillText(text, width / 2, height / 2, width); + return canvas.toDataURL('image/png'); +} + +var image$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + image: image, + img: img, + dataImage: dataImage +}); + +// 颜色空间RGB与HSV(HSL)的转换 +var hsv2rgb = function hsv2rgb(hsv) { + var h = hsv[0] / 60; + var s = hsv[1] / 100; + var v = hsv[2] / 100; + var hi = Math.floor(h) % 6; + var f = h - Math.floor(h); + var p = 255 * v * (1 - s); + var q = 255 * v * (1 - (s * f)); + var t = 255 * v * (1 - (s * (1 - f))); + v = 255 * v; + switch (hi) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; + } +}; +var hsv2hsl = function hsv2hsl(hsv) { + var h = hsv[0], s = hsv[1] / 100, v = hsv[2] / 100, sl, l; + l = (2 - s) * v; + sl = s * v; + sl /= (l <= 1) ? l : 2 - l; + l /= 2; + return [h, sl * 100, l * 100]; +}; +// http://www.140byt.es/keywords/color +var rgb2hex = function (a, // red, as a number from 0 to 255 +b, // green, as a number from 0 to 255 +c // blue, as a number from 0 to 255 +) { + return "#" + ((256 + a << 8 | b) << 8 | c).toString(16).slice(1); +}; + +// 颜色相关 +var colorMap = { + navy: '#001F3F', + blue: '#0074D9', + aqua: '#7FDBFF', + teal: '#39CCCC', + olive: '#3D9970', + green: '#2ECC40', + lime: '#01FF70', + yellow: '#FFDC00', + orange: '#FF851B', + red: '#FF4136', + maroon: '#85144B', + fuchsia: '#F012BE', + purple: '#B10DC9', + silver: '#DDDDDD', + gray: '#AAAAAA', + black: '#111111', + white: '#FFFFFF' +}; +// 随机生成一个有吸引力的颜色,格式为 '#RRGGBB'。 +var color = function (name) { + if (name === void 0) { name = ''; } + if (name && colorMap[name]) { + return colorMap[name]; + } + return hex(); +}; +// #DAC0DE +var hex = function () { + var hsv = _goldenRatioColor(); + var rgb = hsv2rgb(hsv); + return rgb2hex(rgb[0], rgb[1], rgb[2]); +}; +// rgb(128,255,255) +var rgb = function () { + var hsv = _goldenRatioColor(); + var rgb = hsv2rgb(hsv); + return 'rgb(' + + parseInt(rgb[0].toString(), 10) + ', ' + + parseInt(rgb[1].toString(), 10) + ', ' + + parseInt(rgb[2].toString(), 10) + ')'; +}; +// rgba(128,255,255,0.3) +var rgba = function () { + var hsv = _goldenRatioColor(); + var rgb = hsv2rgb(hsv); + return 'rgba(' + + parseInt(rgb[0].toString(), 10) + ', ' + + parseInt(rgb[1].toString(), 10) + ', ' + + parseInt(rgb[2].toString(), 10) + ', ' + + Math.random().toFixed(2) + ')'; +}; +// hsl(300,80%,90%) +var hsl = function () { + var hsv = _goldenRatioColor(); + var hsl = hsv2hsl(hsv); + return 'hsl(' + + parseInt(hsl[0], 10) + ', ' + + parseInt(hsl[1], 10) + ', ' + + parseInt(hsl[2], 10) + ')'; +}; +// http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ +// https://github.com/devongovett/color-generator/blob/master/index.js +// 随机生成一个有吸引力的颜色。 +var _hue = 0; +var _goldenRatioColor = function (saturation, value) { + var _goldenRatio = 0.618033988749895; + _hue = _hue || Math.random(); + _hue += _goldenRatio; + _hue %= 1; + if (typeof saturation !== "number") + saturation = 0.5; + if (typeof value !== "number") + value = 0.95; + return [ + _hue * 360, + saturation * 100, + value * 100 + ]; +}; + +var color$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + color: color, + hex: hex, + rgb: rgb, + rgba: rgba, + hsl: hsl +}); + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff'; +var rsComboMarksRange = '\\u0300-\\u036f'; +var reComboHalfMarksRange = '\\ufe20-\\ufe2f'; +var rsComboSymbolsRange = '\\u20d0-\\u20ff'; +var rsComboMarksExtendedRange = '\\u1ab0-\\u1aff'; +var rsComboMarksSupplementRange = '\\u1dc0-\\u1dff'; +var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange + rsComboMarksExtendedRange + rsComboMarksSupplementRange; +var rsVarRange = '\\ufe0e\\ufe0f'; +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; +var rsAstral = "[" + rsAstralRange + "]"; +var rsCombo = "[" + rsComboRange + "]"; +var rsFitz = '\\ud83c[\\udffb-\\udfff]'; +var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")"; +var rsNonAstral = "[^" + rsAstralRange + "]"; +var rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}'; +var rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]'; +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + "?"; +var rsOptVar = "[" + rsVarRange + "]?"; +var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ")" + (rsOptVar + reOptMod) + ")*"; +var rsSeq = rsOptVar + reOptMod + rsOptJoin; +var rsNonAstralCombo = "" + rsNonAstral + rsCombo + "?"; +var rsSymbol = "(?:" + [rsNonAstralCombo, rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ")"; +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + (rsSymbol + rsSeq), 'g'); +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp("[" + (rsZWJ + rsAstralRange + rsComboRange + rsVarRange) + "]"); +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); +} +/** +* Converts a Unicode `string` to an array. +* +* @private +* @param {string} string The string to convert. +* @returns {Array} Returns the converted array. +*/ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +/* istanbul ignore next */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +var _range = function (defaultMin, defaultMax, min, max) { + return !isDef(min) + ? natural(defaultMin, defaultMax) + : !isDef(max) + ? min + : natural(parseInt(min.toString(), 10), parseInt(max.toString(), 10)); // ( min, max ) +}; +// 随机生成一段文本。 +var paragraph = function (min, max) { + var len = _range(3, 7, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(sentence()); + } + return result.join(' '); +}; +var cparagraph = function (min, max) { + var len = _range(3, 7, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(csentence()); + } + return result.join(''); +}; +// 随机生成一个句子,第一个单词的首字母大写。 +var sentence = function (min, max) { + var len = _range(12, 18, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(word()); + } + return capitalize(result.join(' ')) + '.'; +}; +// 随机生成一个中文句子。 +var csentence = function (min, max) { + var len = _range(12, 18, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(cword()); + } + return result.join('') + '。'; +}; +// 随机生成一个单词。 +var word = function (min, max) { + var len = _range(3, 10, min, max); + var result = ''; + for (var i = 0; i < len; i++) { + result += character('lower'); + } + return result; +}; +// 随机生成一个或多个汉字。 +var cword = function (pool, min, max) { + if (pool === void 0) { pool = ''; } + // 最常用的 500 个汉字 http://baike.baidu.com/view/568436.htm + var cnWords = '的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞'; + var len; + switch (arguments.length) { + case 0: // () + pool = cnWords; + len = 1; + break; + case 1: // ( pool ) + if (typeof arguments[0] === 'string') { + len = 1; + } + else { + // ( length ) + len = pool; + pool = cnWords; + } + break; + case 2: + // ( pool, length ) + if (typeof arguments[0] === 'string') { + len = min; + } + else { + // ( min, max ) + len = natural(parseInt(pool, 10), min); + pool = cnWords; + } + break; + case 3: + len = natural(min, max); + break; + } + var result = ''; + for (var i = 0; i < len; i++) { + result += pool.charAt(natural(0, pool.length - 1)); + } + return result; +}; +// 随机生成一个或多个 emoji 符号 +var emoji = function (pool, min, max) { + if (!['string', 'number', 'undefined'].includes(typeof pool)) { + return ''; + } + // 常用的 338 个emoji符号 http://www.fhdq.net/emoji.html + var emojis = '😀😁😂😃😄😅😆😉😊😋😎😍😘😗😙😚☺😇😐😑😶😏😣😥😮😯😪😫😴😌😛😜😝😒😓😔😕😲😷😖😞😟😤😢😭😦😧😨😬😰😱😳😵😡😠😈👿👹👺💀👻👽👦👧👨👩👴👵👶👱👮👲👳👷👸💂🎅👰👼💆💇🙍🙎🙅🙆💁🙋🙇🙌🙏👤👥🚶🏃👯💃👫👬👭💏💑👪💪👈👉☝👆👇✌✋👌👍👎✊👊👋👏👐✍👣👀👂👃👅👄💋👓👔👕👖👗👘👙👚👛👜👝🎒💼👞👟👠👡👢👑👒🎩🎓💄💅💍🌂🙈🙉🙊🐵🐒🐶🐕🐩🐺🐱😺😸😹😻😼😽🙀😿😾🐈🐯🐅🐆🐴🐎🐮🐂🐃🐄🐷🐖🐗🐽🐏🐑🐐🐪🐫🐘🐭🐁🐀🐹🐰🐇🐻🐨🐼🐾🐔🐓🐣🐤🐥🐦🐧🐸🐊🐢🐍🐲🐉🐳🐋🐬🐟🐠🐡🐙🐚🐌🐛🐜🐝🐞💐🌸💮🌹🌺🌻🌼🌷🌱🌲🌳🌴🌵🌾🌿🍀🍁🍂🍃🌍🌎🌏🌐🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜☀🌝🌞⭐🌟🌠☁⛅☔⚡❄🔥💧🌊💩🍇🍈🍉🍊🍋🍌🍍🍎🍏🍐🍑🍒🍓🍅🍆🌽🍄🌰🍞🍖🍗🍔🍟🍕🍳🍲🍱🍘🍙🍚🍛🍜🍝🍠🍢🍣🍤🍥🍡🍦🍧🍨🍩🍪🎂🍰🍫🍬🍭🍮🍯🍼☕🍵🍶🍷🍸🍹🍺🍻🍴'; + var array = stringToArray(emojis); + if (typeof pool === 'string') { // emoji("😀😁😂"), emoji("😀😂", 2), emoji("😀😂", 2, 3) + array = stringToArray(pool); + } + else if (typeof pool === 'number') { // emoji(2), emoji(2, 3) + max = min; + min = pool; + } + if (min === undefined || min < 2) { // emoji("😀😁😂"), emoji() + return pick(array); // pick(['1', '2']) => "2", pick(['1', '2'], 1) => "2" + } + return pick(array, min, max).join(''); +}; +// 随机生成一句标题,其中每个单词的首字母大写。 +var title = function (min, max) { + var len = _range(3, 7, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(capitalize(word())); + } + return result.join(' '); +}; +// 随机生成一句中文标题。 +var ctitle = function (min, max) { + var len = _range(3, 7, min, max); + var result = []; + for (var i = 0; i < len; i++) { + result.push(cword()); + } + return result.join(''); +}; + +var text = /*#__PURE__*/Object.freeze({ + __proto__: null, + paragraph: paragraph, + cparagraph: cparagraph, + sentence: sentence, + csentence: csentence, + word: word, + cword: cword, + emoji: emoji, + title: title, + ctitle: ctitle +}); + +// 随机生成一个常见的英文名。 +var first = function () { + var male = [ + "James", "John", "Robert", "Michael", "William", + "David", "Richard", "Charles", "Joseph", "Thomas", + "Christopher", "Daniel", "Paul", "Mark", "Donald", + "George", "Kenneth", "Steven", "Edward", "Brian", + "Ronald", "Anthony", "Kevin", "Jason", "Matthew", + "Gary", "Timothy", "Jose", "Larry", "Jeffrey", + "Frank", "Scott", "Eric" + ]; + var female = [ + "Mary", "Patricia", "Linda", "Barbara", "Elizabeth", + "Jennifer", "Maria", "Susan", "Margaret", "Dorothy", + "Lisa", "Nancy", "Karen", "Betty", "Helen", + "Sandra", "Donna", "Carol", "Ruth", "Sharon", + "Michelle", "Laura", "Sarah", "Kimberly", "Deborah", + "Jessica", "Shirley", "Cynthia", "Angela", "Melissa", + "Brenda", "Amy", "Anna" + ]; + return pick(__spreadArrays(male, female)); +}; +// 随机生成一个常见的英文姓。 +var last = function () { + var names = [ + "Smith", "Johnson", "Williams", "Brown", "Jones", + "Miller", "Davis", "Garcia", "Rodriguez", "Wilson", + "Martinez", "Anderson", "Taylor", "Thomas", "Hernandez", + "Moore", "Martin", "Jackson", "Thompson", "White", + "Lopez", "Lee", "Gonzalez", "Harris", "Clark", + "Lewis", "Robinson", "Walker", "Perez", "Hall", + "Young", "Allen" + ]; + return pick(names); +}; +// 随机生成一个常见的英文姓名。 +var name = function (middle) { + if (middle === void 0) { middle = false; } + return first() + ' ' + (middle ? first() + ' ' : '') + last(); +}; +// 随机生成一个常见的中文姓。 +// [世界常用姓氏排行](http://baike.baidu.com/view/1719115.htm) +// [玄派网 - 网络小说创作辅助平台](http://xuanpai.sinaapp.com/) +var cfirst = function () { + var names = [ + "王", "李", "张", "刘", "陈", "杨", "赵", "黄", + "周", "吴", "徐", "孙", "胡", "朱", "高", "林", + "何", "郭", "马", "罗", "梁", "宋", "郑", "谢", + "韩", "唐", "冯", "于", "董", "萧", "程", "曹", + "袁", "邓", "许", "傅", "沈", "曾", "彭", "吕", + "苏", "卢", "蒋", "蔡", "贾", "丁", "魏", "薛", + "叶", "阎", "余", "潘", "杜", "戴", "夏", "锺", + "汪", "田", "任", "姜", "范", "方", "石", "姚", + "谭", "廖", "邹", "熊", "金", "陆", "郝", "孔", + "白", "崔", "康", "毛", "邱", "秦", "江", "史", + "顾", "侯", "邵", "孟", "龙", "万", "段", "雷", + "钱", "汤", "尹", "黎", "易", "常", "武", "乔", + "贺", "赖", "龚", "文" + ]; + return pick(names); +}; +// 随机生成一个常见的中文名。 +// [中国最常见名字前50名_三九算命网](http://www.name999.net/xingming/xingshi/20131004/48.html) +var clast = function () { + var names = [ + "伟", "芳", "娜", "秀英", "敏", "静", "丽", "强", + "磊", "军", "洋", "勇", "艳", "杰", "娟", "涛", + "明", "超", "秀兰", "霞", "平", "刚", "桂英" + ]; + return pick(names); +}; +// 随机生成一个常见的中文姓名。 +var cname = function () { + return cfirst() + clast(); +}; + +var name$1 = /*#__PURE__*/Object.freeze({ + __proto__: null, + first: first, + last: last, + name: name, + cfirst: cfirst, + clast: clast, + cname: cname +}); + +// 随机生成一个 URL。 +var url = function (_protocol, host) { + if (_protocol === void 0) { _protocol = protocol(); } + if (host === void 0) { host = domain(); } + return _protocol + "://" + host + "/" + word(); +}; +// 随机生成一个 URL 协议。 +var protocol = function () { + // 协议簇 + var protocols = [ + 'http', 'ftp', 'gopher', 'mailto', 'mid', 'cid', 'news', 'nntp', + 'prospero', 'telnet', 'rlogin', 'tn3270', 'wais' + ]; + return pick(protocols); +}; +// 随机生成一个域名。 +var domain = function (_tld) { + if (_tld === void 0) { _tld = tld(); } + return word() + '.' + _tld; +}; +// 随机生成一个顶级域名。 +// [域名后缀大全](http://www.163ns.com/zixun/post/4417.html) +var tld = function () { + var tlds = ( + // 域名后缀 + 'com net org edu gov int mil cn ' + + // 国内域名 + 'com.cn net.cn gov.cn org.cn ' + + // 中文国内域名 + '中国 中国互联.公司 中国互联.网络 ' + + // 新国际域名 + 'tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ' + + // 世界各国域名后缀 + 'ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw').split(' '); + return pick(tlds); +}; +// 随机生成一个邮件地址。 +var email = function (_domain) { + if (_domain === void 0) { _domain = domain(); } + return character('lower') + '.' + word() + '@' + _domain; +}; +// 随机生成一个 IP 地址。 +var ip = function () { + return natural(0, 255) + '.' + + natural(0, 255) + '.' + + natural(0, 255) + '.' + + natural(0, 255); +}; + +var web = /*#__PURE__*/Object.freeze({ + __proto__: null, + url: url, + protocol: protocol, + domain: domain, + tld: tld, + email: email, + ip: ip +}); + +var location$1 = { + "110000": { + code: "110000", + name: "北京市", + cities: { + "110000": { + code: "110000", + name: "北京市", + districts: { + "110101": "东城区", + "110102": "西城区", + "110105": "朝阳区", + "110106": "丰台区", + "110107": "石景山区", + "110108": "海淀区", + "110109": "门头沟区", + "110111": "房山区", + "110112": "通州区", + "110113": "顺义区", + "110114": "昌平区", + "110115": "大兴区", + "110116": "怀柔区", + "110117": "平谷区", + "110118": "密云区", + "110119": "延庆区" + } + } + } +}, + "120000": { + code: "120000", + name: "天津市", + cities: { + "120000": { + code: "120000", + name: "天津市", + districts: { + "120101": "和平区", + "120102": "河东区", + "120103": "河西区", + "120104": "南开区", + "120105": "河北区", + "120106": "红桥区", + "120110": "东丽区", + "120111": "西青区", + "120112": "津南区", + "120113": "北辰区", + "120114": "武清区", + "120115": "宝坻区", + "120116": "滨海新区", + "120117": "宁河区", + "120118": "静海区", + "120119": "蓟州区" + } + } + } +}, + "130000": { + code: "130000", + name: "河北省", + cities: { + "130100": { + code: "130100", + name: "石家庄市", + districts: { + "130102": "长安区", + "130104": "桥西区", + "130105": "新华区", + "130107": "井陉矿区", + "130108": "裕华区", + "130109": "藁城区", + "130110": "鹿泉区", + "130111": "栾城区", + "130121": "井陉县", + "130123": "正定县", + "130125": "行唐县", + "130126": "灵寿县", + "130127": "高邑县", + "130128": "深泽县", + "130129": "赞皇县", + "130130": "无极县", + "130131": "平山县", + "130132": "元氏县", + "130133": "赵县", + "130181": "辛集市", + "130183": "晋州市", + "130184": "新乐市" + } + }, + "130200": { + code: "130200", + name: "唐山市", + districts: { + "130202": "路南区", + "130203": "路北区", + "130204": "古冶区", + "130205": "开平区", + "130207": "丰南区", + "130208": "丰润区", + "130209": "曹妃甸区", + "130224": "滦南县", + "130225": "乐亭县", + "130227": "迁西县", + "130229": "玉田县", + "130281": "遵化市", + "130283": "迁安市", + "130284": "滦州市" + } + }, + "130300": { + code: "130300", + name: "秦皇岛市", + districts: { + "130302": "海港区", + "130303": "山海关区", + "130304": "北戴河区", + "130306": "抚宁区", + "130321": "青龙满族自治县", + "130322": "昌黎县", + "130324": "卢龙县" + } + }, + "130400": { + code: "130400", + name: "邯郸市", + districts: { + "130402": "邯山区", + "130403": "丛台区", + "130404": "复兴区", + "130406": "峰峰矿区", + "130407": "肥乡区", + "130408": "永年区", + "130423": "临漳县", + "130424": "成安县", + "130425": "大名县", + "130426": "涉县", + "130427": "磁县", + "130430": "邱县", + "130431": "鸡泽县", + "130432": "广平县", + "130433": "馆陶县", + "130434": "魏县", + "130435": "曲周县", + "130481": "武安市" + } + }, + "130500": { + code: "130500", + name: "邢台市", + districts: { + "130502": "桥东区", + "130503": "桥西区", + "130521": "邢台县", + "130522": "临城县", + "130523": "内丘县", + "130524": "柏乡县", + "130525": "隆尧县", + "130526": "任县", + "130527": "南和县", + "130528": "宁晋县", + "130529": "巨鹿县", + "130530": "新河县", + "130531": "广宗县", + "130532": "平乡县", + "130533": "威县", + "130534": "清河县", + "130535": "临西县", + "130581": "南宫市", + "130582": "沙河市" + } + }, + "130600": { + code: "130600", + name: "保定市", + districts: { + "130602": "竞秀区", + "130606": "莲池区", + "130607": "满城区", + "130608": "清苑区", + "130609": "徐水区", + "130623": "涞水县", + "130624": "阜平县", + "130626": "定兴县", + "130627": "唐县", + "130628": "高阳县", + "130629": "容城县", + "130630": "涞源县", + "130631": "望都县", + "130632": "安新县", + "130633": "易县", + "130634": "曲阳县", + "130635": "蠡县", + "130636": "顺平县", + "130637": "博野县", + "130638": "雄县", + "130681": "涿州市", + "130682": "定州市", + "130683": "安国市", + "130684": "高碑店市" + } + }, + "130700": { + code: "130700", + name: "张家口市", + districts: { + "130702": "桥东区", + "130703": "桥西区", + "130705": "宣化区", + "130706": "下花园区", + "130708": "万全区", + "130709": "崇礼区", + "130722": "张北县", + "130723": "康保县", + "130724": "沽源县", + "130725": "尚义县", + "130726": "蔚县", + "130727": "阳原县", + "130728": "怀安县", + "130730": "怀来县", + "130731": "涿鹿县", + "130732": "赤城县" + } + }, + "130800": { + code: "130800", + name: "承德市", + districts: { + "130802": "双桥区", + "130803": "双滦区", + "130804": "鹰手营子矿区", + "130821": "承德县", + "130822": "兴隆县", + "130824": "滦平县", + "130825": "隆化县", + "130826": "丰宁满族自治县", + "130827": "宽城满族自治县", + "130828": "围场满族蒙古族自治县", + "130881": "平泉市" + } + }, + "130900": { + code: "130900", + name: "沧州市", + districts: { + "130902": "新华区", + "130903": "运河区", + "130921": "沧县", + "130922": "青县", + "130923": "东光县", + "130924": "海兴县", + "130925": "盐山县", + "130926": "肃宁县", + "130927": "南皮县", + "130928": "吴桥县", + "130929": "献县", + "130930": "孟村回族自治县", + "130981": "泊头市", + "130982": "任丘市", + "130983": "黄骅市", + "130984": "河间市" + } + }, + "131000": { + code: "131000", + name: "廊坊市", + districts: { + "131002": "安次区", + "131003": "广阳区", + "131022": "固安县", + "131023": "永清县", + "131024": "香河县", + "131025": "大城县", + "131026": "文安县", + "131028": "大厂回族自治县", + "131081": "霸州市", + "131082": "三河市" + } + }, + "131100": { + code: "131100", + name: "衡水市", + districts: { + "131102": "桃城区", + "131103": "冀州区", + "131121": "枣强县", + "131122": "武邑县", + "131123": "武强县", + "131124": "饶阳县", + "131125": "安平县", + "131126": "故城县", + "131127": "景县", + "131128": "阜城县", + "131182": "深州市" + } + } + } +}, + "140000": { + code: "140000", + name: "山西省", + cities: { + "140100": { + code: "140100", + name: "太原市", + districts: { + "140105": "小店区", + "140106": "迎泽区", + "140107": "杏花岭区", + "140108": "尖草坪区", + "140109": "万柏林区", + "140110": "晋源区", + "140121": "清徐县", + "140122": "阳曲县", + "140123": "娄烦县", + "140181": "古交市" + } + }, + "140200": { + code: "140200", + name: "大同市", + districts: { + "140212": "新荣区", + "140213": "平城区", + "140214": "云冈区", + "140215": "云州区", + "140221": "阳高县", + "140222": "天镇县", + "140223": "广灵县", + "140224": "灵丘县", + "140225": "浑源县", + "140226": "左云县" + } + }, + "140300": { + code: "140300", + name: "阳泉市", + districts: { + "140302": "城区", + "140303": "矿区", + "140311": "郊区", + "140321": "平定县", + "140322": "盂县" + } + }, + "140400": { + code: "140400", + name: "长治市", + districts: { + "140403": "潞州区", + "140404": "上党区", + "140405": "屯留区", + "140406": "潞城区", + "140423": "襄垣县", + "140425": "平顺县", + "140426": "黎城县", + "140427": "壶关县", + "140428": "长子县", + "140429": "武乡县", + "140430": "沁县", + "140431": "沁源县" + } + }, + "140500": { + code: "140500", + name: "晋城市", + districts: { + "140502": "城区", + "140521": "沁水县", + "140522": "阳城县", + "140524": "陵川县", + "140525": "泽州县", + "140581": "高平市" + } + }, + "140600": { + code: "140600", + name: "朔州市", + districts: { + "140602": "朔城区", + "140603": "平鲁区", + "140621": "山阴县", + "140622": "应县", + "140623": "右玉县", + "140681": "怀仁市" + } + }, + "140700": { + code: "140700", + name: "晋中市", + districts: { + "140702": "榆次区", + "140721": "榆社县", + "140722": "左权县", + "140723": "和顺县", + "140724": "昔阳县", + "140725": "寿阳县", + "140726": "太谷县", + "140727": "祁县", + "140728": "平遥县", + "140729": "灵石县", + "140781": "介休市" + } + }, + "140800": { + code: "140800", + name: "运城市", + districts: { + "140802": "盐湖区", + "140821": "临猗县", + "140822": "万荣县", + "140823": "闻喜县", + "140824": "稷山县", + "140825": "新绛县", + "140826": "绛县", + "140827": "垣曲县", + "140828": "夏县", + "140829": "平陆县", + "140830": "芮城县", + "140881": "永济市", + "140882": "河津市" + } + }, + "140900": { + code: "140900", + name: "忻州市", + districts: { + "140902": "忻府区", + "140921": "定襄县", + "140922": "五台县", + "140923": "代县", + "140924": "繁峙县", + "140925": "宁武县", + "140926": "静乐县", + "140927": "神池县", + "140928": "五寨县", + "140929": "岢岚县", + "140930": "河曲县", + "140931": "保德县", + "140932": "偏关县", + "140981": "原平市" + } + }, + "141000": { + code: "141000", + name: "临汾市", + districts: { + "141002": "尧都区", + "141021": "曲沃县", + "141022": "翼城县", + "141023": "襄汾县", + "141024": "洪洞县", + "141025": "古县", + "141026": "安泽县", + "141027": "浮山县", + "141028": "吉县", + "141029": "乡宁县", + "141030": "大宁县", + "141031": "隰县", + "141032": "永和县", + "141033": "蒲县", + "141034": "汾西县", + "141081": "侯马市", + "141082": "霍州市" + } + }, + "141100": { + code: "141100", + name: "吕梁市", + districts: { + "141102": "离石区", + "141121": "文水县", + "141122": "交城县", + "141123": "兴县", + "141124": "临县", + "141125": "柳林县", + "141126": "石楼县", + "141127": "岚县", + "141128": "方山县", + "141129": "中阳县", + "141130": "交口县", + "141181": "孝义市", + "141182": "汾阳市" + } + } + } +}, + "150000": { + code: "150000", + name: "内蒙古自治区", + cities: { + "150100": { + code: "150100", + name: "呼和浩特市", + districts: { + "150102": "新城区", + "150103": "回民区", + "150104": "玉泉区", + "150105": "赛罕区", + "150121": "土默特左旗", + "150122": "托克托县", + "150123": "和林格尔县", + "150124": "清水河县", + "150125": "武川县" + } + }, + "150200": { + code: "150200", + name: "包头市", + districts: { + "150202": "东河区", + "150203": "昆都仑区", + "150204": "青山区", + "150205": "石拐区", + "150206": "白云鄂博矿区", + "150207": "九原区", + "150221": "土默特右旗", + "150222": "固阳县", + "150223": "达尔罕茂明安联合旗" + } + }, + "150300": { + code: "150300", + name: "乌海市", + districts: { + "150302": "海勃湾区", + "150303": "海南区", + "150304": "乌达区" + } + }, + "150400": { + code: "150400", + name: "赤峰市", + districts: { + "150402": "红山区", + "150403": "元宝山区", + "150404": "松山区", + "150421": "阿鲁科尔沁旗", + "150422": "巴林左旗", + "150423": "巴林右旗", + "150424": "林西县", + "150425": "克什克腾旗", + "150426": "翁牛特旗", + "150428": "喀喇沁旗", + "150429": "宁城县", + "150430": "敖汉旗" + } + }, + "150500": { + code: "150500", + name: "通辽市", + districts: { + "150502": "科尔沁区", + "150521": "科尔沁左翼中旗", + "150522": "科尔沁左翼后旗", + "150523": "开鲁县", + "150524": "库伦旗", + "150525": "奈曼旗", + "150526": "扎鲁特旗", + "150581": "霍林郭勒市" + } + }, + "150600": { + code: "150600", + name: "鄂尔多斯市", + districts: { + "150602": "东胜区", + "150603": "康巴什区", + "150621": "达拉特旗", + "150622": "准格尔旗", + "150623": "鄂托克前旗", + "150624": "鄂托克旗", + "150625": "杭锦旗", + "150626": "乌审旗", + "150627": "伊金霍洛旗" + } + }, + "150700": { + code: "150700", + name: "呼伦贝尔市", + districts: { + "150702": "海拉尔区", + "150703": "扎赉诺尔区", + "150721": "阿荣旗", + "150722": "莫力达瓦达斡尔族自治旗", + "150723": "鄂伦春自治旗", + "150724": "鄂温克族自治旗", + "150725": "陈巴尔虎旗", + "150726": "新巴尔虎左旗", + "150727": "新巴尔虎右旗", + "150781": "满洲里市", + "150782": "牙克石市", + "150783": "扎兰屯市", + "150784": "额尔古纳市", + "150785": "根河市" + } + }, + "150800": { + code: "150800", + name: "巴彦淖尔市", + districts: { + "150802": "临河区", + "150821": "五原县", + "150822": "磴口县", + "150823": "乌拉特前旗", + "150824": "乌拉特中旗", + "150825": "乌拉特后旗", + "150826": "杭锦后旗" + } + }, + "150900": { + code: "150900", + name: "乌兰察布市", + districts: { + "150902": "集宁区", + "150921": "卓资县", + "150922": "化德县", + "150923": "商都县", + "150924": "兴和县", + "150925": "凉城县", + "150926": "察哈尔右翼前旗", + "150927": "察哈尔右翼中旗", + "150928": "察哈尔右翼后旗", + "150929": "四子王旗", + "150981": "丰镇市" + } + }, + "152200": { + code: "152200", + name: "兴安盟", + districts: { + "152201": "乌兰浩特市", + "152202": "阿尔山市", + "152221": "科尔沁右翼前旗", + "152222": "科尔沁右翼中旗", + "152223": "扎赉特旗", + "152224": "突泉县" + } + }, + "152500": { + code: "152500", + name: "锡林郭勒盟", + districts: { + "152501": "二连浩特市", + "152502": "锡林浩特市", + "152522": "阿巴嘎旗", + "152523": "苏尼特左旗", + "152524": "苏尼特右旗", + "152525": "东乌珠穆沁旗", + "152526": "西乌珠穆沁旗", + "152527": "太仆寺旗", + "152528": "镶黄旗", + "152529": "正镶白旗", + "152530": "正蓝旗", + "152531": "多伦县" + } + }, + "152900": { + code: "152900", + name: "阿拉善盟", + districts: { + "152921": "阿拉善左旗", + "152922": "阿拉善右旗", + "152923": "额济纳旗" + } + } + } +}, + "210000": { + code: "210000", + name: "辽宁省", + cities: { + "210100": { + code: "210100", + name: "沈阳市", + districts: { + "210102": "和平区", + "210103": "沈河区", + "210104": "大东区", + "210105": "皇姑区", + "210106": "铁西区", + "210111": "苏家屯区", + "210112": "浑南区", + "210113": "沈北新区", + "210114": "于洪区", + "210115": "辽中区", + "210123": "康平县", + "210124": "法库县", + "210181": "新民市" + } + }, + "210200": { + code: "210200", + name: "大连市", + districts: { + "210202": "中山区", + "210203": "西岗区", + "210204": "沙河口区", + "210211": "甘井子区", + "210212": "旅顺口区", + "210213": "金州区", + "210214": "普兰店区", + "210224": "长海县", + "210281": "瓦房店市", + "210283": "庄河市" + } + }, + "210300": { + code: "210300", + name: "鞍山市", + districts: { + "210302": "铁东区", + "210303": "铁西区", + "210304": "立山区", + "210311": "千山区", + "210321": "台安县", + "210323": "岫岩满族自治县", + "210381": "海城市" + } + }, + "210400": { + code: "210400", + name: "抚顺市", + districts: { + "210402": "新抚区", + "210403": "东洲区", + "210404": "望花区", + "210411": "顺城区", + "210421": "抚顺县", + "210422": "新宾满族自治县", + "210423": "清原满族自治县" + } + }, + "210500": { + code: "210500", + name: "本溪市", + districts: { + "210502": "平山区", + "210503": "溪湖区", + "210504": "明山区", + "210505": "南芬区", + "210521": "本溪满族自治县", + "210522": "桓仁满族自治县" + } + }, + "210600": { + code: "210600", + name: "丹东市", + districts: { + "210602": "元宝区", + "210603": "振兴区", + "210604": "振安区", + "210624": "宽甸满族自治县", + "210681": "东港市", + "210682": "凤城市" + } + }, + "210700": { + code: "210700", + name: "锦州市", + districts: { + "210702": "古塔区", + "210703": "凌河区", + "210711": "太和区", + "210726": "黑山县", + "210727": "义县", + "210781": "凌海市", + "210782": "北镇市" + } + }, + "210800": { + code: "210800", + name: "营口市", + districts: { + "210802": "站前区", + "210803": "西市区", + "210804": "鲅鱼圈区", + "210811": "老边区", + "210881": "盖州市", + "210882": "大石桥市" + } + }, + "210900": { + code: "210900", + name: "阜新市", + districts: { + "210902": "海州区", + "210903": "新邱区", + "210904": "太平区", + "210905": "清河门区", + "210911": "细河区", + "210921": "阜新蒙古族自治县", + "210922": "彰武县" + } + }, + "211000": { + code: "211000", + name: "辽阳市", + districts: { + "211002": "白塔区", + "211003": "文圣区", + "211004": "宏伟区", + "211005": "弓长岭区", + "211011": "太子河区", + "211021": "辽阳县", + "211081": "灯塔市" + } + }, + "211100": { + code: "211100", + name: "盘锦市", + districts: { + "211102": "双台子区", + "211103": "兴隆台区", + "211104": "大洼区", + "211122": "盘山县" + } + }, + "211200": { + code: "211200", + name: "铁岭市", + districts: { + "211202": "银州区", + "211204": "清河区", + "211221": "铁岭县", + "211223": "西丰县", + "211224": "昌图县", + "211281": "调兵山市", + "211282": "开原市" + } + }, + "211300": { + code: "211300", + name: "朝阳市", + districts: { + "211302": "双塔区", + "211303": "龙城区", + "211321": "朝阳县", + "211322": "建平县", + "211324": "喀喇沁左翼蒙古族自治县", + "211381": "北票市", + "211382": "凌源市" + } + }, + "211400": { + code: "211400", + name: "葫芦岛市", + districts: { + "211402": "连山区", + "211403": "龙港区", + "211404": "南票区", + "211421": "绥中县", + "211422": "建昌县", + "211481": "兴城市" + } + } + } +}, + "220000": { + code: "220000", + name: "吉林省", + cities: { + "220100": { + code: "220100", + name: "长春市", + districts: { + "220102": "南关区", + "220103": "宽城区", + "220104": "朝阳区", + "220105": "二道区", + "220106": "绿园区", + "220112": "双阳区", + "220113": "九台区", + "220122": "农安县", + "220182": "榆树市", + "220183": "德惠市" + } + }, + "220200": { + code: "220200", + name: "吉林市", + districts: { + "220202": "昌邑区", + "220203": "龙潭区", + "220204": "船营区", + "220211": "丰满区", + "220221": "永吉县", + "220281": "蛟河市", + "220282": "桦甸市", + "220283": "舒兰市", + "220284": "磐石市" + } + }, + "220300": { + code: "220300", + name: "四平市", + districts: { + "220302": "铁西区", + "220303": "铁东区", + "220322": "梨树县", + "220323": "伊通满族自治县", + "220381": "公主岭市", + "220382": "双辽市" + } + }, + "220400": { + code: "220400", + name: "辽源市", + districts: { + "220402": "龙山区", + "220403": "西安区", + "220421": "东丰县", + "220422": "东辽县" + } + }, + "220500": { + code: "220500", + name: "通化市", + districts: { + "220502": "东昌区", + "220503": "二道江区", + "220521": "通化县", + "220523": "辉南县", + "220524": "柳河县", + "220581": "梅河口市", + "220582": "集安市" + } + }, + "220600": { + code: "220600", + name: "白山市", + districts: { + "220602": "浑江区", + "220605": "江源区", + "220621": "抚松县", + "220622": "靖宇县", + "220623": "长白朝鲜族自治县", + "220681": "临江市" + } + }, + "220700": { + code: "220700", + name: "松原市", + districts: { + "220702": "宁江区", + "220721": "前郭尔罗斯蒙古族自治县", + "220722": "长岭县", + "220723": "乾安县", + "220781": "扶余市" + } + }, + "220800": { + code: "220800", + name: "白城市", + districts: { + "220802": "洮北区", + "220821": "镇赉县", + "220822": "通榆县", + "220881": "洮南市", + "220882": "大安市" + } + }, + "222400": { + code: "222400", + name: "延边朝鲜族自治州", + districts: { + "222401": "延吉市", + "222402": "图们市", + "222403": "敦化市", + "222404": "珲春市", + "222405": "龙井市", + "222406": "和龙市", + "222424": "汪清县", + "222426": "安图县" + } + } + } +}, + "230000": { + code: "230000", + name: "黑龙江省", + cities: { + "230100": { + code: "230100", + name: "哈尔滨市", + districts: { + "230102": "道里区", + "230103": "南岗区", + "230104": "道外区", + "230108": "平房区", + "230109": "松北区", + "230110": "香坊区", + "230111": "呼兰区", + "230112": "阿城区", + "230113": "双城区", + "230123": "依兰县", + "230124": "方正县", + "230125": "宾县", + "230126": "巴彦县", + "230127": "木兰县", + "230128": "通河县", + "230129": "延寿县", + "230183": "尚志市", + "230184": "五常市" + } + }, + "230200": { + code: "230200", + name: "齐齐哈尔市", + districts: { + "230202": "龙沙区", + "230203": "建华区", + "230204": "铁锋区", + "230205": "昂昂溪区", + "230206": "富拉尔基区", + "230207": "碾子山区", + "230208": "梅里斯达斡尔族区", + "230221": "龙江县", + "230223": "依安县", + "230224": "泰来县", + "230225": "甘南县", + "230227": "富裕县", + "230229": "克山县", + "230230": "克东县", + "230231": "拜泉县", + "230281": "讷河市" + } + }, + "230300": { + code: "230300", + name: "鸡西市", + districts: { + "230302": "鸡冠区", + "230303": "恒山区", + "230304": "滴道区", + "230305": "梨树区", + "230306": "城子河区", + "230307": "麻山区", + "230321": "鸡东县", + "230381": "虎林市", + "230382": "密山市" + } + }, + "230400": { + code: "230400", + name: "鹤岗市", + districts: { + "230402": "向阳区", + "230403": "工农区", + "230404": "南山区", + "230405": "兴安区", + "230406": "东山区", + "230407": "兴山区", + "230421": "萝北县", + "230422": "绥滨县" + } + }, + "230500": { + code: "230500", + name: "双鸭山市", + districts: { + "230502": "尖山区", + "230503": "岭东区", + "230505": "四方台区", + "230506": "宝山区", + "230521": "集贤县", + "230522": "友谊县", + "230523": "宝清县", + "230524": "饶河县" + } + }, + "230600": { + code: "230600", + name: "大庆市", + districts: { + "230602": "萨尔图区", + "230603": "龙凤区", + "230604": "让胡路区", + "230605": "红岗区", + "230606": "大同区", + "230621": "肇州县", + "230622": "肇源县", + "230623": "林甸县", + "230624": "杜尔伯特蒙古族自治县" + } + }, + "230700": { + code: "230700", + name: "伊春市", + districts: { + "230702": "伊春区", + "230703": "南岔区", + "230704": "友好区", + "230705": "西林区", + "230706": "翠峦区", + "230707": "新青区", + "230708": "美溪区", + "230709": "金山屯区", + "230710": "五营区", + "230711": "乌马河区", + "230712": "汤旺河区", + "230713": "带岭区", + "230714": "乌伊岭区", + "230715": "红星区", + "230716": "上甘岭区", + "230722": "嘉荫县", + "230781": "铁力市" + } + }, + "230800": { + code: "230800", + name: "佳木斯市", + districts: { + "230803": "向阳区", + "230804": "前进区", + "230805": "东风区", + "230811": "郊区", + "230822": "桦南县", + "230826": "桦川县", + "230828": "汤原县", + "230881": "同江市", + "230882": "富锦市", + "230883": "抚远市" + } + }, + "230900": { + code: "230900", + name: "七台河市", + districts: { + "230902": "新兴区", + "230903": "桃山区", + "230904": "茄子河区", + "230921": "勃利县" + } + }, + "231000": { + code: "231000", + name: "牡丹江市", + districts: { + "231002": "东安区", + "231003": "阳明区", + "231004": "爱民区", + "231005": "西安区", + "231025": "林口县", + "231081": "绥芬河市", + "231083": "海林市", + "231084": "宁安市", + "231085": "穆棱市", + "231086": "东宁市" + } + }, + "231100": { + code: "231100", + name: "黑河市", + districts: { + "231102": "爱辉区", + "231121": "嫩江县", + "231123": "逊克县", + "231124": "孙吴县", + "231181": "北安市", + "231182": "五大连池市" + } + }, + "231200": { + code: "231200", + name: "绥化市", + districts: { + "231202": "北林区", + "231221": "望奎县", + "231222": "兰西县", + "231223": "青冈县", + "231224": "庆安县", + "231225": "明水县", + "231226": "绥棱县", + "231281": "安达市", + "231282": "肇东市", + "231283": "海伦市" + } + }, + "232700": { + code: "232700", + name: "大兴安岭地区", + districts: { + "232701": "漠河市", + "232721": "呼玛县", + "232722": "塔河县" + } + } + } +}, + "310000": { + code: "310000", + name: "上海市", + cities: { + "310000": { + code: "310000", + name: "上海市", + districts: { + "310101": "黄浦区", + "310104": "徐汇区", + "310105": "长宁区", + "310106": "静安区", + "310107": "普陀区", + "310109": "虹口区", + "310110": "杨浦区", + "310112": "闵行区", + "310113": "宝山区", + "310114": "嘉定区", + "310115": "浦东新区", + "310116": "金山区", + "310117": "松江区", + "310118": "青浦区", + "310120": "奉贤区", + "310151": "崇明区" + } + } + } +}, + "320000": { + code: "320000", + name: "江苏省", + cities: { + "320100": { + code: "320100", + name: "南京市", + districts: { + "320102": "玄武区", + "320104": "秦淮区", + "320105": "建邺区", + "320106": "鼓楼区", + "320111": "浦口区", + "320113": "栖霞区", + "320114": "雨花台区", + "320115": "江宁区", + "320116": "六合区", + "320117": "溧水区", + "320118": "高淳区" + } + }, + "320200": { + code: "320200", + name: "无锡市", + districts: { + "320205": "锡山区", + "320206": "惠山区", + "320211": "滨湖区", + "320213": "梁溪区", + "320214": "新吴区", + "320281": "江阴市", + "320282": "宜兴市" + } + }, + "320300": { + code: "320300", + name: "徐州市", + districts: { + "320302": "鼓楼区", + "320303": "云龙区", + "320305": "贾汪区", + "320311": "泉山区", + "320312": "铜山区", + "320321": "丰县", + "320322": "沛县", + "320324": "睢宁县", + "320381": "新沂市", + "320382": "邳州市" + } + }, + "320400": { + code: "320400", + name: "常州市", + districts: { + "320402": "天宁区", + "320404": "钟楼区", + "320411": "新北区", + "320412": "武进区", + "320413": "金坛区", + "320481": "溧阳市" + } + }, + "320500": { + code: "320500", + name: "苏州市", + districts: { + "320505": "虎丘区", + "320506": "吴中区", + "320507": "相城区", + "320508": "姑苏区", + "320509": "吴江区", + "320581": "常熟市", + "320582": "张家港市", + "320583": "昆山市", + "320585": "太仓市" + } + }, + "320600": { + code: "320600", + name: "南通市", + districts: { + "320602": "崇川区", + "320611": "港闸区", + "320612": "通州区", + "320623": "如东县", + "320681": "启东市", + "320682": "如皋市", + "320684": "海门市", + "320685": "海安市" + } + }, + "320700": { + code: "320700", + name: "连云港市", + districts: { + "320703": "连云区", + "320706": "海州区", + "320707": "赣榆区", + "320722": "东海县", + "320723": "灌云县", + "320724": "灌南县" + } + }, + "320800": { + code: "320800", + name: "淮安市", + districts: { + "320803": "淮安区", + "320804": "淮阴区", + "320812": "清江浦区", + "320813": "洪泽区", + "320826": "涟水县", + "320830": "盱眙县", + "320831": "金湖县" + } + }, + "320900": { + code: "320900", + name: "盐城市", + districts: { + "320902": "亭湖区", + "320903": "盐都区", + "320904": "大丰区", + "320921": "响水县", + "320922": "滨海县", + "320923": "阜宁县", + "320924": "射阳县", + "320925": "建湖县", + "320981": "东台市" + } + }, + "321000": { + code: "321000", + name: "扬州市", + districts: { + "321002": "广陵区", + "321003": "邗江区", + "321012": "江都区", + "321023": "宝应县", + "321081": "仪征市", + "321084": "高邮市" + } + }, + "321100": { + code: "321100", + name: "镇江市", + districts: { + "321102": "京口区", + "321111": "润州区", + "321112": "丹徒区", + "321181": "丹阳市", + "321182": "扬中市", + "321183": "句容市" + } + }, + "321200": { + code: "321200", + name: "泰州市", + districts: { + "321202": "海陵区", + "321203": "高港区", + "321204": "姜堰区", + "321281": "兴化市", + "321282": "靖江市", + "321283": "泰兴市" + } + }, + "321300": { + code: "321300", + name: "宿迁市", + districts: { + "321302": "宿城区", + "321311": "宿豫区", + "321322": "沭阳县", + "321323": "泗阳县", + "321324": "泗洪县" + } + } + } +}, + "330000": { + code: "330000", + name: "浙江省", + cities: { + "330100": { + code: "330100", + name: "杭州市", + districts: { + "330102": "上城区", + "330103": "下城区", + "330104": "江干区", + "330105": "拱墅区", + "330106": "西湖区", + "330108": "滨江区", + "330109": "萧山区", + "330110": "余杭区", + "330111": "富阳区", + "330112": "临安区", + "330122": "桐庐县", + "330127": "淳安县", + "330182": "建德市" + } + }, + "330200": { + code: "330200", + name: "宁波市", + districts: { + "330203": "海曙区", + "330205": "江北区", + "330206": "北仑区", + "330211": "镇海区", + "330212": "鄞州区", + "330213": "奉化区", + "330225": "象山县", + "330226": "宁海县", + "330281": "余姚市", + "330282": "慈溪市" + } + }, + "330300": { + code: "330300", + name: "温州市", + districts: { + "330302": "鹿城区", + "330303": "龙湾区", + "330304": "瓯海区", + "330305": "洞头区", + "330324": "永嘉县", + "330326": "平阳县", + "330327": "苍南县", + "330328": "文成县", + "330329": "泰顺县", + "330381": "瑞安市", + "330382": "乐清市" + } + }, + "330400": { + code: "330400", + name: "嘉兴市", + districts: { + "330402": "南湖区", + "330411": "秀洲区", + "330421": "嘉善县", + "330424": "海盐县", + "330481": "海宁市", + "330482": "平湖市", + "330483": "桐乡市" + } + }, + "330500": { + code: "330500", + name: "湖州市", + districts: { + "330502": "吴兴区", + "330503": "南浔区", + "330521": "德清县", + "330522": "长兴县", + "330523": "安吉县" + } + }, + "330600": { + code: "330600", + name: "绍兴市", + districts: { + "330602": "越城区", + "330603": "柯桥区", + "330604": "上虞区", + "330624": "新昌县", + "330681": "诸暨市", + "330683": "嵊州市" + } + }, + "330700": { + code: "330700", + name: "金华市", + districts: { + "330702": "婺城区", + "330703": "金东区", + "330723": "武义县", + "330726": "浦江县", + "330727": "磐安县", + "330781": "兰溪市", + "330782": "义乌市", + "330783": "东阳市", + "330784": "永康市" + } + }, + "330800": { + code: "330800", + name: "衢州市", + districts: { + "330802": "柯城区", + "330803": "衢江区", + "330822": "常山县", + "330824": "开化县", + "330825": "龙游县", + "330881": "江山市" + } + }, + "330900": { + code: "330900", + name: "舟山市", + districts: { + "330902": "定海区", + "330903": "普陀区", + "330921": "岱山县", + "330922": "嵊泗县" + } + }, + "331000": { + code: "331000", + name: "台州市", + districts: { + "331002": "椒江区", + "331003": "黄岩区", + "331004": "路桥区", + "331022": "三门县", + "331023": "天台县", + "331024": "仙居县", + "331081": "温岭市", + "331082": "临海市", + "331083": "玉环市" + } + }, + "331100": { + code: "331100", + name: "丽水市", + districts: { + "331102": "莲都区", + "331121": "青田县", + "331122": "缙云县", + "331123": "遂昌县", + "331124": "松阳县", + "331125": "云和县", + "331126": "庆元县", + "331127": "景宁畲族自治县", + "331181": "龙泉市" + } + } + } +}, + "340000": { + code: "340000", + name: "安徽省", + cities: { + "340100": { + code: "340100", + name: "合肥市", + districts: { + "340102": "瑶海区", + "340103": "庐阳区", + "340104": "蜀山区", + "340111": "包河区", + "340121": "长丰县", + "340122": "肥东县", + "340123": "肥西县", + "340124": "庐江县", + "340181": "巢湖市" + } + }, + "340200": { + code: "340200", + name: "芜湖市", + districts: { + "340202": "镜湖区", + "340203": "弋江区", + "340207": "鸠江区", + "340208": "三山区", + "340221": "芜湖县", + "340222": "繁昌县", + "340223": "南陵县", + "340225": "无为县" + } + }, + "340300": { + code: "340300", + name: "蚌埠市", + districts: { + "340302": "龙子湖区", + "340303": "蚌山区", + "340304": "禹会区", + "340311": "淮上区", + "340321": "怀远县", + "340322": "五河县", + "340323": "固镇县" + } + }, + "340400": { + code: "340400", + name: "淮南市", + districts: { + "340402": "大通区", + "340403": "田家庵区", + "340404": "谢家集区", + "340405": "八公山区", + "340406": "潘集区", + "340421": "凤台县", + "340422": "寿县" + } + }, + "340500": { + code: "340500", + name: "马鞍山市", + districts: { + "340503": "花山区", + "340504": "雨山区", + "340506": "博望区", + "340521": "当涂县", + "340522": "含山县", + "340523": "和县" + } + }, + "340600": { + code: "340600", + name: "淮北市", + districts: { + "340602": "杜集区", + "340603": "相山区", + "340604": "烈山区", + "340621": "濉溪县" + } + }, + "340700": { + code: "340700", + name: "铜陵市", + districts: { + "340705": "铜官区", + "340706": "义安区", + "340711": "郊区", + "340722": "枞阳县" + } + }, + "340800": { + code: "340800", + name: "安庆市", + districts: { + "340802": "迎江区", + "340803": "大观区", + "340811": "宜秀区", + "340822": "怀宁县", + "340825": "太湖县", + "340826": "宿松县", + "340827": "望江县", + "340828": "岳西县", + "340881": "桐城市", + "340882": "潜山市" + } + }, + "341000": { + code: "341000", + name: "黄山市", + districts: { + "341002": "屯溪区", + "341003": "黄山区", + "341004": "徽州区", + "341021": "歙县", + "341022": "休宁县", + "341023": "黟县", + "341024": "祁门县" + } + }, + "341100": { + code: "341100", + name: "滁州市", + districts: { + "341102": "琅琊区", + "341103": "南谯区", + "341122": "来安县", + "341124": "全椒县", + "341125": "定远县", + "341126": "凤阳县", + "341181": "天长市", + "341182": "明光市" + } + }, + "341200": { + code: "341200", + name: "阜阳市", + districts: { + "341202": "颍州区", + "341203": "颍东区", + "341204": "颍泉区", + "341221": "临泉县", + "341222": "太和县", + "341225": "阜南县", + "341226": "颍上县", + "341282": "界首市" + } + }, + "341300": { + code: "341300", + name: "宿州市", + districts: { + "341302": "埇桥区", + "341321": "砀山县", + "341322": "萧县", + "341323": "灵璧县", + "341324": "泗县" + } + }, + "341500": { + code: "341500", + name: "六安市", + districts: { + "341502": "金安区", + "341503": "裕安区", + "341504": "叶集区", + "341522": "霍邱县", + "341523": "舒城县", + "341524": "金寨县", + "341525": "霍山县" + } + }, + "341600": { + code: "341600", + name: "亳州市", + districts: { + "341602": "谯城区", + "341621": "涡阳县", + "341622": "蒙城县", + "341623": "利辛县" + } + }, + "341700": { + code: "341700", + name: "池州市", + districts: { + "341702": "贵池区", + "341721": "东至县", + "341722": "石台县", + "341723": "青阳县" + } + }, + "341800": { + code: "341800", + name: "宣城市", + districts: { + "341802": "宣州区", + "341821": "郎溪县", + "341822": "广德县", + "341823": "泾县", + "341824": "绩溪县", + "341825": "旌德县", + "341881": "宁国市" + } + } + } +}, + "350000": { + code: "350000", + name: "福建省", + cities: { + "350100": { + code: "350100", + name: "福州市", + districts: { + "350102": "鼓楼区", + "350103": "台江区", + "350104": "仓山区", + "350105": "马尾区", + "350111": "晋安区", + "350112": "长乐区", + "350121": "闽侯县", + "350122": "连江县", + "350123": "罗源县", + "350124": "闽清县", + "350125": "永泰县", + "350128": "平潭县", + "350181": "福清市" + } + }, + "350200": { + code: "350200", + name: "厦门市", + districts: { + "350203": "思明区", + "350205": "海沧区", + "350206": "湖里区", + "350211": "集美区", + "350212": "同安区", + "350213": "翔安区" + } + }, + "350300": { + code: "350300", + name: "莆田市", + districts: { + "350302": "城厢区", + "350303": "涵江区", + "350304": "荔城区", + "350305": "秀屿区", + "350322": "仙游县" + } + }, + "350400": { + code: "350400", + name: "三明市", + districts: { + "350402": "梅列区", + "350403": "三元区", + "350421": "明溪县", + "350423": "清流县", + "350424": "宁化县", + "350425": "大田县", + "350426": "尤溪县", + "350427": "沙县", + "350428": "将乐县", + "350429": "泰宁县", + "350430": "建宁县", + "350481": "永安市" + } + }, + "350500": { + code: "350500", + name: "泉州市", + districts: { + "350502": "鲤城区", + "350503": "丰泽区", + "350504": "洛江区", + "350505": "泉港区", + "350521": "惠安县", + "350524": "安溪县", + "350525": "永春县", + "350526": "德化县", + "350527": "金门县", + "350581": "石狮市", + "350582": "晋江市", + "350583": "南安市" + } + }, + "350600": { + code: "350600", + name: "漳州市", + districts: { + "350602": "芗城区", + "350603": "龙文区", + "350622": "云霄县", + "350623": "漳浦县", + "350624": "诏安县", + "350625": "长泰县", + "350626": "东山县", + "350627": "南靖县", + "350628": "平和县", + "350629": "华安县", + "350681": "龙海市" + } + }, + "350700": { + code: "350700", + name: "南平市", + districts: { + "350702": "延平区", + "350703": "建阳区", + "350721": "顺昌县", + "350722": "浦城县", + "350723": "光泽县", + "350724": "松溪县", + "350725": "政和县", + "350781": "邵武市", + "350782": "武夷山市", + "350783": "建瓯市" + } + }, + "350800": { + code: "350800", + name: "龙岩市", + districts: { + "350802": "新罗区", + "350803": "永定区", + "350821": "长汀县", + "350823": "上杭县", + "350824": "武平县", + "350825": "连城县", + "350881": "漳平市" + } + }, + "350900": { + code: "350900", + name: "宁德市", + districts: { + "350902": "蕉城区", + "350921": "霞浦县", + "350922": "古田县", + "350923": "屏南县", + "350924": "寿宁县", + "350925": "周宁县", + "350926": "柘荣县", + "350981": "福安市", + "350982": "福鼎市" + } + } + } +}, + "360000": { + code: "360000", + name: "江西省", + cities: { + "360100": { + code: "360100", + name: "南昌市", + districts: { + "360102": "东湖区", + "360103": "西湖区", + "360104": "青云谱区", + "360105": "湾里区", + "360111": "青山湖区", + "360112": "新建区", + "360121": "南昌县", + "360123": "安义县", + "360124": "进贤县" + } + }, + "360200": { + code: "360200", + name: "景德镇市", + districts: { + "360202": "昌江区", + "360203": "珠山区", + "360222": "浮梁县", + "360281": "乐平市" + } + }, + "360300": { + code: "360300", + name: "萍乡市", + districts: { + "360302": "安源区", + "360313": "湘东区", + "360321": "莲花县", + "360322": "上栗县", + "360323": "芦溪县" + } + }, + "360400": { + code: "360400", + name: "九江市", + districts: { + "360402": "濂溪区", + "360403": "浔阳区", + "360404": "柴桑区", + "360423": "武宁县", + "360424": "修水县", + "360425": "永修县", + "360426": "德安县", + "360428": "都昌县", + "360429": "湖口县", + "360430": "彭泽县", + "360481": "瑞昌市", + "360482": "共青城市", + "360483": "庐山市" + } + }, + "360500": { + code: "360500", + name: "新余市", + districts: { + "360502": "渝水区", + "360521": "分宜县" + } + }, + "360600": { + code: "360600", + name: "鹰潭市", + districts: { + "360602": "月湖区", + "360603": "余江区", + "360681": "贵溪市" + } + }, + "360700": { + code: "360700", + name: "赣州市", + districts: { + "360702": "章贡区", + "360703": "南康区", + "360704": "赣县区", + "360722": "信丰县", + "360723": "大余县", + "360724": "上犹县", + "360725": "崇义县", + "360726": "安远县", + "360727": "龙南县", + "360728": "定南县", + "360729": "全南县", + "360730": "宁都县", + "360731": "于都县", + "360732": "兴国县", + "360733": "会昌县", + "360734": "寻乌县", + "360735": "石城县", + "360781": "瑞金市" + } + }, + "360800": { + code: "360800", + name: "吉安市", + districts: { + "360802": "吉州区", + "360803": "青原区", + "360821": "吉安县", + "360822": "吉水县", + "360823": "峡江县", + "360824": "新干县", + "360825": "永丰县", + "360826": "泰和县", + "360827": "遂川县", + "360828": "万安县", + "360829": "安福县", + "360830": "永新县", + "360881": "井冈山市" + } + }, + "360900": { + code: "360900", + name: "宜春市", + districts: { + "360902": "袁州区", + "360921": "奉新县", + "360922": "万载县", + "360923": "上高县", + "360924": "宜丰县", + "360925": "靖安县", + "360926": "铜鼓县", + "360981": "丰城市", + "360982": "樟树市", + "360983": "高安市" + } + }, + "361000": { + code: "361000", + name: "抚州市", + districts: { + "361002": "临川区", + "361003": "东乡区", + "361021": "南城县", + "361022": "黎川县", + "361023": "南丰县", + "361024": "崇仁县", + "361025": "乐安县", + "361026": "宜黄县", + "361027": "金溪县", + "361028": "资溪县", + "361030": "广昌县" + } + }, + "361100": { + code: "361100", + name: "上饶市", + districts: { + "361102": "信州区", + "361103": "广丰区", + "361121": "上饶县", + "361123": "玉山县", + "361124": "铅山县", + "361125": "横峰县", + "361126": "弋阳县", + "361127": "余干县", + "361128": "鄱阳县", + "361129": "万年县", + "361130": "婺源县", + "361181": "德兴市" + } + } + } +}, + "370000": { + code: "370000", + name: "山东省", + cities: { + "370100": { + code: "370100", + name: "济南市", + districts: { + "370102": "历下区", + "370103": "市中区", + "370104": "槐荫区", + "370105": "天桥区", + "370112": "历城区", + "370113": "长清区", + "370114": "章丘区", + "370115": "济阳区", + "370116": "莱芜区", + "370117": "钢城区", + "370124": "平阴县", + "370126": "商河县" + } + }, + "370200": { + code: "370200", + name: "青岛市", + districts: { + "370202": "市南区", + "370203": "市北区", + "370211": "黄岛区", + "370212": "崂山区", + "370213": "李沧区", + "370214": "城阳区", + "370215": "即墨区", + "370281": "胶州市", + "370283": "平度市", + "370285": "莱西市" + } + }, + "370300": { + code: "370300", + name: "淄博市", + districts: { + "370302": "淄川区", + "370303": "张店区", + "370304": "博山区", + "370305": "临淄区", + "370306": "周村区", + "370321": "桓台县", + "370322": "高青县", + "370323": "沂源县" + } + }, + "370400": { + code: "370400", + name: "枣庄市", + districts: { + "370402": "市中区", + "370403": "薛城区", + "370404": "峄城区", + "370405": "台儿庄区", + "370406": "山亭区", + "370481": "滕州市" + } + }, + "370500": { + code: "370500", + name: "东营市", + districts: { + "370502": "东营区", + "370503": "河口区", + "370505": "垦利区", + "370522": "利津县", + "370523": "广饶县" + } + }, + "370600": { + code: "370600", + name: "烟台市", + districts: { + "370602": "芝罘区", + "370611": "福山区", + "370612": "牟平区", + "370613": "莱山区", + "370614": "蓬莱区", + "370681": "龙口市", + "370682": "莱阳市", + "370683": "莱州市", + "370684": "蓬莱市", + "370685": "招远市", + "370686": "栖霞市", + "370687": "海阳市" + } + }, + "370700": { + code: "370700", + name: "潍坊市", + districts: { + "370702": "潍城区", + "370703": "寒亭区", + "370704": "坊子区", + "370705": "奎文区", + "370724": "临朐县", + "370725": "昌乐县", + "370781": "青州市", + "370782": "诸城市", + "370783": "寿光市", + "370784": "安丘市", + "370785": "高密市", + "370786": "昌邑市" + } + }, + "370800": { + code: "370800", + name: "济宁市", + districts: { + "370811": "任城区", + "370812": "兖州区", + "370826": "微山县", + "370827": "鱼台县", + "370828": "金乡县", + "370829": "嘉祥县", + "370830": "汶上县", + "370831": "泗水县", + "370832": "梁山县", + "370881": "曲阜市", + "370883": "邹城市" + } + }, + "370900": { + code: "370900", + name: "泰安市", + districts: { + "370902": "泰山区", + "370911": "岱岳区", + "370921": "宁阳县", + "370923": "东平县", + "370982": "新泰市", + "370983": "肥城市" + } + }, + "371000": { + code: "371000", + name: "威海市", + districts: { + "371002": "环翠区", + "371003": "文登区", + "371082": "荣成市", + "371083": "乳山市" + } + }, + "371100": { + code: "371100", + name: "日照市", + districts: { + "371102": "东港区", + "371103": "岚山区", + "371121": "五莲县", + "371122": "莒县" + } + }, + "371300": { + code: "371300", + name: "临沂市", + districts: { + "371302": "兰山区", + "371311": "罗庄区", + "371312": "河东区", + "371321": "沂南县", + "371322": "郯城县", + "371323": "沂水县", + "371324": "兰陵县", + "371325": "费县", + "371326": "平邑县", + "371327": "莒南县", + "371328": "蒙阴县", + "371329": "临沭县" + } + }, + "371400": { + code: "371400", + name: "德州市", + districts: { + "371402": "德城区", + "371403": "陵城区", + "371422": "宁津县", + "371423": "庆云县", + "371424": "临邑县", + "371425": "齐河县", + "371426": "平原县", + "371427": "夏津县", + "371428": "武城县", + "371481": "乐陵市", + "371482": "禹城市" + } + }, + "371500": { + code: "371500", + name: "聊城市", + districts: { + "371502": "东昌府区", + "371521": "阳谷县", + "371522": "莘县", + "371523": "茌平县", + "371524": "东阿县", + "371525": "冠县", + "371526": "高唐县", + "371581": "临清市" + } + }, + "371600": { + code: "371600", + name: "滨州市", + districts: { + "371602": "滨城区", + "371603": "沾化区", + "371621": "惠民县", + "371622": "阳信县", + "371623": "无棣县", + "371625": "博兴县", + "371681": "邹平市" + } + }, + "371700": { + code: "371700", + name: "菏泽市", + districts: { + "371702": "牡丹区", + "371703": "定陶区", + "371721": "曹县", + "371722": "单县", + "371723": "成武县", + "371724": "巨野县", + "371725": "郓城县", + "371726": "鄄城县", + "371728": "东明县" + } + } + } +}, + "410000": { + code: "410000", + name: "河南省", + cities: { + "410100": { + code: "410100", + name: "郑州市", + districts: { + "410102": "中原区", + "410103": "二七区", + "410104": "管城回族区", + "410105": "金水区", + "410106": "上街区", + "410108": "惠济区", + "410122": "中牟县", + "410181": "巩义市", + "410182": "荥阳市", + "410183": "新密市", + "410184": "新郑市", + "410185": "登封市" + } + }, + "410200": { + code: "410200", + name: "开封市", + districts: { + "410202": "龙亭区", + "410203": "顺河回族区", + "410204": "鼓楼区", + "410205": "禹王台区", + "410212": "祥符区", + "410221": "杞县", + "410222": "通许县", + "410223": "尉氏县", + "410225": "兰考县" + } + }, + "410300": { + code: "410300", + name: "洛阳市", + districts: { + "410302": "老城区", + "410303": "西工区", + "410304": "瀍河回族区", + "410305": "涧西区", + "410306": "吉利区", + "410311": "洛龙区", + "410322": "孟津县", + "410323": "新安县", + "410324": "栾川县", + "410325": "嵩县", + "410326": "汝阳县", + "410327": "宜阳县", + "410328": "洛宁县", + "410329": "伊川县", + "410381": "偃师市" + } + }, + "410400": { + code: "410400", + name: "平顶山市", + districts: { + "410402": "新华区", + "410403": "卫东区", + "410404": "石龙区", + "410411": "湛河区", + "410421": "宝丰县", + "410422": "叶县", + "410423": "鲁山县", + "410425": "郏县", + "410481": "舞钢市", + "410482": "汝州市" + } + }, + "410500": { + code: "410500", + name: "安阳市", + districts: { + "410502": "文峰区", + "410503": "北关区", + "410505": "殷都区", + "410506": "龙安区", + "410522": "安阳县", + "410523": "汤阴县", + "410526": "滑县", + "410527": "内黄县", + "410581": "林州市" + } + }, + "410600": { + code: "410600", + name: "鹤壁市", + districts: { + "410602": "鹤山区", + "410603": "山城区", + "410611": "淇滨区", + "410621": "浚县", + "410622": "淇县" + } + }, + "410700": { + code: "410700", + name: "新乡市", + districts: { + "410702": "红旗区", + "410703": "卫滨区", + "410704": "凤泉区", + "410711": "牧野区", + "410721": "新乡县", + "410724": "获嘉县", + "410725": "原阳县", + "410726": "延津县", + "410727": "封丘县", + "410728": "长垣县", + "410781": "卫辉市", + "410782": "辉县市" + } + }, + "410800": { + code: "410800", + name: "焦作市", + districts: { + "410802": "解放区", + "410803": "中站区", + "410804": "马村区", + "410811": "山阳区", + "410821": "修武县", + "410822": "博爱县", + "410823": "武陟县", + "410825": "温县", + "410882": "沁阳市", + "410883": "孟州市" + } + }, + "410900": { + code: "410900", + name: "濮阳市", + districts: { + "410902": "华龙区", + "410922": "清丰县", + "410923": "南乐县", + "410926": "范县", + "410927": "台前县", + "410928": "濮阳县" + } + }, + "411000": { + code: "411000", + name: "许昌市", + districts: { + "411002": "魏都区", + "411003": "建安区", + "411024": "鄢陵县", + "411025": "襄城县", + "411081": "禹州市", + "411082": "长葛市" + } + }, + "411100": { + code: "411100", + name: "漯河市", + districts: { + "411102": "源汇区", + "411103": "郾城区", + "411104": "召陵区", + "411121": "舞阳县", + "411122": "临颍县" + } + }, + "411200": { + code: "411200", + name: "三门峡市", + districts: { + "411202": "湖滨区", + "411203": "陕州区", + "411221": "渑池县", + "411224": "卢氏县", + "411281": "义马市", + "411282": "灵宝市" + } + }, + "411300": { + code: "411300", + name: "南阳市", + districts: { + "411302": "宛城区", + "411303": "卧龙区", + "411321": "南召县", + "411322": "方城县", + "411323": "西峡县", + "411324": "镇平县", + "411325": "内乡县", + "411326": "淅川县", + "411327": "社旗县", + "411328": "唐河县", + "411329": "新野县", + "411330": "桐柏县", + "411381": "邓州市" + } + }, + "411400": { + code: "411400", + name: "商丘市", + districts: { + "411402": "梁园区", + "411403": "睢阳区", + "411421": "民权县", + "411422": "睢县", + "411423": "宁陵县", + "411424": "柘城县", + "411425": "虞城县", + "411426": "夏邑县", + "411481": "永城市" + } + }, + "411500": { + code: "411500", + name: "信阳市", + districts: { + "411502": "浉河区", + "411503": "平桥区", + "411521": "罗山县", + "411522": "光山县", + "411523": "新县", + "411524": "商城县", + "411525": "固始县", + "411526": "潢川县", + "411527": "淮滨县", + "411528": "息县" + } + }, + "411600": { + code: "411600", + name: "周口市", + districts: { + "411602": "川汇区", + "411621": "扶沟县", + "411622": "西华县", + "411623": "商水县", + "411624": "沈丘县", + "411625": "郸城县", + "411626": "淮阳县", + "411627": "太康县", + "411628": "鹿邑县", + "411681": "项城市" + } + }, + "411700": { + code: "411700", + name: "驻马店市", + districts: { + "411702": "驿城区", + "411721": "西平县", + "411722": "上蔡县", + "411723": "平舆县", + "411724": "正阳县", + "411725": "确山县", + "411726": "泌阳县", + "411727": "汝南县", + "411728": "遂平县", + "411729": "新蔡县" + } + } + } +}, + "420000": { + code: "420000", + name: "湖北省", + cities: { + "420100": { + code: "420100", + name: "武汉市", + districts: { + "420102": "江岸区", + "420103": "江汉区", + "420104": "硚口区", + "420105": "汉阳区", + "420106": "武昌区", + "420107": "青山区", + "420111": "洪山区", + "420112": "东西湖区", + "420113": "汉南区", + "420114": "蔡甸区", + "420115": "江夏区", + "420116": "黄陂区", + "420117": "新洲区" + } + }, + "420200": { + code: "420200", + name: "黄石市", + districts: { + "420202": "黄石港区", + "420203": "西塞山区", + "420204": "下陆区", + "420205": "铁山区", + "420222": "阳新县", + "420281": "大冶市" + } + }, + "420300": { + code: "420300", + name: "十堰市", + districts: { + "420302": "茅箭区", + "420303": "张湾区", + "420304": "郧阳区", + "420322": "郧西县", + "420323": "竹山县", + "420324": "竹溪县", + "420325": "房县", + "420381": "丹江口市" + } + }, + "420500": { + code: "420500", + name: "宜昌市", + districts: { + "420502": "西陵区", + "420503": "伍家岗区", + "420504": "点军区", + "420505": "猇亭区", + "420506": "夷陵区", + "420525": "远安县", + "420526": "兴山县", + "420527": "秭归县", + "420528": "长阳土家族自治县", + "420529": "五峰土家族自治县", + "420581": "宜都市", + "420582": "当阳市", + "420583": "枝江市" + } + }, + "420600": { + code: "420600", + name: "襄阳市", + districts: { + "420602": "襄城区", + "420606": "樊城区", + "420607": "襄州区", + "420624": "南漳县", + "420625": "谷城县", + "420626": "保康县", + "420682": "老河口市", + "420683": "枣阳市", + "420684": "宜城市" + } + }, + "420700": { + code: "420700", + name: "鄂州市", + districts: { + "420702": "梁子湖区", + "420703": "华容区", + "420704": "鄂城区" + } + }, + "420800": { + code: "420800", + name: "荆门市", + districts: { + "420802": "东宝区", + "420804": "掇刀区", + "420822": "沙洋县", + "420881": "钟祥市", + "420882": "京山市" + } + }, + "420900": { + code: "420900", + name: "孝感市", + districts: { + "420902": "孝南区", + "420921": "孝昌县", + "420922": "大悟县", + "420923": "云梦县", + "420981": "应城市", + "420982": "安陆市", + "420984": "汉川市" + } + }, + "421000": { + code: "421000", + name: "荆州市", + districts: { + "421002": "沙市区", + "421003": "荆州区", + "421022": "公安县", + "421023": "监利县", + "421024": "江陵县", + "421081": "石首市", + "421083": "洪湖市", + "421087": "松滋市" + } + }, + "421100": { + code: "421100", + name: "黄冈市", + districts: { + "421102": "黄州区", + "421121": "团风县", + "421122": "红安县", + "421123": "罗田县", + "421124": "英山县", + "421125": "浠水县", + "421126": "蕲春县", + "421127": "黄梅县", + "421181": "麻城市", + "421182": "武穴市" + } + }, + "421200": { + code: "421200", + name: "咸宁市", + districts: { + "421202": "咸安区", + "421221": "嘉鱼县", + "421222": "通城县", + "421223": "崇阳县", + "421224": "通山县", + "421281": "赤壁市" + } + }, + "421300": { + code: "421300", + name: "随州市", + districts: { + "421303": "曾都区", + "421321": "随县", + "421381": "广水市" + } + }, + "422800": { + code: "422800", + name: "恩施土家族苗族自治州", + districts: { + "422801": "恩施市", + "422802": "利川市", + "422822": "建始县", + "422823": "巴东县", + "422825": "宣恩县", + "422826": "咸丰县", + "422827": "来凤县", + "422828": "鹤峰县" + } + } + } +}, + "430000": { + code: "430000", + name: "湖南省", + cities: { + "430100": { + code: "430100", + name: "长沙市", + districts: { + "430102": "芙蓉区", + "430103": "天心区", + "430104": "岳麓区", + "430105": "开福区", + "430111": "雨花区", + "430112": "望城区", + "430121": "长沙县", + "430181": "浏阳市", + "430182": "宁乡市" + } + }, + "430200": { + code: "430200", + name: "株洲市", + districts: { + "430202": "荷塘区", + "430203": "芦淞区", + "430204": "石峰区", + "430211": "天元区", + "430212": "渌口区", + "430223": "攸县", + "430224": "茶陵县", + "430225": "炎陵县", + "430281": "醴陵市" + } + }, + "430300": { + code: "430300", + name: "湘潭市", + districts: { + "430302": "雨湖区", + "430304": "岳塘区", + "430321": "湘潭县", + "430381": "湘乡市", + "430382": "韶山市" + } + }, + "430400": { + code: "430400", + name: "衡阳市", + districts: { + "430405": "珠晖区", + "430406": "雁峰区", + "430407": "石鼓区", + "430408": "蒸湘区", + "430412": "南岳区", + "430421": "衡阳县", + "430422": "衡南县", + "430423": "衡山县", + "430424": "衡东县", + "430426": "祁东县", + "430481": "耒阳市", + "430482": "常宁市" + } + }, + "430500": { + code: "430500", + name: "邵阳市", + districts: { + "430502": "双清区", + "430503": "大祥区", + "430511": "北塔区", + "430521": "邵东县", + "430522": "新邵县", + "430523": "邵阳县", + "430524": "隆回县", + "430525": "洞口县", + "430527": "绥宁县", + "430528": "新宁县", + "430529": "城步苗族自治县", + "430581": "武冈市" + } + }, + "430600": { + code: "430600", + name: "岳阳市", + districts: { + "430602": "岳阳楼区", + "430603": "云溪区", + "430611": "君山区", + "430621": "岳阳县", + "430623": "华容县", + "430624": "湘阴县", + "430626": "平江县", + "430681": "汨罗市", + "430682": "临湘市" + } + }, + "430700": { + code: "430700", + name: "常德市", + districts: { + "430702": "武陵区", + "430703": "鼎城区", + "430721": "安乡县", + "430722": "汉寿县", + "430723": "澧县", + "430724": "临澧县", + "430725": "桃源县", + "430726": "石门县", + "430781": "津市市" + } + }, + "430800": { + code: "430800", + name: "张家界市", + districts: { + "430802": "永定区", + "430811": "武陵源区", + "430821": "慈利县", + "430822": "桑植县" + } + }, + "430900": { + code: "430900", + name: "益阳市", + districts: { + "430902": "资阳区", + "430903": "赫山区", + "430921": "南县", + "430922": "桃江县", + "430923": "安化县", + "430981": "沅江市" + } + }, + "431000": { + code: "431000", + name: "郴州市", + districts: { + "431002": "北湖区", + "431003": "苏仙区", + "431021": "桂阳县", + "431022": "宜章县", + "431023": "永兴县", + "431024": "嘉禾县", + "431025": "临武县", + "431026": "汝城县", + "431027": "桂东县", + "431028": "安仁县", + "431081": "资兴市" + } + }, + "431100": { + code: "431100", + name: "永州市", + districts: { + "431102": "零陵区", + "431103": "冷水滩区", + "431121": "祁阳县", + "431122": "东安县", + "431123": "双牌县", + "431124": "道县", + "431125": "江永县", + "431126": "宁远县", + "431127": "蓝山县", + "431128": "新田县", + "431129": "江华瑶族自治县" + } + }, + "431200": { + code: "431200", + name: "怀化市", + districts: { + "431202": "鹤城区", + "431221": "中方县", + "431222": "沅陵县", + "431223": "辰溪县", + "431224": "溆浦县", + "431225": "会同县", + "431226": "麻阳苗族自治县", + "431227": "新晃侗族自治县", + "431228": "芷江侗族自治县", + "431229": "靖州苗族侗族自治县", + "431230": "通道侗族自治县", + "431281": "洪江市" + } + }, + "431300": { + code: "431300", + name: "娄底市", + districts: { + "431302": "娄星区", + "431321": "双峰县", + "431322": "新化县", + "431381": "冷水江市", + "431382": "涟源市" + } + }, + "433100": { + code: "433100", + name: "湘西土家族苗族自治州", + districts: { + "433101": "吉首市", + "433122": "泸溪县", + "433123": "凤凰县", + "433124": "花垣县", + "433125": "保靖县", + "433126": "古丈县", + "433127": "永顺县", + "433130": "龙山县" + } + } + } +}, + "440000": { + code: "440000", + name: "广东省", + cities: { + "440100": { + code: "440100", + name: "广州市", + districts: { + "440103": "荔湾区", + "440104": "越秀区", + "440105": "海珠区", + "440106": "天河区", + "440111": "白云区", + "440112": "黄埔区", + "440113": "番禺区", + "440114": "花都区", + "440115": "南沙区", + "440117": "从化区", + "440118": "增城区" + } + }, + "440200": { + code: "440200", + name: "韶关市", + districts: { + "440203": "武江区", + "440204": "浈江区", + "440205": "曲江区", + "440222": "始兴县", + "440224": "仁化县", + "440229": "翁源县", + "440232": "乳源瑶族自治县", + "440233": "新丰县", + "440281": "乐昌市", + "440282": "南雄市" + } + }, + "440300": { + code: "440300", + name: "深圳市", + districts: { + "440303": "罗湖区", + "440304": "福田区", + "440305": "南山区", + "440306": "宝安区", + "440307": "龙岗区", + "440308": "盐田区", + "440309": "龙华区", + "440310": "坪山区", + "440311": "光明区" + } + }, + "440400": { + code: "440400", + name: "珠海市", + districts: { + "440402": "香洲区", + "440403": "斗门区", + "440404": "金湾区" + } + }, + "440500": { + code: "440500", + name: "汕头市", + districts: { + "440507": "龙湖区", + "440511": "金平区", + "440512": "濠江区", + "440513": "潮阳区", + "440514": "潮南区", + "440515": "澄海区", + "440523": "南澳县" + } + }, + "440600": { + code: "440600", + name: "佛山市", + districts: { + "440604": "禅城区", + "440605": "南海区", + "440606": "顺德区", + "440607": "三水区", + "440608": "高明区" + } + }, + "440700": { + code: "440700", + name: "江门市", + districts: { + "440703": "蓬江区", + "440704": "江海区", + "440705": "新会区", + "440781": "台山市", + "440783": "开平市", + "440784": "鹤山市", + "440785": "恩平市" + } + }, + "440800": { + code: "440800", + name: "湛江市", + districts: { + "440802": "赤坎区", + "440803": "霞山区", + "440804": "坡头区", + "440811": "麻章区", + "440823": "遂溪县", + "440825": "徐闻县", + "440881": "廉江市", + "440882": "雷州市", + "440883": "吴川市" + } + }, + "440900": { + code: "440900", + name: "茂名市", + districts: { + "440902": "茂南区", + "440904": "电白区", + "440981": "高州市", + "440982": "化州市", + "440983": "信宜市" + } + }, + "441200": { + code: "441200", + name: "肇庆市", + districts: { + "441202": "端州区", + "441203": "鼎湖区", + "441204": "高要区", + "441223": "广宁县", + "441224": "怀集县", + "441225": "封开县", + "441226": "德庆县", + "441284": "四会市" + } + }, + "441300": { + code: "441300", + name: "惠州市", + districts: { + "441302": "惠城区", + "441303": "惠阳区", + "441322": "博罗县", + "441323": "惠东县", + "441324": "龙门县" + } + }, + "441400": { + code: "441400", + name: "梅州市", + districts: { + "441402": "梅江区", + "441403": "梅县区", + "441422": "大埔县", + "441423": "丰顺县", + "441424": "五华县", + "441426": "平远县", + "441427": "蕉岭县", + "441481": "兴宁市" + } + }, + "441500": { + code: "441500", + name: "汕尾市", + districts: { + "441502": "城区", + "441521": "海丰县", + "441523": "陆河县", + "441581": "陆丰市" + } + }, + "441600": { + code: "441600", + name: "河源市", + districts: { + "441602": "源城区", + "441621": "紫金县", + "441622": "龙川县", + "441623": "连平县", + "441624": "和平县", + "441625": "东源县" + } + }, + "441700": { + code: "441700", + name: "阳江市", + districts: { + "441702": "江城区", + "441704": "阳东区", + "441721": "阳西县", + "441781": "阳春市" + } + }, + "441800": { + code: "441800", + name: "清远市", + districts: { + "441802": "清城区", + "441803": "清新区", + "441821": "佛冈县", + "441823": "阳山县", + "441825": "连山壮族瑶族自治县", + "441826": "连南瑶族自治县", + "441881": "英德市", + "441882": "连州市" + } + }, + "441900": { + code: "441900", + name: "东莞市", + districts: { + } + }, + "442000": { + code: "442000", + name: "中山市", + districts: { + } + }, + "445100": { + code: "445100", + name: "潮州市", + districts: { + "445102": "湘桥区", + "445103": "潮安区", + "445122": "饶平县" + } + }, + "445200": { + code: "445200", + name: "揭阳市", + districts: { + "445202": "榕城区", + "445203": "揭东区", + "445222": "揭西县", + "445224": "惠来县", + "445281": "普宁市" + } + }, + "445300": { + code: "445300", + name: "云浮市", + districts: { + "445302": "云城区", + "445303": "云安区", + "445321": "新兴县", + "445322": "郁南县", + "445381": "罗定市" + } + } + } +}, + "450000": { + code: "450000", + name: "广西壮族自治区", + cities: { + "450100": { + code: "450100", + name: "南宁市", + districts: { + "450102": "兴宁区", + "450103": "青秀区", + "450105": "江南区", + "450107": "西乡塘区", + "450108": "良庆区", + "450109": "邕宁区", + "450110": "武鸣区", + "450123": "隆安县", + "450124": "马山县", + "450125": "上林县", + "450126": "宾阳县", + "450127": "横县" + } + }, + "450200": { + code: "450200", + name: "柳州市", + districts: { + "450202": "城中区", + "450203": "鱼峰区", + "450204": "柳南区", + "450205": "柳北区", + "450206": "柳江区", + "450222": "柳城县", + "450223": "鹿寨县", + "450224": "融安县", + "450225": "融水苗族自治县", + "450226": "三江侗族自治县" + } + }, + "450300": { + code: "450300", + name: "桂林市", + districts: { + "450302": "秀峰区", + "450303": "叠彩区", + "450304": "象山区", + "450305": "七星区", + "450311": "雁山区", + "450312": "临桂区", + "450321": "阳朔县", + "450323": "灵川县", + "450324": "全州县", + "450325": "兴安县", + "450326": "永福县", + "450327": "灌阳县", + "450328": "龙胜各族自治县", + "450329": "资源县", + "450330": "平乐县", + "450332": "恭城瑶族自治县", + "450381": "荔浦市" + } + }, + "450400": { + code: "450400", + name: "梧州市", + districts: { + "450403": "万秀区", + "450405": "长洲区", + "450406": "龙圩区", + "450421": "苍梧县", + "450422": "藤县", + "450423": "蒙山县", + "450481": "岑溪市" + } + }, + "450500": { + code: "450500", + name: "北海市", + districts: { + "450502": "海城区", + "450503": "银海区", + "450512": "铁山港区", + "450521": "合浦县" + } + }, + "450600": { + code: "450600", + name: "防城港市", + districts: { + "450602": "港口区", + "450603": "防城区", + "450621": "上思县", + "450681": "东兴市" + } + }, + "450700": { + code: "450700", + name: "钦州市", + districts: { + "450702": "钦南区", + "450703": "钦北区", + "450721": "灵山县", + "450722": "浦北县" + } + }, + "450800": { + code: "450800", + name: "贵港市", + districts: { + "450802": "港北区", + "450803": "港南区", + "450804": "覃塘区", + "450821": "平南县", + "450881": "桂平市" + } + }, + "450900": { + code: "450900", + name: "玉林市", + districts: { + "450902": "玉州区", + "450903": "福绵区", + "450921": "容县", + "450922": "陆川县", + "450923": "博白县", + "450924": "兴业县", + "450981": "北流市" + } + }, + "451000": { + code: "451000", + name: "百色市", + districts: { + "451002": "右江区", + "451021": "田阳县", + "451022": "田东县", + "451023": "平果县", + "451024": "德保县", + "451026": "那坡县", + "451027": "凌云县", + "451028": "乐业县", + "451029": "田林县", + "451030": "西林县", + "451031": "隆林各族自治县", + "451081": "靖西市" + } + }, + "451100": { + code: "451100", + name: "贺州市", + districts: { + "451102": "八步区", + "451103": "平桂区", + "451121": "昭平县", + "451122": "钟山县", + "451123": "富川瑶族自治县" + } + }, + "451200": { + code: "451200", + name: "河池市", + districts: { + "451202": "金城江区", + "451203": "宜州区", + "451221": "南丹县", + "451222": "天峨县", + "451223": "凤山县", + "451224": "东兰县", + "451225": "罗城仫佬族自治县", + "451226": "环江毛南族自治县", + "451227": "巴马瑶族自治县", + "451228": "都安瑶族自治县", + "451229": "大化瑶族自治县" + } + }, + "451300": { + code: "451300", + name: "来宾市", + districts: { + "451302": "兴宾区", + "451321": "忻城县", + "451322": "象州县", + "451323": "武宣县", + "451324": "金秀瑶族自治县", + "451381": "合山市" + } + }, + "451400": { + code: "451400", + name: "崇左市", + districts: { + "451402": "江州区", + "451421": "扶绥县", + "451422": "宁明县", + "451423": "龙州县", + "451424": "大新县", + "451425": "天等县", + "451481": "凭祥市" + } + } + } +}, + "460000": { + code: "460000", + name: "海南省", + cities: { + "460100": { + code: "460100", + name: "海口市", + districts: { + "460105": "秀英区", + "460106": "龙华区", + "460107": "琼山区", + "460108": "美兰区" + } + }, + "460200": { + code: "460200", + name: "三亚市", + districts: { + "460202": "海棠区", + "460203": "吉阳区", + "460204": "天涯区", + "460205": "崖州区" + } + }, + "460300": { + code: "460300", + name: "三沙市", + districts: { + "460321": "西沙群岛", + "460322": "南沙群岛", + "460323": "中沙群岛的岛礁及其海域", + "460324": "永乐群岛" + } + }, + "460400": { + code: "460400", + name: "儋州市", + districts: { + } + } + } +}, + "500000": { + code: "500000", + name: "重庆市", + cities: { + "500000": { + code: "500000", + name: "重庆市", + districts: { + "500101": "万州区", + "500102": "涪陵区", + "500103": "渝中区", + "500104": "大渡口区", + "500105": "江北区", + "500106": "沙坪坝区", + "500107": "九龙坡区", + "500108": "南岸区", + "500109": "北碚区", + "500110": "綦江区", + "500111": "大足区", + "500112": "渝北区", + "500113": "巴南区", + "500114": "黔江区", + "500115": "长寿区", + "500116": "江津区", + "500117": "合川区", + "500118": "永川区", + "500119": "南川区", + "500120": "璧山区", + "500151": "铜梁区", + "500152": "潼南区", + "500153": "荣昌区", + "500154": "开州区", + "500155": "梁平区", + "500156": "武隆区", + "500229": "城口县", + "500230": "丰都县", + "500231": "垫江县", + "500233": "忠县", + "500235": "云阳县", + "500236": "奉节县", + "500237": "巫山县", + "500238": "巫溪县", + "500240": "石柱土家族自治县", + "500241": "秀山土家族苗族自治县", + "500242": "酉阳土家族苗族自治县", + "500243": "彭水苗族土家族自治县" + } + } + } +}, + "510000": { + code: "510000", + name: "四川省", + cities: { + "510100": { + code: "510100", + name: "成都市", + districts: { + "510104": "锦江区", + "510105": "青羊区", + "510106": "金牛区", + "510107": "武侯区", + "510108": "成华区", + "510112": "龙泉驿区", + "510113": "青白江区", + "510114": "新都区", + "510115": "温江区", + "510116": "双流区", + "510117": "郫都区", + "510121": "金堂县", + "510129": "大邑县", + "510131": "蒲江县", + "510132": "新津县", + "510181": "都江堰市", + "510182": "彭州市", + "510183": "邛崃市", + "510184": "崇州市", + "510185": "简阳市" + } + }, + "510300": { + code: "510300", + name: "自贡市", + districts: { + "510302": "自流井区", + "510303": "贡井区", + "510304": "大安区", + "510311": "沿滩区", + "510321": "荣县", + "510322": "富顺县" + } + }, + "510400": { + code: "510400", + name: "攀枝花市", + districts: { + "510402": "东区", + "510403": "西区", + "510411": "仁和区", + "510421": "米易县", + "510422": "盐边县" + } + }, + "510500": { + code: "510500", + name: "泸州市", + districts: { + "510502": "江阳区", + "510503": "纳溪区", + "510504": "龙马潭区", + "510521": "泸县", + "510522": "合江县", + "510524": "叙永县", + "510525": "古蔺县" + } + }, + "510600": { + code: "510600", + name: "德阳市", + districts: { + "510603": "旌阳区", + "510604": "罗江区", + "510623": "中江县", + "510681": "广汉市", + "510682": "什邡市", + "510683": "绵竹市" + } + }, + "510700": { + code: "510700", + name: "绵阳市", + districts: { + "510703": "涪城区", + "510704": "游仙区", + "510705": "安州区", + "510722": "三台县", + "510723": "盐亭县", + "510725": "梓潼县", + "510726": "北川羌族自治县", + "510727": "平武县", + "510781": "江油市" + } + }, + "510800": { + code: "510800", + name: "广元市", + districts: { + "510802": "利州区", + "510811": "昭化区", + "510812": "朝天区", + "510821": "旺苍县", + "510822": "青川县", + "510823": "剑阁县", + "510824": "苍溪县" + } + }, + "510900": { + code: "510900", + name: "遂宁市", + districts: { + "510903": "船山区", + "510904": "安居区", + "510921": "蓬溪县", + "510922": "射洪县", + "510923": "大英县" + } + }, + "511000": { + code: "511000", + name: "内江市", + districts: { + "511002": "市中区", + "511011": "东兴区", + "511024": "威远县", + "511025": "资中县", + "511083": "隆昌市" + } + }, + "511100": { + code: "511100", + name: "乐山市", + districts: { + "511102": "市中区", + "511111": "沙湾区", + "511112": "五通桥区", + "511113": "金口河区", + "511123": "犍为县", + "511124": "井研县", + "511126": "夹江县", + "511129": "沐川县", + "511132": "峨边彝族自治县", + "511133": "马边彝族自治县", + "511181": "峨眉山市" + } + }, + "511300": { + code: "511300", + name: "南充市", + districts: { + "511302": "顺庆区", + "511303": "高坪区", + "511304": "嘉陵区", + "511321": "南部县", + "511322": "营山县", + "511323": "蓬安县", + "511324": "仪陇县", + "511325": "西充县", + "511381": "阆中市" + } + }, + "511400": { + code: "511400", + name: "眉山市", + districts: { + "511402": "东坡区", + "511403": "彭山区", + "511421": "仁寿县", + "511423": "洪雅县", + "511424": "丹棱县", + "511425": "青神县" + } + }, + "511500": { + code: "511500", + name: "宜宾市", + districts: { + "511502": "翠屏区", + "511503": "南溪区", + "511504": "叙州区", + "511523": "江安县", + "511524": "长宁县", + "511525": "高县", + "511526": "珙县", + "511527": "筠连县", + "511528": "兴文县", + "511529": "屏山县" + } + }, + "511600": { + code: "511600", + name: "广安市", + districts: { + "511602": "广安区", + "511603": "前锋区", + "511621": "岳池县", + "511622": "武胜县", + "511623": "邻水县", + "511681": "华蓥市" + } + }, + "511700": { + code: "511700", + name: "达州市", + districts: { + "511702": "通川区", + "511703": "达川区", + "511722": "宣汉县", + "511723": "开江县", + "511724": "大竹县", + "511725": "渠县", + "511781": "万源市" + } + }, + "511800": { + code: "511800", + name: "雅安市", + districts: { + "511802": "雨城区", + "511803": "名山区", + "511822": "荥经县", + "511823": "汉源县", + "511824": "石棉县", + "511825": "天全县", + "511826": "芦山县", + "511827": "宝兴县" + } + }, + "511900": { + code: "511900", + name: "巴中市", + districts: { + "511902": "巴州区", + "511903": "恩阳区", + "511921": "通江县", + "511922": "南江县", + "511923": "平昌县" + } + }, + "512000": { + code: "512000", + name: "资阳市", + districts: { + "512002": "雁江区", + "512021": "安岳县", + "512022": "乐至县" + } + }, + "513200": { + code: "513200", + name: "阿坝藏族羌族自治州", + districts: { + "513201": "马尔康市", + "513221": "汶川县", + "513222": "理县", + "513223": "茂县", + "513224": "松潘县", + "513225": "九寨沟县", + "513226": "金川县", + "513227": "小金县", + "513228": "黑水县", + "513230": "壤塘县", + "513231": "阿坝县", + "513232": "若尔盖县", + "513233": "红原县" + } + }, + "513300": { + code: "513300", + name: "甘孜藏族自治州", + districts: { + "513301": "康定市", + "513322": "泸定县", + "513323": "丹巴县", + "513324": "九龙县", + "513325": "雅江县", + "513326": "道孚县", + "513327": "炉霍县", + "513328": "甘孜县", + "513329": "新龙县", + "513330": "德格县", + "513331": "白玉县", + "513332": "石渠县", + "513333": "色达县", + "513334": "理塘县", + "513335": "巴塘县", + "513336": "乡城县", + "513337": "稻城县", + "513338": "得荣县" + } + }, + "513400": { + code: "513400", + name: "凉山彝族自治州", + districts: { + "513401": "西昌市", + "513422": "木里藏族自治县", + "513423": "盐源县", + "513424": "德昌县", + "513425": "会理县", + "513426": "会东县", + "513427": "宁南县", + "513428": "普格县", + "513429": "布拖县", + "513430": "金阳县", + "513431": "昭觉县", + "513432": "喜德县", + "513433": "冕宁县", + "513434": "越西县", + "513435": "甘洛县", + "513436": "美姑县", + "513437": "雷波县" + } + } + } +}, + "520000": { + code: "520000", + name: "贵州省", + cities: { + "520100": { + code: "520100", + name: "贵阳市", + districts: { + "520102": "南明区", + "520103": "云岩区", + "520111": "花溪区", + "520112": "乌当区", + "520113": "白云区", + "520115": "观山湖区", + "520121": "开阳县", + "520122": "息烽县", + "520123": "修文县", + "520181": "清镇市" + } + }, + "520200": { + code: "520200", + name: "六盘水市", + districts: { + "520201": "钟山区", + "520203": "六枝特区", + "520221": "水城县", + "520281": "盘州市" + } + }, + "520300": { + code: "520300", + name: "遵义市", + districts: { + "520302": "红花岗区", + "520303": "汇川区", + "520304": "播州区", + "520322": "桐梓县", + "520323": "绥阳县", + "520324": "正安县", + "520325": "道真仡佬族苗族自治县", + "520326": "务川仡佬族苗族自治县", + "520327": "凤冈县", + "520328": "湄潭县", + "520329": "余庆县", + "520330": "习水县", + "520381": "赤水市", + "520382": "仁怀市" + } + }, + "520400": { + code: "520400", + name: "安顺市", + districts: { + "520402": "西秀区", + "520403": "平坝区", + "520422": "普定县", + "520423": "镇宁布依族苗族自治县", + "520424": "关岭布依族苗族自治县", + "520425": "紫云苗族布依族自治县" + } + }, + "520500": { + code: "520500", + name: "毕节市", + districts: { + "520502": "七星关区", + "520521": "大方县", + "520522": "黔西县", + "520523": "金沙县", + "520524": "织金县", + "520525": "纳雍县", + "520526": "威宁彝族回族苗族自治县", + "520527": "赫章县" + } + }, + "520600": { + code: "520600", + name: "铜仁市", + districts: { + "520602": "碧江区", + "520603": "万山区", + "520621": "江口县", + "520622": "玉屏侗族自治县", + "520623": "石阡县", + "520624": "思南县", + "520625": "印江土家族苗族自治县", + "520626": "德江县", + "520627": "沿河土家族自治县", + "520628": "松桃苗族自治县" + } + }, + "522300": { + code: "522300", + name: "黔西南布依族苗族自治州", + districts: { + "522301": "兴义市", + "522302": "兴仁市", + "522323": "普安县", + "522324": "晴隆县", + "522325": "贞丰县", + "522326": "望谟县", + "522327": "册亨县", + "522328": "安龙县" + } + }, + "522600": { + code: "522600", + name: "黔东南苗族侗族自治州", + districts: { + "522601": "凯里市", + "522622": "黄平县", + "522623": "施秉县", + "522624": "三穗县", + "522625": "镇远县", + "522626": "岑巩县", + "522627": "天柱县", + "522628": "锦屏县", + "522629": "剑河县", + "522630": "台江县", + "522631": "黎平县", + "522632": "榕江县", + "522633": "从江县", + "522634": "雷山县", + "522635": "麻江县", + "522636": "丹寨县" + } + }, + "522700": { + code: "522700", + name: "黔南布依族苗族自治州", + districts: { + "522701": "都匀市", + "522702": "福泉市", + "522722": "荔波县", + "522723": "贵定县", + "522725": "瓮安县", + "522726": "独山县", + "522727": "平塘县", + "522728": "罗甸县", + "522729": "长顺县", + "522730": "龙里县", + "522731": "惠水县", + "522732": "三都水族自治县" + } + } + } +}, + "530000": { + code: "530000", + name: "云南省", + cities: { + "530100": { + code: "530100", + name: "昆明市", + districts: { + "530102": "五华区", + "530103": "盘龙区", + "530111": "官渡区", + "530112": "西山区", + "530113": "东川区", + "530114": "呈贡区", + "530115": "晋宁区", + "530124": "富民县", + "530125": "宜良县", + "530126": "石林彝族自治县", + "530127": "嵩明县", + "530128": "禄劝彝族苗族自治县", + "530129": "寻甸回族彝族自治县", + "530181": "安宁市" + } + }, + "530300": { + code: "530300", + name: "曲靖市", + districts: { + "530302": "麒麟区", + "530303": "沾益区", + "530304": "马龙区", + "530322": "陆良县", + "530323": "师宗县", + "530324": "罗平县", + "530325": "富源县", + "530326": "会泽县", + "530381": "宣威市" + } + }, + "530400": { + code: "530400", + name: "玉溪市", + districts: { + "530402": "红塔区", + "530403": "江川区", + "530422": "澄江县", + "530423": "通海县", + "530424": "华宁县", + "530425": "易门县", + "530426": "峨山彝族自治县", + "530427": "新平彝族傣族自治县", + "530428": "元江哈尼族彝族傣族自治县" + } + }, + "530500": { + code: "530500", + name: "保山市", + districts: { + "530502": "隆阳区", + "530521": "施甸县", + "530523": "龙陵县", + "530524": "昌宁县", + "530581": "腾冲市" + } + }, + "530600": { + code: "530600", + name: "昭通市", + districts: { + "530602": "昭阳区", + "530621": "鲁甸县", + "530622": "巧家县", + "530623": "盐津县", + "530624": "大关县", + "530625": "永善县", + "530626": "绥江县", + "530627": "镇雄县", + "530628": "彝良县", + "530629": "威信县", + "530681": "水富市" + } + }, + "530700": { + code: "530700", + name: "丽江市", + districts: { + "530702": "古城区", + "530721": "玉龙纳西族自治县", + "530722": "永胜县", + "530723": "华坪县", + "530724": "宁蒗彝族自治县" + } + }, + "530800": { + code: "530800", + name: "普洱市", + districts: { + "530802": "思茅区", + "530821": "宁洱哈尼族彝族自治县", + "530822": "墨江哈尼族自治县", + "530823": "景东彝族自治县", + "530824": "景谷傣族彝族自治县", + "530825": "镇沅彝族哈尼族拉祜族自治县", + "530826": "江城哈尼族彝族自治县", + "530827": "孟连傣族拉祜族佤族自治县", + "530828": "澜沧拉祜族自治县", + "530829": "西盟佤族自治县" + } + }, + "530900": { + code: "530900", + name: "临沧市", + districts: { + "530902": "临翔区", + "530921": "凤庆县", + "530922": "云县", + "530923": "永德县", + "530924": "镇康县", + "530925": "双江拉祜族佤族布朗族傣族自治县", + "530926": "耿马傣族佤族自治县", + "530927": "沧源佤族自治县" + } + }, + "532300": { + code: "532300", + name: "楚雄彝族自治州", + districts: { + "532301": "楚雄市", + "532322": "双柏县", + "532323": "牟定县", + "532324": "南华县", + "532325": "姚安县", + "532326": "大姚县", + "532327": "永仁县", + "532328": "元谋县", + "532329": "武定县", + "532331": "禄丰县" + } + }, + "532500": { + code: "532500", + name: "红河哈尼族彝族自治州", + districts: { + "532501": "个旧市", + "532502": "开远市", + "532503": "蒙自市", + "532504": "弥勒市", + "532523": "屏边苗族自治县", + "532524": "建水县", + "532525": "石屏县", + "532527": "泸西县", + "532528": "元阳县", + "532529": "红河县", + "532530": "金平苗族瑶族傣族自治县", + "532531": "绿春县", + "532532": "河口瑶族自治县" + } + }, + "532600": { + code: "532600", + name: "文山壮族苗族自治州", + districts: { + "532601": "文山市", + "532622": "砚山县", + "532623": "西畴县", + "532624": "麻栗坡县", + "532625": "马关县", + "532626": "丘北县", + "532627": "广南县", + "532628": "富宁县" + } + }, + "532800": { + code: "532800", + name: "西双版纳傣族自治州", + districts: { + "532801": "景洪市", + "532822": "勐海县", + "532823": "勐腊县" + } + }, + "532900": { + code: "532900", + name: "大理白族自治州", + districts: { + "532901": "大理市", + "532922": "漾濞彝族自治县", + "532923": "祥云县", + "532924": "宾川县", + "532925": "弥渡县", + "532926": "南涧彝族自治县", + "532927": "巍山彝族回族自治县", + "532928": "永平县", + "532929": "云龙县", + "532930": "洱源县", + "532931": "剑川县", + "532932": "鹤庆县" + } + }, + "533100": { + code: "533100", + name: "德宏傣族景颇族自治州", + districts: { + "533102": "瑞丽市", + "533103": "芒市", + "533122": "梁河县", + "533123": "盈江县", + "533124": "陇川县" + } + }, + "533300": { + code: "533300", + name: "怒江傈僳族自治州", + districts: { + "533301": "泸水市", + "533323": "福贡县", + "533324": "贡山独龙族怒族自治县", + "533325": "兰坪白族普米族自治县" + } + }, + "533400": { + code: "533400", + name: "迪庆藏族自治州", + districts: { + "533401": "香格里拉市", + "533422": "德钦县", + "533423": "维西傈僳族自治县" + } + } + } +}, + "540000": { + code: "540000", + name: "西藏自治区", + cities: { + "540100": { + code: "540100", + name: "拉萨市", + districts: { + "540102": "城关区", + "540103": "堆龙德庆区", + "540104": "达孜区", + "540121": "林周县", + "540122": "当雄县", + "540123": "尼木县", + "540124": "曲水县", + "540127": "墨竹工卡县" + } + }, + "540200": { + code: "540200", + name: "日喀则市", + districts: { + "540202": "桑珠孜区", + "540221": "南木林县", + "540222": "江孜县", + "540223": "定日县", + "540224": "萨迦县", + "540225": "拉孜县", + "540226": "昂仁县", + "540227": "谢通门县", + "540228": "白朗县", + "540229": "仁布县", + "540230": "康马县", + "540231": "定结县", + "540232": "仲巴县", + "540233": "亚东县", + "540234": "吉隆县", + "540235": "聂拉木县", + "540236": "萨嘎县", + "540237": "岗巴县" + } + }, + "540300": { + code: "540300", + name: "昌都市", + districts: { + "540302": "卡若区", + "540321": "江达县", + "540322": "贡觉县", + "540323": "类乌齐县", + "540324": "丁青县", + "540325": "察雅县", + "540326": "八宿县", + "540327": "左贡县", + "540328": "芒康县", + "540329": "洛隆县", + "540330": "边坝县" + } + }, + "540400": { + code: "540400", + name: "林芝市", + districts: { + "540402": "巴宜区", + "540421": "工布江达县", + "540422": "米林县", + "540423": "墨脱县", + "540424": "波密县", + "540425": "察隅县", + "540426": "朗县" + } + }, + "540500": { + code: "540500", + name: "山南市", + districts: { + "540502": "乃东区", + "540521": "扎囊县", + "540522": "贡嘎县", + "540523": "桑日县", + "540524": "琼结县", + "540525": "曲松县", + "540526": "措美县", + "540527": "洛扎县", + "540528": "加查县", + "540529": "隆子县", + "540530": "错那县", + "540531": "浪卡子县" + } + }, + "540600": { + code: "540600", + name: "那曲市", + districts: { + "540602": "色尼区", + "540621": "嘉黎县", + "540622": "比如县", + "540623": "聂荣县", + "540624": "安多县", + "540625": "申扎县", + "540626": "索县", + "540627": "班戈县", + "540628": "巴青县", + "540629": "尼玛县", + "540630": "双湖县" + } + }, + "542500": { + code: "542500", + name: "阿里地区", + districts: { + "542521": "普兰县", + "542522": "札达县", + "542523": "噶尔县", + "542524": "日土县", + "542525": "革吉县", + "542526": "改则县", + "542527": "措勤县" + } + } + } +}, + "610000": { + code: "610000", + name: "陕西省", + cities: { + "610100": { + code: "610100", + name: "西安市", + districts: { + "610102": "新城区", + "610103": "碑林区", + "610104": "莲湖区", + "610111": "灞桥区", + "610112": "未央区", + "610113": "雁塔区", + "610114": "阎良区", + "610115": "临潼区", + "610116": "长安区", + "610117": "高陵区", + "610118": "鄠邑区", + "610122": "蓝田县", + "610124": "周至县" + } + }, + "610200": { + code: "610200", + name: "铜川市", + districts: { + "610202": "王益区", + "610203": "印台区", + "610204": "耀州区", + "610222": "宜君县" + } + }, + "610300": { + code: "610300", + name: "宝鸡市", + districts: { + "610302": "渭滨区", + "610303": "金台区", + "610304": "陈仓区", + "610322": "凤翔县", + "610323": "岐山县", + "610324": "扶风县", + "610326": "眉县", + "610327": "陇县", + "610328": "千阳县", + "610329": "麟游县", + "610330": "凤县", + "610331": "太白县" + } + }, + "610400": { + code: "610400", + name: "咸阳市", + districts: { + "610402": "秦都区", + "610403": "杨陵区", + "610404": "渭城区", + "610422": "三原县", + "610423": "泾阳县", + "610424": "乾县", + "610425": "礼泉县", + "610426": "永寿县", + "610428": "长武县", + "610429": "旬邑县", + "610430": "淳化县", + "610431": "武功县", + "610481": "兴平市", + "610482": "彬州市" + } + }, + "610500": { + code: "610500", + name: "渭南市", + districts: { + "610502": "临渭区", + "610503": "华州区", + "610522": "潼关县", + "610523": "大荔县", + "610524": "合阳县", + "610525": "澄城县", + "610526": "蒲城县", + "610527": "白水县", + "610528": "富平县", + "610581": "韩城市", + "610582": "华阴市" + } + }, + "610600": { + code: "610600", + name: "延安市", + districts: { + "610602": "宝塔区", + "610603": "安塞区", + "610621": "延长县", + "610622": "延川县", + "610623": "子长县", + "610625": "志丹县", + "610626": "吴起县", + "610627": "甘泉县", + "610628": "富县", + "610629": "洛川县", + "610630": "宜川县", + "610631": "黄龙县", + "610632": "黄陵县" + } + }, + "610700": { + code: "610700", + name: "汉中市", + districts: { + "610702": "汉台区", + "610703": "南郑区", + "610722": "城固县", + "610723": "洋县", + "610724": "西乡县", + "610725": "勉县", + "610726": "宁强县", + "610727": "略阳县", + "610728": "镇巴县", + "610729": "留坝县", + "610730": "佛坪县" + } + }, + "610800": { + code: "610800", + name: "榆林市", + districts: { + "610802": "榆阳区", + "610803": "横山区", + "610822": "府谷县", + "610824": "靖边县", + "610825": "定边县", + "610826": "绥德县", + "610827": "米脂县", + "610828": "佳县", + "610829": "吴堡县", + "610830": "清涧县", + "610831": "子洲县", + "610881": "神木市" + } + }, + "610900": { + code: "610900", + name: "安康市", + districts: { + "610902": "汉滨区", + "610921": "汉阴县", + "610922": "石泉县", + "610923": "宁陕县", + "610924": "紫阳县", + "610925": "岚皋县", + "610926": "平利县", + "610927": "镇坪县", + "610928": "旬阳县", + "610929": "白河县" + } + }, + "611000": { + code: "611000", + name: "商洛市", + districts: { + "611002": "商州区", + "611021": "洛南县", + "611022": "丹凤县", + "611023": "商南县", + "611024": "山阳县", + "611025": "镇安县", + "611026": "柞水县" + } + } + } +}, + "620000": { + code: "620000", + name: "甘肃省", + cities: { + "620100": { + code: "620100", + name: "兰州市", + districts: { + "620102": "城关区", + "620103": "七里河区", + "620104": "西固区", + "620105": "安宁区", + "620111": "红古区", + "620121": "永登县", + "620122": "皋兰县", + "620123": "榆中县" + } + }, + "620200": { + code: "620200", + name: "嘉峪关市", + districts: { + } + }, + "620300": { + code: "620300", + name: "金昌市", + districts: { + "620302": "金川区", + "620321": "永昌县" + } + }, + "620400": { + code: "620400", + name: "白银市", + districts: { + "620402": "白银区", + "620403": "平川区", + "620421": "靖远县", + "620422": "会宁县", + "620423": "景泰县" + } + }, + "620500": { + code: "620500", + name: "天水市", + districts: { + "620502": "秦州区", + "620503": "麦积区", + "620521": "清水县", + "620522": "秦安县", + "620523": "甘谷县", + "620524": "武山县", + "620525": "张家川回族自治县" + } + }, + "620600": { + code: "620600", + name: "武威市", + districts: { + "620602": "凉州区", + "620621": "民勤县", + "620622": "古浪县", + "620623": "天祝藏族自治县" + } + }, + "620700": { + code: "620700", + name: "张掖市", + districts: { + "620702": "甘州区", + "620721": "肃南裕固族自治县", + "620722": "民乐县", + "620723": "临泽县", + "620724": "高台县", + "620725": "山丹县" + } + }, + "620800": { + code: "620800", + name: "平凉市", + districts: { + "620802": "崆峒区", + "620821": "泾川县", + "620822": "灵台县", + "620823": "崇信县", + "620825": "庄浪县", + "620826": "静宁县", + "620881": "华亭市" + } + }, + "620900": { + code: "620900", + name: "酒泉市", + districts: { + "620902": "肃州区", + "620921": "金塔县", + "620922": "瓜州县", + "620923": "肃北蒙古族自治县", + "620924": "阿克塞哈萨克族自治县", + "620981": "玉门市", + "620982": "敦煌市" + } + }, + "621000": { + code: "621000", + name: "庆阳市", + districts: { + "621002": "西峰区", + "621021": "庆城县", + "621022": "环县", + "621023": "华池县", + "621024": "合水县", + "621025": "正宁县", + "621026": "宁县", + "621027": "镇原县" + } + }, + "621100": { + code: "621100", + name: "定西市", + districts: { + "621102": "安定区", + "621121": "通渭县", + "621122": "陇西县", + "621123": "渭源县", + "621124": "临洮县", + "621125": "漳县", + "621126": "岷县" + } + }, + "621200": { + code: "621200", + name: "陇南市", + districts: { + "621202": "武都区", + "621221": "成县", + "621222": "文县", + "621223": "宕昌县", + "621224": "康县", + "621225": "西和县", + "621226": "礼县", + "621227": "徽县", + "621228": "两当县" + } + }, + "622900": { + code: "622900", + name: "临夏回族自治州", + districts: { + "622901": "临夏市", + "622921": "临夏县", + "622922": "康乐县", + "622923": "永靖县", + "622924": "广河县", + "622925": "和政县", + "622926": "东乡族自治县", + "622927": "积石山保安族东乡族撒拉族自治县" + } + }, + "623000": { + code: "623000", + name: "甘南藏族自治州", + districts: { + "623001": "合作市", + "623021": "临潭县", + "623022": "卓尼县", + "623023": "舟曲县", + "623024": "迭部县", + "623025": "玛曲县", + "623026": "碌曲县", + "623027": "夏河县" + } + } + } +}, + "630000": { + code: "630000", + name: "青海省", + cities: { + "630100": { + code: "630100", + name: "西宁市", + districts: { + "630102": "城东区", + "630103": "城中区", + "630104": "城西区", + "630105": "城北区", + "630121": "大通回族土族自治县", + "630122": "湟中县", + "630123": "湟源县" + } + }, + "630200": { + code: "630200", + name: "海东市", + districts: { + "630202": "乐都区", + "630203": "平安区", + "630222": "民和回族土族自治县", + "630223": "互助土族自治县", + "630224": "化隆回族自治县", + "630225": "循化撒拉族自治县" + } + }, + "632200": { + code: "632200", + name: "海北藏族自治州", + districts: { + "632221": "门源回族自治县", + "632222": "祁连县", + "632223": "海晏县", + "632224": "刚察县" + } + }, + "632300": { + code: "632300", + name: "黄南藏族自治州", + districts: { + "632321": "同仁县", + "632322": "尖扎县", + "632323": "泽库县", + "632324": "河南蒙古族自治县" + } + }, + "632500": { + code: "632500", + name: "海南藏族自治州", + districts: { + "632521": "共和县", + "632522": "同德县", + "632523": "贵德县", + "632524": "兴海县", + "632525": "贵南县" + } + }, + "632600": { + code: "632600", + name: "果洛藏族自治州", + districts: { + "632621": "玛沁县", + "632622": "班玛县", + "632623": "甘德县", + "632624": "达日县", + "632625": "久治县", + "632626": "玛多县" + } + }, + "632700": { + code: "632700", + name: "玉树藏族自治州", + districts: { + "632701": "玉树市", + "632722": "杂多县", + "632723": "称多县", + "632724": "治多县", + "632725": "囊谦县", + "632726": "曲麻莱县" + } + }, + "632800": { + code: "632800", + name: "海西蒙古族藏族自治州", + districts: { + "632801": "格尔木市", + "632802": "德令哈市", + "632803": "茫崖市", + "632821": "乌兰县", + "632822": "都兰县", + "632823": "天峻县" + } + } + } +}, + "640000": { + code: "640000", + name: "宁夏回族自治区", + cities: { + "640100": { + code: "640100", + name: "银川市", + districts: { + "640104": "兴庆区", + "640105": "西夏区", + "640106": "金凤区", + "640121": "永宁县", + "640122": "贺兰县", + "640181": "灵武市" + } + }, + "640200": { + code: "640200", + name: "石嘴山市", + districts: { + "640202": "大武口区", + "640205": "惠农区", + "640221": "平罗县" + } + }, + "640300": { + code: "640300", + name: "吴忠市", + districts: { + "640302": "利通区", + "640303": "红寺堡区", + "640323": "盐池县", + "640324": "同心县", + "640381": "青铜峡市" + } + }, + "640400": { + code: "640400", + name: "固原市", + districts: { + "640402": "原州区", + "640422": "西吉县", + "640423": "隆德县", + "640424": "泾源县", + "640425": "彭阳县" + } + }, + "640500": { + code: "640500", + name: "中卫市", + districts: { + "640502": "沙坡头区", + "640521": "中宁县", + "640522": "海原县" + } + } + } +}, + "650000": { + code: "650000", + name: "新疆维吾尔自治区", + cities: { + "650100": { + code: "650100", + name: "乌鲁木齐市", + districts: { + "650102": "天山区", + "650103": "沙依巴克区", + "650104": "新市区", + "650105": "水磨沟区", + "650106": "头屯河区", + "650107": "达坂城区", + "650109": "米东区", + "650121": "乌鲁木齐县" + } + }, + "650200": { + code: "650200", + name: "克拉玛依市", + districts: { + "650202": "独山子区", + "650203": "克拉玛依区", + "650204": "白碱滩区", + "650205": "乌尔禾区" + } + }, + "650400": { + code: "650400", + name: "吐鲁番市", + districts: { + "650402": "高昌区", + "650421": "鄯善县", + "650422": "托克逊县" + } + }, + "650500": { + code: "650500", + name: "哈密市", + districts: { + "650502": "伊州区", + "650521": "巴里坤哈萨克自治县", + "650522": "伊吾县" + } + }, + "652300": { + code: "652300", + name: "昌吉回族自治州", + districts: { + "652301": "昌吉市", + "652302": "阜康市", + "652323": "呼图壁县", + "652324": "玛纳斯县", + "652325": "奇台县", + "652327": "吉木萨尔县", + "652328": "木垒哈萨克自治县" + } + }, + "652700": { + code: "652700", + name: "博尔塔拉蒙古自治州", + districts: { + "652701": "博乐市", + "652702": "阿拉山口市", + "652722": "精河县", + "652723": "温泉县" + } + }, + "652800": { + code: "652800", + name: "巴音郭楞蒙古自治州", + districts: { + "652801": "库尔勒市", + "652822": "轮台县", + "652823": "尉犁县", + "652824": "若羌县", + "652825": "且末县", + "652826": "焉耆回族自治县", + "652827": "和静县", + "652828": "和硕县", + "652829": "博湖县" + } + }, + "652900": { + code: "652900", + name: "阿克苏地区", + districts: { + "652901": "阿克苏市", + "652922": "温宿县", + "652923": "库车县", + "652924": "沙雅县", + "652925": "新和县", + "652926": "拜城县", + "652927": "乌什县", + "652928": "阿瓦提县", + "652929": "柯坪县" + } + }, + "653000": { + code: "653000", + name: "克孜勒苏柯尔克孜自治州", + districts: { + "653001": "阿图什市", + "653022": "阿克陶县", + "653023": "阿合奇县", + "653024": "乌恰县" + } + }, + "653100": { + code: "653100", + name: "喀什地区", + districts: { + "653101": "喀什市", + "653121": "疏附县", + "653122": "疏勒县", + "653123": "英吉沙县", + "653124": "泽普县", + "653125": "莎车县", + "653126": "叶城县", + "653127": "麦盖提县", + "653128": "岳普湖县", + "653129": "伽师县", + "653130": "巴楚县", + "653131": "塔什库尔干塔吉克自治县" + } + }, + "653200": { + code: "653200", + name: "和田地区", + districts: { + "653201": "和田市", + "653221": "和田县", + "653222": "墨玉县", + "653223": "皮山县", + "653224": "洛浦县", + "653225": "策勒县", + "653226": "于田县", + "653227": "民丰县" + } + }, + "654000": { + code: "654000", + name: "伊犁哈萨克自治州", + districts: { + "654002": "伊宁市", + "654003": "奎屯市", + "654004": "霍尔果斯市", + "654021": "伊宁县", + "654022": "察布查尔锡伯自治县", + "654023": "霍城县", + "654024": "巩留县", + "654025": "新源县", + "654026": "昭苏县", + "654027": "特克斯县", + "654028": "尼勒克县" + } + }, + "654200": { + code: "654200", + name: "塔城地区", + districts: { + "654201": "塔城市", + "654202": "乌苏市", + "654221": "额敏县", + "654223": "沙湾县", + "654224": "托里县", + "654225": "裕民县", + "654226": "和布克赛尔蒙古自治县" + } + }, + "654300": { + code: "654300", + name: "阿勒泰地区", + districts: { + "654301": "阿勒泰市", + "654321": "布尔津县", + "654322": "富蕴县", + "654323": "福海县", + "654324": "哈巴河县", + "654325": "青河县", + "654326": "吉木乃县" + } + } + } +}, + "810000": { + code: "810000", + name: "香港特别行政区", + cities: { + "810000": { + code: "810000", + name: "香港特别行政区", + districts: { + "810101": "中西区", + "810102": "湾仔区", + "810103": "东区", + "810104": "南区", + "810105": "油尖旺区", + "810106": "深水埗区", + "810107": "九龙城区", + "810108": "黄大仙区", + "810109": "观塘区", + "810110": "北区", + "810111": "大埔区", + "810112": "沙田区", + "810113": "西贡区", + "810114": "荃湾区", + "810115": "屯门区", + "810116": "元朗区", + "810117": "葵青区", + "810118": "离岛区" + } + } + } +}, + "820000": { + code: "820000", + name: "澳门特别行政区", + cities: { + "820000": { + code: "820000", + name: "澳门特别行政区", + districts: { + "820101": "花地玛堂区", + "820102": "圣安多尼堂区", + "820103": "大堂区", + "820104": "望德堂区", + "820105": "风顺堂区", + "820106": "嘉模堂区", + "820107": "圣方济各堂区", + "820108": "路氹城", + "820109": "澳门新城" + } + } + } +}, + "830000": { + code: "830000", + name: "台湾省", + cities: { + "830100": { + code: "830100", + name: "台北市", + districts: { + "830101": "中正区", + "830102": "大同区", + "830103": "中山区", + "830104": "万华区", + "830105": "信义区", + "830106": "松山区", + "830107": "大安区", + "830108": "南港区", + "830109": "北投区", + "830110": "内湖区", + "830111": "士林区", + "830112": "文山区" + } + }, + "830200": { + code: "830200", + name: "新北市", + districts: { + "830201": "板桥区", + "830202": "土城区", + "830203": "新庄区", + "830204": "新店区", + "830205": "深坑区", + "830206": "石碇区", + "830207": "坪林区", + "830208": "乌来区", + "830209": "五股区", + "830210": "八里区", + "830211": "林口区", + "830212": "淡水区", + "830213": "中和区", + "830214": "永和区", + "830215": "三重区", + "830216": "芦洲区", + "830217": "泰山区", + "830218": "树林区", + "830219": "莺歌区", + "830220": "三峡区", + "830221": "汐止区", + "830222": "金山区", + "830223": "万里区", + "830224": "三芝区", + "830225": "石门区", + "830226": "瑞芳区", + "830227": "贡寮区", + "830228": "双溪区", + "830229": "平溪区" + } + }, + "830300": { + code: "830300", + name: "桃园市", + districts: { + "830301": "桃园区", + "830302": "中坜区", + "830303": "平镇区", + "830304": "八德区", + "830305": "杨梅区", + "830306": "芦竹区", + "830307": "大溪区", + "830308": "龙潭区", + "830309": "龟山区", + "830310": "大园区", + "830311": "观音区", + "830312": "新屋区", + "830313": "复兴区" + } + }, + "830400": { + code: "830400", + name: "台中市", + districts: { + "830401": "中区", + "830402": "东区", + "830403": "西区", + "830404": "南区", + "830405": "北区", + "830406": "西屯区", + "830407": "南屯区", + "830408": "北屯区", + "830409": "丰原区", + "830410": "大里区", + "830411": "太平区", + "830412": "东势区", + "830413": "大甲区", + "830414": "清水区", + "830415": "沙鹿区", + "830416": "梧栖区", + "830417": "后里区", + "830418": "神冈区", + "830419": "潭子区", + "830420": "大雅区", + "830421": "新小区", + "830422": "石冈区", + "830423": "外埔区", + "830424": "大安区", + "830425": "乌日区", + "830426": "大肚区", + "830427": "龙井区", + "830428": "雾峰区", + "830429": "和平区" + } + }, + "830500": { + code: "830500", + name: "台南市", + districts: { + "830501": "中西区", + "830502": "东区", + "830503": "南区", + "830504": "北区", + "830505": "安平区", + "830506": "安南区", + "830507": "永康区", + "830508": "归仁区", + "830509": "新化区", + "830510": "左镇区", + "830511": "玉井区", + "830512": "楠西区", + "830513": "南化区", + "830514": "仁德区", + "830515": "关庙区", + "830516": "龙崎区", + "830517": "官田区", + "830518": "麻豆区", + "830519": "佳里区", + "830520": "西港区", + "830521": "七股区", + "830522": "将军区", + "830523": "学甲区", + "830524": "北门区", + "830525": "新营区", + "830526": "后壁区", + "830527": "白河区", + "830528": "东山区", + "830529": "六甲区", + "830530": "下营区", + "830531": "柳营区", + "830532": "盐水区", + "830533": "善化区", + "830534": "大内区", + "830535": "山上区", + "830536": "新市区", + "830537": "安定区" + } + }, + "830600": { + code: "830600", + name: "高雄市", + districts: { + "830601": "楠梓区", + "830602": "左营区", + "830603": "鼓山区", + "830604": "三民区", + "830605": "盐埕区", + "830606": "前金区", + "830607": "新兴区", + "830608": "苓雅区", + "830609": "前镇区", + "830610": "旗津区", + "830611": "小港区", + "830612": "凤山区", + "830613": "大寮区", + "830614": "鸟松区", + "830615": "林园区", + "830616": "仁武区", + "830617": "大树区", + "830618": "大社区", + "830619": "冈山区", + "830620": "路竹区", + "830621": "桥头区", + "830622": "梓官区", + "830623": "弥陀区", + "830624": "永安区", + "830625": "燕巢区", + "830626": "阿莲区", + "830627": "茄萣区", + "830628": "湖内区", + "830629": "旗山区", + "830630": "美浓区", + "830631": "内门区", + "830632": "杉林区", + "830633": "甲仙区", + "830634": "六龟区", + "830635": "茂林区", + "830636": "桃源区", + "830637": "那玛夏区" + } + }, + "830700": { + code: "830700", + name: "基隆市", + districts: { + "830701": "中正区", + "830702": "七堵区", + "830703": "暖暖区", + "830704": "仁爱区", + "830705": "中山区", + "830706": "安乐区", + "830707": "信义区" + } + }, + "830800": { + code: "830800", + name: "新竹市", + districts: { + "830801": "东区", + "830802": "北区", + "830803": "香山区" + } + }, + "830900": { + code: "830900", + name: "嘉义市", + districts: { + "830901": "东区", + "830902": "西区" + } + } + } +} +}; + +var REGION = ['东北', '华北', '华东', '华中', '华南', '西南', '西北']; +var areas = location$1; +// 随机生成一个大区。 +var region = function () { + return pick(REGION); +}; +// 随机生成一个(中国)省(或直辖市、自治区、特别行政区)。 +var province = function () { + return pickMap(areas).name; +}; +/** + * 随机生成一个(中国)市。 + * @param prefix 是否有省前缀 + */ +var city = function (prefix) { + if (prefix === void 0) { prefix = false; } + var province = pickMap(areas); + var city = pickMap(province.cities); + return prefix ? [province.name, city.name].join(' ') : city.name; +}; +/** + * 随机生成一个(中国)县。 + * @param prefix 是否有省/市前缀 + */ +var county = function (prefix) { + if (prefix === void 0) { prefix = false; } + // 直筒子市,无区县 + // https://baike.baidu.com/item/%E7%9B%B4%E7%AD%92%E5%AD%90%E5%B8%82 + var specialCity = ['460400', '441900', '442000', '620200']; + var province = pickMap(areas); + var city = pickMap(province.cities); + /* istanbul ignore next */ + if (specialCity.indexOf(city.code) !== -1) { + return county(prefix); + } + var district = pickMap(city.districts) || '-'; + return prefix ? [province.name, city.name, district].join(' ') : district; +}; +/** + * 随机生成一个邮政编码(默认6位数字)。 + * @param len + */ +var zip = function (len) { + if (len === void 0) { len = 6; } + var zip = ''; + for (var i = 0; i < len; i++) { + zip += natural(0, 9); + } + return zip; +}; + +var address = /*#__PURE__*/Object.freeze({ + __proto__: null, + region: region, + province: province, + city: city, + county: county, + zip: zip +}); + +// Miscellaneous +var areas$1 = location$1; +// 随机生成一个 guid +// http://www.broofa.com/2008/09/javascript-uuid-function/ +var guid = function () { + var pool = 'abcdefABCDEF1234567890'; + return string(pool, 8) + '-' + string(pool, 4) + '-' + string(pool, 4) + '-' + string(pool, 4) + '-' + string(pool, 12); +}; +var uuid = guid; +// 随机生成一个 18 位身份证。 +// http://baike.baidu.com/view/1697.htm#4 +// [身份证](http://baike.baidu.com/view/1697.htm#4) +// 地址码 6 + 出生日期码 8 + 顺序码 3 + 校验码 1 +// [《中华人民共和国行政区划代码》国家标准(GB/T2260)](http://zhidao.baidu.com/question/1954561.html) +var id = function () { + var _id; + var _sum = 0; + var rank = ['7', '9', '10', '5', '8', '4', '2', '1', '6', '3', '7', '9', '10', '5', '8', '4', '2']; + var last = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2']; + // 直筒子市,无区县 + // https://baike.baidu.com/item/%E7%9B%B4%E7%AD%92%E5%AD%90%E5%B8%82 + var specialCity = ['460400', '441900', '442000', '620200']; + var province = pickMap(areas$1); + var city = pickMap(province.cities); + /* istanbul ignore next */ + if (specialCity.indexOf(city.code) !== -1) { + return id(); + } + var districts = city.districts; + var district = pick(keys(districts)); + _id = district + date('yyyyMMdd') + string('number', 3); + for (var i = 0; i < _id.length; i++) { + _sum += _id[i] * Number(rank[i]); + } + _id += last[_sum % 11]; + return _id; +}; +// 生成一个全局的自增整数。 +// 类似自增主键(auto increment primary key)。 +var key = 0; +var increment = function (step) { + return key += (Number(step) || 1); // step? +}; +var inc = increment; +/** + * 随机生成一个版本号 + * @param depth 版本号的层级,默认为3 + */ +var version = function (depth) { + if (depth === void 0) { depth = 3; } + var numbers = []; + for (var i = 0; i < depth; i++) { + numbers.push(natural(0, 10)); + } + return numbers.join('.'); +}; +// 随机生成一个中国手机号 +var phone = function () { + var segments = [ + // 移动号段 + '134', '135', '136', '137', '138', '139', '147', '150', '151', '152', '157', '158', '159', '165', '172', '178', '182', '183', '184', '187', '188', + // 联通号段 + '130', '131', '132', '145', '155', '156', '171', '175', '176', '185', '186', + // 电信号段 + '133', '149', '153', '173', '174', '177', '180', '181', '189', '191' + ]; + return pick(segments) + string('number', 8); +}; + +var misc = /*#__PURE__*/Object.freeze({ + __proto__: null, + guid: guid, + uuid: uuid, + id: id, + increment: increment, + inc: inc, + version: version, + phone: phone +}); + +var random = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ extend: extendFunc }, basic), date$1), image$1), color$1), text), name$1), web), address), helper), misc); +function extendFunc(source) { + if (isObject(source)) { + for (var key in source) { + random[key] = source[key]; + } + } +} + +// 解析数据模板(属性名部分)。 +var parse = function (name) { + name = name === undefined ? '' : (name + ''); + var parameters = name.match(constant.RE_KEY); + // name|min-max, name|count + var range = parameters && parameters[3] && parameters[3].match(constant.RE_RANGE); + var min = range && range[1] && parseInt(range[1], 10); + var max = range && range[2] && parseInt(range[2], 10); + // 如果是 min-max, 返回 min-max 之间的一个数 + // 如果是 count, 返回 count + var count = range + ? range[2] + ? random.integer(Number(min), Number(max)) + : parseInt(range[1], 10) + : undefined; + var decimal = parameters && parameters[4] && parameters[4].match(constant.RE_RANGE); + var dmin = decimal && decimal[1] && parseInt(decimal[1], 10); + var dmax = decimal && decimal[2] && parseInt(decimal[2], 10); + // int || dmin-dmax + var dcount = decimal + ? decimal[2] + ? random.integer(Number(dmin), Number(dmax)) + : parseInt(decimal[1], 10) + : undefined; + var result = { + // 1 name, 2 inc, 3 range, 4 decimal + parameters: parameters, + // 1 min, 2 max + range: range, + min: min, + max: max, + count: count, + decimal: decimal, + dmin: dmin, + dmax: dmax, + dcount: dcount + }; + for (var r in result) { + if (result[r] != undefined) { + return result; + } + } + return {}; +}; + +var number = Number; +var boolean$1 = Boolean; +var string$1 = String; +var transfer = { + number: number, + boolean: boolean$1, + string: string$1, + extend: extend +}; +function extend(source) { + if (isObject(source)) { + for (var key in source) { + transfer[key] = source[key]; + } + } +} + +// ## RegExp Handler +// ASCII printable code chart +var LOWER = ascii(97, 122); +var UPPER = ascii(65, 90); +var NUMBER = ascii(48, 57); +var OTHER = ascii(32, 47) + ascii(58, 64) + ascii(91, 96) + ascii(123, 126); // 排除 95 _ ascii(91, 94) + ascii(96, 96) +var PRINTABLE = ascii(32, 126); +var SPACE = ' \f\n\r\t\v\u00A0\u2028\u2029'; +var CHARACTER_CLASSES = { + '\\w': LOWER + UPPER + NUMBER + '_', + '\\W': OTHER.replace('_', ''), '\\s': SPACE, + '\\S': function () { + var result = PRINTABLE; + for (var i = 0; i < SPACE.length; i++) { + result = result.replace(SPACE[i], ''); + } + return result; + }(), + '\\d': NUMBER, '\\D': LOWER + UPPER + OTHER +}; +function ascii(from, to) { + var result = ''; + for (var i = from; i <= to; i++) { + result += String.fromCharCode(i); + } + return result; +} +var handler = { + // var ast = RegExpParser.parse(regexp.source) + gen: function (node, result, cache) { + cache = cache || { + guid: 1 + }; + return handler[node.type] ? handler[node.type](node, result, cache) : handler.token(node); + }, + token: /* istanbul ignore next */ function (node) { + switch (node.type) { + case 'start': + case 'end': + return ''; + case 'any-character': + return random.character(); + case 'backspace': + return ''; + case 'word-boundary': // TODO + return ''; + case 'non-word-boundary': // TODO + break; + case 'digit': + return random.pick(NUMBER.split('')); + case 'non-digit': + return random.pick((LOWER + UPPER + OTHER).split('')); + case 'form-feed': + break; + case 'line-feed': + return node.body || node.text; + case 'carriage-return': + break; + case 'white-space': + return random.pick(SPACE.split('')); + case 'non-white-space': + return random.pick((LOWER + UPPER + NUMBER).split('')); + case 'tab': + break; + case 'vertical-tab': + break; + case 'word': // \w [a-zA-Z0-9] + return random.pick((LOWER + UPPER + NUMBER).split('')); + case 'non-word': // \W [^a-zA-Z0-9] + return random.pick(OTHER.replace('_', '').split('')); + } + return node.body || node.text; + }, + // { + // type: 'alternate', + // offset: 0, + // text: '', + // left: { + // boyd: [] + // }, + // right: { + // boyd: [] + // } + // } + alternate: function (node, result, cache) { + // node.left/right {} + return handler.gen(random.boolean() ? node.left : node.right, result, cache); + }, + // { + // type: 'match', + // offset: 0, + // text: '', + // body: [] + // } + match: function (node, result, cache) { + result = ''; + // node.body [] + for (var i = 0; i < node.body.length; i++) { + result += handler.gen(node.body[i], result, cache); + } + return result; + }, + // () + 'capture-group': function (node, result, cache) { + // node.body {} + result = handler.gen(node.body, result, cache); + cache[cache.guid++] = result; + return result; + }, + // (?:...) + 'non-capture-group': function (node, result, cache) { + // node.body {} + return handler.gen(node.body, result, cache); + }, + // (?=p) + 'positive-lookahead': function (node, result, cache) { + // node.body + return handler.gen(node.body, result, cache); + }, + // (?!p) + 'negative-lookahead': function () { + // node.body + return ''; + }, + // { + // type: 'quantified', + // offset: 3, + // text: 'c*', + // body: { + // type: 'literal', + // offset: 3, + // text: 'c', + // body: 'c', + // escaped: false + // }, + // quantifier: { + // type: 'quantifier', + // offset: 4, + // text: '*', + // min: 0, + // max: Infinity, + // greedy: true + // } + // } + quantified: function (node, result, cache) { + result = ''; + // node.quantifier {} + var count = handler.quantifier(node.quantifier); + // node.body {} + for (var i = 0; i < count; i++) { + result += handler.gen(node.body, result, cache); + } + return result; + }, + // quantifier: { + // type: 'quantifier', + // offset: 4, + // text: '*', + // min: 0, + // max: Infinity, + // greedy: true + // } + quantifier: function (node) { + var min = Math.max(node.min, 0); + var max = isFinite(node.max) ? node.max : min + random.integer(3, 7); + return random.integer(min, max); + }, + charset: function (node, result, cache) { + // node.invert + if (node.invert) { + return handler['invert-charset'](node, result, cache); + } + // node.body [] + var literal = random.pick(node.body); + return handler.gen(literal, result, cache); + }, + 'invert-charset': function (node, result, cache) { + var pool = PRINTABLE; + var item; + for (var i = 0; i < node.body.length; i++) { + item = node.body[i]; + switch (item.type) { + case 'literal': + pool = pool.replace(item.body, ''); + break; + case 'range': + var min = handler.gen(item.start, result, cache).charCodeAt(); + var max = handler.gen(item.end, result, cache).charCodeAt(); + for (var ii = min; ii <= max; ii++) { + pool = pool.replace(String.fromCharCode(ii), ''); + } + /* falls through */ + default: + var characters = CHARACTER_CLASSES[item.text]; + if (characters) { + for (var iii = 0; iii <= characters.length; iii++) { + pool = pool.replace(characters[iii], ''); + } + } + } + } + return random.pick(pool.split('')); + }, + range: function (node, result, cache) { + // node.start, node.end + var min = handler.gen(node.start, result, cache).charCodeAt(); + var max = handler.gen(node.end, result, cache).charCodeAt(); + return String.fromCharCode(random.integer(min, max)); + }, + literal: function (node) { + return node.escaped ? node.body : node.text; + }, + // Unicode \u + unicode: function (node) { + return String.fromCharCode(parseInt(node.code, 16)); + }, + // 十六进制 \xFF + hex: function (node) { + return String.fromCharCode(parseInt(node.code, 16)); + }, + octal: function (node) { + return String.fromCharCode(parseInt(node.code, 8)); + }, + // 反向引用 + 'back-reference': function (node, result, cache) { + return cache[node.code] || ''; + }, + // http://en.wikipedia.org/wiki/C0_and_C1_control_codes + CONTROL_CHARACTER_MAP: function () { + var CONTROL_CHARACTER = '@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _'.split(' '); + var CONTROL_CHARACTER_UNICODE = '\u0000 \u0001 \u0002 \u0003 \u0004 \u0005 \u0006 \u0007 \u0008 \u0009 \u000A \u000B \u000C \u000D \u000E \u000F \u0010 \u0011 \u0012 \u0013 \u0014 \u0015 \u0016 \u0017 \u0018 \u0019 \u001A \u001B \u001C \u001D \u001E \u001F'.split(' '); + var map = {}; + for (var i = 0; i < CONTROL_CHARACTER.length; i++) { + map[CONTROL_CHARACTER[i]] = CONTROL_CHARACTER_UNICODE[i]; + } + return map; + }(), + 'control-character': function (node) { + return this.CONTROL_CHARACTER_MAP[node.code]; + } +}; + +// https://github.com/nuysoft/regexp +// forked from https://github.com/ForbesLindesay/regexp +function Token (n) { + this.type = n, this.offset = Token.offset(), this.text = Token.text(); +} + +function Alternate (n, l) { + Token.call(this, 'alternate'), this.left = n, this.right = l; +} + +function Match (n) { + Token.call(this, 'match'), this.body = n.filter(Boolean); +} + +function Group (n, l) { + Token.call(this, n), this.body = l; +} + +function CaptureGroup (n) { + Group.call(this, 'capture-group'), this.index = cgs[this.offset] || (cgs[this.offset] = index++), + this.body = n; +} + +function Quantified (n, l) { + Token.call(this, 'quantified'), this.body = n, this.quantifier = l; +} + +function Quantifier (n, l) { + Token.call(this, 'quantifier'), this.min = n, this.max = l, this.greedy = !0; +} + +function CharSet (n, l) { + Token.call(this, 'charset'), this.invert = n, this.body = l; +} + +function CharacterRange (n, l) { + Token.call(this, 'range'), this.start = n, this.end = l; +} + +function Literal (n) { + Token.call(this, 'literal'), this.body = n, this.escaped = this.body != this.text; +} + +function Unicode (n) { + Token.call(this, 'unicode'), this.code = n.toUpperCase(); +} + +function Hex (n) { + Token.call(this, 'hex'), this.code = n.toUpperCase(); +} + +function Octal (n) { + Token.call(this, 'octal'), this.code = n.toUpperCase(); +} + +function BackReference (n) { + Token.call(this, 'back-reference'), this.code = n.toUpperCase(); +} + +function ControlCharacter (n) { + Token.call(this, 'control-character'), this.code = n.toUpperCase(); +} + +/* istanbul ignore next */ +var parser = function () { + function n (n, l) { + function u () { + this.constructor = n; + } + + u.prototype = l.prototype, n.prototype = new u(); + } + + function l (n, l, u, t, r) { + function e (n, l) { + function u (n) { + function l (n) { + return n.charCodeAt(0).toString(16).toUpperCase() + } + + return n.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\x08/g, '\\b').replace(/\t/g, '\\t').replace(/\n/g, '\\n').replace(/\f/g, '\\f').replace(/\r/g, '\\r').replace(/[\x00-\x07\x0B\x0E\x0F]/g, function (n) { + return '\\x0' + l(n) + }).replace(/[\x10-\x1F\x80-\xFF]/g, function (n) { + return '\\x' + l(n) + }).replace(/[\u0180-\u0FFF]/g, function (n) { + return '\\u0' + l(n) + }).replace(/[\u1080-\uFFFF]/g, function (n) { + return '\\u' + l(n) + }) + } + + var t, r; + switch (n.length) { + case 0: + t = 'end of input'; + break + + case 1: + t = n[0]; + break + + default: + t = n.slice(0, -1).join(', ') + ' or ' + n[n.length - 1]; + } + return r = l ? '"' + u(l) + '"' : 'end of input', 'Expected ' + t + ' but ' + r + ' found.' + } + + this.expected = n, this.found = l, this.offset = u, this.line = t, this.column = r, + this.name = 'SyntaxError', this.message = e(n, l); + } + + function u (n) { + function u () { + return n.substring(Lt, qt) + } + + function t () { + return Lt + } + + function r (l) { + function u (l, u, t) { + var r, e; + for (r = u; t > r; r++) e = n.charAt(r), '\n' === e ? (l.seenCR || l.line++, l.column = 1, + l.seenCR = !1) : '\r' === e || '\u2028' === e || '\u2029' === e ? (l.line++, l.column = 1, + l.seenCR = !0) : (l.column++, l.seenCR = !1); + } + + return Mt !== l && (Mt > l && (Mt = 0, Dt = { + line: 1, + column: 1, + seenCR: !1 + }), u(Dt, Mt, l), Mt = l), Dt + } + + function e (n) { + Ht > qt || (qt > Ht && (Ht = qt, Ot = []), Ot.push(n)); + } + + function o (n) { + var l = 0; + for (n.sort(); l < n.length;) n[l - 1] === n[l] ? n.splice(l, 1) : l++; + } + + function c () { + var l, u, t, r, o; + return l = qt, u = i(), null !== u ? (t = qt, 124 === n.charCodeAt(qt) ? (r = fl, + qt++) : (r = null, 0 === Wt && e(sl)), null !== r ? (o = c(), null !== o ? (r = [r, o], + t = r) : (qt = t, t = il)) : (qt = t, t = il), null === t && (t = al), null !== t ? (Lt = l, + u = hl(u, t), null === u ? (qt = l, l = u) : l = u) : (qt = l, l = il)) : (qt = l, + l = il), l + } + + function i () { + var n, l, u, t, r; + if (n = qt, l = f(), null === l && (l = al), null !== l) if (u = qt, Wt++, t = d(), + Wt--, null === t ? u = al : (qt = u, u = il), null !== u) { + for (t = [], r = h(), null === r && (r = a()); null !== r;) t.push(r), r = h(), + null === r && (r = a()); + null !== t ? (r = s(), null === r && (r = al), null !== r ? (Lt = n, l = dl(l, t, r), + null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il); + } else qt = n, n = il; else qt = n, n = il; + return n + } + + function a () { + var n; + return n = x(), null === n && (n = Q(), null === n && (n = B())), n + } + + function f () { + var l, u; + return l = qt, 94 === n.charCodeAt(qt) ? (u = pl, qt++) : (u = null, 0 === Wt && e(vl)), + null !== u && (Lt = l, u = wl()), null === u ? (qt = l, l = u) : l = u, l + } + + function s () { + var l, u; + return l = qt, 36 === n.charCodeAt(qt) ? (u = Al, qt++) : (u = null, 0 === Wt && e(Cl)), + null !== u && (Lt = l, u = gl()), null === u ? (qt = l, l = u) : l = u, l + } + + function h () { + var n, l, u; + return n = qt, l = a(), null !== l ? (u = d(), null !== u ? (Lt = n, l = bl(l, u), + null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il), n + } + + function d () { + var n, l, u; + return Wt++, n = qt, l = p(), null !== l ? (u = k(), null === u && (u = al), null !== u ? (Lt = n, + l = Tl(l, u), null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, + n = il), Wt--, null === n && (l = null, 0 === Wt && e(kl)), n + } + + function p () { + var n; + return n = v(), null === n && (n = w(), null === n && (n = A(), null === n && (n = C(), + null === n && (n = g(), null === n && (n = b()))))), n + } + + function v () { + var l, u, t, r, o, c; + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)), + null !== u ? (t = T(), null !== t ? (44 === n.charCodeAt(qt) ? (r = ml, qt++) : (r = null, + 0 === Wt && e(Rl)), null !== r ? (o = T(), null !== o ? (125 === n.charCodeAt(qt) ? (c = Fl, + qt++) : (c = null, 0 === Wt && e(Ql)), null !== c ? (Lt = l, u = Sl(t, o), null === u ? (qt = l, + l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function w () { + var l, u, t, r; + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)), + null !== u ? (t = T(), null !== t ? (n.substr(qt, 2) === Ul ? (r = Ul, qt += 2) : (r = null, + 0 === Wt && e(El)), null !== r ? (Lt = l, u = Gl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il)) : (qt = l, l = il), l + } + + function A () { + var l, u, t, r; + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)), + null !== u ? (t = T(), null !== t ? (125 === n.charCodeAt(qt) ? (r = Fl, qt++) : (r = null, + 0 === Wt && e(Ql)), null !== r ? (Lt = l, u = Bl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il)) : (qt = l, l = il), l + } + + function C () { + var l, u; + return l = qt, 43 === n.charCodeAt(qt) ? (u = jl, qt++) : (u = null, 0 === Wt && e($l)), + null !== u && (Lt = l, u = ql()), null === u ? (qt = l, l = u) : l = u, l + } + + function g () { + var l, u; + return l = qt, 42 === n.charCodeAt(qt) ? (u = Ll, qt++) : (u = null, 0 === Wt && e(Ml)), + null !== u && (Lt = l, u = Dl()), null === u ? (qt = l, l = u) : l = u, l + } + + function b () { + var l, u; + return l = qt, 63 === n.charCodeAt(qt) ? (u = Hl, qt++) : (u = null, 0 === Wt && e(Ol)), + null !== u && (Lt = l, u = Wl()), null === u ? (qt = l, l = u) : l = u, l + } + + function k () { + var l; + return 63 === n.charCodeAt(qt) ? (l = Hl, qt++) : (l = null, 0 === Wt && e(Ol)), + l + } + + function T () { + var l, u, t; + if (l = qt, u = [], zl.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null, + 0 === Wt && e(Il)), null !== t) for (; null !== t;) u.push(t), zl.test(n.charAt(qt)) ? (t = n.charAt(qt), + qt++) : (t = null, 0 === Wt && e(Il)); else u = il; + return null !== u && (Lt = l, u = Jl(u)), null === u ? (qt = l, l = u) : l = u, + l + } + + function x () { + var l, u, t, r; + return l = qt, 40 === n.charCodeAt(qt) ? (u = Kl, qt++) : (u = null, 0 === Wt && e(Nl)), + null !== u ? (t = R(), null === t && (t = F(), null === t && (t = m(), null === t && (t = y()))), + null !== t ? (41 === n.charCodeAt(qt) ? (r = Pl, qt++) : (r = null, 0 === Wt && e(Vl)), + null !== r ? (Lt = l, u = Xl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il)) : (qt = l, l = il), l + } + + function y () { + var n, l; + return n = qt, l = c(), null !== l && (Lt = n, l = Yl(l)), null === l ? (qt = n, + n = l) : n = l, n + } + + function m () { + var l, u, t; + return l = qt, n.substr(qt, 2) === Zl ? (u = Zl, qt += 2) : (u = null, 0 === Wt && e(_l)), + null !== u ? (t = c(), null !== t ? (Lt = l, u = nu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function R () { + var l, u, t; + return l = qt, n.substr(qt, 2) === lu ? (u = lu, qt += 2) : (u = null, 0 === Wt && e(uu)), + null !== u ? (t = c(), null !== t ? (Lt = l, u = tu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function F () { + var l, u, t; + return l = qt, n.substr(qt, 2) === ru ? (u = ru, qt += 2) : (u = null, 0 === Wt && e(eu)), + null !== u ? (t = c(), null !== t ? (Lt = l, u = ou(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function Q () { + var l, u, t, r, o; + if (Wt++, l = qt, 91 === n.charCodeAt(qt) ? (u = iu, qt++) : (u = null, 0 === Wt && e(au)), + null !== u) if (94 === n.charCodeAt(qt) ? (t = pl, qt++) : (t = null, 0 === Wt && e(vl)), + null === t && (t = al), null !== t) { + for (r = [], o = S(), null === o && (o = U()); null !== o;) r.push(o), o = S(), + null === o && (o = U()); + null !== r ? (93 === n.charCodeAt(qt) ? (o = fu, qt++) : (o = null, 0 === Wt && e(su)), + null !== o ? (Lt = l, u = hu(t, r), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il); + } else qt = l, l = il; else qt = l, l = il; + return Wt--, null === l && (u = null, 0 === Wt && e(cu)), l + } + + function S () { + var l, u, t, r; + return Wt++, l = qt, u = U(), null !== u ? (45 === n.charCodeAt(qt) ? (t = pu, qt++) : (t = null, + 0 === Wt && e(vu)), null !== t ? (r = U(), null !== r ? (Lt = l, u = wu(u, r), null === u ? (qt = l, + l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il), Wt--, + null === l && (u = null, 0 === Wt && e(du)), l + } + + function U () { + var n; + return Wt++, n = G(), null === n && (n = E()), Wt--, null === n && (0 === Wt && e(Au)), + n + } + + function E () { + var l, u; + return l = qt, Cu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null, 0 === Wt && e(gu)), + null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u, l + } + + function G () { + var n; + return n = L(), null === n && (n = Y(), null === n && (n = H(), null === n && (n = O(), + null === n && (n = W(), null === n && (n = z(), null === n && (n = I(), null === n && (n = J(), + null === n && (n = K(), null === n && (n = N(), null === n && (n = P(), null === n && (n = V(), + null === n && (n = X(), null === n && (n = _(), null === n && (n = nl(), null === n && (n = ll(), + null === n && (n = ul(), null === n && (n = tl()))))))))))))))))), n + } + + function B () { + var n; + return n = j(), null === n && (n = q(), null === n && (n = $())), n + } + + function j () { + var l, u; + return l = qt, 46 === n.charCodeAt(qt) ? (u = ku, qt++) : (u = null, 0 === Wt && e(Tu)), + null !== u && (Lt = l, u = xu()), null === u ? (qt = l, l = u) : l = u, l + } + + function $ () { + var l, u; + return Wt++, l = qt, mu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null, + 0 === Wt && e(Ru)), null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u, + Wt--, null === l && (u = null, 0 === Wt && e(yu)), l + } + + function q () { + var n; + return n = M(), null === n && (n = D(), null === n && (n = Y(), null === n && (n = H(), + null === n && (n = O(), null === n && (n = W(), null === n && (n = z(), null === n && (n = I(), + null === n && (n = J(), null === n && (n = K(), null === n && (n = N(), null === n && (n = P(), + null === n && (n = V(), null === n && (n = X(), null === n && (n = Z(), null === n && (n = _(), + null === n && (n = nl(), null === n && (n = ll(), null === n && (n = ul(), null === n && (n = tl()))))))))))))))))))), + n + } + + function L () { + var l, u; + return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)), + null !== u && (Lt = l, u = Su()), null === u ? (qt = l, l = u) : l = u, l + } + + function M () { + var l, u; + return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)), + null !== u && (Lt = l, u = Uu()), null === u ? (qt = l, l = u) : l = u, l + } + + function D () { + var l, u; + return l = qt, n.substr(qt, 2) === Eu ? (u = Eu, qt += 2) : (u = null, 0 === Wt && e(Gu)), + null !== u && (Lt = l, u = Bu()), null === u ? (qt = l, l = u) : l = u, l + } + + function H () { + var l, u; + return l = qt, n.substr(qt, 2) === ju ? (u = ju, qt += 2) : (u = null, 0 === Wt && e($u)), + null !== u && (Lt = l, u = qu()), null === u ? (qt = l, l = u) : l = u, l + } + + function O () { + var l, u; + return l = qt, n.substr(qt, 2) === Lu ? (u = Lu, qt += 2) : (u = null, 0 === Wt && e(Mu)), + null !== u && (Lt = l, u = Du()), null === u ? (qt = l, l = u) : l = u, l + } + + function W () { + var l, u; + return l = qt, n.substr(qt, 2) === Hu ? (u = Hu, qt += 2) : (u = null, 0 === Wt && e(Ou)), + null !== u && (Lt = l, u = Wu()), null === u ? (qt = l, l = u) : l = u, l + } + + function z () { + var l, u; + return l = qt, n.substr(qt, 2) === zu ? (u = zu, qt += 2) : (u = null, 0 === Wt && e(Iu)), + null !== u && (Lt = l, u = Ju()), null === u ? (qt = l, l = u) : l = u, l + } + + function I () { + var l, u; + return l = qt, n.substr(qt, 2) === Ku ? (u = Ku, qt += 2) : (u = null, 0 === Wt && e(Nu)), + null !== u && (Lt = l, u = Pu()), null === u ? (qt = l, l = u) : l = u, l + } + + function J () { + var l, u; + return l = qt, n.substr(qt, 2) === Vu ? (u = Vu, qt += 2) : (u = null, 0 === Wt && e(Xu)), + null !== u && (Lt = l, u = Yu()), null === u ? (qt = l, l = u) : l = u, l + } + + function K () { + var l, u; + return l = qt, n.substr(qt, 2) === Zu ? (u = Zu, qt += 2) : (u = null, 0 === Wt && e(_u)), + null !== u && (Lt = l, u = nt()), null === u ? (qt = l, l = u) : l = u, l + } + + function N () { + var l, u; + return l = qt, n.substr(qt, 2) === lt ? (u = lt, qt += 2) : (u = null, 0 === Wt && e(ut)), + null !== u && (Lt = l, u = tt()), null === u ? (qt = l, l = u) : l = u, l + } + + function P () { + var l, u; + return l = qt, n.substr(qt, 2) === rt ? (u = rt, qt += 2) : (u = null, 0 === Wt && e(et)), + null !== u && (Lt = l, u = ot()), null === u ? (qt = l, l = u) : l = u, l + } + + function V () { + var l, u; + return l = qt, n.substr(qt, 2) === ct ? (u = ct, qt += 2) : (u = null, 0 === Wt && e(it)), + null !== u && (Lt = l, u = at()), null === u ? (qt = l, l = u) : l = u, l + } + + function X () { + var l, u; + return l = qt, n.substr(qt, 2) === ft ? (u = ft, qt += 2) : (u = null, 0 === Wt && e(st)), + null !== u && (Lt = l, u = ht()), null === u ? (qt = l, l = u) : l = u, l + } + + function Y () { + var l, u, t; + return l = qt, n.substr(qt, 2) === dt ? (u = dt, qt += 2) : (u = null, 0 === Wt && e(pt)), + null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)), + null !== t ? (Lt = l, u = wt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function Z () { + var l, u, t; + return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)), + null !== u ? (gt.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(bt)), + null !== t ? (Lt = l, u = kt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + + function _ () { + var l, u, t, r; + if (l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)), + null !== u) { + if (t = [], yt.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(mt)), + null !== r) for (; null !== r;) t.push(r), yt.test(n.charAt(qt)) ? (r = n.charAt(qt), + qt++) : (r = null, 0 === Wt && e(mt)); else t = il; + null !== t ? (Lt = l, u = Rt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il); + } else qt = l, l = il; + return l + } + + function nl () { + var l, u, t, r; + if (l = qt, n.substr(qt, 2) === Ft ? (u = Ft, qt += 2) : (u = null, 0 === Wt && e(Qt)), + null !== u) { + if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)), + null !== r) for (; null !== r;) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt), + qt++) : (r = null, 0 === Wt && e(Ut)); else t = il; + null !== t ? (Lt = l, u = Et(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il); + } else qt = l, l = il; + return l + } + + function ll () { + var l, u, t, r; + if (l = qt, n.substr(qt, 2) === Gt ? (u = Gt, qt += 2) : (u = null, 0 === Wt && e(Bt)), + null !== u) { + if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)), + null !== r) for (; null !== r;) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt), + qt++) : (r = null, 0 === Wt && e(Ut)); else t = il; + null !== t ? (Lt = l, u = jt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il); + } else qt = l, l = il; + return l + } + + function ul () { + var l, u; + return l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)), + null !== u && (Lt = l, u = $t()), null === u ? (qt = l, l = u) : l = u, l + } + + function tl () { + var l, u, t; + return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)), + null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)), + null !== t ? (Lt = l, u = bu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l, + l = il)) : (qt = l, l = il), l + } + var rl, el = arguments.length > 1 ? arguments[1] : {}, ol = { + regexp: c + }, cl = c, il = null, al = '', fl = '|', sl = '"|"', hl = function (n, l) { + return l ? new Alternate(n, l[1]) : n + }, dl = function (n, l, u) { + return new Match([n].concat(l).concat([u])) + }, pl = '^', vl = '"^"', wl = function () { + return new Token('start') + }, Al = '$', Cl = '"$"', gl = function () { + return new Token('end') + }, bl = function (n, l) { + return new Quantified(n, l) + }, kl = 'Quantifier', Tl = function (n, l) { + return l && (n.greedy = !1), n + }, xl = '{', yl = '"{"', ml = ',', Rl = '","', Fl = '}', Ql = '"}"', Sl = function (n, l) { + return new Quantifier(n, l) + }, Ul = ',}', El = '",}"', Gl = function (n) { + return new Quantifier(n, 1 / 0) + }, Bl = function (n) { + return new Quantifier(n, n) + }, jl = '+', $l = '"+"', ql = function () { + return new Quantifier(1, 1 / 0) + }, Ll = '*', Ml = '"*"', Dl = function () { + return new Quantifier(0, 1 / 0) + }, Hl = '?', Ol = '"?"', Wl = function () { + return new Quantifier(0, 1) + }, zl = /^[0-9]/, Il = '[0-9]', Jl = function (n) { + return +n.join('') + }, Kl = '(', Nl = '"("', Pl = ')', Vl = '")"', Xl = function (n) { + return n + }, Yl = function (n) { + return new CaptureGroup(n) + }, Zl = '?:', _l = '"?:"', nu = function (n) { + return new Group('non-capture-group', n) + }, lu = '?=', uu = '"?="', tu = function (n) { + return new Group('positive-lookahead', n) + }, ru = '?!', eu = '"?!"', ou = function (n) { + return new Group('negative-lookahead', n) + }, cu = 'CharacterSet', iu = '[', au = '"["', fu = ']', su = '"]"', hu = function (n, l) { + return new CharSet(!!n, l) + }, du = 'CharacterRange', pu = '-', vu = '"-"', wu = function (n, l) { + return new CharacterRange(n, l) + }, Au = 'Character', Cu = /^[^\\\]]/, gu = '[^\\\\\\]]', bu = function (n) { + return new Literal(n) + }, ku = '.', Tu = '"."', xu = function () { + return new Token('any-character') + }, yu = 'Literal', mu = /^[^|\\\/.[()?+*$\^]/, Ru = '[^|\\\\\\/.[()?+*$\\^]', Fu = '\\b', Qu = '"\\\\b"', + Su = function () { + return new Token('backspace') + }, Uu = function () { + return new Token('word-boundary') + }, Eu = '\\B', Gu = '"\\\\B"', Bu = function () { + return new Token('non-word-boundary') + }, ju = '\\d', $u = '"\\\\d"', qu = function () { + return new Token('digit') + }, Lu = '\\D', Mu = '"\\\\D"', Du = function () { + return new Token('non-digit') + }, Hu = '\\f', Ou = '"\\\\f"', Wu = function () { + return new Token('form-feed') + }, zu = '\\n', Iu = '"\\\\n"', Ju = function () { + return new Token('line-feed') + }, Ku = '\\r', Nu = '"\\\\r"', Pu = function () { + return new Token('carriage-return') + }, Vu = '\\s', Xu = '"\\\\s"', Yu = function () { + return new Token('white-space') + }, Zu = '\\S', _u = '"\\\\S"', nt = function () { + return new Token('non-white-space') + }, lt = '\\t', ut = '"\\\\t"', tt = function () { + return new Token('tab') + }, rt = '\\v', et = '"\\\\v"', ot = function () { + return new Token('vertical-tab') + }, ct = '\\w', it = '"\\\\w"', at = function () { + return new Token('word') + }, ft = '\\W', st = '"\\\\W"', ht = function () { + return new Token('non-word') + }, dt = '\\c', pt = '"\\\\c"', vt = 'any character', wt = function (n) { + return new ControlCharacter(n) + }, At = '\\', Ct = '"\\\\"', gt = /^[1-9]/, bt = '[1-9]', kt = function (n) { + return new BackReference(n) + }, Tt = '\\0', xt = '"\\\\0"', yt = /^[0-7]/, mt = '[0-7]', Rt = function (n) { + return new Octal(n.join('')) + }, Ft = '\\x', Qt = '"\\\\x"', St = /^[0-9a-fA-F]/, Ut = '[0-9a-fA-F]', Et = function (n) { + return new Hex(n.join('')) + }, Gt = '\\u', Bt = '"\\\\u"', jt = function (n) { + return new Unicode(n.join('')) + }, $t = function () { + return new Token('null-character') + }, qt = 0, Lt = 0, Mt = 0, Dt = { + line: 1, + column: 1, + seenCR: !1 + }, Ht = 0, Ot = [], Wt = 0; + if ('startRule' in el) { + if (!(el.startRule in ol)) throw new Error('Can\'t start parsing from rule "' + el.startRule + '".') + cl = ol[el.startRule]; + } + if (Token.offset = t, Token.text = u, rl = cl(), null !== rl && qt === n.length) return rl + throw o(Ot), Lt = Math.max(qt, Ht), new l(Ot, Lt < n.length ? n.charAt(Lt) : null, Lt, r(Lt).line, r(Lt).column) + } + + return n(l, Error), { + SyntaxError: l, + parse: u + } +}(), index = 1, cgs = {}; + +var RE = { + Parser: parser, + Handler: handler +}; + +// 处理数据模板。 +var handler$1 = { + // template 属性值(即数据模板) + // name 属性名 + // context 数据上下文,生成后的数据 + // templateContext 模板上下文, + // + // Handle.gen(template, name, options) + // context + // currentContext, templateCurrentContext, + // path, templatePath + // root, templateRoot + gen: function (template, name, context) { + name = name === undefined ? '' : name.toString(); + context = context || {}; + context = { + // 当前访问路径,只有属性名,不包括生成规则 + path: context.path || [constant.GUID], + templatePath: context.templatePath || [constant.GUID++], + currentContext: context.currentContext, + templateCurrentContext: context.templateCurrentContext || template, + root: context.root || context.currentContext, + templateRoot: context.templateRoot || context.templateCurrentContext || template + }; + var rule = parse(name); + var type$1 = type(template); + var data; + if (handler$1[type$1]) { + data = handler$1[type$1]({ + type: type$1, + template: template, + name: name, + rule: rule, + context: context, + parsedName: name ? name.replace(constant.RE_KEY, '$1') : name, + }); + if (!context.root) { + context.root = data; + } + return data; + } + return template; + }, + array: function (options) { + var result = []; + // 'name|1': [] + // 'name|count': [] + // 'name|min-max': [] + if (options.template.length === 0) + return result; + // 'arr': [{ 'email': '@EMAIL' }, { 'email': '@EMAIL' }] + if (!options.rule.parameters) { + for (var i = 0; i < options.template.length; i++) { + options.context.path.push(i); + options.context.templatePath.push(i); + result.push(handler$1.gen(options.template[i], i, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + })); + options.context.path.pop(); + options.context.templatePath.pop(); + } + } + else { + // 'method|1': ['GET', 'POST', 'HEAD', 'DELETE'] + if (options.rule.min === 1 && options.rule.max === undefined) { + // fix Mock.js#17 + options.context.path.push(options.name); + options.context.templatePath.push(options.name); + result = random.pick(handler$1.gen(options.template, undefined, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + })); + options.context.path.pop(); + options.context.templatePath.pop(); + } + else { + // 'data|+1': [{}, {}] + if (options.rule.parameters[2]) { + options.template.__order_index = options.template.__order_index || 0; + options.context.path.push(options.name); + options.context.templatePath.push(options.name); + result = handler$1.gen(options.template, undefined, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + })[options.template.__order_index % options.template.length]; + options.template.__order_index += +options.rule.parameters[2]; + options.context.path.pop(); + options.context.templatePath.pop(); + } + else if (options.rule.count) { + // 'data|1-10': [{}] + for (var i = 0; i < options.rule.count; i++) { + // 'data|1-10': [{}, {}] + for (var ii = 0; ii < options.template.length; ii++) { + options.context.path.push(result.length); + options.context.templatePath.push(ii); + result.push(handler$1.gen(options.template[ii], result.length, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + })); + options.context.path.pop(); + options.context.templatePath.pop(); + } + } + } + } + } + return result; + }, + object: function (options) { + var result = {}; + // 'obj|min-max': {} + if (options.rule.min != undefined) { + var keys$1 = keys(options.template); + keys$1 = random.shuffle(keys$1); + keys$1 = keys$1.slice(0, options.rule.count); + for (var i = 0; i < keys$1.length; i++) { + var key = keys$1[i]; + var parsedKey = key.replace(constant.RE_KEY, '$1'); + var transferTypeCtor = handler$1.getTransferTypeCtor(key); + if (transferTypeCtor) { + parsedKey = parsedKey.replace(constant.RE_TRANSFER_TYPE, ''); + } + options.context.path.push(parsedKey); + options.context.templatePath.push(key); + var generatedValue = handler$1.gen(options.template[key], key, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + }); + result[parsedKey] = transferTypeCtor(generatedValue); + options.context.path.pop(); + options.context.templatePath.pop(); + } + } + else { + // 'obj': {} + var keys$1 = []; + var fnKeys = []; // Mock.js#25 改变了非函数属性的顺序,查找起来不方便 + for (var key in options.template) { + var target = typeof options.template[key] === 'function' ? fnKeys : keys$1; + target.push(key); + } + keys$1 = keys$1.concat(fnKeys); + for (var i = 0; i < keys$1.length; i++) { + var key = keys$1[i]; + var parsedKey = key.replace(constant.RE_KEY, '$1'); + var transferTypeCtor = handler$1.getTransferTypeCtor(key); + if (transferTypeCtor) { + parsedKey = parsedKey.replace(constant.RE_TRANSFER_TYPE, ''); + } + options.context.path.push(parsedKey); + options.context.templatePath.push(key); + var generatedValue = handler$1.gen(options.template[key], key, { + path: options.context.path, + templatePath: options.context.templatePath, + currentContext: result, + templateCurrentContext: options.template, + root: options.context.root || result, + templateRoot: options.context.templateRoot || options.template + }); + result[parsedKey] = transferTypeCtor(generatedValue); + options.context.path.pop(); + options.context.templatePath.pop(); + // 'id|+1': 1 + var inc = key.match(constant.RE_KEY); + if (inc && inc[2] && type(options.template[key]) === 'number') { + options.template[key] += parseInt(inc[2], 10); + } + } + } + return result; + }, + number: function (options) { + var result; + var parts; + if (options.rule.decimal) { + // float + options.template += ''; + parts = options.template.split('.'); + // 'float1|.1-10': 10, + // 'float2|1-100.1-10': 1, + // 'float3|999.1-10': 1, + // 'float4|.3-10': 123.123, + parts[0] = options.rule.range ? options.rule.count : parts[0]; + parts[1] = (parts[1] || '').slice(0, options.rule.dcount); + while (parts[1].length < options.rule.dcount) { + // 最后一位不能为 0:如果最后一位为 0,会被 JS 引擎忽略掉。 + parts[1] += parts[1].length < options.rule.dcount - 1 + ? random.character('number') + : random.character('123456789'); + } + result = parseFloat(parts.join('.')); + } + else { + // integer + // 'grade1|1-100': 1, + result = options.rule.range && !options.rule.parameters[2] ? options.rule.count : options.template; + } + return result; + }, + boolean: function (options) { + // 'prop|multiple': false, 当前值是相反值的概率倍数 + // 'prop|probability-probability': false, 当前值与相反值的概率 + var result = options.rule.parameters + ? random.bool(Number(options.rule.min), Number(options.rule.max), options.template) + : options.template; + return result; + }, + string: function (options) { + var source = ''; + var result = ''; + var match; + var lastIndex = 0; + if (options.template.length) { + // 'foo': '★', + if (options.rule.count === undefined) { + source += options.template; + } + else { + // 'star|1-5': '★', + for (var i = 0; i < options.rule.count; i++) { + source += options.template; + } + } + // 'email|1-10': '@EMAIL, ', + constant.RE_PLACEHOLDER.exec(''); + while (match = constant.RE_PLACEHOLDER.exec(source)) { + var index = match.index; + var input = match[0]; + if (index >= lastIndex) { + // 遇到转义斜杠,不需要解析占位符 + if (/^\\/.test(input)) { + result += source.slice(lastIndex, index) + input.slice(1); + lastIndex = index + input.length; + continue; + } + // console.log(input, options.context.currentContext, options.context.templateCurrentContext, options) + var replaced = handler$1.placeholder(input, options.context.currentContext, options.context.templateCurrentContext, options); + // 只有一个占位符,并且没有其他字符,例如:'name': '@EMAIL' + if (index === 0 && input.length === source.length) { + result = replaced; + } + else { + result += source.slice(lastIndex, index) + replaced; + } + lastIndex = index + input.length; + } + } + if (lastIndex < source.length) { + result += source.slice(lastIndex); + } + } + else { + // 'ASCII|1-10': '', + // 'ASCII': '', + result = options.rule.range ? random.string(options.rule.count) : options.template; + } + return result; + }, + function: function (options) { + // ( context, options ) + return options.template.call(options.context.currentContext, options); + }, + regexp: function (options) { + var source = ''; + // 'name': /regexp/, + if (options.rule.count === undefined) { + source += options.template.source; // regexp.source + } + else { + // 'name|1-5': /regexp/, + for (var i = 0; i < options.rule.count; i++) { + source += options.template.source; + } + } + return RE.Handler.gen(RE.Parser.parse(source)); + }, + _all: function () { + var re = {}; + for (var key in random) { + re[key.toLowerCase()] = key; + } + return re; + }, + // 处理占位符,转换为最终值 + placeholder: function (placeholder, obj, templateContext, options) { + // 1 key, 2 params + // regexp init + constant.RE_PLACEHOLDER.exec(''); + var parts = constant.RE_PLACEHOLDER.exec(placeholder); + var key = parts && parts[1]; + var lkey = key && key.toLowerCase(); + var okey = handler$1._all()[lkey]; + var paramsInput = (parts && parts[2]) || ''; + var pathParts = handler$1.splitPathToArray(key); + var params = []; + // 解析占位符的参数 + try { + // 1. 尝试保持参数的类型 + // #24 [Window Firefox 30.0 引用 占位符 抛错](https://github.com/nuysoft/Mock/issues/24) + // [BX9056: 各浏览器下 window.eval 方法的执行上下文存在差异](http://www.w3help.org/zh-cn/causes/BX9056) + // 应该属于 Window Firefox 30.0 的 BUG + params = eval('(function(){ return [].splice.call(arguments, 0 ) })(' + paramsInput + ')'); + } + catch (error) { + // 2. 如果失败,先使用 `[]` 包裹,用 JSON.parse 尝试解析 + try { + var paramsString = paramsInput.replace(/'/g, '"'); + params = JSON.parse("[" + paramsString + "]"); + } + catch (e) { + // 3. 逗号 split 方案兜底 + params = paramsInput.split(/,\s*/); + } + } + // 占位符优先引用数据模板中的属性 + // { first: '@EMAIL', full: '@first' } => { first: 'dsa@163.com', full: 'dsa@163.com' } + if (obj && key in obj) { + return obj[key]; + } + // 绝对路径 or 相对路径 + if (key.charAt(0) === '/' || pathParts.length > 1) { + return handler$1.getValueByKeyPath(key, options); + } + // 递归引用数据模板中的属性 + // fix Mock.js#15 避免自己依赖自己) + if (templateContext && typeof templateContext === 'object' && key in templateContext && placeholder !== templateContext[key]) { + // 先计算被引用的属性值 + templateContext[key] = handler$1.gen(templateContext[key], key, { + currentContext: obj, templateCurrentContext: templateContext + }); + return templateContext[key]; + } + // 如果未找到,则原样返回 + if (!(key in random) && !(lkey in random) && !(okey in random)) { + return placeholder; + } + // 递归解析参数中的占位符 + for (var i = 0; i < params.length; i++) { + constant.RE_PLACEHOLDER.exec(''); + if (constant.RE_PLACEHOLDER.test(params[i])) { + params[i] = handler$1.placeholder(params[i], obj, templateContext, options); + } + } + var handle = random[key] || random[lkey] || random[okey]; + if (isFunction(handle)) { + // 执行占位符方法(大多数情况) + handle.options = options; + var ret = handle.apply(random, params); + // 因为是在字符串中,所以默认为空字符串。 + if (ret === undefined) { + ret = ''; + } + delete handle.options; + return ret; + } + return ''; + }, + getValueByKeyPath: function (key, options) { + var originalKey = key; + var keyPathParts = handler$1.splitPathToArray(key); + var absolutePathParts = []; + // 绝对路径 + if (key.charAt(0) === '/') { + absolutePathParts = [options.context.path[0]].concat(handler$1.normalizePath(keyPathParts)); + } + else { + // 相对路径 + if (keyPathParts.length > 1) { + absolutePathParts = options.context.path.slice(0); + absolutePathParts.pop(); + absolutePathParts = handler$1.normalizePath(absolutePathParts.concat(keyPathParts)); + } + } + try { + key = keyPathParts[keyPathParts.length - 1]; + var currentContext = options.context.root; + var templateCurrentContext = options.context.templateRoot; + for (var i = 1; i < absolutePathParts.length - 1; i++) { + currentContext = currentContext[absolutePathParts[i]]; + templateCurrentContext = templateCurrentContext[absolutePathParts[i]]; + } + // 引用的值已经计算好 + if (currentContext && key in currentContext) { + return currentContext[key]; + } + // 尚未计算,递归引用数据模板中的属性 + // fix #15 避免自己依赖自己 + if (templateCurrentContext && + typeof templateCurrentContext === 'object' && + key in templateCurrentContext && + originalKey !== templateCurrentContext[key]) { + // 先计算被引用的属性值 + templateCurrentContext[key] = handler$1.gen(templateCurrentContext[key], key, { + currentContext: currentContext, + templateCurrentContext: templateCurrentContext + }); + return templateCurrentContext[key]; + } + } + catch (e) { } + return '@' + keyPathParts.join('/'); + }, + // https://github.com/kissyteam/kissy/blob/master/src/path/src/path.js + normalizePath: function (pathParts) { + var newPathParts = []; + for (var i = 0; i < pathParts.length; i++) { + switch (pathParts[i]) { + case '..': + newPathParts.pop(); + break; + case '.': + break; + default: + newPathParts.push(pathParts[i]); + } + } + return newPathParts; + }, + splitPathToArray: function (path) { + return path.split(/\/+/).filter(function (_) { return _; }); + }, + getTransferTypeCtor: function (key) { + var matched = key.match(constant.RE_TRANSFER_TYPE); + var type = matched && matched[1]; + if (type && transfer.hasOwnProperty(type) && type !== 'extend') { + return transfer[type]; + } + return function (value) { return value; }; + } +}; + +// 把 Mock.js 风格的数据模板转换成 JSON Schema。 +function toJSONSchema(template, name, path) { + path = path || []; + var result = { + name: typeof name === 'string' ? name.replace(constant.RE_KEY, '$1') : name, + template: template, + type: type(template), + rule: parse(name), + path: path.slice(0) + }; + result.path.push(name === undefined ? 'ROOT' : result.name); + if (isArray(template)) { + result.items = []; + template.forEach(function (item, index) { + result.items.push(toJSONSchema(item, index, result.path)); + }); + } + else if (isObject(template)) { + result.properties = []; + for (var key in template) { + result.properties.push(toJSONSchema(template[key], key, result.path)); + } + } + return result; +} + +// ## valid(template, data) +var Diff = { + diff: function (schema, data, name) { + var result = []; + // 先检测名称 name 和类型 type,如果匹配,才有必要继续检测 + if (Diff.name(schema, data, name, result) && Diff.type(schema, data, name, result)) { + Diff.value(schema, data, name, result); + Diff.properties(schema, data, name, result); + Diff.items(schema, data, name, result); + } + return result; + }, + /* jshint unused:false */ + name: function (schema, _data, name, result) { + var length = result.length; + Assert.equal('name', schema.path, name + '', schema.name + '', result); + return result.length === length; + }, + type: function (schema, data, _name, result) { + var length = result.length; + if (isString(schema.template)) { + // 占位符类型处理 + if (schema.template.match(constant.RE_PLACEHOLDER)) { + var actualValue = handler$1.gen(schema.template); + Assert.equal('type', schema.path, type(data), type(actualValue), result); + return result.length === length; + } + } + else if (isArray(schema.template)) { + if (schema.rule.parameters) { + // name|count: array + if (schema.rule.min !== undefined && schema.rule.max === undefined) { + // 跳过 name|1: array,因为最终值的类型(很可能)不是数组,也不一定与 `array` 中的类型一致 + if (schema.rule.count === 1) { + return true; + } + } + // 跳过 name|+inc: array + if (schema.rule.parameters[2]) { + return true; + } + } + } + else if (isFunction(schema.template)) { + // 跳过 `'name': function`,因为函数可以返回任何类型的值。 + return true; + } + Assert.equal('type', schema.path, type(data), schema.type, result); + return result.length === length; + }, + value: function (schema, data, name, result) { + var length = result.length; + var rule = schema.rule; + var templateType = schema.type; + if (templateType === 'object' || templateType === 'array' || templateType === 'function') { + return true; + } + // 无生成规则 + if (!rule.parameters) { + if (isRegExp(schema.template)) { + Assert.match('value', schema.path, data, schema.template, result); + return result.length === length; + } + if (isString(schema.template)) { + // 同样跳过含有『占位符』的属性值,因为『占位符』的返回值会通常会与模板不一致 + if (schema.template.match(constant.RE_PLACEHOLDER)) { + return result.length === length; + } + } + Assert.equal('value', schema.path, data, schema.template, result); + return result.length === length; + } + // 有生成规则 + var actualRepeatCount; + if (isNumber(schema.template)) { + var parts = (data + '').split('.'); + var intPart = Number(parts[0]); + var floatPart = parts[1]; + // 整数部分 + // |min-max + if (rule.min !== undefined && rule.max !== undefined) { + Assert.greaterThanOrEqualTo('value', schema.path, intPart, Math.min(Number(rule.min), Number(rule.max)), result); + // , 'numeric instance is lower than the required minimum (minimum: {expected}, found: {actual})') + Assert.lessThanOrEqualTo('value', schema.path, intPart, Math.max(Number(rule.min), Number(rule.max)), result); + } + // |count + if (rule.min !== undefined && rule.max === undefined) { + Assert.equal('value', schema.path, intPart, Number(rule.min), result, '[value] ' + name); + } + // 小数部分 + if (rule.decimal) { + // |dmin-dmax + if (rule.dmin !== undefined && rule.dmax !== undefined) { + Assert.greaterThanOrEqualTo('value', schema.path, floatPart.length, Number(rule.dmin), result); + Assert.lessThanOrEqualTo('value', schema.path, floatPart.length, Number(rule.dmax), result); + } + // |dcount + if (rule.dmin !== undefined && rule.dmax === undefined) { + Assert.equal('value', schema.path, floatPart.length, Number(rule.dmin), result); + } + } + } + else if (isString(schema.template)) { + // 'aaa'.match(/a/g) + actualRepeatCount = data.match(new RegExp(schema.template, 'g')); + actualRepeatCount = actualRepeatCount ? actualRepeatCount.length : 0; + // |min-max + if (rule.min !== undefined && rule.max !== undefined) { + Assert.greaterThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.min), result); + Assert.lessThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.max), result); + } + // |count + if (rule.min !== undefined && rule.max === undefined) { + Assert.equal('repeat count', schema.path, actualRepeatCount, rule.min, result); + } + } + else if (isRegExp(schema.template)) { + actualRepeatCount = data.match(new RegExp(schema.template.source.replace(/^\^|\$$/g, ''), 'g')); + actualRepeatCount = actualRepeatCount ? actualRepeatCount.length : 0; + // |min-max + if (rule.min !== undefined && rule.max !== undefined) { + Assert.greaterThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.min), result); + Assert.lessThanOrEqualTo('repeat count', schema.path, actualRepeatCount, Number(rule.max), result); + } + // |count + if (rule.min !== undefined && rule.max === undefined) { + Assert.equal('repeat count', schema.path, actualRepeatCount, rule.min, result); + } + } + return result.length === length; + }, + properties: function (schema, data, _name, result) { + var length = result.length; + var rule = schema.rule; + var keys$1 = keys(data); + if (!schema.properties) { + return; + } + // 无生成规则 + if (!schema.rule.parameters) { + Assert.equal('properties length', schema.path, keys$1.length, schema.properties.length, result); + } + else { + // 有生成规则 + // |min-max + if (rule.min !== undefined && rule.max !== undefined) { + Assert.greaterThanOrEqualTo('properties length', schema.path, keys$1.length, Math.min(Number(rule.min), Number(rule.max)), result); + Assert.lessThanOrEqualTo('properties length', schema.path, keys$1.length, Math.max(Number(rule.min), Number(rule.max)), result); + } + // |count + if (rule.min !== undefined && rule.max === undefined) { + // |1, |>1 + if (rule.count !== 1) { + Assert.equal('properties length', schema.path, keys$1.length, Number(rule.min), result); + } + } + } + if (result.length !== length) { + return false; + } + var _loop_1 = function (i) { + var property; + schema.properties.forEach(function (item) { + if (item.name === keys$1[i]) { + property = item; + } + }); + property = property || schema.properties[i]; + result.push.apply(result, Diff.diff(property, data[keys$1[i]], keys$1[i])); + }; + for (var i = 0; i < keys$1.length; i++) { + _loop_1(i); + } + return result.length === length; + }, + items: function (schema, data, _name, result) { + var length = result.length; + if (!schema.items) { + return; + } + var rule = schema.rule; + // 无生成规则 + if (!schema.rule.parameters) { + Assert.equal('items length', schema.path, data.length, schema.items.length, result); + } + else { + // 有生成规则 + // |min-max + if (rule.min !== undefined && rule.max !== undefined) { + Assert.greaterThanOrEqualTo('items', schema.path, data.length, Math.min(Number(rule.min), Number(rule.max)) * schema.items.length, result, '[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements'); + Assert.lessThanOrEqualTo('items', schema.path, data.length, Math.max(Number(rule.min), Number(rule.max)) * schema.items.length, result, '[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements'); + } + // |count + if (rule.min !== undefined && rule.max === undefined) { + // |1, |>1 + if (rule.count === 1) { + return result.length === length; + } + else { + Assert.equal('items length', schema.path, data.length, (Number(rule.min) * schema.items.length), result); + } + } + // |+inc + if (rule.parameters && rule.parameters[2]) { + return result.length === length; + } + } + if (result.length !== length) { + return false; + } + for (var i = 0; i < data.length; i++) { + result.push.apply(result, Diff.diff(schema.items[i % schema.items.length], data[i], i % schema.items.length)); + } + return result.length === length; + } +}; +// 完善、友好的提示信息 +// +// Equal, not equal to, greater than, less than, greater than or equal to, less than or equal to +// 路径 验证类型 描述 +// +// Expect path.name is less than or equal to expected, but path.name is actual. +// +// Expect path.name is less than or equal to expected, but path.name is actual. +// Expect path.name is greater than or equal to expected, but path.name is actual. +var Assert = { + message: function (item) { + if (item.message) { + return item.message; + } + var upperType = item.type.toUpperCase(); + var lowerType = item.type.toLowerCase(); + var path = isArray(item.path) && item.path.join('.') || item.path; + var action = item.action; + var expected = item.expected; + var actual = item.actual; + return "[" + upperType + "] Expect " + path + "'" + lowerType + " " + action + " " + expected + ", but is " + actual; + }, + equal: function (type, path, actual, expected, result, message) { + if (actual === expected) { + return true; + } + // 正则模板 === 字符串最终值 + if (type === 'type' && expected === 'regexp' && actual === 'string') { + return true; + } + result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is equal to')); + return false; + }, + // actual matches expected + match: function (type, path, actual, expected, result, message) { + if (expected.test(actual)) { + return true; + } + result.push(Assert.createDiffResult(type, path, actual, expected, message, 'matches')); + return false; + }, + greaterThanOrEqualTo: function (type, path, actual, expected, result, message) { + if (actual >= expected) { + return true; + } + result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is greater than or equal to')); + return false; + }, + lessThanOrEqualTo: function (type, path, actual, expected, result, message) { + if (actual <= expected) { + return true; + } + result.push(Assert.createDiffResult(type, path, actual, expected, message, 'is less than or equal to')); + return false; + }, + createDiffResult: function (type, path, actual, expected, message, action) { + var item = { + path: path, + type: type, + actual: actual, + expected: expected, + action: action, + message: message + }; + item.message = Assert.message(item); + return item; + } +}; +var valid = function (template, data) { + var schema = toJSONSchema(template); + return Diff.diff(schema, data); +}; +valid.Diff = Diff; +valid.Assert = Assert; + +function rgx (str, loose) { + if (str instanceof RegExp) return { keys:false, pattern:str }; + var c, o, tmp, ext, keys=[], pattern='', arr = str.split('/'); + arr[0] || arr.shift(); + + while (tmp = arr.shift()) { + c = tmp[0]; + if (c === '*') { + keys.push('wild'); + pattern += '/(.*)'; + } else if (c === ':') { + o = tmp.indexOf('?', 1); + ext = tmp.indexOf('.', 1); + keys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) ); + pattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)'; + if (!!~ext) pattern += (!!~o ? '?' : '') + '\\' + tmp.substring(ext); + } else { + pattern += '/' + tmp; + } + } + + return { + keys: keys, + pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i') + }; +} + +var IMocked = /** @class */ (function () { + function IMocked() { + this._mocked = {}; + } + IMocked.prototype.set = function (key, value) { + this._mocked[key] = value; + }; + IMocked.prototype.getMocked = function () { + return this._mocked; + }; + // 查找与请求参数匹配的数据模板:URL,Type + IMocked.prototype.find = function (url, type) { + var mockedItems = Object.values(this._mocked); + for (var i = 0; i < mockedItems.length; i++) { + var item = mockedItems[i]; + var urlMatched = this._matchUrl(item.rurl, url); + var typeMatched = this._matchType(item.rtype, type); + if (!item.rtype && urlMatched) { + return item; + } + if (urlMatched && typeMatched) { + return item; + } + } + }; + /** + * 数据模板转换成 mock 数据 + * @param item 发请求时匹配到的 mock 数据源 + * @param options 包含请求头,请求体,请求方法等 + */ + IMocked.prototype.convert = function (item, options) { + return isFunction(item.template) ? item.template(options) : handler$1.gen(item.template); + }; + IMocked.prototype._matchUrl = function (expected, actual) { + if (isString(expected)) { + if (expected === actual) { + return true; + } + // expected: /hello/world + // actual: /hello/world?type=1 + if (actual.indexOf(expected) === 0 && actual[expected.length] === '?') { + return true; + } + if (expected.indexOf('/') === 0) { + return rgx(expected).pattern.test(actual); + } + } + if (isRegExp(expected)) { + return expected.test(actual); + } + return false; + }; + IMocked.prototype._matchType = function (expected, actual) { + if (isString(expected) || isRegExp(expected)) { + return new RegExp(expected, 'i').test(actual); + } + return false; + }; + return IMocked; +}()); +var mocked = new IMocked(); + +var Setting = /** @class */ (function () { + function Setting() { + this._setting = { + timeout: '10-100' + }; + } + Setting.prototype.setup = function (setting) { + Object.assign(this._setting, setting); + }; + Setting.prototype.parseTimeout = function (timeout) { + if (timeout === void 0) { timeout = this._setting.timeout; } + if (typeof timeout === 'number') { + return timeout; + } + if (typeof timeout === 'string' && timeout.indexOf('-') === -1) { + return parseInt(timeout, 10); + } + if (typeof timeout === 'string' && timeout.indexOf('-') !== -1) { + var tmp = timeout.split('-'); + var min = parseInt(tmp[0], 10); + var max = parseInt(tmp[1], 10); + return Math.round(Math.random() * (max - min)) + min; + } + return 0; + }; + return Setting; +}()); +var setting = new Setting(); + +// 备份原生 XMLHttpRequest +var _XMLHttpRequest = XMLHttpRequest; +var XHR_STATES; +(function (XHR_STATES) { + // The object has been constructed. + XHR_STATES[XHR_STATES["UNSENT"] = 0] = "UNSENT"; + // The open() method has been successfully invoked. + XHR_STATES[XHR_STATES["OPENED"] = 1] = "OPENED"; + // All redirects (if any) have been followed and all HTTP headers of the response have been received. + XHR_STATES[XHR_STATES["HEADERS_RECEIVED"] = 2] = "HEADERS_RECEIVED"; + // The response's body is being received. + XHR_STATES[XHR_STATES["LOADING"] = 3] = "LOADING"; + // The data transfer has been completed or something went wrong during the transfer (e.g. infinite redirects). + XHR_STATES[XHR_STATES["DONE"] = 4] = "DONE"; +})(XHR_STATES || (XHR_STATES = {})); +var XHR_EVENTS = ['readystatechange', 'loadstart', 'progress', 'abort', 'error', 'load', 'timeout', 'loadend']; +var XHR_REQUEST_PROPERTIES = ['timeout', 'withCredentials', 'responseType']; +var XHR_RESPONSE_PROPERTIES = [ + 'readyState', + 'responseURL', + 'status', + 'statusText', + 'response', + 'responseText', + 'responseXML' +]; +var MockXMLHttpRequest = /** @class */ (function () { + function MockXMLHttpRequest() { + // 标记当前对象为 MockXMLHttpRequest + this.mock = true; + // 是否拦截 Ajax 请求 + this.match = false; + this.timeout = 0; + this.readyState = XHR_STATES.UNSENT; + this.withCredentials = false; + this.responseURL = ''; + this.status = XHR_STATES.UNSENT; + this.statusText = ''; + // '', 'text', 'arraybuffer', 'blob', 'document', 'json' + this.responseType = ''; + this.response = null; + this.responseText = ''; + this.responseXML = ''; + this.UNSENT = XHR_STATES.UNSENT; + this.OPENED = XHR_STATES.OPENED; + this.HEADERS_RECEIVED = XHR_STATES.HEADERS_RECEIVED; + this.LOADING = XHR_STATES.LOADING; + this.DONE = XHR_STATES.DONE; + // 初始化 custom 对象,用于存储自定义属性 + this.custom = { + events: {}, + requestHeaders: {}, + responseHeaders: {}, + timeout: 0, + options: {}, + xhr: createNativeXHR(), + template: null, + async: true + }; + this.upload = this.custom.xhr.upload; + } + MockXMLHttpRequest.prototype.open = function (method, url, async, username, password) { + var _this = this; + if (async === void 0) { async = true; } + Object.assign(this.custom, { + method: method, + url: url, + async: typeof async === 'boolean' ? async : true, + username: username, + password: password, + options: { + url: url, + type: method + } + }); + this.custom.timeout = setting.parseTimeout(); + // 查找与请求参数匹配的数据模板 + var options = this.custom.options; + var item = mocked.find(options.url, options.type); + // 如果未找到匹配的数据模板,则采用原生 XHR 发送请求。 + if (!item) { + var xhr_1 = this.custom.xhr; + // 初始化所有事件,用于监听原生 XHR 对象的事件 + for (var i = 0; i < XHR_EVENTS.length; i++) { + xhr_1.addEventListener(XHR_EVENTS[i], function (event) { + // 同步属性 NativeXMLHttpRequest => MockXMLHttpRequest + XHR_RESPONSE_PROPERTIES.forEach(function (prop) { + try { + _this[prop] = xhr_1[prop]; + } + catch (e) { } + }); + // 触发 MockXMLHttpRequest 上的同名事件 + _this.dispatchEvent(event); + }); + } + // xhr.open() + if (username) { + xhr_1.open(method, url, async, username, password); + } + else { + xhr_1.open(method, url, async); + } + return; + } + // 找到了匹配的数据模板,开始拦截 XHR 请求 + this.match = true; + this.custom.template = item; + this.readyState = XHR_STATES.OPENED; + this.dispatchEvent(createCustomEvent('readystatechange')); + }; + // Combines a header in author request headers. + MockXMLHttpRequest.prototype.setRequestHeader = function (name, value) { + // 原生 XHR + if (!this.match) { + this.custom.xhr.setRequestHeader(name, value); + return; + } + // 拦截 XHR + var requestHeaders = this.custom.requestHeaders; + if (requestHeaders[name]) { + requestHeaders[name] += ',' + value; + } + else { + requestHeaders[name] = value; + } + }; + // Initiates the request. + MockXMLHttpRequest.prototype.send = function (data) { + var _this = this; + this.custom.options.body = data; + this.custom.options.headers = this.custom.requestHeaders; + // 原生 XHR + if (!this.match) { + // 同步属性 MockXMLHttpRequest => NativeXMLHttpRequest + XHR_REQUEST_PROPERTIES.forEach(function (prop) { + try { + _this.custom.xhr[prop] = _this[prop]; + } + catch (e) { } + }); + this.custom.xhr.send(data); + return; + } + // 拦截 XHR + // X-Requested-With header + this.setRequestHeader('X-Requested-With', 'MockXMLHttpRequest'); + // loadstart The fetch initiates. + this.dispatchEvent(createCustomEvent('loadstart')); + var done = function () { return __awaiter(_this, void 0, void 0, function () { + var mockResponse; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + this.readyState = XHR_STATES.HEADERS_RECEIVED; + this.dispatchEvent(createCustomEvent('readystatechange')); + this.readyState = XHR_STATES.LOADING; + this.dispatchEvent(createCustomEvent('readystatechange')); + this.status = 200; + this.statusText = 'OK'; + return [4 /*yield*/, mocked.convert(this.custom.template, this.custom.options)]; + case 1: + mockResponse = _a.sent(); + this.response = this.responseText = JSON.stringify(mockResponse); + this.readyState = XHR_STATES.DONE; + this.dispatchEvent(createCustomEvent('readystatechange')); + this.dispatchEvent(createCustomEvent('load')); + this.dispatchEvent(createCustomEvent('loadend')); + return [2 /*return*/]; + } + }); + }); }; + if (this.custom.async) { + // 异步 + setTimeout(done, this.custom.timeout); + } + else { + // 同步 + done(); + } + }; + // https://xhr.spec.whatwg.org/#the-abort()-method + // Cancels any network activity. + MockXMLHttpRequest.prototype.abort = function () { + // 原生 XHR + if (!this.match) { + this.custom.xhr.abort(); + return; + } + // 拦截 XHR + this.readyState = XHR_STATES.UNSENT; + this.dispatchEvent(createCustomEvent('abort', false, false, this)); + this.dispatchEvent(createCustomEvent('error', false, false, this)); + }; + // https://xhr.spec.whatwg.org/#the-getresponseheader()-method + MockXMLHttpRequest.prototype.getResponseHeader = function (name) { + // 原生 XHR + if (!this.match) { + return this.custom.xhr.getResponseHeader(name); + } + // 拦截 XHR + return this.custom.responseHeaders[name.toLowerCase()]; + }; + // https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method + // http://www.utf8-chartable.de/ + MockXMLHttpRequest.prototype.getAllResponseHeaders = function () { + // 原生 XHR + if (!this.match) { + return this.custom.xhr.getAllResponseHeaders(); + } + // 拦截 XHR + var responseHeaders = this.custom.responseHeaders; + var headers = ''; + for (var h in responseHeaders) { + if (!responseHeaders.hasOwnProperty(h)) { + continue; + } + headers += h + ': ' + responseHeaders[h] + '\r\n'; + } + return headers; + }; + MockXMLHttpRequest.prototype.overrideMimeType = function () { }; + MockXMLHttpRequest.prototype.addEventListener = function (type, handle) { + var events = this.custom.events; + if (!events[type]) { + events[type] = []; + } + events[type].push(handle); + }; + MockXMLHttpRequest.prototype.removeEventListener = function (type, handle) { + var handles = this.custom.events[type] || []; + for (var i = 0; i < handles.length; i++) { + if (handles[i] === handle) { + handles.splice(i--, 1); + } + } + }; + MockXMLHttpRequest.prototype.dispatchEvent = function (event) { + var handles = this.custom.events[event.type] || []; + for (var i = 0; i < handles.length; i++) { + handles[i].call(this, event); + } + var onType = 'on' + event.type; + if (this[onType]) { + this[onType](event); + } + }; + MockXMLHttpRequest.UNSENT = XHR_STATES.UNSENT; + MockXMLHttpRequest.OPENED = XHR_STATES.OPENED; + MockXMLHttpRequest.HEADERS_RECEIVED = XHR_STATES.HEADERS_RECEIVED; + MockXMLHttpRequest.LOADING = XHR_STATES.LOADING; + MockXMLHttpRequest.DONE = XHR_STATES.DONE; + MockXMLHttpRequest.__MOCK__ = false; + return MockXMLHttpRequest; +}()); +// Inspired by jQuery +function createNativeXHR() { + var localProtocolRE = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/; + var isLocal = localProtocolRE.test(location.protocol); + return window.ActiveXObject + ? (!isLocal && createStandardXHR()) || createActiveXHR() + : createStandardXHR(); + function createStandardXHR() { + try { + return new _XMLHttpRequest(); + } + catch (e) { } + } + function createActiveXHR() { + try { + return new window.ActiveXObject('Microsoft.XMLHTTP'); + } + catch (e) { } + } +} +function overrideXHR() { + if (!MockXMLHttpRequest.__MOCK__) { + MockXMLHttpRequest.__MOCK__ = true; + window.XMLHttpRequest = MockXMLHttpRequest; + } +} + +var _nativeFetch = fetch; +var _nativeRequest = Request; +function extendRequest(request, input, init) { + if (isString(input)) { + request['_actualUrl'] = input; + } + if (init && init.body) { + request['_actualBody'] = init.body; + } + if (input instanceof _nativeRequest && !init) { + request['_actualUrl'] = input['_actualUrl']; + request['_actualBody'] = input['_actualBody']; + } + return request; +} +var MockRequest; +/** + * 拦截 window.Request 实例化 + * 原生 Request 对象被实例化后,对 request.url 取值得到的是拼接后的 url: + * const request = new Request('/path/to') + * console.log(request.url) => 'http://example.com/path/to' + * 原生 Request 对象被实例化后,对 request.body 取值得到的是 undefined: + * const request = new Request('/path/to', { method: 'POST', body: 'foo=1' }) + * console.log(request.body) => undefined + */ +if (window.Proxy) { + MockRequest = new Proxy(_nativeRequest, { + construct: function (target, _a) { + var input = _a[0], init = _a[1]; + var request = new target(input, init); + return extendRequest(request, input, init); + } + }); +} /* istanbul ignore next */ +else { + MockRequest = function MockRequest(input, init) { + var request = new _nativeRequest(input, init); + return extendRequest(request, input, init); + }; + MockRequest.prototype = _nativeRequest.prototype; +} +// 拦截 fetch 方法 +// https://developer.mozilla.org/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/fetch +function MockFetch(input, init) { + return __awaiter(this, void 0, void 0, function () { + var request, headers, options, item, result, body, response; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (input instanceof Request && !init) { + request = input; + } + else { + request = new Request(input, init); + } + headers = {}; + request.headers.forEach(function (value, key) { + headers[key] = value; + }); + options = { + url: request['_actualUrl'] || request.url, + type: request.method, + body: request['_actualBody'] || request.body || null, + headers: headers + }; + item = mocked.find(options.url, options.type); + // 如果未找到匹配的数据模板,则采用原生 fetch 发送请求。 + if (!item) { + return [2 /*return*/, _nativeFetch(input, init)]; + } + return [4 /*yield*/, mocked.convert(item, options)]; + case 1: + result = _a.sent(); + body = JSON.stringify(result); + response = new Response(body, { + status: 200, + statusText: 'ok', + headers: request.headers + }); + // 异步返回数据 + return [2 /*return*/, new Promise(function (resolve) { + setTimeout(function () { + resolve(response); + }, setting.parseTimeout()); + })]; + } + }); + }); +} +function overrideFetchAndRequest() { + if (window.fetch && !MockRequest.__MOCK__) { + MockRequest.__MOCK__ = true; + window.Request = MockRequest; + window.fetch = MockFetch; + } +} + +// For browser +var Mock = { + Handler: handler$1, + Random: random, + Transfer: transfer, + Util: Util, + XHR: MockXMLHttpRequest, + RE: RE, + toJSONSchema: toJSONSchema, + valid: valid, + mock: mock, + heredoc: heredoc, + setup: setting.setup.bind(setting), + _mocked: mocked.getMocked(), + version: '0.3.6' +}; +// 根据数据模板生成模拟数据。 +function mock(rurl, rtype, template) { + assert(arguments.length, 'The mock function needs to pass at least one parameter!'); + // Mock.mock(template) + if (arguments.length === 1) { + return handler$1.gen(rurl); + } + // Mock.mock(url, template) + if (arguments.length === 2) { + template = rtype; + rtype = undefined; + } + // 拦截 XHR + overrideXHR(); + // 拦截fetch + overrideFetchAndRequest(); + var key = String(rurl) + String(rtype); + mocked.set(key, { rurl: rurl, rtype: rtype, template: template }); + return Mock; +} + +export default Mock; diff --git a/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js b/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js new file mode 100644 index 00000000..b7bb9249 --- /dev/null +++ b/code/WebApp/vanilla/lib/detect-it/detect-it.esm.js @@ -0,0 +1,8 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.17.1. + * Original file: /npm/detect-it@4.0.1/dist/detect-it.esm.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var e="undefined"!=typeof window?window:{screen:{},navigator:{}},n=(e.matchMedia||function(){return{matches:!1}}).bind(e),t=!1,o={get passive(){return t=!0}},i=function(){};e.addEventListener&&e.addEventListener("p",i,o),e.removeEventListener&&e.removeEventListener("p",i,!1);var r=t,a="PointerEvent"in e,s="ontouchstart"in e,c=s||"TouchEvent"in e&&n("(any-pointer: coarse)").matches,h=(e.navigator.maxTouchPoints||0)>0||c,u=e.navigator.userAgent||"",m=n("(pointer: coarse)").matches&&/iPad|Macintosh/.test(u)&&Math.min(e.screen.width||0,e.screen.height||0)>=768,v=(n("(pointer: coarse)").matches||!n("(pointer: fine)").matches&&s)&&!/Windows.*Firefox/.test(u),d=n("(any-pointer: fine)").matches||n("(any-hover: hover)").matches||m||!s,p=!h||!d&&v?h?"touchOnly":"mouseOnly":"hybrid",y="mouseOnly"===p?"mouse":"touchOnly"===p||v?"touch":"mouse";export{p as deviceType,y as primaryInput,r as supportsPassiveEvents,a as supportsPointerEvents,c as supportsTouchEvents};export default null; +//# sourceMappingURL=/sm/4280e12bc6c9669987adcde477eb6347c379a3a324091a23187d02e5284db1bb.map \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js b/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js new file mode 100644 index 00000000..18d54eeb --- /dev/null +++ b/code/WebApp/vanilla/lib/echarts/echarts.esm.min.js @@ -0,0 +1,45 @@ + +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +/*! ***************************************************************************** +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 t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i);var r="12px sans-serif";var o,a,s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n=0)h=u*t.length;else for(var c=0;c>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,a),a,o);if(s)return s(t,n,r),!0}return!1}function jt(t){return"CANVAS"===t.nodeName.toUpperCase()}var qt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kt=[],$t=i.browser.firefox&&+i.browser.version.split(".")[0]<39;function Jt(t,e,n,i){return n=n||{},i?Qt(t,e,n):$t&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Qt(t,e,n),n}function Qt(t,e,n){if(i.domSupported&&t.getBoundingClientRect){var r=e.clientX,o=e.clientY;if(jt(t)){var a=t.getBoundingClientRect();return n.zrX=r-a.left,void(n.zrY=o-a.top)}if(Zt(Kt,t,r,o))return n.zrX=Kt[0],void(n.zrY=Kt[1])}n.zrX=n.zrY=0}function te(t){return t||window.event}function ee(t,e,n){if(null!=(e=te(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Jt(t,r,e,n)}else{Jt(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&qt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ne(t,e,n,i){t.addEventListener(e,n,i)}var ie=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function re(t){return 2===t.which||3===t.which}var oe=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ae(r)/ae(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function le(){ie(this.event)}var ue=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Ht),he=function(t,e){this.x=t,this.y=e},ce=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pe=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o._hovered=new he(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new ue,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Gt(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(O(ce,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=fe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new he(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new he(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:le}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},n.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new he(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=de(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),"silent"!==a)){r.target=i[o];break}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new oe);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new he;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Ht);function de(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||"silent"}return!1}function fe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){pe.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=fe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Pt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));function ge(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function ye(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function ve(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function me(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function xe(t,e){var n,i,r=7,o=0;t.length;var a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=me(t[h],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(c=ve(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[d+l]=t[p+l];return void(t[c]=a[h])}var f=r;for(;;){var g=0,y=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}}while((g|y)=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!==(y=s-ve(t[u],a,0,s,s-1,e))){for(s-=y,d=(c-=y)+1,p=(h-=y)+1,l=0;l=7||y>=7);if(v)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(d=(c-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ge(t,n,i,e))s&&(l=s),ye(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var be=!1;function we(){be||(be=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Se(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Me=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Se}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(we(),u.z=0),isNaN(u.z2)&&(we(),u.z2=0),isNaN(u.zlevel)&&(we(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ie=i.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Te={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Te.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Te.bounceIn(2*t):.5*Te.bounceOut(2*t-1)+.5}},Ce=Math.pow,De=Math.sqrt,Ae=De(3),ke=1/3,Le=mt(),Pe=mt(),Oe=mt();function Re(t){return t>-1e-8&&t<1e-8}function Ne(t){return t>1e-8||t<-1e-8}function Ee(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ze(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Be(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Re(h)&&Re(c)){if(Re(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[d++]=M)}else{var f=c*c-4*h*p;if(Re(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=De(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Ce(-m,ke):Ce(m,ke))+(x=x<0?-Ce(-x,ke):Ce(x,ke))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*De(h*h*h)),b=Math.acos(_)/3,w=De(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Ae*Math.sin(b)))/(3*a),(-s+w*(S-Ae*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),I>=0&&I<=1&&(o[d++]=I)}}return d}function Ve(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Re(a)){if(Ne(o))(h=-s/o)>=0&&h<=1&&(r[l++]=h)}else{var u=o*o-4*a*s;if(Re(u))r[0]=-o/(2*a);else if(u>0){var h,c=De(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Fe(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Ge(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;Le[0]=l,Le[1]=u;for(var m=0;m<1;m+=.05)Pe[0]=Ee(t,n,r,a,m),Pe[1]=Ee(e,i,o,s,m),(f=Rt(Le,Pe))=0&&f=0&&y=1?1:Be(0,i,o,1,t,s)&&Ee(0,r,a,1,s[0])}}}var $e=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||gt,this.ondestroy=t.ondestroy||gt,this.onrestart=t.onrestart||gt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=H(t)?t:Te[t]||Ke(t)},t}(),Je=function(t){this.value=t},Qe=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Je(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),tn=function(){function t(t){this._list=new Qe,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Je(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),en={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function nn(t){return(t=Math.round(t))<0?0:t>255?255:t}function rn(t){return t<0?0:t>1?1:t}function on(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?nn(parseFloat(e)/100*255):nn(parseInt(e,10))}function an(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?rn(parseFloat(e)/100):rn(parseFloat(e))}function sn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ln(t,e,n){return t+(e-t)*n}function un(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function hn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var cn=new tn(20),pn=null;function dn(t,e){pn&&hn(pn,e),pn=cn.put(t,pn||e.slice())}function fn(t,e){if(t){e=e||[];var n=cn.get(t);if(n)return hn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in en)return hn(e,en[i]),dn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(un(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),dn(t,e),e):void un(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(un(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),dn(t,e),e):void un(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?un(e,+u[0],+u[1],+u[2],1):un(e,0,0,0,1);h=an(u.pop());case"rgb":return 3!==u.length?void un(e,0,0,0,1):(un(e,on(u[0]),on(u[1]),on(u[2]),h),dn(t,e),e);case"hsla":return 4!==u.length?void un(e,0,0,0,1):(u[3]=an(u[3]),gn(u,e),dn(t,e),e);case"hsl":return 3!==u.length?void un(e,0,0,0,1):(gn(u,e),dn(t,e),e);default:return}}un(e,0,0,0,1)}}function gn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=an(t[1]),r=an(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return un(e=e||[],nn(255*sn(a,o,n+1/3)),nn(255*sn(a,o,n)),nn(255*sn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function yn(t,e){var n=fn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Sn(n,4===n.length?"rgba":"rgb")}}function vn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=nn(ln(a[0],s[0],l)),n[1]=nn(ln(a[1],s[1],l)),n[2]=nn(ln(a[2],s[2],l)),n[3]=rn(ln(a[3],s[3],l)),n}}var mn=vn;function xn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=fn(e[r]),s=fn(e[o]),l=i-r,u=Sn([nn(ln(a[0],s[0],l)),nn(ln(a[1],s[1],l)),nn(ln(a[2],s[2],l)),rn(ln(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var _n=xn;function bn(t,e,n,i){var r=fn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=an(n)),null!=i&&(r[2]=an(i)),Sn(gn(r),"rgba")}function wn(t,e){var n=fn(t);if(n&&null!=e)return n[3]=rn(e),Sn(n,"rgba")}function Sn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Mn(t,e){var n=fn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var In=Object.freeze({__proto__:null,parse:fn,lift:yn,toHex:function(t){var e=fn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:vn,fastMapToColor:mn,lerp:xn,mapToColor:_n,modifyHSL:bn,modifyAlpha:wn,stringify:Sn,lum:Mn,random:function(){return Sn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}}),Tn=Math.round;function Cn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=fn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Dn(t){return t<1e-4&&t>-1e-4}function An(t){return Tn(1e3*t)/1e3}function kn(t){return Tn(1e4*t)/1e4}var Ln={left:"start",right:"end",center:"middle",middle:"middle"};function Pn(t){return t&&!!t.image}function On(t){return"linear"===t.type}function Rn(t){return"radial"===t.type}function Nn(t){return"url(#"+t+")"}function En(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function zn(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*yt,r=et(t.scaleX,1),o=et(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Tn(a*yt)+"deg, "+Tn(s*yt)+"deg)"),l.join(" ")}var Bn=i.hasGlobalWindow&&H(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Vn=Array.prototype.slice;function Fn(t,e,n){return(e-t)*n+t}function Gn(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(P(e)){var l=function(t){return P(t&&t[0])?2:1}(e);a=l,(1===l&&!Y(e[0])||2===l&&!Y(e[0][0]))&&(o=!0)}else if(Y(e)&&!Q(e))a=0;else if(W(e))if(isNaN(+e)){var u=fn(e);u&&(s=u,a=3)}else a=0;else if(K(e)){var h=T({},s);h.colorStops=R(e.colorStops,(function(t){return{offset:t.offset,color:fn(t.color)}})),On(e)?a=4:Rn(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=H(n)?n:Te[n]||Ke(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=qn(i),l=jn(i),u=0;u=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;ne);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?Kn:t[h];if(!qn(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(qn(s))1===s?Gn(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Xn(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Xn(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function Qn(){return(new Date).getTime()}var ti,ei,ni=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=Qn()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var t=this;this._running=!0,Ie((function e(){t._running&&(Ie(e),!t._paused&&t.update())}))},n.prototype.start=function(){this._running||(this._time=Qn(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=Qn(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=Qn()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Jn(t,e.loop);return this.addAnimator(n),n},n}(Ht),ii=i.domSupported,ri=(ei={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ti=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:R(ti,(function(t){var e=t.replace("mouse","pointer");return ei.hasOwnProperty(e)?e:t}))}),oi=["mousemove","mouseup"],ai=["pointermove","pointerup"],si=!1;function li(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ui(t){t&&(t.zrByTouch=!0)}function hi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var ci=function(t,e){this.stopPropagation=gt,this.stopImmediatePropagation=gt,this.preventDefault=gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},pi={mousedown:function(t){t=ee(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ee(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ee(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){hi(this,(t=ee(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){si=!0,t=ee(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){si||(t=ee(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){ui(t=ee(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),pi.mousemove.call(this,t),pi.mousedown.call(this,t)},touchmove:function(t){ui(t=ee(this.dom,t)),this.handler.processGesture(t,"change"),pi.mousemove.call(this,t)},touchend:function(t){ui(t=ee(this.dom,t)),this.handler.processGesture(t,"end"),pi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&pi.click.call(this,t)},pointerdown:function(t){pi.mousedown.call(this,t)},pointermove:function(t){li(t)||pi.mousemove.call(this,t)},pointerup:function(t){pi.mouseup.call(this,t)},pointerout:function(t){li(t)||pi.mouseout.call(this,t)}};O(["click","dblclick","contextmenu"],(function(t){pi[t]=function(e){e=ee(this.dom,e),this.trigger(t,e)}}));var di={pointermove:function(t){li(t)||di.mousemove.call(this,t)},pointerup:function(t){di.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function fi(t,e){var n=e.domHandlers;i.pointerEventsSupported?O(ri.pointer,(function(i){yi(e,i,(function(e){n[i].call(t,e)}))})):(i.touchEventsSupported&&O(ri.touch,(function(i){yi(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),O(ri.mouse,(function(i){yi(e,i,(function(r){r=te(r),e.touching||n[i].call(t,r)}))})))}function gi(t,e){function n(n){yi(e,n,(function(i){i=te(i),hi(t,i.target)||(i=function(t,e){return ee(t.dom,new ci(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.pointerEventsSupported?O(ai,n):i.touchEventsSupported||O(oi,n)}function yi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,ne(t.domTarget,e,n,i)}function vi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var mi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},xi=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new mi(e,pi),ii&&(i._globalHandlerScope=new mi(document,di)),fi(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){vi(this._localHandlerScope),ii&&vi(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ii&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?gi(this,e):vi(e)}},n}(Ht),_i=1;i.hasGlobalWindow&&(_i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bi=_i;function wi(){return[1,0,0,1,0,0]}function Si(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ii(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ti(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ci(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Di(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ai(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function ki(t){var e=[1,0,0,1,0,0];return Mi(e,t),e}var Li=Object.freeze({__proto__:null,create:wi,identity:Si,copy:Mi,mul:Ii,translate:Ti,rotate:Ci,scale:Di,invert:Ai,clone:ki}),Pi=Si;function Oi(t){return t>5e-5||t<-5e-5}var Ri=[],Ni=[],Ei=[1,0,0,1,0,0],zi=Math.abs,Bi=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Oi(this.rotation)||Oi(this.x)||Oi(this.y)||Oi(this.scaleX-1)||Oi(this.scaleY-1)||Oi(this.skewX)||Oi(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Pi(n),t&&(e?Ii(n,t,n):Mi(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Pi(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Ri);var n=Ri[0]<0?-1:1,i=Ri[1]<0?-1:1,r=((Ri[0]-n)*e+n)/Ri[0]||0,o=((Ri[1]-i)*e+i)/Ri[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ai(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ii(Ni,t.invTransform,e),e=Ni);var n=this.originX,i=this.originY;(n||i)&&(Ei[4]=n,Ei[5]=i,Ii(Ni,e,Ei),Ni[4]-=n,Ni[5]-=i,e=Ni),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Et(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Et(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&zi(t[0]-1)>1e-10&&zi(t[3]-1)>1e-10?Math.sqrt(zi(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Fi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&Ci(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Vi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Fi(t,e){for(var n=0;nf&&(f=x,gf&&(f=_,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ui.x=Xi.x=n.x,Ui.y=Zi.y=n.y,Yi.x=Zi.x=n.x+n.width,Yi.y=Xi.y=n.y+n.height,Ui.transform(i),Zi.transform(i),Yi.transform(i),Xi.transform(i),e.x=Hi(Ui.x,Yi.x,Xi.x,Zi.x),e.y=Hi(Ui.y,Yi.y,Xi.y,Zi.y);var l=Wi(Ui.x,Yi.x,Xi.x,Zi.x),u=Wi(Ui.y,Yi.y,Xi.y,Zi.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),$i={};function Ji(t,e){var n=$i[e=e||r];n||(n=$i[e]=new tn(500));var i=n.get(t);return null==i&&(i=l.measureText(t,e).width,n.put(t,i)),i}function Qi(t,e,n,i){var r=Ji(t,e),o=ir(e),a=er(0,r,n),s=nr(0,o,i);return new Ki(a,s,r,o)}function tr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Qi(r[0],e,n,i);for(var o=new Ki(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function or(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=rr(i[0],n.width),u+=rr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var ar=Vi.concat(["ignore"]),sr=N(Vi,(function(t,e){return t[e]=!0,t}),{ignore:!1}),lr={},ur=new Ki(0,0,0,0),hr=function(){function t(t){this.id=b(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=ur;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(lr,n,u):or(lr,n,u),r.x=lr.x,r.y=lr.y,o=lr.align,a=lr.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=rr(h[0],u.width),p=rr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&fn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Sn(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},T(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(X(t))for(var n=B(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState("__zr_normal__",!1,t)},t.prototype.useState=function(t,e,n,i){var r="__zr_normal__"===t;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(A(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}w("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=A(i,t),o=A(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},p&&(S={});for(_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=A(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=A(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Sr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return W(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Mr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Ir(t){return t.sort((function(t,e){return t-e})),t}function Tr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Cr(t)}function Cr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Dr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ar(t,e,n){if(!t[e])return 0;var i=N(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var r=Math.pow(10,n),o=R(t,(function(t){return(isNaN(t)?0:t)/i*r*100})),a=100*r,s=R(o,(function(t){return Math.floor(t)})),l=N(s,(function(t,e){return t+e}),0),u=R(o,(function(t,e){return t-s[e]}));lh&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/r}function kr(t,e){var n=Math.max(Tr(t),Tr(e)),i=t+e;return n>20?i:Mr(i,n)}function Lr(t){var e=2*Math.PI;return(t%e+e)%e}function Pr(t){return t>-1e-4&&t<1e-4}var Or=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Rr(t){if(t instanceof Date)return t;if(W(t)){var e=Or.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Nr(t){return Math.pow(10,Er(t))}function Er(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function zr(t,e){var n=Er(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Br(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Vr(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&A(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var To=Io([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Co=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return To(this,t,e)},t}(),Do=new tn(50);function Ao(t){if("string"==typeof t){var e=Do.get(t);return e&&e.image}return t}function ko(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Do.get(t),a={hostEl:n,cb:i,cbPayload:r};if(o)!Po(e=o.image)&&o.pending.push(a);else{var s=l.loadImage(t,Lo,Lo);s.__zrImageSrc=t,Do.put(t,s.__cachedImgObj={image:s,pending:[a]})}return e}return t}return e}function Lo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ji(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Eo(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ji(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?zo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Ji(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function zo(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=Uo(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=33&&e<=383}(t)||!!Ho[t]}function Uo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var Yo="__zr_style_"+Math.round(10*Math.random()),Xo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Zo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xo[Yo]=!0;var jo=["z","z2","invisible"],qo=["invisible"],Ko=function(t){function n(e){return t.call(this,e)||this}var i;return e(n,t),n.prototype._init=function(e){for(var n=B(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(ra[0]=na(r)*n+t,ra[1]=ea(r)*i+e,oa[0]=na(o)*n+t,oa[1]=ea(o)*i+e,u(s,ra,oa),h(l,ra,oa),(r%=ia)<0&&(r+=ia),(o%=ia)<0&&(o+=ia),r>o&&!a?o+=ia:rr&&(aa[0]=na(d)*n+t,aa[1]=ea(d)*i+e,u(s,aa,s),h(l,aa,l))}var fa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ga=[],ya=[],va=[],ma=[],xa=[],_a=[],ba=Math.min,wa=Math.max,Sa=Math.cos,Ma=Math.sin,Ia=Math.abs,Ta=Math.PI,Ca=2*Ta,Da="undefined"!=typeof Float32Array,Aa=[];function ka(t){return Math.round(t/Ta*1e8)/1e8%2*Ta}function La(t,e){var n=ka(t[0]);n<0&&(n+=Ca);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Ca?r=n+Ca:e&&n-r>=Ca?r=n-Ca:!e&&n>r?r=n+(Ca-ka(n-r)):e&&n0&&(this._ux=Ia(n/bi/t)||0,this._uy=Ia(n/bi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(fa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Ia(t-this._xi),i=Ia(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(fa.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(fa.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(fa.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Aa[0]=i,Aa[1]=r,La(Aa,o),i=Aa[0];var a=(r=Aa[1])-i;return this.addData(fa.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Sa(r)*n+t,this._yi=Ma(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(fa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(fa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Da||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){va[0]=va[1]=xa[0]=xa[1]=Number.MAX_VALUE,ma[0]=ma[1]=_a[0]=_a[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Ia(y)>i||c===e-1)&&(f=Math.sqrt(A*A+y*y),r=g,o=x);break;case fa.C:var v=t[c++],m=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=He(r,o,v,m,g,x,_,b,10),r=_,o=b;break;case fa.Q:f=je(r,o,v=t[c++],m=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case fa.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],D=C+T;c+=1;t[c++];d&&(a=Sa(T)*M+w,s=Ma(T)*I+S),f=wa(M,I)*ba(Ca,Math.abs(C)),r=Sa(D)*M+w,o=Ma(D)*I+S;break;case fa.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case fa.Z:var A=a-r;y=s-o;f=Math.sqrt(A*A+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case fa.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case fa.L:a=p[_++],s=p[_++];var S=Ia(a-r),M=Ia(s-o);if(S>d||M>f){if(y){if(v+(j=l[m++])>u){var I=(u-v)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}v+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case fa.C:var C=p[_++],D=p[_++],A=p[_++],k=p[_++],L=p[_++],P=p[_++];if(y){if(v+(j=l[m++])>u){Fe(r,C,A,L,I=(u-v)/j,ga),Fe(o,D,k,P,I,ya),t.bezierCurveTo(ga[1],ya[1],ga[2],ya[2],ga[3],ya[3]);break t}v+=j}t.bezierCurveTo(C,D,A,k,L,P),r=L,o=P;break;case fa.Q:C=p[_++],D=p[_++],A=p[_++],k=p[_++];if(y){if(v+(j=l[m++])>u){Xe(r,C,A,I=(u-v)/j,ga),Xe(o,D,k,I,ya),t.quadraticCurveTo(ga[1],ya[1],ga[2],ya[2]);break t}v+=j}t.quadraticCurveTo(C,D,A,k),r=A,o=k;break;case fa.A:var O=p[_++],R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=!p[_++],G=N>E?N:E,H=Ia(N-E)>.001,W=z+B,U=!1;if(y)v+(j=l[m++])>u&&(W=z+B*(u-v)/j,U=!0),v+=j;if(H&&t.ellipse?t.ellipse(O,R,N,E,V,z,W,F):t.arc(O,R,G,z,W,F),U)break t;w&&(n=Sa(z)*N+O,i=Ma(z)*E+R),r=Sa(W)*N+O,o=Ma(W)*E+R;break;case fa.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var Y=p[_++],X=p[_++];if(y){if(v+(j=l[m++])>u){var Z=u-v;t.moveTo(a,s),t.lineTo(a+ba(Z,Y),s),(Z-=Y)>0&&t.lineTo(a+Y,s+ba(Z,X)),(Z-=X)>0&&t.lineTo(a+wa(Y-Z,0),s+X),(Z-=Y)>0&&t.lineTo(a,s+wa(X-Z,0));break t}v+=j}t.rect(a,s,Y,X);break;case fa.Z:if(y){var j;if(v+(j=l[m++])>u){I=(u-v)/j;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}v+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=fa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Oa(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=Ba);var p=Math.atan2(l,s);return p<0&&(p+=Ba),p>=i&&p<=r||p+Ba>=i&&p+Ba<=r}function Fa(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var Ga=Pa.CMD,Ha=2*Math.PI;var Wa=[-1,-1,-1],Ua=[-1,-1];function Ya(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(h=void 0,h=Ua[0],Ua[0]=Ua[1],Ua[1]=h),f=Ee(e,i,o,s,Ua[0]),d>1&&(g=Ee(e,i,o,s,Ua[1]))),2===d?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(Re(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=De(u),p=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Wa);if(0===l)return 0;var u=Ye(e,i,o);if(u>=0&&u<=1){for(var h=0,c=We(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Wa[0]=-l,Wa[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Ha-1e-4){i=0,r=Ha;var h=o?1:-1;return a>=Wa[0]+t&&a<=Wa[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Ha,r+=Ha);for(var p=0,d=0;d<2;d++){var f=Wa[d];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1;g<0&&(g=Ha+g),(g>=i&&g<=r||g+Ha>=i&&g+Ha<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function ja(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,p=0,d=0,f=0,g=0,y=0;y1&&(n||(c+=Fa(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case Ga.M:p=f=u[y++],d=g=u[y++];break;case Ga.L:if(n){if(Oa(p,d,u[y],u[y+1],e,i,r))return!0}else c+=Fa(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.C:if(n){if(Ra(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=Ya(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.Q:if(n){if(Na(p,d,u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=Xa(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ga.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=Fa(p,d,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(Va(x,_,w,S,S+M,I,e,T,r))return!0}else c+=Za(x,_,w,S,S+M,I,T,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case Ga.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],n){if(Oa(f,g,o,g,e,i,r)||Oa(o,g,o,a,e,i,r)||Oa(o,a,f,a,e,i,r)||Oa(f,a,f,g,e,i,r))return!0}else c+=Fa(o,g,o,a,i,r),c+=Fa(f,a,f,g,i,r);break;case Ga.Z:if(n){if(Oa(p,d,f,g,e,i,r))return!0}else c+=Fa(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(c+=Fa(p,d,f,g,i,r)||0),0!==c}var qa=C({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xo),Ka={style:C({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zo.style)},$a=Vi.concat(["invisible","culling","z","z2","zlevel","parent"]),Ja=function(t){function n(e){return t.call(this,e)||this}var i;return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<$a.length;++s)r[$a[s]]=this[$a[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=B(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r.5?"#333":e>.2?"#eee":"#ccc"}if(t)return"#ccc"}return"#333"},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(W(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Mn(t,0)<.4)return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new Pa(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ja(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ja(t,0,!1,e,n)}(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:T(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return pt(qa,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=T({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=T({},i.shape),T(s,n.shape)):(s=T({},r?this.shape:i.shape),T(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=T({},this.shape);for(var u={},h=B(s),c=0;c0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.createStyle=function(t){return pt(Qa,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=tr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=void(n.prototype.dirtyRectTolerance=10),n}(Ko);ts.prototype.type="tspan";var es=C({x:0,y:0},Xo),ns={style:C({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zo.style)};var is=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return pt(es,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return ns},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ki(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Ko);is.prototype.type="image";var rs=Math.round;function os(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(rs(2*i)===rs(2*r)&&(t.x1=t.x2=ss(i,s,!0)),rs(2*o)===rs(2*a)&&(t.y1=t.y2=ss(o,s,!0)),t):t}}function as(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ss(i,s,!0),t.y=ss(r,s,!0),t.width=Math.max(ss(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ss(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ss(t,e,n){if(!e)return t;var i=rs(2*t);return(i+rs(e))%2==0?i/2:(i+(n?1:-1))/2}var ls=function(){this.x=0,this.y=0,this.width=0,this.height=0},us={},hs=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new ls},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=as(us,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(Ja);hs.prototype.type="rect";var cs={fill:"#000"},ps={style:C({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Zo.style)},ds=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=cs,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&h){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=No(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,D=0;Dl&&Go(n,t.substring(l,u),e,s),Go(n,i[2],e,s,i[1]),l=Oo.lastIndex}lo){b>0?(m.tokens=m.tokens.slice(0,b),y(m,_,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var C=w.width,D=null==C||"auto"===C;if("string"==typeof C&&"%"===C.charAt(C.length-1))P.percentWidth=C,h.push(P),P.contentWidth=Ji(P.text,I);else{if(D){var A=w.backgroundColor,k=A&&A.image;k&&Po(k=Ao(k))&&(P.width=Math.max(P.width,k.width*T/k.height))}var L=f&&null!=r?r-_:null;null!=L&&L=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(n-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},n.prototype._placeToken=function(t,e,n,i,o,a,s){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,h=i+n/2;"top"===u?h=i+t.height/2:"bottom"===u&&(h=i+n-t.height/2),!t.isLineHolder&&Is(l)&&this._renderBackground(l,e,"right"===a?o-t.width:"center"===a?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!l.backgroundColor,p=t.textPadding;p&&(o=Ss(o,a,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(ts),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=ws("fill"in l?l.fill:"fill"in e?e.fill:(y=!0,g.fill)),x=bs("stroke"in l?l.stroke:"stroke"in e?e.stroke:c||s||g.autoStroke&&!y?null:(v=2,g.stroke)),_=l.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=o,f.y=h,_&&(f.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,f.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=a,f.textBaseline="middle",f.font=t.font||r,f.opacity=nt(l.opacity,e.opacity,1),ms(f,l),x&&(f.lineWidth=nt(l.lineWidth,e.lineWidth,v),f.lineDash=et(l.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new Ki(er(f.x,b,f.textAlign),nr(f.y,w,f.textBaseline),b,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||h&&c){(a=this._getOrCreateChild(hs)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=i,y.width=r,y.height=o,y.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=et(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(is)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=et(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=nt(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return xs(t)&&(e=[t.fontStyle,t.fontWeight,vs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&at(e)||t.textFont||t.font},n}(Ko),fs={left:!0,right:1,center:1},gs={top:1,bottom:1,middle:1},ys=["fontStyle","fontWeight","fontSize","fontFamily"];function vs(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function ms(t,e){for(var n=0;n=0,o=!1;if(t instanceof Ja){var a=ks(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Rs(s)||Rs(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=T({},i),(u=T({},u)).fill=s):!Rs(u.fill)&&Rs(s)?(o=!0,i=T({},i),(u=T({},u)).fill=Es(s)):!Rs(u.stroke)&&Rs(l)&&(o||(i=T({},i),u=T({},u)),u.stroke=Es(l)),i.style=u}}if(i&&null==i.z2){o||(i=T({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=A(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function hl(t,e,n){yl(t,!0),Ys(t,js),pl(t,e,n)}function cl(t,e,n,i){i?function(t){yl(t,!1)}(t):hl(t,e,n)}function pl(t,e,n){var i=Ts(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var dl=["emphasis","blur","select"],fl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gl(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=Il(f),s*=Il(f));var g=(r===o?-1:1)*Il((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+Cl(c)*y-Tl(c)*v,x=(e+i)/2+Tl(c)*y+Cl(c)*v,_=Ll([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Ll(b,w);if(kl(b,w)<=-1&&(S=Dl),kl(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Dl*1e6)/1e6;S=2*Dl+M%2*Dl}h.addData(u,m,x,a,s,_,S,c,o)}var Ol=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Rl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Nl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(t){},n}(Ja);function El(t){return null!=t.setData}function zl(t,e){var n=function(t){var e=new Pa;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Pa.CMD,l=t.match(Ol);if(!l)return e;for(var u=0;uk*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}function nu(t,e){var n,i=Jl(e.r,0),r=Jl(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,p=Kl(l-s),d=p>Yl&&p%Yl;if(d>tu&&(p=d),i>tu)if(p>Yl-tu)t.moveTo(u+i*Zl(s),h+i*Xl(s)),t.arc(u,h,i,s,l,!c),r>tu&&(t.moveTo(u+r*Zl(l),h+r*Xl(l)),t.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,k=i*Zl(s),L=i*Xl(s),P=r*Zl(l),O=r*Xl(l),R=p>tu;if(R){var N=e.cornerRadius;N&&(f=(n=function(t){var e;if(G(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],g=n[1],y=n[2],v=n[3]);var E=Kl(i-r)/2;if(m=Ql(E,y),x=Ql(E,v),_=Ql(E,f),b=Ql(E,g),M=w=Jl(m,x),I=S=Jl(_,b),(w>tu||S>tu)&&(T=i*Zl(l),C=i*Xl(l),D=r*Zl(s),A=r*Xl(s),ptu){var Y=Ql(y,M),X=Ql(v,M),Z=eu(D,A,k,L,i,Y,c),j=eu(T,C,P,O,i,X,c);t.moveTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),M0&&t.arc(u+Z.cx,h+Z.cy,Y,ql(Z.y0,Z.x0),ql(Z.y1,Z.x1),!c),t.arc(u,h,i,ql(Z.cy+Z.y1,Z.cx+Z.x1),ql(j.cy+j.y1,j.cx+j.x1),!c),X>0&&t.arc(u+j.cx,h+j.cy,X,ql(j.y1,j.x1),ql(j.y0,j.x0),!c))}else t.moveTo(u+k,h+L),t.arc(u,h,i,s,l,!c);else t.moveTo(u+k,h+L);if(r>tu&&R)if(I>tu){Y=Ql(f,I),Z=eu(P,O,T,C,r,-(X=Ql(g,I)),c),j=eu(k,L,D,A,r,-Y,c);t.lineTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),I0&&t.arc(u+Z.cx,h+Z.cy,X,ql(Z.y0,Z.x0),ql(Z.y1,Z.x1),!c),t.arc(u,h,r,ql(Z.cy+Z.y1,Z.cx+Z.x1),ql(j.cy+j.y1,j.cx+j.x1),c),Y>0&&t.arc(u+j.cx,h+j.cy,Y,ql(j.y1,j.x1),ql(j.y0,j.x0),!c))}else t.lineTo(u+P,h+O),t.arc(u,h,r,l,s,c);else t.lineTo(u+P,h+O)}else t.moveTo(u,h);t.closePath()}}}var iu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},ru=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new iu},n.prototype.buildPath=function(t,e){nu(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(Ja);ru.prototype.type="sector";var ou=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},au=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new ou},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(Ja);function su(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pTu[1]){if(a=!1,r)return a;var u=Math.abs(Tu[0]-Iu[1]),h=Math.abs(Iu[0]-Tu[1]);Math.min(u,h)>i.len()&&(u0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Nu(t,e,n,i,r,o){Ru("update",t,e,n,i,r,o)}function Eu(t,e,n,i,r,o){Ru("enter",t,e,n,i,r,o)}function zu(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function oh(t){return!t.isGroup}function ah(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){oh(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(oh(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Nu(t,i,n,Ts(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=T({},t.shape)),e}}function sh(t,e){return R(t,(function(t){var n=t[0];n=Hu(n,e.x),n=Wu(n,e.x+e.width);var i=t[1];return i=Hu(i,e.y),[n,i=Wu(i,e.y+e.height)]}))}function lh(t,e){var n=Hu(t.x,e.x),i=Wu(t.x+t.width,e.x+e.width),r=Hu(t.y,e.y),o=Wu(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function uh(t,e,n){var i=T({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),C(r,n),new is(i)):Ku(t.replace("path://",""),i,n,"center")}function hh(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=ph(f,g,u,h)/d;if(y<0||y>1)return!1;var v=ph(f,g,c,p)/d;return!(v<0||v>1)}function ph(t,e,n,i){return t*i-n*e}function dh(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=W(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&O(B(l),(function(t){ft(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Ts(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:C({content:i,formatterParams:s},r)}}function fh(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function gh(t,e){if(t)if(G(t))for(var n=0;n-1?"ZH":"EN";function $h(t,e){t=t.toUpperCase(),qh[t]=new Uh(e),jh[t]=e}function Jh(t){return qh[t]}$h("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),$h("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Qh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tc={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Qh.hour,minute:"{yyyy}-{MM}-{dd} "+Qh.minute,second:"{yyyy}-{MM}-{dd} "+Qh.second,millisecond:Qh.none},ec=["year","month","day","hour","minute","second","millisecond"],nc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ic(t,e){return"0000".substr(0,e-(t+="").length)+t}function rc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function oc(t){return t===rc(t)}function ac(t,e,n,i){var r=Rr(t),o=r[uc(n)](),a=r[hc(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[cc(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[pc(n)](),c=(h-1)%12+1,p=r[dc(n)](),d=r[fc(n)](),f=r[gc(n)](),g=(i instanceof Uh?i:Jh(i||Kh)||qh.EN).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,ic(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ic(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ic(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ic(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ic(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ic(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ic(f,3)).replace(/{S}/g,f+"")}function sc(t,e){var n=Rr(t),i=n[hc(e)]()+1,r=n[cc(e)](),o=n[pc(e)](),a=n[dc(e)](),s=n[fc(e)](),l=0===n[gc(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;return p&&1===i?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function lc(t,e,n){var i=Y(t)?Rr(t):t;switch(e=e||sc(t,n)){case"year":return i[uc(n)]();case"half-year":return i[hc(n)]()>=6?1:0;case"quarter":return Math.floor((i[hc(n)]()+1)/4);case"month":return i[hc(n)]();case"day":return i[cc(n)]();case"half-day":return i[pc(n)]()/24;case"hour":return i[pc(n)]();case"minute":return i[dc(n)]();case"second":return i[fc(n)]();case"millisecond":return i[gc(n)]()}}function uc(t){return t?"getUTCFullYear":"getFullYear"}function hc(t){return t?"getUTCMonth":"getMonth"}function cc(t){return t?"getUTCDate":"getDate"}function pc(t){return t?"getUTCHours":"getHours"}function dc(t){return t?"getUTCMinutes":"getMinutes"}function fc(t){return t?"getUTCSeconds":"getSeconds"}function gc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function yc(t){return t?"setUTCFullYear":"setFullYear"}function vc(t){return t?"setUTCMonth":"setMonth"}function mc(t){return t?"setUTCDate":"setDate"}function xc(t){return t?"setUTCHours":"setHours"}function _c(t){return t?"setUTCMinutes":"setMinutes"}function bc(t){return t?"setUTCSeconds":"setSeconds"}function wc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Sc(t){if(!Gr(t))return W(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Mc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ic=rt,Tc=/([&<>"'])/g,Cc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Dc(t){return null==t?"":(t+"").replace(Tc,(function(t,e){return Cc[e]}))}function Ac(t,e,n){function i(t){return t&&at(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Rr(t):t;if(!isNaN(+s))return ac(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return U(t)?i(t):Y(t)&&r(t)?t+"":"-";var l=Fr(t);return r(l)?Sc(l):U(t)?i(t):"boolean"==typeof t?t+"":"-"}var kc=["a","b","c","d","e","f","g"],Lc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Pc(t,e,n){G(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Rc(t,e){return e=e||"transparent",W(t)?t:X(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Nc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Ec=O,zc=["left","right","top","bottom","width","height"],Bc=[["width","left","right"],["height","top","bottom"]];function Vc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var Fc=Vc;F(Vc,"vertical"),F(Vc,"horizontal");function Gc(t,e,n){n=Ic(n||0);var i=e.width,r=e.height,o=Sr(t.left,i),a=Sr(t.top,r),s=Sr(t.right,i),l=Sr(t.bottom,r),u=Sr(t.width,i),h=Sr(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new Ki(o+n[3],a+n[0],u,h);return f.margin=n,f}function Hc(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Ki(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=Gc(C({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function Wc(t){var e=t.layoutMode||t.constructor.layoutMode;return X(e)?e:e?{type:e}:null}function Uc(t,e,n){var i=n&&n.ignoreSize;!G(i)&&(i=[i,i]);var r=a(Bc[0],0),o=a(Bc[1],1);function a(n,r){var o={},a=0,u={},h=0;if(Ec(n,(function(e){u[e]=t[e]})),Ec(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=M(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return po(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(Uh);_o(jc,Uh),Mo(jc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=mo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=mo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(jc),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return O(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return O(t,(function(t){A(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),O(s,(function(t){A(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);A(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(O(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],p=!!u[h];p&&(r.call(o,h,c.originalDeps.slice()),delete u[h]),O(c.successor,p?f:d)}O(u,(function(){var t="";throw new Error(t)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(jc,(function(t){var e=[];O(jc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=R(e,(function(t){return mo(t).main})),"dataset"!==t&&A(e,"dataset")<=0&&e.unshift("dataset");return e}));var qc="";"undefined"!=typeof navigator&&(qc=navigator.platform||"");var Kc="rgba(0, 0, 0, 0.2)",$c={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Kc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Jc=ht(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Qc=1,tp=2,ep=3,np=ao();function ip(t,e,n){var i={},r=op(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=np(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;O(t=t.slice(),(function(e,n){var r=X(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var vp=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Uh(i),this._locale=new Uh(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=_p(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,_p(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):cp(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&O(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ht(),s=e&&e.replaceMergeMainTypeMap;np(this).datasetMap=ht(),O(t,(function(t,e){null!=t&&(jc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?S(t):M(n[e],t,!0))})),s&&s.each((function(t,e){jc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),jc.topologicalTravel(o,jc.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=lp.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,jr(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Qr(a,o,l);(function(t,e,n){O(t,(function(t){var i=t.newOption;X(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,jc),n[e]=null,i.set(e,null),r.set(e,0);var h,c=[],p=[],d=0;O(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=jc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=T({componentIndex:n},t.keyInfo);T(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),d++):(c.push(void 0),p.push(void 0))}),this),n[e]=c,i.set(e,p),r.set(e,d),"series"===e&&up(this)}),this),this._seriesIndices||up(this)},n.prototype.getOption=function(){var t=S(this.option);return O(t,(function(e,n){if(jc.hasClass(n)){for(var i=jr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ro(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t["\0_ec_inner"],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}var Dp=O,Ap=X,kp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lp(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=kp.length;n=0;f--){var g=t[f];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var y=g.data.getByRawIndex(g.stackResultDimension,c);if(p>=0&&y>0||p<=0&&y<0){p=kr(p,y),d=y;break}}}return i[0]=p,i[1]=d,i}))}))}var qp,Kp,$p,Jp,Qp,td=function(t){this.data=t.data||("keyedColumns"===t.sourceFormat?{}:[]),this.sourceFormat=t.sourceFormat||"unknown",this.seriesLayoutBy=t.seriesLayoutBy||"column",this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return xd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function wd(t){var e,n;return X(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Sd(t){return new Md(t)}var Md=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},kd=function(){function t(t,e){if(!Y(e)){var n="";0,Xr(n)}this._opFn=Ad[t],this._rvalFloat=Fr(e)}return t.prototype.evaluate=function(t){return Y(t)?this._opFn(t,this._rvalFloat):this._opFn(Fr(t),this._rvalFloat)},t}(),Ld=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Y(t)?t:Fr(t),i=Y(e)?e:Fr(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=W(t),s=W(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),Pd=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Fr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Fr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Od(t,e){return"eq"===t||"ne"===t?new Pd("eq"===t,e):ft(Ad,t)?new kd(t,e):null}var Rd=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Td(t,e)},t}();function Nd(t){var e=t.sourceFormat;if(!Gd(e)){var n="";0,Xr(n)}return t.data}function Ed(t){var e=t.sourceFormat,n=t.data;if(!Gd(e)){var i="";0,Xr(i)}if("arrayRows"===e){for(var r=[],o=0,a=n.length;o65535?Wd:Ud}function qd(t,e,n,i,r){var o=Zd[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=R(o,(function(t){return t.property})),u=0;uy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&x<=h||isNaN(x))&&(a[s++]=d),d++}p=!0}else if(2===r){f=c[i[0]];var y=c[i[1]],v=t[i[1]][0],m=t[i[1]][1];for(g=0;g=u&&x<=h||isNaN(x))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g=u&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(jd(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var p=1;pn&&(n=i,r=I)}M>0&&M<_-x&&(c[l++]=Math.min(S,r),r=Math.max(S,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=[1/0,-1/0],c=new(jd(this._rawCount))(Math.ceil(u/s)),p=0,d=0;du-d&&(s=u-d,a.length=s);for(var f=0;fh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Td(t[i],this._dimensions[i])}Hd={arrayRows:t,objectRows:function(t,e,n,i){return Td(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Td(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),$d=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Qd(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=j(a=o.get("data",!0))?"typedArray":"original",e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=et(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=et(h.sourceHeader,c.sourceHeader),f=et(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f?[nd(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{t=[nd(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&tf(o)}var a,s=[],l=[];return O(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||tf(n),s.push(e),l.push(t._getVersionSign())})),i?e=function(t,e,n){var i=jr(t),r=i.length,o="";r||Xr(o);for(var a=0,s=r;a1||n>0&&!t.noHeader;return O(t.blocks,(function(t){var n=lf(t);n>=e&&(e=n+ +(i&&(!n||af(t)&&!t.noHeader)))})),e}return 0}function uf(t,e,n,i){var r,o=e.noHeader,a=(r=lf(e),{html:nf[r],richText:rf[r]}),s=[],l=e.blocks||[];ot(!l||G(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(ft(h,u)){var c=new Ld(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}O(l,(function(n,r){var o=e.valueFormatter,l=sf(n)(o?T(T({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):pf(s.join(""),o?n:a.html);if(o)return p;var d=Ac(e.header,"ordinal",t.useUTC),f=ef(i,t.renderMode).nameStyle;return"richText"===t.renderMode?df(t,d,f)+a.richText+p:pf('
'+Dc(d)+"
"+p,n)}function hf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return R(t=G(t)?t:[t],(function(t,e){return Ac(t,G(d)?d[e]:d,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Ac(l,"ordinal",u),d=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,v=ef(i,r),m=v.nameStyle,x=v.valueStyle;return"richText"===r?(s?"":c)+(o?"":df(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,o)}(t,f,g,y,x)):pf((s?"":c)+(o?"":function(t,e,n){return''+Dc(t)+""}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=G(t)?t:[t],''+R(t,(function(t){return Dc(t)})).join("  ")+""}(f,g,y,x)),n)}}function cf(t,e,n,i,r,o){if(t)return sf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function pf(t,e){return'
'+t+'
'}function df(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function ff(t,e){return Rc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function gf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var yf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Hr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Oc({color:e,type:t,renderMode:n,markerId:i});return W(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};G(e)?O(e,(function(t){return T(n,t)})):T(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function vf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=G(c),d=ff(o,a);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=N(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(of("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?O(i,(function(t){h(xd(o,n,t),t)})):O(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=xd(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=io(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return of("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[of("nameValue",{markerType:"item",markerColor:d,name:x,noName:!at(x),value:e,valueType:n})].concat(i||[])})}var mf=ao();function xf(t,e){return t.getName(e)||t.getId(e)}var _f=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Sd({count:wf,reset:Sf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(mf(this).sourceManager=new $d(this)).prepareSource();var i=this.getInitialData(t,n);If(i,this),this.dataTask.context.data=i,mf(this).dataBeforeProcessed=i,bf(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Wc(this),i=n?Yc(t):{},r=this.subType;jc.hasClass(r)&&(r+="Series"),M(t,e.getTheme().get(this.subType)),M(t,this.getDefaultOption()),qr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Uc(t,i,n)},n.prototype.mergeOption=function(t,e){t=M(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Wc(this);n&&Uc(this.option,t,n);var i=mf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);If(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,mf(this).dataBeforeProcessed=r,bf(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!j(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=fp.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[xf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){X(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},n.registerClass=function(t){return jc.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(jc);function bf(t){var e=t.name;io(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return O(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function wf(t){return t.model.getRawData().count()}function Sf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Mf}function Mf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function If(t,e){O(ct(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,F(Tf,e))}))}function Tf(t,e){var n=Cf(t);return n&&n.setOutputEnd((e||this).count()),e}function Cf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}L(_f,bd),L(_f,fp),_o(_f,jc);var Df=function(){function t(){this.group=new gr,this.uid=Xh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function Af(){var t=ao();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}xo(Df),Mo(Df);var kf=ao(),Lf=Af(),Pf=function(){function t(){this.group=new gr,this.uid=Xh("viewChart"),this.renderTask=Sd({plan:Nf,reset:Ef}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Rf(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Rf(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){gh(this.group,t)},t.markUpdateMethod=function(t,e){kf(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Of(t,e,n){t&&vl(t)&&("emphasis"===e?$s:Js)(t,n)}function Rf(t,e,n){var i=oo(t,e),r=e&&null!=e.highlightKey?function(t){var e=As[t];return null==e&&Ds<=32&&(e=As[t]=Ds++),e}(e.highlightKey):null;null!=i?O(jr(i),(function(e){Of(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Of(t,n,r)}))}function Nf(t){return Lf(t.model)}function Ef(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&kf(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),zf[l]}xo(Pf),Mo(Pf);var zf={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Bf="\0__throttleOriginMethod",Vf="\0__throttleRate";function Ff(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=(new Date).getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function Gf(t,e,n,i){var r=t[e];if(r){var o=r[Bf]||r,a=r["\0__throttleType"];if(r[Vf]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Ff(o,n,"debounce"===i))[Bf]=o,r["\0__throttleType"]=i,r[Vf]=n}return r}}function Hf(t,e){var n=t[e];n&&n[Bf]&&(n.clear&&n.clear(),t[e]=n[Bf])}var Wf=ao(),Uf={itemStyle:Io(Gh,!0),lineStyle:Io(Bh,!0)},Yf={lineStyle:"stroke",itemStyle:"fill"};function Xf(t,e){var n=t.visualStyleMapper||Uf[e];return n||(console.warn("Unkown style type '"+e+"'."),Uf.itemStyle)}function Zf(t,e){var n=t.visualDrawType||Yf[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var jf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Xf(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Zf(t,i),l=o[s],u=H(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||H(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||H(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=T({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},qf=new Uh,Kf={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Xf(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){qf.option=n[i];var a=r(qf);T(t.ensureUniqueItemVisual(e,"style"),a),qf.option.decal&&(t.setItemVisual(e,"decal",qf.option.decal),qf.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},$f={performRawSeries:!0,overallReset:function(t){var e=ht();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Wf(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Wf(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Zf(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},Jf=Math.PI;var Qf=function(){function t(t,e,n,i){this._stageTaskMap=ht(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ht();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;O(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";ot(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}O(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each((function(t){t.perform(d)})),h.perform(d)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ht(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Sd({plan:rg,reset:og,count:lg}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Sd({reset:tg});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ht(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1,p="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,Sd({reset:eg,onDirty:ig})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}ot(!t.createOnAllSeries,p),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(h=!1,O(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return H(t)&&(t={overallReset:t,seriesType:ug(t)}),t.uid=Xh("stageHandler"),e&&(t.visualType=e),t},t}();function tg(t){t.overallReset(t.ecModel,t.api,t.payload)}function eg(t){return t.overallProgress&&ng}function ng(){this.agent.dirty(),this.getDownstream().dirty()}function ig(){this.agent&&this.agent.dirty()}function rg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function og(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=jr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?R(e,(function(t,e){return sg(e)})):ag}var ag=sg(0);function sg(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),xg=["symbol","symbolSize","symbolRotate","symbolOffset"],_g=xg.concat(["symbolKeepAspect"]),bg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Y(e)?[e]:G(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=R(r,(function(t){return t/a})),o/=a)}return[r,o]}var Zg=new Pa(!0);function jg(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function qg(t){return"string"==typeof t&&"none"!==t}function Kg(t){var e=t.fill;return null!=e&&"none"!==e}function $g(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Jg(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Qg(t,e,n){var i=ko(e.image,e.__image,n);if(Po(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*yt),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var ty=["shadowBlur","shadowOffsetX","shadowOffsetY"],ey=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ny(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){oy(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Xo.opacity:a}(i||e.blend!==n.blend)&&(o||(oy(t,r),o=!0),t.globalCompositeOperation=e.blend||Xo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)Ky(this.id);else{var i,r,o;if(X(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new Tp(this._api),s=this._theme,l=this._model=new vp;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},tv);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Cy(this),ky.update.call(this,null,u)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Ry.call(this,i),Ny.call(this,i)}}},n.prototype.setTheme=function(){Yr()},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||xy&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(i.svgSupported){var t=this._zr;return O(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;O(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return O(i,(function(t){t.group.ignore=!1})),o}Ky(this.id)},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(ov[n]){var a=o,s=o,u=-1/0,h=-1/0,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();O(rv,(function(o,l){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(S(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}));var d=(u*=p)-(a*=p),f=(h*=p)-(s*=p),g=l.createCanvas(),y=xr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:d,height:f}),e){var v="";return O(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),y.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new hs({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),O(c,(function(t){var e=new is({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});y.add(e)})),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Ky(this.id)},n.prototype.convertToPixel=function(t,e){return Ly(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return Ly(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){var n;if(!this._disposed)return O(lo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&O(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n;Ky(this.id)},n.prototype.getVisual=function(t,e){var n=lo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel;var r=i.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?Sg(r,o,e):Mg(r,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t,e,n,i=this;O(qy,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&Dg(o,(function(t){var e=Ts(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return n=T({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),h=u&&i["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:h},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),O(Jy,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),O(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Cg("map","selectchanged",e,i,t),Cg("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Cg("map","selected",e,i,t),Cg("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Cg("map","unselected",e,i,t),Cg("pie","unselected",e,i,t))}))},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed?Ky(this.id):this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(this._disposed)Ky(this.id);else{this._disposed=!0,this.getDom()&&fo(this.getDom(),lv,"");var t=this,e=t._api,n=t._model;O(t._componentsViews,(function(t){t.dispose(n,e)})),O(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete rv[t.id]}},n.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)Ky(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__pendingUpdate&&(null==i&&(i=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&Cy(this),ky.update.call(this,{type:"resize",animation:T({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,Ry.call(this,i),Ny.call(this,i)}}},n.prototype.showLoading=function(t,e){if(this._disposed)Ky(this.id);else if(X(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),iv[t]){var n=iv[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed?Ky(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=T({},t);return e.type=Jy[t.type],e},n.prototype.dispatchAction=function(t,e){if(this._disposed)Ky(this.id);else if(X(e)||(e={silent:!!e}),$y[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Oy.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&i.browser.weChat&&this._throttledZrFlush(),Ry.call(this,n),Ny.call(this,n)}},n.prototype.updateLabelLayout=function(){yy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(this._disposed)Ky(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function n(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(zu(t))return;if(t instanceof Ja&&function(t){var e=ks(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Cy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Dy(t,!0),Dy(t,!1),e.plan()},Dy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!i.node&&!i.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),yy.trigger("series:afterupdate",e,n,l)},Wy=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Uy=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){zu(t)||n(t)})),t.__needsUpdateStatus=!1)},Gy=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){$s(e,n),Wy(t)},i.prototype.leaveEmphasis=function(e,n){Js(e,n),Wy(t)},i.prototype.enterBlur=function(e){Qs(e),Wy(t)},i.prototype.leaveBlur=function(e){tl(e),Wy(t)},i.prototype.enterSelect=function(e){el(e),Wy(t)},i.prototype.leaveSelect=function(e){nl(e),Wy(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(wp))(t)},Hy=function(t){function e(t,e){for(var n=0;n=0)){Cv.push(n);var o=Qf.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Av(t,e){iv[t]=e}function kv(t){u({createCanvas:t})}function Lv(t,e,n){var i=my("registerMap");i&&i(t,e,n)}function Pv(t){var e=my("getMap");return e&&e(t)}var Ov=function(t){var e=(t=S(t)).type,n="";e||Xr(n);var i=e.split(":");2!==i.length&&Xr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,Vd.set(e,t)};Tv(2e3,jf),Tv(4500,Kf),Tv(4500,$f),Tv(2e3,bg),Tv(4500,wg),Tv(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=py(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=py(r,e)}}))})),vv(Zp),mv(900,(function(t){var e=ht();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(jp)})),Av("default",(function(t,e){C(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new gr,i=new hs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ds({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new hs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new _u({shape:{startAngle:-Jf/2,endAngle:-Jf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jf/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jf/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),wv({type:"highlight",event:"highlight",update:"highlight"},gt),wv({type:"downplay",event:"downplay",update:"downplay"},gt),wv({type:"select",event:"select",update:"select"},gt),wv({type:"unselect",event:"unselect",update:"unselect"},gt),wv({type:"toggleSelect",event:"toggleSelect",update:"toggleSelect"},gt),yv("light",gg),yv("dark",vg);var Rv={},Nv=[],Ev={registerPreprocessor:vv,registerProcessor:mv,registerPostInit:xv,registerPostUpdate:_v,registerUpdateLifecycle:bv,registerAction:wv,registerCoordinateSystem:Sv,registerLayout:Iv,registerVisual:Tv,registerTransform:Ov,registerLoading:Av,registerMap:Lv,registerImpl:function(t,e){vy[t]=e},PRIORITY:wy,ComponentModel:jc,ComponentView:Df,SeriesModel:_f,ChartView:Pf,registerComponentModel:function(t){jc.registerClass(t)},registerComponentView:function(t){Df.registerClass(t)},registerSeriesModel:function(t){_f.registerClass(t)},registerChartView:function(t){Pf.registerClass(t)},registerSubTypeDefaulter:function(t,e){jc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_r(t,e)}};function zv(t){G(t)?O(t,(function(t){zv(t)})):A(Nv,t)>=0||(Nv.push(t),H(t)&&(t={install:t}),t.install(Ev))}function Bv(t){return null==t?0:t.length||1}function Vv(t){return t}var Fv=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Vv,this._newKeyGetter=i||Vv,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30}var Jv,Qv,tm,em,nm,im,rm,om=X,am=R,sm="undefined"==typeof Int32Array?Array:Int32Array,lm=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],um=["_approximateExtent"],hm=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;jv(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(G(r=this.getVisual(e))?r=r.slice():om(r)&&(r=T({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,om(e)?T(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){om(t)?T(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?T(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Cs(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){O(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:am(this.dimensions,this._getDimInfo,this),this.hostModel)),nm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(it(arguments)))})},t.internalField=(Jv=function(t){var e=t._invertedIndicesMap;O(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new sm(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();function cm(t,e){ed(t)||(t=id(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=ht(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return O(e,(function(t){var e;X(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&$v(a),l=i===t.dimensionsDefine,u=l?Kv(t):qv(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=ht(h),p=new Yd(a),d=0;d0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new Zv({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function pm(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}var dm=function(t){this.coordSysDims=[],this.axisMap=ht(),this.categoryAxisMap=ht(),this.coordSysName=t};var fm={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ho).models[0],o=t.getReferringComponents("yAxis",ho).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),gm(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),gm(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",ho).models[0];e.coordSysDims=["single"],n.set("single",r),gm(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",ho).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),gm(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),gm(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();O(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),gm(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function gm(t){return"category"===t.get("type")}function ym(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!jv(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p=!(!t||!t.get("stack"));if(O(i,(function(t,e){W(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;O(i,(function(t){t.coordDim===d&&g++}));var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function vm(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function mm(t,e){return vm(t,e)?t.getCalculationInfo("stackResultDimension"):e}function xm(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=id(t)):o="original"===(i=r.getSource()).sourceFormat;var a=function(t){var e=t.get("coordinateSystem"),n=new dm(e),i=fm[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Mp.get(i);return e&&e.coordSysDims&&(n=R(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Wv(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=H(l)?l:l?F(ip,s,e):null,h=cm(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&O(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=ym(e,{schema:h,store:p}),f=new hm(h,e);f.setCalculationInfo(d);var g=null!=c&&function(t){if("original"===t.sourceFormat){return!G($r(function(t){var e=0;for(;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Mo(_m);var bm=0,wm=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++bm}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&R(i,Sm);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ht(this.categories))},t}();function Sm(t){return X(t)&&null!=t.value?t.value:t+""}function Mm(t){return"interval"===t.type||"log"===t.type}function Im(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=zr(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=Cm(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Dm(t,0,e),Dm(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Mr(Math.ceil(t[0]/a)*a,s),Mr(Math.floor(t[1]/a)*a,s)],t),r}function Tm(t){var e=Math.pow(10,Er(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Mr(n*e)}function Cm(t){return Tr(t)+2}function Dm(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Am(t,e){return t>=e[0]&&t<=e[1]}function km(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Lm(t,e){return t*(e[1]-e[0])+e[0]}var Pm=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new wm({})),G(i)&&(i=new wm({categories:R(i,(function(t){return X(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?NaN:W(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return Am(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return km(t=this._getTickNumber(this.parse(t)),this._extent)},n.prototype.scale=function(t){return t=Math.round(Lm(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(t){},n.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(_m);_m.registerClass(Pm);var Om=Mr,Rm=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Am(t,this._extent)},n.prototype.normalize=function(t){return km(t,this._extent)},n.prototype.scale=function(t){return Lm(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Cm(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:Om(s+e,r)}):o.push({value:n[1]})),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return O(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var p=Sr(t.get("barWidth"),i),d=Sr(t.get("barMaxWidth"),i),f=Sr(t.get("barMinWidth")||(Xm(t)?.5:1),i),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:Vm(r),stackId:Bm(t)})})),Hm(n)}function Hm(t){var e={};O(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return O(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=B(i).length;o=Math.max(35-4*a,15)+"%"}var s=Sr(o,r),l=Sr(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),O(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;O(i,(function(t,e){t.width||(t.width=c),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;O(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Wm(t,e){var n=Fm(t,e),i=Gm(n);O(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Bm(t),o=i[Vm(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Um(t){return{seriesType:t,plan:Af(),reset:function(t){if(Ym(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=vm(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),d=Xm(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&zm(3*r),u=d&&s&&zm(3*r),m=d&&zm(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=p,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,D=void 0,A=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);if(h)I=n.dataToPoint([T,M])[0];C=I,D=L[1]+v,A=L[0]-I,k=y,Math.abs(A)0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(G(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return ac(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=nc,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&v<=i[1]&&c++)}var m=(i[1]-i[0])/e;if(c>1.5*m&&p>m/1.5)break;if(u.push(g),c>m||t===o[d])break}h=[]}}0;var x=E(R(u,(function(t){return E(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;dn&&(this._approxInterval=n);var o=jm.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Km(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function $m(t){return(t/=36e5)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Jm(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Qm(t){return zr(t,!0)}function tx(t,e,n){var i=new Date(t);switch(rc(e)){case"year":case"month":i[vc(n)](0);case"day":i[mc(n)](1);case"hour":i[xc(n)](0);case"minute":i[_c(n)](0);case"second":i[bc(n)](0),i[wc(n)](0)}return i.getTime()}_m.registerClass(Zm);var ex=_m.prototype,nx=Rm.prototype,ix=Mr,rx=Math.floor,ox=Math.ceil,ax=Math.pow,sx=Math.log,lx=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Rm,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return R(nx.getTicks.call(this,t),(function(t){var e=t.value,r=Mr(ax(this.base,e));return r=e===n[0]&&this._fixMin?hx(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?hx(r,i[1]):r}}),this)},n.prototype.setExtent=function(t,e){var n=this.base;t=sx(t)/sx(n),e=sx(e)/sx(n),nx.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=ex.getExtent.call(this);e[0]=ax(t,e[0]),e[1]=ax(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=hx(e[0],n[0])),this._fixMax&&(e[1]=hx(e[1],n[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=sx(t[0])/sx(e),t[1]=sx(t[1])/sx(e),ex.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Nr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Mr(ox(e[0]/i)*i),Mr(rx(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},n.prototype.calcNiceExtent=function(t){nx.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Am(t=sx(t)/sx(this.base),this._extent)},n.prototype.normalize=function(t){return km(t=sx(t)/sx(this.base),this._extent)},n.prototype.scale=function(t){return t=Lm(t,this._extent),ax(this.base,t)},n.type="log",n}(_m),ux=lx.prototype;function hx(t,e){return ix(t,Tr(e))}ux.getMinorTicks=nx.getMinorTicks,ux.getLabel=nx.getLabel,_m.registerClass(lx);var cx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[dx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=px[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),px={min:"_determinedMin",max:"_determinedMax"},dx={min:"_dataMin",max:"_dataMax"};function fx(t,e,n){var i=t.rawExtentInfo;return i||(i=new cx(t,e,n),t.rawExtentInfo=i,i)}function gx(t,e){return null==e?null:Q(e)?NaN:t.parse(e)}function yx(t,e){var n=t.type,i=fx(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Fm("bar",a),l=!1;if(O(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Gm(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[Vm(e)];return null!=i&&null!=n?i[Bm(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;O(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;O(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function vx(t,e){var n=e,i=yx(t,n),r=i.extent,o=n.get("splitNumber");t instanceof lx&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function mx(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pm({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Zm({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_m.getClass(e)||Rm)}}function xx(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):W(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):H(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(_x(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function _x(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function bx(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Ki(t.x,t.y,o,a)}function Sx(t){var e=t.get("interval");return null==e?"auto":e}function Mx(t){return"category"===t.type&&0===Sx(t.getLabelModel())}function Ix(t,e){var n={};return O(t.mapDimensionsAll(e),(function(e){n[mm(t,e)]=!0})),B(n)}var Tx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();var Cx={isDimensionStacked:vm,enableDataStack:ym,getStackedDimension:mm};var Dx=Object.freeze({__proto__:null,createList:function(t){return xm(null,t)},getLayoutRect:Gc,dataStack:Cx,createScale:function(t,e){var n=e;e instanceof Uh||(n=new Uh(e));var i=mx(n);return i.setExtent(t[0],t[1]),vx(i,n),i},mixinAxisModelCommonMethods:function(t){L(t,Tx)},getECData:Ts,createTextStyle:function(t,e){return wh(t,null,null,"normal"!==(e=e||{}).state)},createDimensions:function(t,e){return cm(t,e).dimensions},createSymbol:Fg,enableHoverEmphasis:hl});function Ax(t,e){return Math.abs(t-e)<1e-8}function kx(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;on&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Gx(t,e){return R(E((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),O(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Fx(r,i,n);break;case"Polygon":case"MultiLineString":Vx(r,i,n);break;case"MultiPolygon":O(r,(function(t,e){return Vx(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Nx(o[0],o.slice(1)));break;case"MultiPolygon":O(i.coordinates,(function(t){t[0]&&r.push(new Nx(t[0],t.slice(1)))}));break;case"LineString":r.push(new Ex([i.coordinates]));break;case"MultiLineString":r.push(new Ex(i.coordinates))}var a=new zx(n[e||"name"],r,n.cp);return a.properties=n,a}))}var Hx=Object.freeze({__proto__:null,linearMap:wr,round:Mr,asc:Ir,getPrecision:Tr,getPrecisionSafe:Cr,getPixelPrecision:Dr,getPercentWithPrecision:Ar,MAX_SAFE_INTEGER:9007199254740991,remRadian:Lr,isRadianAroundZero:Pr,parseDate:Rr,quantity:Nr,quantityExponent:Er,nice:zr,quantile:Br,reformIntervals:Vr,isNumeric:Gr,numericToNumber:Fr}),Wx=Object.freeze({__proto__:null,parse:Rr,format:ac}),Ux=Object.freeze({__proto__:null,extendShape:Yu,extendPath:Zu,makePath:Ku,makeImage:$u,mergePath:Qu,resizePath:th,createIcon:uh,updateProps:Nu,initProps:Eu,getTransform:nh,clipPointsByRect:sh,clipRectByRect:lh,registerShape:ju,getShapeClass:qu,Group:gr,Image:is,Text:ds,Circle:Gl,Ellipse:Wl,Sector:ru,Ring:au,Polygon:uu,Polyline:cu,Rect:hs,Line:fu,BezierCurve:mu,Arc:_u,IncrementalDisplayable:Lu,CompoundPath:bu,LinearGradient:Su,RadialGradient:Mu,BoundingRect:Ki}),Yx=Object.freeze({__proto__:null,addCommas:Sc,toCamelCase:Mc,normalizeCssArray:Ic,encodeHTML:Dc,formatTpl:Pc,getTooltipMarker:Oc,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Rr(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",ic(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",ic(s,2)).replace("d",s).replace("hh",ic(l,2)).replace("h",l).replace("mm",ic(u,2)).replace("m",u).replace("ss",ic(h,2)).replace("s",h).replace("SSS",ic(c,3))},capitalFirst:function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},truncateText:Ro,getTextRect:function(t,e,n,i,r,o,a,s){return new ds({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),Xx=Object.freeze({__proto__:null,map:R,each:O,indexOf:A,inherits:k,reduce:N,filter:E,bind:V,curry:F,isArray:G,isString:W,isObject:X,isFunction:H,extend:T,defaults:C,clone:S,merge:M}),Zx=ao();function jx(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=Kx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=xx(t);return{labels:R(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function qx(t,e){return"category"===t.type?function(t,e){var n,i,r=$x(t,"ticks"),o=Sx(e),a=Jx(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(H(o))n=e_(t,o,!0);else if("auto"===o){var s=Kx(t,t.getLabelModel());i=s.labelCategoryInterval,n=R(s.labels,(function(t){return t.tickValue}))}else n=t_(t,i=o,!0);return Qx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:R(t.scale.getTicks(),(function(t){return t.value}))}}function Kx(t,e){var n,i,r=$x(t,"labels"),o=Sx(e),a=Jx(r,o);return a||(H(o)?n=e_(t,o):(i="auto"===o?function(t){var e=Zx(t).autoInterval;return null!=e?e:Zx(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=t_(t,i)),Qx(r,o,{labels:n,labelCategoryInterval:i}))}function $x(t,e){return Zx(t)[e]||(Zx(t)[e]=[])}function Jx(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Mx(t),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function e_(t,e,n){var i=t.scale,r=xx(t),o=[];return O(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var n_=[0,1],i_=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Dr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&r_(n=n.slice(),i.count()),wr(t,n_,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&r_(n=n.slice(),i.count());var r=wr(t,n,n_,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=R(qx(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;O(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var h=s[0]>s[1];c(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&c(s[0],e[0].coord)&&e.unshift({coord:s[0]});c(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&c(o.coord,s[1])&&e.push({coord:s[1]});function c(t,e){return t=Mr(t),e=Mr(e),h?t>e:t0&&t<100||(t=5),R(this.scale.getMinorTicks(t),(function(t){return R(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return jx(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=xx(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,y=tr(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=Zx(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function r_(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}function o_(t){var e=jc.extend(t);return jc.registerClass(e),e}function a_(t){var e=Df.extend(t);return Df.registerClass(e),e}function s_(t){var e=_f.extend(t);return _f.registerClass(e),e}function l_(t){var e=Pf.extend(t);return Pf.registerClass(e),e}var u_=2*Math.PI,h_=Pa.CMD,c_=["top","right","bottom","left"];function p_(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function d_(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%u_<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=za(r),r=za(p)}else i=za(i),r=za(r);i>r&&(r+=u_);var d=Math.atan2(s,a);if(d<0&&(d+=u_),d>=i&&d<=r||d+u_>=i&&d+u_<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,x_.fromArray(t[0]),__.fromArray(t[1]),b_.fromArray(t[2]),Gi.sub(w_,x_,__),Gi.sub(S_,b_,__);var n=w_.len(),i=S_.len();if(!(n<.001||i<.001)){w_.scale(1/n),S_.scale(1/i);var r=w_.dot(S_);if(Math.cos(e)1&&Gi.copy(T_,b_),T_.toArray(t[1])}}}}function D_(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,x_.fromArray(t[0]),__.fromArray(t[1]),b_.fromArray(t[2]),Gi.sub(w_,__,x_),Gi.sub(S_,b_,__);var i=w_.len(),r=S_.len();if(!(i<.001||r<.001))if(w_.scale(1/i),S_.scale(1/r),w_.dot(e)=a)Gi.copy(T_,b_);else{T_.scaleAndAdd(S_,o/Math.tan(Math.PI/2-s));var l=b_.x!==__.x?(T_.x-__.x)/(b_.x-__.x):(T_.y-__.y)/(b_.y-__.y);if(isNaN(l))return;l<0?Gi.copy(T_,__):l>1&&Gi.copy(T_,b_)}T_.toArray(t[1])}}}function A_(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function k_(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Pt(i[0],i[1]),o=Pt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Nt([],i[1],i[0],a/r),l=Nt([],i[1],i[2],a/o),u=Nt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&_(-h/a,0,a);var f,g,y=t[0],v=t[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[e]-i,g=r-v.rect[e]-v.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){_(i*n,0,a);var r=i+t;r<0&&b(-r*n,1)}else b(-t*n,1)}}function _(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){_(-(o[l-1]*c),l,a)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?_(n,0,i+1):_(-n,a-i-1,a),(t-=n)<=0)return}}function N_(t,e,n,i){return R_(t,"y","height",e,n,i)}function E_(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ki(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(d.oldLayoutSelect),A(u,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),Nu(n,s,e,a)}else if(n.attr(s),!Ah(n).valueAnimation){var h=et(n.style.opacity,1);n.style.opacity=0,Eu(n,{style:{opacity:h}},e,a)}if(d.oldLayout=s,n.states.select){var c=d.oldLayoutSelect={};W_(c,s,U_),W_(c,n.states.select,U_)}if(n.states.emphasis){var p=d.oldLayoutEmphasis={};W_(p,s,U_),W_(p,n.states.emphasis,U_)}Lh(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(d=H_(i)).oldLayout;var d,f={points:i.shape.points};r?(i.attr({shape:r}),Nu(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,Eu(i,{style:{strokePercent:1}},e)),d.oldLayout=f}},t}(),X_=ao();var Z_=Math.sin,j_=Math.cos,q_=Math.PI,K_=2*Math.PI,$_=180/q_,J_=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=Dn(h-K_)||(u?l>=K_:-l>=K_),p=l>0?l%K_:l%K_+K_,d=!1;d=!!c||!Dn(h)&&p>=q_==!!u;var f=t+n*j_(o),g=e+i*Z_(o);this._start&&this._add("M",f,g);var y=Math.round(r*$_);if(c){var v=1/this._p,m=(u?1:-1)*(K_-v);this._add("A",n,i,y,1,+u,t+n*j_(o+m),e+i*Z_(o+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var x=t+n*j_(a),_=e+i*Z_(a);this._add("A",n,i,y,+d,+u,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,e.attrs)+(e.text||"")+(i?""+n+R(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function sb(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lb(t,e,n,i){return ob("svg","root",{width:t,height:e,xmlns:nb,"xmlns:xlink":ib,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var ub={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};function hb(t,e,n){var i=T({},t.shape);T(i,e),t.buildPath(n,i);var r=new J_;return r.reset(En(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function cb(t,e){var n=e.originX,i=e.originY;(n||i)&&(t["transform-origin"]=n+"px "+i+"px")}var pb={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function db(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function fb(t){return W(t)?ub[t]?"cubic-bezier("+ub[t]+")":Ke(t)?t:"":""}function gb(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof bu){if(y=function(t,e,n){var i,r,o=t.shape.paths,a={};if(O(o,(function(t){var e=sb(n.zrId);e.animation=!0,gb(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=B(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=db(a,n);return i.replace(r,s)}}(t,e,n))a.push(y);else if(!o)return}else if(!o)return;for(var s={},l=0;l0})).length)return db(h,n)+" "+r[0]+" both"}for(var g in s){var y;(y=f(s[g]))&&a.push(y)}if(a.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}var yb=Math.round;function vb(t){return t&&W(t.src)}function mb(t){return t&&H(t.toDataURL)}function xb(t,e,n,i){!function(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof is)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var o=Cn(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=Cn(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||h<1)&&t("stroke-opacity",h),e.lineDash){var p=Xg(n),d=p[0],f=p[1];d&&(f=Q_(f||0),t("stroke-dasharray",d.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray","none");for(var g=0;gl?Wb(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Ub(t,e,a,l))}(n,i,r):Vb(r)?(Vb(t.text)&&Eb(n,""),Wb(n,null,r,0,r.length-1)):Vb(i)?Ub(n,i,0,i.length-1):Vb(t.text)&&Eb(n,""):t.text!==e.text&&(Vb(i)&&Ub(n,i,0,i.length-1),Eb(n,e.text)))}var Zb=0,jb=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=qb("refreshHover"),this.configLayer=qb("configLayer"),this.storage=e,this._opts=n=T({},n),this.root=t,this._id="zr"+Zb++,this._oldVNode=lb(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=rb("svg");Yb(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(Gb(t,e))Xb(t,e);else{var n=t.elm,i=Rb(n);Hb(e),null!==i&&(Lb(i,e.elm,Nb(n)),Ub(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Db(t,sb(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=sb(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Cn(n),l=s.color,u=s.opacity;this._bgVNode=ob("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=ob("g","main",{},[]);this._paintList(e,o,h?h.children:a),h&&a.push(h);var c=R(B(o.defs),(function(t){return o.defs[t]}));if(c.length&&a.push(ob("defs","defs",{},c)),t.animation){var p=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=R(B(t),(function(e){return e+r+R(B(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=R(B(e),(function(t){return"@keyframes "+t+r+R(B(e[t]),(function(n){return n+r+R(B(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(o.cssNodes,o.cssAnims,{newline:!0});if(p){var d=ob("style","stl",{},[],p);a.push(d)}}return lb(i,r,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},ab(this.renderToVNode({animation:et(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:et(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Cn(t),i=n.color,r=n.opacity;e.elm.setAttribute("fill",i),r<1&&e.elm.setAttribute("fill-opacity",r)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?.01:0),this._needsManuallyCompositing),u.__builtin__||w("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?M(n[t],e,!0):n[t]=e;for(var i=0;i-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},n}(_f);function tw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=xd(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var nw=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Fg(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=iw,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){$s(this.childAt(0))},n.prototype.downplay=function(){Js(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{(p=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(c):Nu(p,c,a,e),Gu(p)}if(this._updateCommon(t,e,s,i,r),l){var p=this.childAt(0);if(!u){c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Eu(p,c,a,e)}}u&&this.childAt(0).stopAnimation("leave")},n.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=bh(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=Hg(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof is){var w=f.style;f.useStyle(T({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(T({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;_h(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):tw(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");if(C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,p){var D=Math.max(Y(p)?p:1.1,3/this._sizeY);C.scaleX=this._sizeX*D,C.scaleY=this._sizeY*D}this.setSymbolScale(1),cl(this,l,u,h)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ts(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Bu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Bu(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return Gg(t.getItemVisual(e,"symbolSize"))},n}(gr);function iw(t,e){this.parent.drift(t,e)}function rw(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ow(t){return null==t||X(t)||(t={isIgnore:t}),t||{}}function aw(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:bh(e),cursorStyle:e.get("cursor")}}var sw=function(){function t(t){this.group=new gr,this._SymbolCtor=t||nw}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ow(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=aw(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(rw(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(rw(t,d,h,e)){var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):Nu(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aw(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ow(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=R(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return vm(e,c[0])&&(p=!0,c[0]=d),vm(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function uw(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var hw=Math.min,cw=Math.max;function pw(t,e){return isNaN(t)||isNaN(e)}function dw(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y=r||g<0)break;if(pw(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||pw(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if("x"===s){var E=T>0?1:-1;d=v-E*(R=Math.abs(k))*a,f=m,D=v+E*(N=Math.abs(L))*a,A=m}else if("y"===s){var z=C>0?1:-1;d=v,f=m-z*(R=Math.abs(P))*a,D=v,A=m+z*(N=Math.abs(O))*a}else R=Math.sqrt(k*k+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(L*L+O*O))/(N+R))),f=m-C*a*(1-I),A=m+C*a*I,D=hw(D=v+T*a*I,cw(w,v)),A=hw(A,cw(S,m)),D=cw(D,hw(w,v)),f=m-(C=(A=cw(A,hw(S,m)))-m)*R/N,d=hw(d=v-(T=D-v)*R/N,cw(u,v)),f=hw(f,cw(h,m)),D=v+(T=v-(d=cw(d,hw(u,v))))*N/R,A=m+(C=m-(f=cw(f,hw(h,m))))*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=A}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var fw=function(){this.smooth=0,this.smoothConstraint=!0},gw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new fw},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&pw(n[2*r-2],n[2*r-1]);r--);for(;i=0){var y=a?(h-i)*g+i:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],p=r[l++],d=r[l++],f=r[l++];var v=a?Be(n,u,c,d,t,s):Be(i,h,p,f,t,s);if(v>0)for(var m=0;m=0){y=a?Ee(i,h,p,f,x):Ee(n,u,c,d,x);return a?[t,y]:[y,t]}}n=d,i=f}}},n}(Ja),yw=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(fw),vw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new yw},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&pw(n[2*o-2],n[2*o-1]);o--);for(;r=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=R(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:xn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";O(p,(function(t){t.offset=(t.coord-f)/y})),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new Su(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}}}function Dw(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return O(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Aw(t,e){return[t[2*e],t[2*e+1]]}function kw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Ts(d).seriesIndex=t.seriesIndex,cl(d,L,P,O);var R=Iw(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:w}),f){var E=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(C(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(z=Iw(E.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),gl(f,t,"areaStyle"),Ts(f).seriesIndex=t.seriesIndex,cl(f,L,P,O)}var B=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},n.prototype.packEventData=function(t,e){Ts(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=oo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel"),c=t.get("z");(s=new nw(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Pf.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=oo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Pf.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;Xs(this._polyline,t),e&&Xs(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new gw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new vw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");H(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=H(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=H(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(kw(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new ds({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(_h(o,bh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?ew(r,n):tw(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=Aw(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{(T=l.getPointOn(m,b))&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(I=yo(n,p,C,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;T=Aw(u,A);r&&(I=h.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}r&&Ah(s).setLabelText(I)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],h=[],c=[],p=[],d=[],f=[],g=[],y=lw(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x3e3||l&&Mw(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),Nu(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),Nu(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;W(r)?d=Rw[r]:H(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,Nw))}}}}}var zw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(t,e){return xm(null,this,{useEncodeDefaulter:!0})},n.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},n.type="series.__base_bar__",n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},n}(_f);_f.registerClass(zw);var Bw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return xm(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},n.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},n.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=Zh(zw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),n}(zw),Vw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fw=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new Vw},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},n.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Fu(e,t,Ts(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type="bar",n}(Pf),Xw={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Ww(e.x,t.x),s=Uw(e.x+e.width,r),l=Ww(e.y,t.y),u=Uw(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=Uw(e.r,t.r),o=Ww(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},Zw={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new hs({shape:T({},i),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[r?"height":"width"]=0);return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?Fw:ru,h=new u({shape:i,z2:1});h.name="item";var c,p,d=tS(r);if(h.calculateTextPosition=(c=d,p=({isRoundCap:u===Fw}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return or(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,d=(u+h)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=p?Math.abs(u-h)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+Gw(f,o+v,!1),b=l+d*x(f)+Hw(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+Gw(f,-o+v,!1),b=l+d*x(f)+Hw(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(y),b=l+(u+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(y),b=l+(u-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+Gw(g,o+v,!0),b=l+d*x(g)+Hw(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+Gw(g,-o+v,!0),b=l+d*x(g)+Hw(g,-o+v,!0),w="right",S="middle";break;default:return or(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?0:i.startAngle,g[f]=i[f],(s?Nu:Eu)(h,{shape:g},o)}return h}};function jw(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Nu:Eu)(n,{shape:l},e,r,null),(a?Nu:Eu)(n,{shape:u},e?t.baseAxis.model:null,r)}function qw(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function tS(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function eS(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");u&&t.attr("cursor",u);var h=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",c=bh(i);_h(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:tw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var d=i.get(["label","position"]);t.textConfig.inside="middle"===d||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(G(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===d?h:d,tS(a),i.get(["label","rotate"]))}kh(p,c,o.getRawValue(n),(function(t){return ew(e,t)}));var f=i.getModel(["emphasis"]);cl(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),gl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",O(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var nS=function(){},iS=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return e(n,t),n.prototype.getDefaultShape=function(){return new nS},n.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);Ts(this).dataIndex=e>=0?e:null}),30,!1);function aS(t,e,n){if(bw(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var sS=2*Math.PI,lS=Math.PI/180;function uS(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hS(t,e){var n=uS(t,e),i=t.get("center"),r=t.get("radius");G(r)||(r=[0,r]),G(i)||(i=[i,i]);var o=Sr(n.width,e.getWidth()),a=Sr(n.height,e.getHeight()),s=Math.min(o,a);return{cx:Sr(i[0],o)+n.x,cy:Sr(i[1],a)+n.y,r0:Sr(r[0],s/2),r:Sr(r[1],s/2)}}function cS(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=uS(t,n),o=hS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*lS,c=t.get("minAngle")*lS,p=0;e.each(i,(function(t){!isNaN(t)&&p++}));var d=e.getSum(i),f=Math.PI/(d||p)*2,g=t.get("clockwise"),y=t.get("roseType"),v=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var x=sS,_=0,b=h,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===d&&v?f:t*f:sS/p)n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(c)t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function yS(t){return"center"===t.position}function vS(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*dS,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),c=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Sr(y.get("edgeDistance"),u),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Sr(S,u);var M=w.get("length2");if(M=Sr(M,u),Math.abs(c.endAngle-c.startAngle)0?"right":"left":k>0?"left":"right"}var V=Math.PI,F=0,G=y.get("rotate");if(Y(G))F=G*(V/180);else if("center"===v)F=0;else if("radial"===G||!0===G){F=k<0?-A+V:-A}else if("tangential"===G&&"outside"!==v&&"outer"!==v){var H=Math.atan2(k,L);H<0&&(H=2*V+H),L>0&&(H=V+H),F=H-V}if(o=!!F,p.x=I,p.y=T,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:D});var W=p.states.select;W&&(W.x+=p.x,W.y+=p.y)}else{var U=p.getBoundingRect().clone();U.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;U.y-=X/2,U.height+=X,r.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Gi(k,L),linePoints:C,textAlign:D,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:U,unconstrainedWidth:U.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=n.r0}},n.type="pie",n}(Pf);function bS(t,e,n){e=G(e)&&{coordDimensions:e}||T({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=cm(i,e).dimensions,o=new hm(r,t);return o.initData(i,n),o}var wS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),SS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new wS(V(this.getData,this),V(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return bS(this,{coordDimensions:["value"],encodeDefaulter:F(rp,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),(function(t){r.push(t)})),i.percent=Ar(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},n.prototype._defaultLabelLine=function(t){qr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(_f);var MS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){return xm(null,this,{useEncodeDefaulter:!0})},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},n.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},n.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},n.type="series.scatter",n.dependencies=["grid","polar","geo","singleAxis","calendar"],n.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},n}(_f),IS=function(){},TS=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.getDefaultShape=function(){return new IS},n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),DS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},n.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},n.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},n.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Ow("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},n.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},n.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},n.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new CS:new sw,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},n.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},n.prototype.dispose=function(){},n.type="scatter",n}(Pf),AS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(jc),kS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ho).models[0]},n.type="cartesian2dAxis",n}(jc);L(kS,Tx);var LS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},PS=M({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},LS),OS=M({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},LS),RS={category:PS,value:OS,time:M({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},OS),log:C({logBase:10},OS)},NS={value:1,category:1,time:1,log:1};function ES(t,n,i,r){O(NS,(function(o,a){var s=M(M({},RS[a],!0),r,!0),l=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Wc(this),i=n?Yc(t):{};M(t,e.getTheme().get(a+"Axis")),M(t,this.getDefaultOption()),t.type=zS(t),n&&Uc(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=wm.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(n+"Axis",zS)}function zS(t){return t.type||(t.data?"category":"value")}var BS=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return R(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),E(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),VS=["x","y"];function FS(t){return"interval"===t.type||"time"===t.type}var GS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=VS,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(FS(t)&&FS(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ai([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Et(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Et(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Ki(n,i,r,o)},n}(BS),HS=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},n}(i_);function WS(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),tt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function US(t){return"cartesian2d"===t.get("coordinateSystem")}function YS(t){var e={xAxisModel:null,yAxisModel:null};return O(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ho).models[0];e[i]=o})),e}var XS=Math.log;function ZS(t,e,n){var i=Rm.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=yx(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=XS(t.base);u=[XS(u[0])/p,XS(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=Tm(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Tm(f));var v=f*a;(g=Mr((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Mr(v)):y>0&&u[1]<=0&&(y=0,g=-Mr(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var jS=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VS,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=B(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Mm(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(vx(l,s),Mm(l)&&(e=a))}r.length&&(e||vx((e=r.pop()).scale,e.model),O(r,(function(t){ZS(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};O(n.x,(function(t){KS(n,"y",t,r)})),O(n.y,(function(t){KS(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Gc(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){O(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(O(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof Pm?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=xx(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h0&&i>0||n<0&&i<0)}(t)}var JS=Math.PI,QS=function(){function t(t,e){this.group=new gr,this.opt=e,this.axisModel=t,C(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new gr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!tM[t]},t.prototype.add=function(t){tM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Lr(e-t);return Pr(o)?(r=n>0?"top":"bottom",i="center"):Pr(o-JS)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),tM={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(Et(s,s,a),Et(l,l,a));var u=T({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new fu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var c=e.get(["axisLine","symbol"]);if(null!=c){var p=e.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(p)||Y(p))&&(p=[p,p]);var d=Hg(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],g=p[1];O([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==c[i]&&null!=c[i]){var r=Fg(c[i],-f/2,-g/2,f,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=rM(r.getTicksCoords(),e.transform,l,C(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,d=["start"===s?c[0]-p*h:"end"===s?c[1]+p*h:(c[0]+c[1])/2,iM(s)?t.labelOffset+l*h:0],f=e.get("nameRotate");null!=f&&(f=f*JS/180),iM(s)?o=QS.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=Lr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;Pr(a-JS/2)?(o=l?"bottom":"top",r="center"):Pr(a-1.5*JS)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*JS&&a>JS/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=tt(t.nameTruncateMaxWidth,y.maxWidth,a),x=new ds({x:d[0],y:d[1],rotation:o.rotation,silent:QS.isLabelSilent(e),style:wh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(dh({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=QS.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,Ts(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function eM(t){t&&(t.ignore=!0)}function nM(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Si([]);return Ci(r,r,-t.rotation),n.applyTransform(Ii([],r,t.getLocalTransform())),i.applyTransform(Ii([],r,e.getLocalTransform())),n.intersect(i)}}function iM(t){return"middle"===t||"center"===t}function rM(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function sM(t){var e=lM(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=uM(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=C({color:c.color},a));var d=M(S(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(s||(d.name=""),W(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else H(l)&&(d.name=l(d.name,d));var g=new Uh(d,null,this.ecModel);return L(g,Tx.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=c},n.prototype.getIndicatorModels=function(){return this._indicatorModels},n.type="radar",n.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:M({lineStyle:{color:"#bbb"}},LM.axisLine),axisLabel:PM(LM.axisLabel,!1),axisTick:PM(LM.axisTick,!1),splitLine:PM(LM.splitLine,!0),splitArea:PM(LM.splitArea,!0),indicator:[]},n}(jc),RM=["axisLine","axisTickLabel","axisName"],NM=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},n.prototype._buildAxes=function(t){var e=t.coordinateSystem;O(R(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new QS(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){O(RM,t.add,t),this.group.add(t.getGroup())}),this)},n.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=G(h)?h:[h],d=G(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x3?1.4:r>1?1.2:1.1;WM(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);WM(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){FM(this._zr,"globalPan")||WM(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},n}(Ht);function WM(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(ie(i.event),UM(t,e,n,i,r))}function UM(t,e,n,i,r){r.isAvailableBehavior=V(YM,null,n,i),t.trigger(e,r)}function YM(t,e,n){var i=n[t];return!t||i&&(!W(i)||e.event[i+"Key"])}function XM(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function ZM(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var jM,qM={axisPointer:1,tooltip:1,brush:1};function KM(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!qM.hasOwnProperty(i.mainType)&&r&&r.model!==n}function $M(t){W(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var JM={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},QM=B(JM),tI={"alignment-baseline":"textBaseline","stop-color":"stopColor"},eI=B(tI),nI=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=$M(t);this._defsUsePending=[];var i=new gr;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),lI(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=vI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new gr).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new hs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=jM[s];if(u&&ft(jM,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=iI[s];if(p&&ft(iI,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new ts({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});aI(e,n),lI(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(jM={g:function(t,e){var n=new gr;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new hs;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Gl;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new fu;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Wl;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=sI(i));var r=new uu({shape:{points:n||[]},silent:!0});return aI(e,r),lI(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=sI(i));var r=new cu({shape:{points:n||[]},silent:!0});return aI(e,r),lI(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new is;return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new gr;return aI(e,a),lI(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new gr;return aI(e,a),lI(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Bl(t.getAttribute("d")||"");return aI(e,n),lI(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),iI={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Su(e,n,i,r);return rI(t,o),oI(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Mu(e,n,i);return rI(t,r),oI(t,r),r}};function rI(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function oI(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};yI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function aI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),C(e.__inheritedStyle,t.__inheritedStyle))}function sI(t){for(var e=pI(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=pI(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":Ti(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Di(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ci(r,r,-parseFloat(l[0])*fI);break;case"skewX":Ii(r,[1,0,Math.tan(parseFloat(l[0])*fI),1,0,0],r);break;case"skewY":Ii(r,[1,Math.tan(parseFloat(l[0])*fI),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),yI(t,a,s),i||function(t,e,n){for(var i=0;i0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ht(),n=ht(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;_h(e,bh(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(zI(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function WI(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Ts(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function UI(t,e,n,i,r){t.data||dh({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function YI(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return cl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=Ts(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function XI(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),O(t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},n.type="series.map",n.dependencies=["geo"],n.layoutMode="box",n.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},n}(_f);function qI(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),O(e,(function(t,e){for(var n,i,r,o=(n=R(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},O(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=Gc(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}L(nT,JI);var oT=new(function(){function t(){this.dimensions=eT}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new nT(o+r,o,T({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=rT,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),O(r,(function(t,r){var o=R(t,(function(t){return t.get("nameMap")})),a=new nT(r,r,T({nameMap:I(o)},i(t[0])));a.zoomLimit=tt.apply(null,R(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=rT,a.resize(t[0],e),O(t,(function(t){t.coordinateSystem=a,function(t,e){O(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=ht(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=yT(s),o=vT(o),s&&o;){r=yT(r),a=vT(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(xT(mT(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!yT(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!vT(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function dT(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function fT(t){return arguments.length?t:_T}function gT(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function yT(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function vT(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function mT(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function xT(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function _T(t,e){return t.parentNode===e.parentNode?1:2}var bT=function(){this.parentPoint=[],this.childPoints=[]},wT=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new bT},n.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=Sr(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;pm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),k="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;k&&(Ts(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new mu({shape:AT(h,c,p,r,r)})),Nu(g,{shape:AT(h,c,p,o,a)},t));else if("polyline"===u)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(W(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function HT(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function WT(t,e){return A(HT(t),e)>=0}function UT(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var YT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return e(n,t),n.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Uh(n,this,this.ecModel),r=FT.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},n.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return of("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UT(i,this),n.collapsed=!i.isExpand,n},n.type="series.tree",n.layoutMode="box",n.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},n}(_f);function XT(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ZT(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=fT((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=fT());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),XT(l,(function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=gT(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),XT(l,(function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),XT(l,(function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function jT(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();T(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var qT=["treemapZoomToNode","treemapRender","treemapMove"];function KT(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=gp(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}var $T=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventUsingHoverLayer=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};JT(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Uh({itemStyle:r},this,e),a=R((i=t.levels=function(t,e){var n,i,r=jr(e.get("color")),o=jr(e.get(["aria","decal","decals"]));if(!r)return;O(t=t||[],(function(t){var e=new Uh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e))||[],(function(t){return new Uh(t,o,e)}),this),s=FT.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return of("nameValue",{name:i.getName(t),value:r})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=UT(i,this),n.treePathInfo=n.treeAncestors,n},n.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},T(this.layoutInfo,t)},n.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ht(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},n.prototype.getViewRoot=function(){return this._viewRoot},n.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},n.prototype.enableAriaDecal=function(){KT(this)},n.type="series.treemap",n.layoutMode="box",n.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},n}(_f);function JT(t){var e=0;O(t.children,(function(t){JT(t);var n=t.value;G(n)&&(n=n[0]),e+=n}));var n=t.value;G(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),G(t.value)?t.value[0]=n:t.value=n}var QT=function(){function t(t){this.group=new gr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),Hc(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=no(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o,a,s,l,u,h,c,p,d,f=0,g=e.emptyItemWidth,y=t.get(["breadcrumb","height"]),v=(o=e.pos,a=e.box,l=a.width,u=a.height,h=Sr(o.left,l),c=Sr(o.top,u),p=Sr(o.right,l),d=Sr(o.bottom,u),(isNaN(h)||isNaN(parseFloat(o.left)))&&(h=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=l),(isNaN(c)||isNaN(parseFloat(o.top)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.bottom)))&&(d=u),s=Ic(s||0),{width:Math.max(p-h-s[1]-s[3],0),height:Math.max(d-c-s[0]-s[2],0)}),m=e.totalWidth,x=e.renderList,_=x.length-1;_>=0;_--){var b=x[_],w=b.node,S=b.width,M=b.text;m>v.width&&(m-=S-g,S=g,M=null);var I=new uu({shape:{points:tC(f,0,S,y,_===x.length-1,0===_)},style:C(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ds({style:{text:M,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:F(r,w)});I.disableLabelAnimation=!0,this.group.add(I),eC(I,t,w),f+=S+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function tC(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function eC(t,e,n){Ts(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&UT(n,e)}}var nC=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},n.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Ki(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Ti(s,s,[-(e-=a.x),-(n-=a.y)]),Di(s,s,[t.scale,t.scale]),Ti(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},n.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Nc(a,s)}}}}}),this)},n.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new QT(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(WT(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},n.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},n.prototype.dispose=function(){this._clearController()},n.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},n.type="treemap",n}(Pf);var uC=O,hC=X,cC=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=S(e);this.type=i,this.mappingMethod=n,this._normalizeData=bC[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(pC(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,O(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(uC(e,(function(t,e){n[t]=e})),!G(i)){var r=[];X(i)?uC(i,(function(t,e){var i=n[e];r[null!=i?i:-1]=t})):r[-1]=i,i=_C(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):pC(r,!0):(ot("linear"!==n||r.dataExtent),pC(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return V(this._normalizeData,this)},t.listVisualTypes=function(){return B(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){X(t)?O(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=G(e)?[]:X(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&uC(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(G(t))t=t.slice();else{if(!hC(t))return[];var e=[];uC(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var p=new cC(c);return SC(p).drColorMappingBy=h,p}(0,r,o,0,u,d);O(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=T({},e);if(r){var s=r.type,l="color"===s&&SC(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);IC(t,o,n,i)}}))}else s=TC(u),h.fill=s}}function TC(t){var e=CC(t,"color");if(e){var n=CC(t,"colorAlpha"),i=CC(t,"colorSaturation");return i&&(e=bn(e,null,null,i)),n&&(e=wn(e,n)),e}}function CC(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function DC(t,e){var n=t.get(e);return G(n)&&n.length?{name:e,range:n}:null}var AC=Math.max,kC=Math.min,LC=tt,PC=O,OC=["itemStyle","borderWidth"],RC=["itemStyle","gapWidth"],NC=["upperLabel","show"],EC=["upperLabel","height"],zC={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Gc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Sr(LC(s.width,l[0]),r),h=Sr(LC(s.height,l[1]),o),c=i&&i.type,p=GT(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=HT(f);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var h=0,c=o.children,p=0,d=c.length;p9007199254740991&&(u=9007199254740991),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?AC(u*i/l,l/(u*r)):1/0}function FC(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);u[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*f+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,c=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,c=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},n}(gr),wD=function(){function t(t){this.group=new gr,this._LineCtor=t||bD}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=SD(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=SD(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function OD(t,e){var n=[],i=Xe,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");l.__original||(l.__original=[_t(l[0]),_t(l[1])],l[2]&&l.__original.push(_t(l[2])));var c=l.__original;if(null!=l[2]){if(xt(r[0],c[0]),xt(r[1],c[2]),xt(r[2],c[1]),u&&"none"!==u){var p=iD(t.node1),d=PD(r,c[0],p*e);i(r[0][0],r[1][0],r[2][0],d,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],d,n),r[0][1]=n[3],r[1][1]=n[4]}if(h&&"none"!==h){p=iD(t.node2),d=PD(r,c[1],p*e);i(r[0][0],r[1][0],r[2][0],d,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],d,n),r[1][1]=n[1],r[2][1]=n[2]}xt(l[0],r[0]),xt(l[1],r[2]),xt(l[2],r[1])}else{if(xt(o[0],c[0]),xt(o[1],c[1]),Mt(a,o[1],o[0]),kt(a,a),u&&"none"!==u){p=iD(t.node1);St(o[0],o[0],a,p*e)}if(h&&"none"!==h){p=iD(t.node2);St(o[1],o[1],a,-p*e)}xt(l[0],o[0]),xt(l[1],o[1])}}))}function RD(t){return"view"===t.type}var ND=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){var n=new sw,i=new wD,r=this.group;this._controller=new HM(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(RD(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Nu(s,l,t)}OD(t.getGraph(),nD(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p),u.graph.eachNode((function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();if(n){n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",(function(){c&&(c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(e),u.setItemLayout(e,[n.x,n.y]))})).on("dragend",(function(){c&&c.setUnfixed(e)})),n.setDraggable(o&&!!c),"adjacency"===r.get(["emphasis","focus"])&&(Ts(n).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Ts(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var d="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),f=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(t,e){var n=u.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();if(d){var r=u.getItemLayout(e),o=Math.atan2(r[1]-g,r[0]-f);o<0&&(o=2*Math.PI+o);var a=r[0]=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof BD||(e=this._nodesMap[ED(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function GD(t,e,n,i,r){for(var o=new zD(i),a=0;a "+p)),u++)}var d,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)d=xm(t,n);else{var g=Mp.get(f),y=g&&g.dimensions||[];A(y,"value")<0&&y.concat(["value"]);var v=cm(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(d=new hm(v,n)).initData(t)}var m=new hm(["value"],n);return m.initData(l,s),r&&r(d,m),LT({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}L(BD,FD("hostGraph","data")),L(VD,FD("hostGraph","edgeData"));var HD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new wS(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},n.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},n.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),qr(e,"edgeLabel",["show"])},n.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){ZC(n=this)&&(n.__curvenessList=[],n.__edgeMap={},jC(n));var a=GD(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Uh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return O(a.edges,(function(t){!function(t,e,n,i){if(ZC(n)){var r=qC(t,e,n),o=n.__edgeMap,a=o[KC(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},n.prototype.getGraph=function(){return this.getData().graph},n.prototype.getEdgeData=function(){return this.getGraph().edgeData},n.prototype.getCategoriesData=function(){return this._categoriesData},n.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),of("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return vf({series:this,dataIndex:t,multipleSeries:e})},n.prototype._updateCategoriesData=function(){var t=R(this.option.categories||[],(function(t){return null!=t.value?t:T({value:0},t)})),e=new hm(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},n.type="series.graph",n.dependencies=["grid","polar","geo","singleAxis","calendar"],n.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},n}(_f),WD={type:"graphRoam",event:"graphRoam",update:"none"};var UD=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},YD=function(t){function n(e){var n=t.call(this,e)||this;return n.type="pointer",n}return e(n,t),n.prototype.getDefaultShape=function(){return new UD},n.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},n}(Ja);function XD(t,e){var n=null==t?"":t+"";return e&&(W(e)?n=e.replace("{value}",n):H(e)&&(n=e(t))),n}var ZD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:Sr(n[0],e.getWidth()),cy:Sr(n[1],e.getHeight()),r:Sr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},n.prototype.dispose=function(){},n.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?Fw:ru,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];La(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,v=0;c&&v=t&&(0===e?0:i[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(m.get("show")&&k!==_){P=(P=m.get("distance"))?P+l:l;for(var N=0;N<=b;N++){u=Math.cos(M),h=Math.sin(M);var E=new fu({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-S-P)+p,y2:h*(f-S-P)+d},silent:!0,style:D});"auto"===D.stroke&&E.setStyle({stroke:i((k+N/b)/_)}),c.add(E),M+=T}M-=T}else M+=I}},n.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=Sr(o.get("width"),r.r),s=Sr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=Sr(u[0],r.r),c=Sr(u[1],r.r),p=o.get("keepAspect");return(i=l?Fg(l,h-a/2,c-s,a,s,null,p):new YD({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?Fw:ru,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=x-y.get(v,t)%x),c}(g||d)&&(y.diff(h).add((function(e){var n=y.get(v,e);if(d){var i=w(e,o);Eu(i,{rotation:-((isNaN(+n)?b[0]:wr(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");Eu(r,{shape:{endAngle:wr(n,_,b,a)}},t),u.add(r),Cs(t.seriesIndex,y.dataType,e,r),p[e]=r}})).update((function(e,n){var i=y.get(v,e);if(d){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,Nu(s,{rotation:-((isNaN(+i)?b[0]:wr(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=c[n],m=S(e,l?l.shape.endAngle:o),x=f.get("clip");Nu(m,{shape:{endAngle:wr(i,_,b,x)}},t),u.add(m),Cs(t.seriesIndex,y.dataType,e,m),p[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof is){var h=s.style;s.useStyle(T({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(wr(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,gl(s,e),cl(s,r,o,a)}if(g){var c=p[t];c.useStyle(y.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,gl(c,e),cl(c,r,o,a)}})),this._progressEls=p)},n.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Fg(r,e.cx-i/2+Sr(o[0],e.r),e.cy-i/2+Sr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},n.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new gr,c=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){c[t]=new ds({silent:!0}),p[t]=new ds({silent:!0})})).update((function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new gr,y=i(wr(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+Sr(m[0],r.r),_=r.cy+Sr(m[1],r.r);(D=c[e]).attr({z2:f?0:2,style:wh(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(D)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+Sr(w[0],r.r),M=r.cy+Sr(w[1],r.r),I=Sr(b.get("width"),r.r),T=Sr(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,D=p[e],A=b.get("formatter");D.attr({z2:f?0:2,style:wh(b,{x:S,y:M,text:XD(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),kh(D,{normal:b},o,(function(t){return XD(t,A)})),d&&Lh(D,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return XD(a?a.interpolatedValue:o,A)}}),g.add(D)}h.add(g)})),this.group.add(h),this._titleEls=c,this._detailEls=p},n.type="gauge",n}(Pf),jD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath="itemStyle",e}return e(n,t),n.prototype.getInitialData=function(t,e){return bS(this,["value"])},n.type="series.gauge",n.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},n}(_f);var qD=["itemStyle","opacity"],KD=function(t){function n(e,n){var i=t.call(this)||this,r=i,o=new cu,a=new ds;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return e(n,t),n.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(qD);l=null==l?1:l,n||Gu(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Eu(i,{style:{opacity:l}},r,e)):Nu(i,{style:{opacity:l},shape:{points:a.points}},r,e),gl(i,o),this._updateLabel(t,e),cl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},n.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;_h(r,bh(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Gi(h[0][0],h[0][1]):null},Nu(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),L_(n,P_(a),{stroke:u})},n}(uu),$D=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreLabelLineUpdate=!0,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new KD(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){Fu(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},n.prototype.remove=function(){this.group.removeAll(),this._data=null},n.prototype.dispose=function(){},n.type="funnel",n}(Pf),JD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new wS(V(this.getData,this),V(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.getInitialData=function(t,e){return bS(this,{coordDimensions:["value"],encodeDefaulter:F(rp,this)})},n.prototype._defaultLabelLine=function(t){qr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},n.type="series.funnel",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},n}(_f);function QD(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&pA(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function pA(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var dA=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},n.prototype.mergeOption=function(t){var e=this.option;t&&M(e,t,!0),this._initDimensions()},n.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},n.prototype.setAxisExpand=function(t){O(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},n.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];O(E(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},n.type="parallel",n.dependencies=["parallelAxis"],n.layoutMode="box",n.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},n}(jc),fA=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return e(n,t),n.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},n}(i_);function gA(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=vA(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=vA(s,[0,a]),r=o=vA(s,[r,o]),i=0}e[0]=vA(e[0],n),e[1]=vA(e[1],n);var l=yA(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=vA(e[i],c),u=yA(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function yA(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function vA(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var mA=O,xA=Math.min,_A=Math.max,bA=Math.floor,wA=Math.ceil,SA=Mr,MA=Math.PI,IA=function(){function t(t,e,n){this.type="parallel",this._axesMap=ht(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;mA(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new fA(t,mx(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();mA(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),vx(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=TA(e.get("axisExpandWidth"),l),c=TA(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow");d?(t=TA(d[1]-d[0],l),d[1]=d[0]+t):(t=TA(h*(c-1),l),(d=[h*(e.get("axisExpandCenter")||bA(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[bA(SA(d[0]/h,1))+1,wA(SA(d[1]/h,1))-1],y=f/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),mA(n,(function(e,n){var o=(i.axisExpandable?DA:CA)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:MA/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=[1,0,0,1,0,0];Ci(h,h,u),Ti(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];O(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?gA(a,i,o,"all"):l="none";else{var p=i[1]-i[0];(i=[_A(0,o[1]*s/p-p/2)])[1]=xA(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}();function TA(t,e){return xA(_A(t,e[0]),e[1])}function CA(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function DA(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=0;n--)Ir(e[n])},n.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&ZA(t);var l=S(s);l.brushType=hk(l.brushType,a),l.panelId=true===a?null:a.panelId,o=t._creatingCover=VA(t,l),t._covers.push(o)}if(o){var u=dk[hk(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(ak(t,o,t._track)),i&&(FA(t,o),u.updateCommon(t,o)),GA(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&YA(t,e,n)&&ZA(t)&&(r={isEnd:i,removeOnClick:!0});return r}function hk(t,e){return"auto"===t?e.defaultBrushType:t}var ck={mousedown:function(t){if(this._dragging)pk(this,t);else if(!t.target||!t.target.draggable){sk(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=YA(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=YA(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new Uh(r[a],this,e));if(i&&n)return GD(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))})).data},n.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},n.prototype.getGraph=function(){return this.getData().graph},n.prototype.getEdgeData=function(){return this.getGraph().edgeData},n.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return of("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return of("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},n.prototype.optionUpdated=function(){},n.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},n.type="series.sankey",n.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},n}(_f);function Dk(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){O(t,(function(t){var e=Bk(t.outEdges,zk),n=Bk(t.inEdges,zk),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],h=[],c=0,p=0;p=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:c},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mc-1?d:c-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)Lk(s,l*=.99,a),kk(s,r,n,i,a),Vk(s,l,a),kk(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";O(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),O(t,(function(t){var e=0,n=0;O(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),O(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,o,a,0!==E(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function Ak(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function kk(t,e,n,i,r){var o="vertical"===r?"x":"y";O(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,h=t.length,c="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(p=h-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function Lk(t,e,n){O(t.slice().reverse(),(function(t){O(t,(function(t){if(t.outEdges.length){var i=Bk(t.outEdges,Pk,n)/Bk(t.outEdges,zk);if(isNaN(i)){var r=t.outEdges.length;i=r?Bk(t.outEdges,Ok,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Ek(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Ek(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Pk(t,e){return Ek(t.node2,e)*t.getValue()}function Ok(t,e){return Ek(t.node2,e)}function Rk(t,e){return Ek(t.node1,e)*t.getValue()}function Nk(t,e){return Ek(t.node1,e)}function Ek(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function zk(t){return t.getValue()}function Bk(t,e,n){for(var i=0,r=t.length,o=-1;++oi&&(i=e)})),O(e,(function(e){var r=new cC({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))}))}}))}var Gk=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],p=[r,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&i){var y=[];O(g,(function(t,e){var n;G(t)?(n=t.slice(),t.unshift(e)):G(t.value)?((n=T({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:h,type:Wv(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Wv(f),dimsDef:v.slice()}];return bS(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:F(ip,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Hk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return e(n,t),n.type="series.boxplot",n.dependencies=["xAxis","yAxis","grid"],n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},n}(_f);L(Hk,Gk,!0);var Wk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=Xk(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Gu(n),Zk(s,n,i,t)):n=Xk(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},n.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},n.type="boxplot",n}(Pf),Uk=function(){},Yk=function(t){function n(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return e(n,t),n.prototype.getDefaultShape=function(){return new Uk},n.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};var Qk=["color","borderColor"],tL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},n.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},n.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},n.prototype.eachRendered=function(t){gh(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&rL(s,a))return;var l=iL(a,n,!0);Eu(l,{shape:{points:a.ends}},t,n),oL(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&rL(s,h)?i.remove(u):(u?(Nu(u,{shape:{points:h.ends}},t,a),Gu(u)):u=iL(h),oL(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},n.prototype._renderLarge=function(t){this._clear(),uL(t,this.group);var e=t.get("clip",!0)?_w(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},n.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=iL(i.getItemLayout(n));oL(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},n.prototype._incrementalRenderLarge=function(t,e){uL(e,this.group,this._progressiveEls,!0)},n.prototype.remove=function(t){this._clear()},n.prototype._clear=function(){this.group.removeAll(),this._data=null},n.type="candlestick",n}(Pf),eL=function(){},nL=function(t){function n(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return e(n,t),n.prototype.getDefaultShape=function(){return new eL},n.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},n}(Ja);function iL(t,e,n){var i=t.ends;return new nL({shape:{points:n?aL(i,t):i},z2:100})}function rL(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(Qk);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var cL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return e(n,t),n.prototype.getShadowDim=function(){return"open"},n.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},n.type="series.candlestick",n.dependencies=["xAxis","yAxis","grid"],n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},n}(_f);function pL(t){t&&G(t.series)&&O(t.series,(function(t){X(t)&&"k"===t.type&&(t.type="candlestick")}))}L(cL,Gk,!0);var dL=["itemStyle","borderColor"],fL=["itemStyle","borderColor0"],gL=["itemStyle","color"],yL=["itemStyle","color0"],vL={seriesType:"candlestick",plan:Af(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?gL:yL)}function i(t,e){return e.get(t>0?dL:fL)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,T(e.ensureUniqueItemVisual(r,"style"),s)}}}}},mL={seriesType:"candlestick",plan:Af(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Sr(et(t.get("barMaxWidth"),r),r),a=Sr(et(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Sr(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=R(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],h=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(t,n){var i,r,a=zm(4*t.count),c=0,p=[],d=[],f=n.getStore();for(;null!=(r=t.next());){var g=f.get(o,r),y=f.get(s,r),v=f.get(l,r),m=f.get(u,r),x=f.get(h,r);isNaN(g)||isNaN(m)||isNaN(x)?(a[c++]=NaN,c+=3):(a[c++]=xL(f,r,y,v,l),p[0]=g,p[1]=m,i=e.dataToPoint(p,null,d),a[c++]=i?i[0]:NaN,a[c++]=i?i[1]:NaN,p[1]=x,i=e.dataToPoint(p,null,d),a[c++]=i?i[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var c=a.get(o,r),p=a.get(s,r),d=a.get(l,r),f=a.get(u,r),g=a.get(h,r),y=Math.min(p,d),v=Math.max(p,d),m=S(y,c),x=S(v,c),_=S(f,c),b=S(g,c),w=[];M(w,x,0),M(w,m,1),w.push(T(b),T(x),T(_),T(m)),n.setItemLayout(r,{sign:xL(a,r,p,d,l),initBaseline:p>d?x[1]:m[1],ends:w,brushRect:I(f,g,c)})}function S(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var r=e.slice(),o=e.slice();r[0]=eh(r[0]+i/2,1,!1),o[0]=eh(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function I(t,e,n){var r=S(t,n),o=S(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function T(t){return t[0]=eh(t[0],1),t}}}}};function xL(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}function _L(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var bL=function(t){function n(e,n){var i=t.call(this)||this,r=new nw(e,n),o=new gr;return i.add(r),i.add(o),i.updateData(e,n),i}return e(n,t),n.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},n.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/s*1e3),o!==this._period||a!==this._loop){i.stopAnimation();var u=void 0;u=H(l)?l(n):l,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a)}this._period=o,this._loop=a}},n.prototype._animateSymbol=function(t,e,n,i){if(e>0){t.__t=0;var r=this,o=t.animate("",i).when(e,{__t:1}).delay(n).during((function(){r._updateSymbolPosition(t)}));i||o.done((function(){r.remove(t)})),o.start()}},n.prototype._getLineLength=function(t){return Pt(t.__p1,t.__cp1)+Pt(t.__cp1,t.__p2)},n.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},n.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},n.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=We,l=Ue;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),h=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=u[0]-l[0],c=u[1]-l[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},n}(ML),CL=function(){this.polyline=!1,this.curveness=0,this.segs=[]},DL=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new CL},n.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},n.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;c0){if(Na(u,h,(u+p)/2-(h-d)*r,(h+d)/2-(p-u)*r,p,d,o,t,e))return a}else if(Oa(u,h,p,d,o,t,e))return a;a++}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),kL={seriesType:"lines",plan:Af(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&_w(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},n.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},n.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},n.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},n.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=kL.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},n.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new AL:new wD(r?i?TL:IL:i?ML:bD),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},n.prototype._showEffect=function(t){return!!t.get(["effect","show"])},n.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},n.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.type="lines",n}(Pf),PL="undefined"==typeof Uint32Array?Array:Uint32Array,OL="undefined"==typeof Float64Array?Array:Float64Array;function RL(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=R(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),I([e,t[0],t[1]])})))}var NL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return e(n,t),n.prototype.init=function(e){e.data=e.data||[],RL(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},n.prototype.mergeOption=function(e){if(RL(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},n.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=ct(this._flatCoords,e.flatCoords),this._flatCoordsOffset=ct(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},n.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},n.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},n.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},n.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},n.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},n.type="series.lines",n.dependencies=["grid","polar","geo","calendar"],n.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},n}(_f);function EL(t){return t instanceof Array||(t=[t,t]),t}var zL={seriesType:"lines",reset:function(t){var e=EL(t.get("symbol")),n=EL(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=EL(n.getShallow("symbol",!0)),r=EL(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var BL=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=l.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var d=0;d0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=l.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function VL(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var FL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):VL(r)&&this._renderOnGeo(r,t,i,n)},n.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},n.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(VL(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},n.prototype.eachRendered=function(t){gh(this._progressiveEls||this.group,t)},n.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=bw(u,"cartesian2d");if(h){var c=u.getAxis("x"),p=u.getAxis("y");0,o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=bh(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=h?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;Is[1]||Al[1])continue;var k=u.dataToPoint([D,A]);T=new hs({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new hs({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=bh(L)}T.shape.r=m;var O=t.getRawValue(I),R="-";O&&null!=O[2]&&(R=O[2]+""),_h(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,cl(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},n.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new BL;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-h,g=d-c,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r})),m=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(m,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=R(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:-1}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,"symbolSize");h=G(f)?f.slice():null==f?["100%","100%"]:[f,f];h[p.index]=Sr(h[p.index],d),h[c.index]=Sr(h[c.index],i?d:Math.abs(o)),u.symbolSize=h,(u.symbolScale=[h[0]/s,h[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(HL)||0;o&&(UL.attr({scaleX:e[0],scaleY:e[1],rotation:n}),UL.updateTransform(),o/=UL.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,c.symbolScale,l,i,c);var p=c.symbolSize,d=Hg(n.get("symbolOffset"),p);return function(t,e,n,i,r,o,a,s,l,u,h,c){var p=h.categoryDim,d=h.valueDim,f=c.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(i){var v=Math.abs(l),m=tt(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Sr(m,e[d.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=Gr(i),M=S?i:lP((v+w)/b);b=g+2*(_=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===i||(M=u?lP((Math.abs(u)+w)/b):0),y=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=f*(y/2),C=c.pathPosition=[];C[p.index]=n[p.wh]/2,C[d.index]="start"===a?I:"end"===a?l-I:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var D=c.bundlePosition=[];D[p.index]=n[p.xy],D[d.index]=n[d.xy];var A=c.barRectShape=T({},n);A[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(C[d.index]+I)),A[p.wh]=n[p.wh];var k=c.clipShape={};k[p.xy]=-n[p.xy],k[p.wh]=h.ecSize[p.wh],k[d.xy]=0,k[d.wh]=n[d.wh]}(n,p,r,o,0,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function ZL(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function jL(t){var e=t.symbolPatternSize,n=Fg(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function qL(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(oP(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function KL(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?aP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=jL(n),r.add(o),aP(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function $L(t,e,n){var i=T({},e.barRectShape),r=t.__pictorialBarRect;r?aP(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new hs({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function JL(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=T({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)Nu(r,{shape:o},s,l);else{o[a.wh]=0,r=new hs({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],yh[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function QL(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=tP,n.isAnimationEnabled=eP,n}function tP(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function eP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function nP(t,e,n,i){var r=new gr,o=new gr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?qL(r,e,n):KL(r,0,n),$L(r,n,i),JL(r,e,n,i),r.__pictorialShapeStr=rP(t,n),r.__pictorialSymbolMeta=n,r}function iP(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];oP(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),O(o,(function(t){Bu(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function rP(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function oP(t,e,n){O(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function aP(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&yh[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function sP(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");oP(t,(function(t){if(t instanceof is){var e=t.style;t.useStyle(T({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)];_h(t.__pictorialBarRect,bh(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:tw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),cl(t,h,c,o.get("disabled"))}function lP(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var uP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return e(n,t),n.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},n.type="series.pictorialBar",n.dependencies=["grid"],n.defaultOption=Zh(zw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),n}(zw);var hP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._layers=[],e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new Fv(this._layersSeries||[],a,h,h),p=[];function d(e,n,s){var l=r._layers;if("remove"!==e){for(var u,h,c=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;fMath.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(m=r.r-w,a>Math.PI/2&&(S="left")):(m=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(p,"verticalAlign")||"middle",g.x=m*s+r.cx,g.y=m*l+r.cy;var M=f(p,"rotate"),I=0;"radial"===M?(I=-a)<-Math.PI/2&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-a)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):Y(M)&&(I=M*Math.PI/180),g.rotation=I})),h.dirtyStyle()},n}(ru);var gP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode((function(t){h.push(t)}));var c=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function h(s,h){!function(i,r){u||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new fP(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==h?null:r[h])}new Fv(r,i,s,s).add(h).update(h).remove(F(h,null)).execute()}(h,c),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new fP(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=h},n.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a)Nc(a,o.get("target",!0)||"_blank")}n=!0}}))}))},n.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},n.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},n.type="sunburst",n}(Pf),yP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreStyleOnData=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};vP(n);var i=this._levelModels=R(t.levels||[],(function(t){return new Uh(t,this,e)}),this),r=FT.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=UT(i,this),n},n.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},n.prototype.getViewRoot=function(){return this._viewRoot},n.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},n.prototype.enableAriaDecal=function(){KT(this)},n.type="series.sunburst",n.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},n}(_f);function vP(t){var e=0;O(t.children,(function(t){vP(t);var n=t.value;G(n)&&(n=n[0]),e+=n}));var n=t.value;G(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),G(t.value)?t.value[0]=n:t.value=n}var mP=Math.PI/180;function xP(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");G(i)||(i=[0,i]),G(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Sr(e[0],r),l=Sr(e[1],o),u=Sr(i[0],a/2),h=Sr(i[1],a/2),c=-t.get("startAngle")*mP,p=t.get("minAngle")*mP,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&_P(f,y);var v=0;O(f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,T=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===m&&M?x:r*x;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&W(o)&&(o=yn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),T(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var wP={color:"fill",borderColor:"stroke"},SP={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},MP=ao(),IP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},n.prototype.getInitialData=function(t,e){return xm(null,this)},n.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=MP(i).info),r},n.type="series.custom",n.dependencies=["grid","polar","geo","singleAxis","calendar"],n.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},n}(_f);function TP(t,e){return e=e||[0,0],R(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function CP(t,e){return e=e||[0,0],R([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function DP(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function AP(t,e){return e=e||[0,0],R(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function kP(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||ft(t,"text")))}function LP(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},ft(a,"text")&&(o.text=a.text),ft(a,"rich")&&(o.rich=a.rich),ft(a,"textFill")&&(o.fill=a.textFill),ft(a,"textStroke")&&(o.stroke=a.textStroke),ft(a,"fontFamily")&&(o.fontFamily=a.fontFamily),ft(a,"fontSize")&&(o.fontSize=a.fontSize),ft(a,"fontStyle")&&(o.fontStyle=a.fontStyle),ft(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=ft(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),ft(a,"textPosition")&&(i.position=a.textPosition),ft(a,"textOffset")&&(i.offset=a.textOffset),ft(a,"textRotation")&&(i.rotation=a.textRotation),ft(a,"textDistance")&&(i.distance=a.textDistance)}return PP(o,t),O(o.rich,(function(t){PP(t,t)})),{textConfig:i,textContent:r}}function PP(t,e){e&&(e.font=e.textFont||e.font,ft(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ft(e,"textAlign")&&(t.align=e.textAlign),ft(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ft(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ft(e,"textWidth")&&(t.width=e.textWidth),ft(e,"textHeight")&&(t.height=e.textHeight),ft(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ft(e,"textPadding")&&(t.padding=e.textPadding),ft(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ft(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ft(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ft(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ft(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ft(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ft(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function OP(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";RP(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,O(e.rich,(function(t){RP(t,t)})),i}function RP(t,e){e&&(ft(e,"fill")&&(t.textFill=e.fill),ft(e,"stroke")&&(t.textStroke=e.fill),ft(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ft(e,"font")&&(t.font=e.font),ft(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ft(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ft(e,"fontSize")&&(t.fontSize=e.fontSize),ft(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ft(e,"align")&&(t.textAlign=e.align),ft(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ft(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ft(e,"width")&&(t.textWidth=e.width),ft(e,"height")&&(t.textHeight=e.height),ft(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ft(e,"padding")&&(t.textPadding=e.padding),ft(e,"borderColor")&&(t.textBorderColor=e.borderColor),ft(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ft(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ft(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ft(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ft(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ft(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ft(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ft(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ft(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ft(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var NP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},EP=B(NP),zP=(N(Vi,(function(t,e){return t[e]=1,t}),{}),Vi.join(", "),["","style","shape","extra"]),BP=ao();function VP(t,e,n,i,r){var o=t+"Animation",a=Ou(t,i,r)||{},s=BP(e).userDuring;return a.duration>0&&(a.during=s?V(XP,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),T(a,n[o]),a}function FP(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=BP(t),u=e.style;l.userDuring=e.during;var h={},c={};if(function(t,e,n){for(var i=0;i=0)){var c=t.getAnimationStyleProps(),p=c?c.style:null;if(p){!r&&(r=i.style={});var d=B(n);for(u=0;u0&&t.animateFrom(p,d)}else!function(t,e,n,i,r){if(r){var o=VP("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,h);GP(t,e),u?t.dirty():t.markRedraw()}function GP(t,e){for(var n=BP(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var p=B(a);for(h=0;hi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:V(AP,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function sO(t){return t instanceof Ja}function lO(t){return t instanceof Ko}var uO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=fO(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){yO(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);HP(n,MP(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);yO(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?_w(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},n.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},n.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=fO(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=s);var r=m(i,"emphasis").getItemStyle(),o=x(i,"emphasis"),a=wh(o,null,null,!0,!0);a.text=o.getShallow("show")?nt(t.getFormattedLabel(i,"emphasis"),t.getFormattedLabel(i,"normal"),tw(e,i)):null;var l=Sh(o,null,!0);return b(n,r),r=OP(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),ft(wP,t)){var i=e.getItemVisual(n,"style");return i?i[wP[t]]:null}if(ft(SP,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=c;p--){HP(e.childAt(p),MP(e).option,r)}}(t,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function mO(t,e,n){var i,r=MP(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&(ft(i,"pathData")||ft(i,"d")))&&IO(a)!==r.customPathData||"image"===o&&ft(s,"image")&&s.image!==r.customImagePath}function xO(t,e,n){var i=e?_O(t,e):t,r=e?bO(t,i,"emphasis"):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?_O(s,e):s:null;if(r&&(n.isLegacy||kP(r,o,!!a,!!l))){n.isLegacy=!0;var u=LP(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function _O(t,e){return e?t?t[e]:null:t}function bO(t,e,n){var i=e&&e.style;return null==i&&"emphasis"===n&&t&&(i=t.styleEmphasis),i}function wO(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function SO(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;vO(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function MO(t){var e=this.context,n=e.oldChildren[t];HP(n,MP(n).option,e.seriesModel)}function IO(t){return t&&(t.pathData||t.d)}var TO=ao(),CO=S,DO=V,AO=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=F(kO,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new gr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);RO(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=lM(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=TO(t).pointerEl=new yh[r.type](CO(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=TO(t).labelEl=new ds(CO(e.label));t.add(r),PO(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=TO(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=TO(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),PO(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=uh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ie(t.event)},onmousedown:DO(this._onHandleDragMove,this,0,0),drift:DO(this._onHandleDragMove,this),ondragend:DO(this._onHandleDragEnd,this)}),i.add(r)),RO(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");G(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Gf(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){kO(this._axisPointerModel,!e&&this._moveAnimation,this._handle,OO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(OO(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(OO(i)),TO(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Hf(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function kO(t,e,n,i){LO(TO(n).lastProp,i)||(TO(n).lastProp=i,e?Nu(n,i,t):(n.stopAnimation(),n.attr(i)))}function LO(t,e){if(X(t)&&X(e)){var n=!0;return O(e,(function(e,i){n=n&&LO(t[i],e)})),!!n}return t===e}function PO(t,e){t[e.get(["label","show"])?"show":"hide"]()}function OO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function RO(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}function NO(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function EO(t,e,n,i,r){var o=zO(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Ic(a.get("padding")||0),l=a.getFont(),u=tr(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(h[0]-=c),"center"===d&&(h[0]-=c/2);var f=r.verticalAlign;"bottom"===f&&(h[1]-=p),"middle"===f&&(h[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:wh(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function zO(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:_x(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};O(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),W(a)?o=a.replace("{value}",o):H(a)&&(o=a(s))}return o}function BO(t,e,n){var i=[1,0,0,1,0,0];return Ci(i,i,n.rotation),Ti(i,i,n.position),ih([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function VO(t,e,n,i,r,o){var a=QS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),EO(e,i,r,o,{position:BO(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function FO(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function GO(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function HO(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var WO=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=UO(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=NO(i),c=YO[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}VO(e,t,WS(a.model,n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=WS(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=BO(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=UO(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},n}(AO);function UO(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var YO={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:FO([e,n[0]],[e,n[1]],XO(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:GO([e-i/2,n[0]],[i,r],XO(t))}}};function XO(t){return"x"===t.dim?0:1}var ZO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},n}(jc),jO=ao(),qO=O;function KO(t,e,n){if(!i.node){var r=e.getZr();jO(r).records||(jO(r).records={}),function(t,e){if(jO(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);qO(jO(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}jO(t).initialized=!0,n("click",F(JO,"click")),n("mousemove",F(JO,"mousemove")),n("globalout",$O)}(r,e),(jO(r).records[t]||(jO(r).records[t]={})).handler=n}}function $O(t,e,n){t.handler("leave",null,n)}function JO(t,e,n,i){e.handler(t,n,i)}function QO(t,e){if(!i.node){var n=e.getZr();(jO(n).records||{})[t]&&(jO(n).records[t]=null)}}var tR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";KO("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},n.prototype.remove=function(t,e){QO("axisPointer",e)},n.prototype.dispose=function(t,e){QO("axisPointer",e)},n.type="axisPointer",n}(Df);function eR(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=oo(o,t);if(null==a||a<0||G(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(R(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var nR=ao();function iR(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||V(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lR(r)&&(r=eR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=lR(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||lR(r),p={},d={},f={list:[],map:{}},g={showPointer:F(oR,d),showTooltip:F(aR,f)};O(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);O(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&rR(t,a,g,!1,p)}}))}));var y={};return O(h,(function(t,e){var n=t.linkGroup;n&&!d[e]&&O(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,sR(e),sR(t)))),y[t.key]=o}}))})),O(y,(function(t,e){rR(h[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];O(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,h,p),function(t,e,n,i){if(lR(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=nR(i)[r]||{},a=nR(i)[r]={};O(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&O(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];O(o,(function(t,e){!a[e]&&l.push(t)})),O(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(h,0,n),p}}function rR(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return O(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(c,t,n);h=p.dataIndices,u=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f=0&&s<0)&&(a=f,s=d,r=u,o.length=0),O(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&T(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function oR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function aR(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=hM(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function sR(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function lR(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function uR(t){pM.registerAxisPointerClass("CartesianAxisPointer",WO),t.registerComponentModel(ZO),t.registerComponentView(tR),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=oM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iR)}var hR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var h=NO(i),c=cR[u](o,a,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=i.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];Ci(p,p,s),Ti(p,p,[i.cx,i.cy]),l=ih([a,-r],p);var d=e.getModel("axisLabel").get("rotate")||0,f=QS.innerTextLayout(s,d*Math.PI/180,-1);u=f.textAlign,h=f.textVerticalAlign}else{var g=c[1];l=i.coordToPoint([g+r,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,a,i.get(["label","margin"]));EO(t,n,i,r,p)},n}(AO);var cR={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:FO(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:HO(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:HO(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},pR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},n.type="polar",n.dependencies=["radiusAxis","angleAxis"],n.defaultOption={z:0,center:["50%","50%"],radius:"80%"},n}(jc),dR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ho).models[0]},n.type="polarAxis",n}(jc);L(dR,Tx);var fR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="angleAxis",n}(dR),gR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="radiusAxis",n}(dR),yR=function(t){function n(e,n){return t.call(this,"radius",e,n)||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},n}(i_);yR.prototype.dataToRadius=i_.prototype.dataToCoord,yR.prototype.radiusToData=i_.prototype.coordToData;var vR=ao(),mR=function(t){function n(e,n){return t.call(this,"angle",e,n||[0,360])||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},n.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=tr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=vR(t.model),p=c.lastAutoInterval,d=c.lastTickCount;return null!=p&&null!=d&&Math.abs(p-h)<=1&&Math.abs(d-r)<=1&&p>h?h=p:(c.lastTickCount=r,c.lastAutoInterval=h),h},n}(i_);mR.prototype.dataToAngle=i_.prototype.dataToCoord,mR.prototype.angleToData=i_.prototype.coordToData;var xR=["radius","angle"],_R=function(){function t(t){this.dimensions=xR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new yR,this._angleAxis=new mR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return bR(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return bR(e)===this?this.pointToData(n):null},t}();function bR(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function wR(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();O(Ix(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),O(Ix(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),vx(i.scale,i.model),vx(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function SR(t,e){if(t.type=e.get("type"),t.scale=mx(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var MR={dimensions:xR,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new _R(i+"");r.update=wR;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");SR(o,s),SR(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Sr(i[0],r),t.cy=Sr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[Sr(l[0],s),Sr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ho).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},IR=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function TR(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function CR(t){return t.getRadiusAxis().inverse?0:1}function DR(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var AR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="PolarAxisPointer",e}return e(n,t),n.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=R(n.getViewLabels(),(function(t){t=S(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));DR(s),DR(o),O(IR,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||kR[e](this.group,t,i,o,a,r,s)}),this)}},n.type="angleAxis",n}(pM),kR={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=CR(n),u=l?0:1;(a=0===o[u]?new Gl({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new au({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[CR(n)],u=R(i,(function(t){return new fu({shape:TR(n,[l,l+s],t.coord)})}));t.add(Qu(u,{style:C(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[CR(n)],h=[],c=0;cf?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[c]){var m=s[c];X(m)&&m.textStyle&&(a=new Uh(m.textStyle,l,l.ecModel))}var x=new ds({silent:QS.isLabelSilent(e),style:wh(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),h){var _=QS.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,Ts(x).eventData=_}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",T=_;m&&(i[s][M]||(i[s][M]={p:_,n:_}),T=i[s][M][I]);var C=void 0,D=void 0,A=void 0,k=void 0;if("radius"===c.dim){var L=c.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)=k})}}}))}var BR={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},VR={splitNumber:5},FR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="polar",n}(Df);function GR(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tt(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var HR=["axisLine","axisTickLabel","axisName"],WR=["splitArea","splitLine"],UR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="SingleAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new gr;var s=GR(e),l=new QS(e,s);O(HR,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),O(WR,(function(t){e.get([t,"show"])&&YR[t](this,this.group,this._axisGroup,e)}),this),ah(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},n.prototype.remove=function(){gM(this)},n.type="singleAxis",n}(pM),YR={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=[],c=0,p=r.getTicksCoords({tickModel:o}),d=[],f=[],g=0;g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return KR(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return KR(e)===this?this.pointToData(n):null},t}();function KR(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var $R={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new qR(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ho).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:jR},JR=["x","y"],QR=["width","height"],tN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=iN(a,1-nN(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=NO(i),c=eN[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}VO(e,t,GR(n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=GR(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=BO(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=nN(r),s=iN(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=iN(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},n}(AO),eN={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:FO([e,n[0]],[e,n[1]],nN(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:GO([e-i/2,n[0]],[i,r],nN(t))}}};function nN(t){return t.isHorizontal()?0:1}function iN(t,e){var n=t.getRect();return[n[JR[e]],n[JR[e]]+n[QR[e]]]}var rN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="single",n}(Df);var oN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e,n,i){var r=Yc(e);t.prototype.init.apply(this,arguments),aN(e,r)},n.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),aN(this.option,e)},n.prototype.getCellSize=function(){return this.option.cellSize},n.type="calendar",n.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},n}(jc);function aN(t,e){var n,i=t.cellSize;1===(n=G(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=R([0,1],(function(t){return function(t,e){return null!=t[Bc[e][0]]||null!=t[Bc[e][1]]&&null!=t[Bc[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Uc(t,e,{type:"box",ignoreSize:r})}var sN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},n.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new hs({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},n.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){p(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},n.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},n.prototype._drawSplitline=function(t,e,n){var i=new cu({z2:20,shape:{points:t},style:e});n.add(i)},n.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},n.prototype._formatterLabel=function(t,e){return W(t)&&t?(n=t,O(e,(function(t,e){n=n.replace("{"+e+"}",i?Dc(t):t)})),n):H(t)?t(e):e.nameMap;var n,i},n.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},n.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new ds({z2:30,style:wh(r,{text:g})});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},n.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},n.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!W(o)||(o&&(e=Jh(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,c="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,d=0;d=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function uN(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function hN(t,e){var n;return O(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var cN=["transition","enterFrom","leaveTo"],pN=cN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function dN(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?cN:pN,r=0;r=0;l--){var p,d,f;if(f=null!=(d=no((p=n[l]).id,null))?r.get(d):null){var g=f.parent,y=(c=yN(g),{}),v=Hc(f,p,g===i?{width:o,height:a}:{width:c.width,height:c.height},null,{hv:p.hv,boundingMode:p.bounding},y);if(!yN(f).isNew&&v){for(var m=p.transition,x={},_=0;_=0)?x[b]=w:f[b]=w}Nu(f,x,t,0)}else f.attr(y)}}},n.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){_N(n,yN(n).option,e,t._lastGraphicModel)})),this._elMap=ht()},n.prototype.dispose=function(){this._clear()},n.type="graphic",n}(Df);function mN(t){var e=ft(gN,t)?gN[t]:qu(t);var n=new e({});return yN(n).type=t,n}function xN(t,e,n,i){var r=mN(n);return e.add(r),i.set(t,r),yN(r).id=t,yN(r).isNew=!0,r}function _N(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){_N(t,e,n,i)})),HP(t,e,i),n.removeKey(yN(t).id))}function bN(t,e,n,i){if(!t.isGroup){var r=t;r.cursor=et(e.cursor,Ko.prototype.cursor),r.z=et(e.z,n||0),r.zlevel=et(e.zlevel,i||0);var o=e.z2;null!=o&&(r.z2=o||0)}O(B(e),(function(n){var i=e[n];0===n.indexOf("on")&&H(i)&&(t[n]=i)})),t.draggable=e.draggable,null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var wN=["x","y","radius","angle","single"],SN=["cartesian2d","polar","singleAxis"];function MN(t){return t+"Axis"}function IN(t,e){var n,i=ht(),r=[],o=ht();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function TN(t){var e=t.ecModel,n={infoList:[],infoMap:ht()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(MN(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var CN=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),DN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return e(n,t),n.prototype.init=function(t,e,n){var i=AN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},n.prototype.mergeOption=function(t){var e=AN(t);M(this.option,t,!0),M(this.settledOption,e,!0),this._doInit(e)},n.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;O([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},n.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=ht();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},n.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return O(wN,(function(n){var i=this.getReferringComponents(MN(n),co);if(i.specified){e=!0;var r=new CN;O(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},n.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new CN;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",ho).models[0];a&&O(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ho).models[0]&&o.add(t.componentIndex)}))}}}i&&O(wN,(function(e){if(i){var r=n.findComponents({mainType:MN(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new CN;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},n.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},n.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},n.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");O([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},n.prototype.noTarget=function(){return this._noTarget},n.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(MN(e),n))}),this),t},n.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){O(n.indexList,(function(n){t.call(e,i,n)}))}))},n.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},n.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(MN(t),e)},n.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;O([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},n.prototype.setCalculatedRange=function(t){var e=this.option;O(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},n.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},n.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},n.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=MN(this._dimName),i=e.getReferringComponents(n,ho).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return S(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];ON(["start","end"],(function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(wr(h,o,n))):(e=!0,h=wr(c=null==c?n[u]:i.parse(c),n,o)),s[u]=c,a[u]=h})),RN(s),RN(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";gA(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=wr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];ON(n,(function(t){!function(t,e,n){e&&O(Ix(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=fx(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&ON(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=R(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n}))}else ON(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));ON(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ON(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=wr(n[0]+o,n,[0,100],!0):null!=r&&(o=wr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Dr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();var EN={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(MN(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new NN(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=ht();return O(n,(function(t){O(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var zN=!1;function BN(t){zN||(zN=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,EN),function(t){t.registerAction("dataZoom",(function(t,e){O(IN(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function VN(t){t.registerComponentModel(kN),t.registerComponentView(PN),BN(t)}var FN=function(){},GN={};function HN(t,e){GN[t]=e}function WN(t){return GN[t]}var UN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;O(this.option.feature,(function(t,n){var i=WN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),M(t,i.defaultOption))}))},n.type="toolbox",n.layoutMode={type:"box",ignoreSize:!0},n.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},n}(jc);function YN(t,e){var n=Ic(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new hs({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var XN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];O(s,(function(t,e){u.push(e)})),new Fv(this._featureNames||[],u).add(h).update(h).remove(F(h,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Gc(i,o,r);Fc(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Hc(t,i,o,r)}(r,t,n),r.add(YN(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!H(l)&&e){var u=l.style||(l.style={}),h=tr(e,ds.makeFont(u)),c=t.x+r.x,p=!1;t.y+r.y+o+h.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",d],u.align="right"):c-h.width/2<0&&(a.position=[0,d],u.align="left")}}))}function h(h,c){var p,d=u[h],f=u[c],g=s[d],y=new Uh(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(g.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))p={onclick:y.option.onclick,featureName:d};else{var v=WN(d);if(!v)return;p=new v}l[d]=p}else if(!(p=l[f]))return;p.uid=Xh("toolbox-feature"),p.model=y,p.ecModel=e,p.api=n;var m=p instanceof FN;d||!f?!y.get("show")||m&&p.unusable?m&&p.remove&&p.remove(e,n):(!function(i,s,l){var u,h,c=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),d=s instanceof FN&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};W(d)?(u={})[l]=d:u=d;W(f)?(h={})[l]=f:h=f;var g=i.iconPaths={};O(u,(function(l,u){var d=uh(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=p.getItemStyle();var f=new ds({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});d.setTextContent(f),dh({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),d.__title=h[u],d.on("mouseover",(function(){var e=p.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),d.setTextConfig({position:p.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?$s:Js)(d),r.add(d),d.on("click",V(s.onclick,s,e,n,u)),g[u]=d}))}(y,p,d),y.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?$s:Js)(i[t])},p instanceof FN&&p.render&&p.render(y,e,n,i)):m&&p.dispose&&p.dispose(e,n)}},n.prototype.updateView=function(t,e,n,i){O(this._features,(function(t){t instanceof FN&&t.updateView&&t.updateView(t.model,e,n,i)}))},n.prototype.remove=function(t,e){O(this._features,(function(n){n instanceof FN&&n.remove&&n.remove(t,e)})),this.group.removeAll()},n.prototype.dispose=function(t,e){O(this._features,(function(n){n instanceof FN&&n.dispose&&n.dispose(t,e)}))},n.type="toolbox",n}(Df);var ZN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=i.browser;if(H(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=r+"."+a,u.target="_blank",u.href=s;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=s.split(","),p=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];p&&(d=window.atob(d));var f=r+"."+a;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var v=new Blob([y]);window.navigator.msSaveOrOpenBlob(v,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var x=m.contentWindow,_=x.document;_.open("image/svg+xml","replace"),_.write(d),_.close(),x.focus(),_.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var b=n.get("lang"),w='',S=window.open();S.document.write(w),S.document.title=r}},n.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},n}(FN),jN=[["line","bar"],["stack"]],qN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return O(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},n.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},n.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(KN[n]){var o,a={series:[]};O(jN,(function(t){A(t,n)>=0&&O(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=KN[n](e,r,t,i);o&&(C(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",h=t.getReferringComponents(u,ho).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=M({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},n}(FN),KN={line:function(t,e,n,i){if("bar"===t)return M({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return M({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r="__ec_magicType_stack__"===n.get("stack");if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),M({id:e,stack:r?"":"__ec_magicType_stack__"},i.get(["option","stack"])||{},!0)}};wv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var $N=new Array(60).join("-");function JN(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var QN=new RegExp("[\t]+","g");function tE(t,e){var n=t.split(new RegExp("\n*"+$N+"\n*","g")),i={series:[]};return O(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf("\t")>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=R(JN(e.shift()).split(QN),(function(t){return{name:t,data:[]}})),r=0;r=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=fE[t.brushType](0,n,e);t.__rangeOffset={offset:yE[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){O(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&O(i.coordSyses,(function(i){var r=fE[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){O(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=fE[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?yE[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=mE(n),o=mE(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return R(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:gk(i),isTargetByCursor:vk(i,t,n.coordSysModel),getLinearBrushOtherExtent:yk(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&A(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=hE(e,t),r=0;rt[1]&&t.reverse(),t}function hE(t,e){return lo(t,e,{includeMainTypes:sE})}var cE={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=ht(),a={},s={};(n||i||r)&&(O(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),O(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),O(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];O(r.getCartesians(),(function(t,e){(A(n,t.getAxis("x").model)>=0||A(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:dE.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){O(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:dE.geo})}))}},pE=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],dE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(nh(t)),e}},fE={lineX:F(gE,0),lineY:F(gE,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[uE([r[0],o[0]]),uE([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:R(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function gE(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=uE(R([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var yE={lineX:F(vE,0),lineY:F(vE,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return R(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function vE(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function mE(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var xE,_E,bE=O,wE="\0_ec_\0"+"toolbox-dataZoom_",SE=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new BA(n.getZr()),this._brushController.on("brush",V(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new lE(IE(t),e,{include:["grid"]}).makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return oE(t).length}(e)>1?"emphasis":"normal")}(t,e)},n.prototype.onclick=function(t,e,n){ME[n].call(this)},n.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},n.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},n.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new lE(IE(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=oE(t);iE(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=gA(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},n.prototype._dispatchZoomAction=function(t){var e=[];bE(t,(function(t,n){e.push(S(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},n.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},n}(FN),ME={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=oE(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return iE(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function IE(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}xE="dataZoom",_E=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=lo(t,IE(i));return bE(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),bE(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:wE+e+o};a[n]=o,r.push(a)}},ot(null==lp.get(xE)&&_E),lp.set(xE,_E);var TE=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},n}(jc);function CE(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function DE(t){if(i.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c)),f=e+" solid "+r+"px;";return'
'}(n,i,r)),W(t))o.innerHTML=t+a;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},n.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!i.node&&n.getDom()){var o=YE(r,n);this._ticket="";var a=r.dataByCoordSys,s=function(t,e,n){var i=uo(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o,a=po(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(e){var n=Ts(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o)return{componentMainType:r,componentIndex:a.componentIndex,el:o}}(r,e,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:r.position,positionDefault:"bottom"},o)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=HE;u.x=r.x,u.y=r.y,u.update(),Ts(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},o)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var h=eR(r,e),c=h.point[0],p=h.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:h.el,position:r.position,positionDefault:"bottom"},o)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},o))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(YE(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===UE([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},n.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,Dg(n,(function(t){return null!=Ts(t).dataIndex?(r=t,!0):null!=Ts(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=V(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=UE([e.tooltipOption],i),a=this._renderMode,s=[],l=of("section",{blocks:[],noHeader:!0}),u=[],h=new yf;O(t,(function(t){O(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=zO(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=of("section",{header:o,noHeader:!at(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),O(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=_x(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",Rc(f.color),a);var g=wd(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=UE([p],i).get("valueFormatter");c.blocks.push(v?T({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var c=e.position,p=o.get("order"),d=cf(l,h,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)}))},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Ts(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=UE([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new yf;g.marker=y.makeTooltipMarker("item",Rc(g.color),c);var v=wd(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?cf(x?T({valueFormatter:x},_):_,y,c,m,i.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=Ts(e),r=i.tooltipConfig.option||{};if(W(r)){r={content:r,formatter:r}}var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UE(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),h=Math.random()+"",c=new yf;this._showOrMove(l,(function(){var n=S(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,h,t.offsetX,t.offsetY,t.position,e,c)})),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(W(h)){var d=t.ecModel.get("useUTC"),f=G(n)?n[0]:n;c=h,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(c=ac(f.axisValue,c,d)),c=Pc(c,n,!0)}else if(H(h)){var g=V((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||G(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:G(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),H(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),G(e))n=Sr(e[0],s),i=Sr(e[1],l);else if(X(e)){var d=e;d.width=u[0],d.height=u[1];var f=Gc(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(W(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=XE(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=XE(c)?u[1]/2:"bottom"===c?u[1]:0),CE(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&O(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&O(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&O(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&O(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){!i.node&&e.getDom()&&(Hf(this,"_updatePosition"),this._tooltipContent.dispose(),QO("itemTooltip",e))},n.type="tooltip",n}(Df);function UE(t,e,n){var i,r=e.ecModel;n?(i=new Uh(n,r,r),i=new Uh(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Uh&&(a=a.get("tooltip",!0)),W(a)&&(a={formatter:a}),a&&(i=new Uh(a,i,r)))}return i}function YE(t,e){return t.dispatchAction||V(e.dispatchAction,e)}function XE(t){return"center"===t||"middle"===t}var ZE=["rect","polygon","keep","clear"];function jE(t,e){var n=jr(t?t.brush:[]);if(n.length){var i=[];O(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;G(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};O(t,(function(t){e[t]=1})),t.length=0,O(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,ZE)}}var qE=O;function KE(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function $E(t,e,n){var i={};return qE(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);qE(t[e],(function(t,i){if(cC.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new cC(r),"opacity"===i&&((r=S(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new cC(r))}}))})),i}function JE(t,e,n){var i;O(n,(function(t){e.hasOwnProperty(t)&&KE(e[t])&&(i=!0)})),i&&O(n,(function(n){e.hasOwnProperty(n)&&KE(e[n])?t[n]=S(e[n]):delete t[n]}))}var QE={lineX:tz(0),lineY:tz(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&kx(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(kx(i,r,o)||kx(i,r+a,o)||kx(i,r,o+s)||kx(i,r+a,o+s)||Ki.create(t).contain(l[0],l[1])||hh(r,o,r+a,o,i)||hh(r,o,r,o+s,i)||hh(r+a,o,r+a,o+s,i)||hh(r,o+s,r+a,o+s,i))||void 0}}};function tz(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return ez(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&uz(e)}};function uz(t){return new Ki(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new BA(e.getZr())).on("brush",V(this._onBrush,this)).mount()},n.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},n.prototype.updateTransform=function(t,e,n,i){rz(e),this._updateController(t,e,n,i)},n.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},n.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},n.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},n.prototype.dispose=function(){this._brushController.dispose()},n.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:S(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:S(n),$from:e})},n.type="brush",n}(Df),cz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.areas=[],e.brushOption={},e}return e(n,t),n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&JE(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},n.prototype.setAreas=function(t){t&&(this.areas=R(t,(function(t){return pz(this.option,t)}),this))},n.prototype.setBrushOption=function(t){this.brushOption=pz(this.option,t),this.brushType=this.brushOption.brushType},n.type="brush",n.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],n.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},n}(jc);function pz(t,e){return M({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Uh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var dz=["rect","polygon","lineX","lineY","keep","clear"],fz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,O(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},n.prototype.updateView=function(t,e,n){this.render(t,e,n)},n.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return O(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},n.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},n.getDefaultOption=function(t){return{show:!0,type:dz.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},n}(FN);var gz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:"box",ignoreSize:!0},e}return e(n,t),n.type="title",n.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},n}(jc),yz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=et(t.get("textBaseline"),t.get("textVerticalAlign")),l=new ds({style:wh(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new ds({style:wh(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",(function(){Nc(p,"_"+t.get("target"))})),d&&c.on("click",(function(){Nc(d,"_"+t.get("subtarget"))})),Ts(l).eventData=Ts(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Gc(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new hs({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},n.type="title",n}(Df);var vz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode="box",e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},n.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},n.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},n.prototype.getCurrentIndex=function(){return this.option.currentIndex},n.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},n.prototype.setPlayState=function(t){this.option.autoPlay=!!t},n.prototype.getPlayState=function(){return!!this.option.autoPlay},n.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],O(n,(function(e,n){var i,o=no($r(e),"");X(e)?(i=S(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new hm([{name:"value",type:o}],this)).initData(t,r)},n.prototype.getData=function(){return this._data},n.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},n.type="timeline",n.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},n}(jc),mz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="timeline.slider",n.defaultOption=Zh(vz.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),n}(vz);L(mz,bd.prototype);var xz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="timeline",n}(Df),_z=function(t){function n(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return e(n,t),n.prototype.getLabelModel=function(){return this.model.getModel("label")},n.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},n}(i_),bz=Math.PI,wz=ao(),Sz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.api=e},n.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return of("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},O(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},n.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},n.prototype.dispose=function(){this._clearTimer()},n.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Gc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:bz/2},p="vertical"===s?l.height:l.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*bz/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(i=[0,0],S+=v),b&&(r=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(_&&(i=[M-g,0],M-=v),b&&(r=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:c[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:y}},n.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;Ti(o,o,[-a,-s]),Ci(o,o,-bz/2),Ti(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),h=y(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=l[0][0];var d,f=t.labelPosOpt;null==f||W(f)?(v(c,u,l,1,d="+"===f?0:1),v(p,h,l,1,1-d)):(v(c,u,l,1,d=f>=0?0:1),p[1]=c[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,g(n),g(i)},n.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pm({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Zm({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Rm}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new _z("value",r,t.axisExtent,i);return a.model=e,a},n.prototype._createGroup=function(t){var e=this[t]=new gr;return this.group.add(e),e},n.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new fu({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:T({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new fu({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:C({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},n.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],O(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c={x:a,y:0,onclick:V(r._changeTimeline,r,t.value)},p=Mz(s,l,e,c);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),hl(p);var d=Ts(p);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=i):d.dataIndex=d.dataModel=null,r._tickSymbols.push(p)}))},n.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],O(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),p=new ds({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:V(r._changeTimeline,r,a),silent:!1,style:wh(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=wh(u),p.ensureState("progress").style=wh(h),e.add(p),hl(p),wz(p).dataIndex=a,r._tickLabels.push(p)}))}},n.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h=rr(et(i.get(["controlStyle",n+"BtnSize"]),r),r),c=function(t,e,n,i){var r=i.style,o=uh(t.get(["controlStyle",e]),i||{},new Ki(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});c.ensureState("emphasis").style=s,e.add(c),hl(c)}}h(t.nextBtnPosition,"next",V(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",V(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",V(this._handlePlayClick,this,!l),!0)},n.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=V(s._handlePointerDrag,s),t.ondragend=V(s._handlePointerDragend,s),Iz(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Iz(t,s._progressLine,o,n,i)}};this._currentPointer=Mz(a,a,this._mainGroup,{},this._currentPointer,l)},n.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},n.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},n.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},n.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=Ir(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var Nz={min:F(Rz,"min"),max:F(Rz,"max"),average:F(Rz,"average"),median:F(Rz,"median")};function Ez(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!G(e.coord)&&i){var r=i.dimensions,o=zz(e,n,i,t);if((e=S(e)).type&&Nz[e.type]&&o.baseAxis&&o.valueAxis){var a=A(r,o.baseAxis.dim),s=A(r,o.valueAxis.dim),l=Nz[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)Nz[u[h]]&&(u[h]=Fz(n,n.mapDimension(r[h]),u[h]));e.coord=u}}return e}function zz(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Bz(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)}function Vz(t,e){return t?function(t,n,i,r){return Td(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Td(t.value,e[r])}}function Fz(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var Gz=ao(),Hz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=ht()},n.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){Gz(t).keep=!1})),e.eachSeries((function(t){var r=Pz.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!Gz(t).keep&&i.group.remove(t.group)}))},n.prototype.markKeep=function(t){Gz(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;O(t,(function(t){var i=Pz.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?Qs(t):tl(t))}))}))},n.type="marker",n}(Df);function Wz(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Sr(a.get("x"),n.getWidth()),l=Sr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var Uz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Pz.getMarkerModelFromSeries(t,"markPoint");e&&(Wz(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new sw),u=function(t,e,n){var i;i=t?R(t&&t.dimensions,(function(t){return T(T({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new hm(i,n),o=R(n.get("data"),F(Ez,e));t&&(o=E(o,F(Bz,t)));var a=Vz(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),Wz(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(H(i)||H(r)||H(o)||H(s)){var h=e.getRawValue(t),c=e.getDataParams(t);H(i)&&(i=i(h,c)),H(r)&&(r=r(h,c)),H(o)&&(o=o(h,c)),H(s)&&(s=s(h,c))}var p=n.getModel("itemStyle").getItemStyle(),d=Mg(a,"color");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Ts(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markPoint",n}(Hz);var Yz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type="markLine",n.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},n}(Pz),Xz=ao(),Zz=function(t,e,n,i){var r,o=t.getData();if(G(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=tt(i.yAxis,i.xAxis);else{var u=zz(i,o,e,t);s=u.valueAxis,l=Fz(o,mm(o,u.valueDataDim),a)}var h="x"===s.dim?0:1,c=1-h,p=S(i),d={coord:[]};p.type=null,p.coord=[],p.coord[c]=-1/0,d.coord[c]=1/0;var f=n.get("precision");f>=0&&Y(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[h]=d.coord[h]=l,r=[p,d,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Ez(t,r[0]),Ez(t,r[1]),T({},r[2])];return g[2].type=g[2].type||null,M(g[2],g[0]),M(g[2],g[1]),g};function jz(t){return!isNaN(t)&&!isFinite(t)}function qz(t,e,n,i){var r=1-t,o=i.dimensions[t];return jz(e[r])&&jz(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function Kz(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(qz(1,n,i,t)||qz(0,n,i,t)))return!0}return Bz(t,e[0])&&Bz(t,e[1])}function $z(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Sr(s.get("x"),r.getWidth()),u=Sr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(bw(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");h=a.dimensions;jz(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):jz(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var Jz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Pz.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=Xz(e).from,o=Xz(e).to;r.each((function(e){$z(r,e,!0,t,n),$z(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new wD);this.group.add(l.group);var u=function(t,e,n){var i;i=t?R(t&&t.dimensions,(function(t){return T(T({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new hm(i,n),o=new hm(i,n),a=new hm([],n),s=R(n.get("data"),F(Zz,e,t,n));t&&(s=E(s,F(Kz,t)));var l=Vz(!!t,i);return r.initData(R(s,(function(t){return t[0]})),null,l),o.initData(R(s,(function(t){return t[1]})),null,l),a.initData(R(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,p=u.line;Xz(e).from=h,Xz(e).to=c,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);$z(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Mg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:et(o.get("symbolOffset",!0),y[r?0:1]),symbolRotate:et(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:et(o.get("symbolSize"),f[r?0:1]),symbol:et(o.get("symbol",!0),d[r?0:1]),style:s})}G(d)||(d=[d,d]),G(f)||(f=[f,f]),G(g)||(g=[g,g]),G(y)||(y=[y,y]),u.from.each((function(t){v(h,t,!0),v(c,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),u.line.eachItemGraphicEl((function(t,n){t.traverse((function(t){Ts(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markLine",n}(Hz);var Qz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type="markArea",n.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},n}(Pz),tB=ao(),eB=function(t,e,n,i){var r=Ez(t,i[0]),o=Ez(t,i[1]),a=r.coord,s=o.coord;a[0]=tt(a[0],-1/0),a[1]=tt(a[1],-1/0),s[0]=tt(s[0],1/0),s[1]=tt(s[1],1/0);var l=I([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function nB(t){return!isNaN(t)&&!isFinite(t)}function iB(t,e,n,i){var r=1-t;return nB(e[r])&&nB(n[r])}function rB(t,e){var n=e.coord[0],i=e.coord[1];return!!(bw(t,"cartesian2d")&&n&&i&&(iB(1,n,i)||iB(0,n,i)))||(Bz(t,{coord:n,x:e.x0,y:e.y0})||Bz(t,{coord:i,x:e.x1,y:e.y1}))}function oB(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Sr(s.get(n[0]),r.getWidth()),u=Sr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var h=[d=t.get(n[0],e),f=t.get(n[1],e)];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if(bw(a,"cartesian2d")){var c=a.getAxis("x"),p=a.getAxis("y"),d=t.get(n[0],e),f=t.get(n[1],e);nB(d)?o[0]=c.toGlobalCoord(c.getExtent()["x0"===n[0]?0:1]):nB(f)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var aB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Pz.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=R(aB,(function(r){return oB(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new gr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=R(t&&t.dimensions,(function(t){var n=e.getData();return T(T({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=R(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new hm(r,n)}else i=new hm(r=[{name:"value",type:"float"}],n);var s=R(n.get("data"),F(eB,e,t,n));t&&(s=E(s,F(rB,t)));var l=t?function(t,e,n,i){return Td(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return Td(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=R(aB,(function(n){return oB(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Ir(c),Ir(p);var d=!!(l[0]>c[1]||l[1]p[1]||h[1]=0},n.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},n}(jc),uB=F,hB=O,cB=gr,pB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new cB),this.group.add(this._selectorGroup=new cB),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=Gc(l,u,h),p=this.layoutInner(t,r,c,i,a,s),d=Gc(C({width:p.width,height:p.height},l),u,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YN(p,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=ht(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),hB(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new cB;return c.newline=!0,void s.add(c)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style");this._createItem(p,a,o,r,e,t,f,y,g,u).on("click",uB(dB,a,null,i,h)).on("mouseover",uB(gB,p.name,null,i,h)).on("mouseout",uB(yB,p.name,null,i,h)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),p=s.getItemVisual(c,"style"),d=s.getItemVisual(c,"legendIcon"),f=fn(p.fill);f&&0===f[3]&&(f[3]=.2,p=T(T({},p),{fill:Sn(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},p,d,u).on("click",uB(dB,null,a,i,h)).on("mouseover",uB(gB,null,a,i,h)).on("mouseout",uB(yB,null,a,i,h)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();hB(t,(function(t){var i=t.type,r=new ds({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),_h(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),hl(r)}))},n.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var h=t.visualDrawType,c=r.get("itemWidth"),p=r.get("itemHeight"),d=r.isSelected(e),f=i.get("symbolRotate"),g=i.get("symbolKeepAspect"),y=i.get("icon"),v=function(t,e,n,i,r,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),hB(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=i.decal,"inherit"===s.fill&&(s.fill=i[r]);"inherit"===s.stroke&&(s.stroke=i[l]);"inherit"===s.opacity&&(s.opacity=("fill"===r?i:n).opacity);a(s,i);var u=e.getModel("lineStyle"),h=u.getLineStyle();if(a(h,n),"auto"===s.fill&&(s.fill=i.fill),"auto"===s.stroke&&(s.stroke=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),!o){var c=e.get("inactiveBorderWidth"),p=s[l];s.lineWidth="auto"===c?i.lineWidth>0&&p?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),h.stroke=u.get("inactiveColor"),h.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:h}}(l=y||l||"roundRect",i,a,s,h,d),m=new cB,x=i.getModel("textStyle");if(!H(t.getLegendIcon)||y&&"inherit"!==y){var _="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;m.add(function(t){var e=t.icon||"roundRect",n=Fg(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:c,itemHeight:p,icon:l,iconRotate:_,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}else m.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));var b="left"===o?c+5:-5,w=o,S=r.get("formatter"),M=e;W(S)&&S?M=S.replace("{name}",null!=e?e:""):H(S)&&(M=S(e));var I=i.get("inactiveColor");m.add(new ds({style:wh(x,{text:M,x:b,y:p/2,fill:d?x.getTextColor():I,align:w,verticalAlign:"middle"})}));var T=new hs({shape:m.getBoundingRect(),invisible:!0}),C=i.getModel("tooltip");return C.get("show")&&dh({el:T,componentModel:r,itemName:e,itemTooltipOption:C.option}),m.add(T),m.eachChild((function(t){t.silent=!0})),T.silent=!u,this.getContentGroup().add(m),hl(m),m.__legendDataIndex=n,m},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Fc(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Fc("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(Df);function dB(t,e,n,i){yB(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),gB(t,e,n,i)}function fB(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=et(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v);y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=d?n[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=m[o],u.setClipPath(new hs({shape:x})),u.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Nu(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;O(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",W(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=SB[r],a=MB[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(f=s-1,g=d,y=d,v=null;f>=-1;--f)(v=m(l[f]))&&x(y,v.s)||!(g.i=e&&t.s<=e+i}},n.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},n.type="legend.scroll",n}(pB);function TB(t){zv(xB),t.registerComponentModel(_B),t.registerComponentView(IB),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var CB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="dataZoom.inside",n.defaultOption=Zh(DN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),n}(DN),DB=ao();function AB(t,e,n){DB(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function kB(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function LB(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function PB(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function OB(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=DB(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ht());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){O(TN(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:F(PB,e),dispatchAction:F(LB,t),dataZoomInfoMap:null,controller:null},i=n.controller=new HM(t.getZr());return O(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=ht())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Gf(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else kB(i,t)}))}))}var RB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return e(n,t),n.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),AB(i,e,{pan:V(NB.pan,this),zoom:V(NB.zoom,this),scrollMove:V(NB.scrollMove,this)}))},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){!function(t,e){for(var n=DB(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return gA(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:EB((function(t,e,n,i,r,o){var a=zB[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:EB((function(t,e,n,i,r,o){return zB[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function EB(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return gA(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var zB={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function BB(t){BN(t),t.registerComponentModel(CB),t.registerComponentView(RB),OB(t)}var VB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="dataZoom.slider",n.layoutMode="box",n.defaultOption=Zh(DN.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),n}(DN),FB=hs,GB=["line","bar","candlestick","scatter"],HB={easing:"cubicOut",duration:100,delay:0},WB=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._displayables={},e}return e(n,t),n.prototype.init=function(t,e){this.api=e,this._onBrush=V(this._onBrush,this),this._onBrushEnd=V(this._onBrushEnd,this)},n.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Gf(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){Hf(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},n.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new gr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},n.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o="horizontal"===this._orient?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Yc(t.option);O(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Gc(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},n.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==n||r?"horizontal"===n&&r?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},n.prototype._getViewExtent=function(){return[0,this._size[0]]},n.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new FB({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new FB({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:V(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},n.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var l=r.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var h,c=[0,e[1]],p=[0,e[0]],d=[[e[0],0],[0,0]],f=[],g=p[1]/(r.count()-1),y=0,v=Math.round(r.count()/e[0]);r.each([o],(function(t,e){if(v>0&&e%v)y+=g;else{var n=null==t||isNaN(t)||""===t,i=n?0:wr(t,l,c,!0);n&&!h&&e?(d.push([d[d.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&h&&(d.push([y,0]),f.push([y,0])),d.push([y,i]),f.push([y,i]),y+=g,h=n}})),a=this._shadowPolygonPts=d,s=this._shadowPolylinePts=f}this._shadowData=r,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var m=this.dataZoomModel,x=0;x<3;x++){var _=b(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function b(t){var e=m.getModel(t?"selectedDataBackground":"dataBackground"),n=new gr,i=new uu({shape:{points:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new cu({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},n.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){O(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&A(GB,t.get("type"))<0)){var a,s=i.getComponent(MN(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},n.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new FB({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new FB({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),O([0,1],(function(e){var o=a.get("handleIcon");!zg[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Fg(o,-1,0,2,2,null,!0);s.attr({cursor:UB(this._orient),draggable:!0,drift:V(this._onDragMove,this,e),ondragend:V(this._onDragEnd,this),onmouseover:V(this._showDataInfo,this,!0),onmouseout:V(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Sr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),hl(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle");t.add(i[e]=new ds({silent:!0,invisible:!0,style:wh(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))}),this);var c=h;if(u){var p=Sr(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new hs({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=Fg(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new hs({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:UB(this._orient),drift:V(this._onDragMove,this,"all"),ondragstart:V(this._showDataInfo,this,!0),ondragend:V(this._onDragEnd,this),onmouseover:V(this._showDataInfo,this,!0),onmouseout:V(this._showDataInfo,this,!1)})},n.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[wr(t[0],[0,100],e,!0),wr(t[1],[0,100],e,!0)]},n.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];gA(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?wr(o.minSpan,a,r,!0):null,null!=o.maxSpan?wr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Ir([wr(i[0],r,a,!0),wr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},n.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Ir(n.slice()),r=this._size;O([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Gi(e,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=Ir([wr(n.x,i,r,!0),wr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(t){this._brushing&&(ie(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},n.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new FB({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},n.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?HB:null,start:e[0],end:e[1]})},n.prototype._findCoordRect=function(){var t,e=TN(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},n.type="dataZoom.slider",n}(LN);function UB(t){return"vertical"===t?"ns-resize":"ew-resize"}function YB(t){t.registerComponentModel(VB),t.registerComponentView(WB),BN(t)}var XB=function(t,e,n){var i=S((ZB[t]||{})[e]);return n&&G(i)?i[i.length-1]:i},ZB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},jB=cC.mapVisual,qB=cC.eachVisual,KB=G,$B=O,JB=Ir,QB=wr,tV=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&JE(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},n.prototype.resetVisual=function(t){var e=this.stateList;t=V(t,this),this.controllerVisuals=$E(this.option.controller,e,t),this.targetVisuals=$E(this.option.target,e,t)},n.prototype.getItemSymbol=function(){return null},n.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=jr(t),e},n.prototype.eachTargetSeries=function(t,e){O(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},n.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},n.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],G(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return W(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):H(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},n.prototype.resetExtent=function(){var t=this.option,e=JB([t.min,t.max]);this._dataExtent=e},n.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},n.prototype.getExtent=function(){return this._dataExtent.slice()},n.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});M(i,n),M(r,n);var o=this.isCategory();function a(n){KB(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},$B(i,(function(t,e){if(cC.isValidType(e)){var n=XB(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";$B(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&S(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&S(n)||(o?s[0]:[s[0],s[0]])),l.symbol=jB(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var h=-1/0;qB(u,(function(t){t>h&&(h=t)})),l.symbolSize=jB(u,(function(t){return QB(t,[0,h],[0,s[0]],!0)}))}}),this)}.call(this,r)},n.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},n.prototype.isCategory=function(){return!!this.option.categories},n.prototype.setSelected=function(t){},n.prototype.getSelected=function(){return null},n.prototype.getValueState=function(t){return null},n.prototype.getVisualMeta=function(t){return null},n.type="visualMap",n.dependencies=["series"],n.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},n}(jc),eV=[20,140],nV=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},n.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=eV[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=eV[1])},n.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):G(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},n.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),O(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},n.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},n.prototype.getSelected=function(){var t=this.getExtent(),e=Ir((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},n.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},n.prototype.getVisualMeta=function(t){var e=iV(this,"outOfRange",this.getExtent()),n=iV(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},n.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},n.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new gr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},n.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();uV([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var h=lV(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var p=ih(n.handleLabelPoints[l],nh(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},n.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=lV(t,o,s,!0),d=a[0]-c/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=ih(l.indicatorLabelPoint,nh(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:h}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Sr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||fV(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function xV(t,e,n,i){for(var r=e.targetVisuals[i],o=cC.prepareVisualTypes(r),a={color:Mg(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(yV,vV),O(mV,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(bV))}function IV(t){t.registerComponentModel(nV),t.registerComponentView(pV),MV(t)}var TV=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._pieceList=[],e}return e(n,t),n.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],CV[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=S(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=R(this._pieceList,(function(t){return t=S(t),"inRange"!==e&&(t.visual=null),t})))}))},n.prototype.completeVisualOption=function(){var e=this.option,n={},i=cC.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}O(e.pieces,(function(t){O(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),O(n,(function(t,n){var i=!1;O(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&O(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=XB(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},n.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,O(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;O(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},n.prototype.getItemSymbol=function(){return this.get("itemSymbol")},n.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},n.prototype.getPieceList=function(){return this._pieceList},n.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},n.prototype.setSelected=function(t){this.option.selected=S(t)},n.prototype.getValueState=function(t){var e=cC.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},n.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){cC.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},n.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},n.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return O(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},n.type="visualMap.piecewise",n.defaultOption=Zh(tV.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),n}(tV),CV={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function DV(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var AV=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=tt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),O(l.viewPieceList,(function(i){var l=i.piece,u=new gr;u.onclick=V(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var p=this.visualMapModel.getValueState(c);u.add(new ds({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,h,a),Fc(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},n.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:sV(i.findTargetDataIndices(e),i)})}},n.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return aV(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},n.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new gr,a=this.visualMapModel.textStyleModel;o.add(new ds({style:wh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},n.prototype._getViewData=function(){var t=this.visualMapModel,e=R(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},n.prototype._createItemSymbol=function(t,e,n){t.add(Fg(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},n.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=S(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,O(i,(function(t,e){i[e]=e===r}))):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},n.type="visualMap.piecewise",n}(rV);function kV(t){t.registerComponentModel(TV),t.registerComponentView(AV),MV(t)}var LV={label:{enabled:!0},decal:{show:!1}},PV=ao(),OV={};function RV(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=S(LV);M(i.label,t.getLocaleModel().get("aria"),!1),M(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=ht();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),PV(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(H(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=gp(e.ecModel,e.name,OV,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=PV(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",h=gp(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))}))}}function u(t,e){var n=t?T(T({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=C(o.option,i),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,h=o.get(["series","maxCount"])||10,c=Math.min(l,h);if(l<1)return;var p=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();if(p){var d=o.get(["general","withTitle"]);s=r(d,{title:p})}else s=o.get(["general","withoutTitle"]);var f=[],g=l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=r(g,{seriesCount:l}),t.eachSeries((function(e,n){if(n1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,t.getLocaleModel().get(["series","typeNames"])[x]||"自定义图")});var s=e.getData();if(s.count()>u)i+=r(o.get(["data","partialData"]),{displayCnt:u});else i+=o.get(["data","allData"]);for(var h=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),d=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zV=function(){function t(t){if(null==(this._condVal=W(t)?new RegExp(t):J(t)?t:null)){var e="";0,Xr(e)}}return t.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):!!Y(e)&&this._condVal.test(t+"")},t}(),BV=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),VV=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function f(t,n,i,r){JV(t,i)&&JV(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nM:C2&&l.push(e),l}function tF(t,e,n,i,r,o,a,s,l,u){if(JV(t,n)&&JV(e,i)&&JV(r,a)&&JV(o,s))l.push(a,s);else{var h=2/u,c=h*h,p=a-t,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=n-t,y=i-e,v=r-a,m=o-s,x=g*g+y*y,_=v*v+m*m;if(x=0&&_-w*w=0)l.push(a,s);else{var S=[],M=[];Fe(t,n,r,a,.5,S),Fe(e,i,o,s,.5,M),tF(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),tF(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function eF(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),c=eF([l,u],h?0:1,e),p=(h?s:u)/c.length,d=0;d1?null:new Gi(d*l+t,d*u+e)}function oF(t,e,n){var i=new Gi;Gi.sub(i,n,e),i.normalize();var r=new Gi;return Gi.sub(r,t,e),r.dot(i)}function aF(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function sF(t){var e=t.points,n=[],i=[];sa(e,n,i);var r=new Ki(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Gi,h=new Gi;return o>a?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;or,a=eF([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,p=0;p0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),M=Math.cos(w),I=0;for(x=0;x0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function SF(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=R(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return R(o,(function(o,a){return{cp:o,z:wF(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function MF(t){return hF(t.path,t.count)}function IF(t){return G(t[0])}function TF(t,e){for(var n=[],i=t.length,r=0;r=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var CF={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);IF(t)&&(s=t,l=e),IF(e)&&(s=e,l=t);for(var c=s?s===t:t.length>e.length,p=s?TF(l,s):TF(c?e:t,[c?t:e]),d=0,f=0;f1e4))for(var i=n.getIndices(),r=function(t){for(var e=t.dimensions,n=0;n0&&i.group.traverse((function(t){t instanceof Ja&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function zF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function BF(t){return G(t)?t.sort().join(","):t}function VF(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function FF(t,e){for(var n=0;n=0&&r.push({data:e.oldData[n],divide:VF(e.oldData[n]),dim:t.dimension})})),O(jr(t.to),(function(t){var e=FF(n.updatedSeries,t);if(e>=0){var i=n.updatedSeries[e].getData();o.push({data:i,divide:VF(i),dim:t.dimension})}})),r.length>0&&o.length>0&&EF(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=ht(),i=ht(),r=ht();return O(t.oldSeries,(function(e,n){var o=t.oldData[n],a=zF(e),s=BF(a);i.set(s,o),G(a)&&O(a,(function(t){r.set(t,{data:o,key:s})}))})),O(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=zF(t),a=BF(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:VF(s),data:s}],newSeries:[{divide:VF(e),data:e}]});else if(G(o)){var l=[];O(o,(function(t){var e=i.get(t);e&&l.push({divide:VF(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:VF(e)}]})}else{var u=r.get(o);if(u){var h=n.get(u.key);h||(h={oldSeries:[{data:u.data,divide:VF(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({data:e,divide:VF(e)})}}}})),n}(i,n);O(o.keys(),(function(t){var n=o.get(t);EF(n.oldSeries,n.newSeries,e)}))}O(n.updatedSeries,(function(t){t.__universalTransitionEnabled&&(t.__universalTransitionEnabled=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldData=[],u=0;uimg{display:block;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translateX(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb::after,.el-breadcrumb::before{display:table;content:""}.el-breadcrumb::after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:inline-flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group::after,.el-button-group::before{display:table;content:""}.el-button-group::after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, 0.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-calendar{--el-calendar-border:var(--el-table-border, 1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:var(--el-calendar-header-border-bottom)}.el-calendar__title{color:var(--el-text-color);align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:var(--el-text-color-regular);font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);vertical-align:top;transition:background-color var(--el-transition-duration-fast) ease}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:var(--el-calendar-cell-width)}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, 0.11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, 0.23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translateX(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px;color:#000}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translateX(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translateX(10px);opacity:0}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader-panel{display:flex;border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:var(--el-cascader-menu-text-color);border-right:var(--el-cascader-menu-border)}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;color:var(--el-cascader-color-empty)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;text-align:left;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-checkbox{margin-right:0}.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;vertical-align:middle;position:relative;font-size:var(--el-font-size-base);line-height:32px;outline:0}.el-cascader:not(.is-disabled):hover .el-input__wrapper{cursor:pointer;box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-cascader .el-input{display:flex;cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis;cursor:pointer}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{transition:transform var(--el-transition-duration);font-size:14px}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotateZ(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader.is-disabled .el-cascader__label{z-index:calc(var(--el-index-normal) + 1);color:var(--el-disabled-text-color)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader__dropdown{font-size:var(--el-cascader-menu-font-size);border-radius:var(--el-cascader-menu-radius)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill);border:var(--el-cascader-menu-border);box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__dropdown.el-popper .el-popper__arrow::before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent;border-bottom-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-cascader-tag-background)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-fill-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:var(--el-font-size-base);color:var(--el-cascader-menu-text-color);text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:var(--el-cascader-color-empty)}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 11px;padding:0;color:var(--el-cascader-menu-text-color);border:none;outline:0;box-sizing:border-box;background:0 0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input:-ms-input-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all);font-weight:700}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary)}.el-checkbox-button{position:relative;display:inline-block}.el-checkbox-button__inner{display:inline-block;line-height:1;font-weight:var(--el-checkbox-font-weight);white-space:nowrap;vertical-align:middle;cursor:pointer;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:var(--el-checkbox-button-checked-text-color);background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px;height:32px}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner::after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner::after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner::before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner::after{transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner::before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner::after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner::after{box-sizing:content-box;content:"";border:1px solid var(--el-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in 50ms;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner::before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner::after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{display:none}.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0{display:none}.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0{display:none}.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0{display:none}.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none}.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none}.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px rgba(0,0,0,.6);z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper::after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal;outline:0}.el-color-picker:hover:not(.is-disabled) .el-color-picker__trigger{border:1px solid var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:30px;width:30px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:rgba(255,255,255,.7)}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td .el-date-table-cell{height:30px;padding:3px 0;box-sizing:border-box}.el-date-table td .el-date-table-cell .el-date-table-cell__text{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translateX(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{margin-left:5px;margin-right:5px;background-color:var(--el-datepicker-inrange-bg-color);border-radius:15px}.el-date-table td.selected .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{font-size:80%;color:var(--el-datepicker-header-text-color)}.el-date-table td:focus{outline:0}.el-date-table th{padding:5px;color:var(--el-datepicker-header-text-color);font-weight:400;border-bottom:solid 1px var(--el-border-color-lighter)}.el-month-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#fff}.el-month-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range div{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range div:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#fff}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:0}.el-month-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-year-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-year-table td .cell{width:48px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto}.el-year-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:0}.el-year-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:192px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{font-size:12px;color:var(--el-text-color-secondary);position:absolute;left:0;width:100%;z-index:var(--el-index-normal);text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{padding:0;text-align:center}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list::after,.el-time-spinner__list::before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:var(--el-text-color-regular)}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow::before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent;border-bottom-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);position:relative;display:inline-block;text-align:left}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon{cursor:pointer}.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{height:inherit;font-size:14px;color:var(--el-text-color-placeholder);float:left}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:30px;line-height:30px;margin:0;padding:0;width:39%;text-align:center;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:transparent}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{flex:1;display:inline-flex;justify-content:center;align-items:center;height:100%;padding:0 5px;margin:0;font-size:14px;word-break:keep-all;color:var(--el-text-color-primary)}.el-date-editor .el-range__close-icon{font-size:14px;color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{display:inline-flex;align-items:center;padding:0 10px}.el-range-editor.is-active{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{line-height:40px;font-size:14px}.el-range-editor--large .el-range-input{height:38px;line-height:38px;font-size:14px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{line-height:24px;font-size:12px}.el-range-editor--small .el-range-input{height:22px;line-height:22px;font-size:12px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);line-height:30px}.el-picker-panel .el-time-panel{margin:5px 0;border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker-panel__body-wrapper::after,.el-picker-panel__body::after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);padding:4px 12px;text-align:right;background-color:var(--el-bg-color-overlay);position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:var(--el-datepicker-text-color);padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:var(--el-datepicker-icon-color);border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;padding-top:6px;background-color:var(--el-bg-color-overlay);overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px var(--el-border-color-lighter)}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:var(--el-text-color-regular)}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{outline:0;color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:var(--el-datepicker-icon-color)}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid var(--el-datepicker-border-color)}.el-time-panel{border-radius:2px;position:relative;width:180px;left:0;z-index:var(--el-index-top);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content::after,.el-time-panel__content::before{content:"";top:50%;position:absolute;margin-top:-16px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content::after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content::before{padding-left:50%;margin-right:12%;margin-left:12%;border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light)}.el-time-panel__content.has-seconds::after{left:66.6666666667%}.el-time-panel__content.has-seconds::before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:var(--el-text-color-primary)}.el-time-panel__btn.confirm{font-weight:800;color:var(--el-timepicker-active-color,var(--el-color-primary))}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary)}.el-descriptions__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;text-align:left;font-weight:400;line-height:23px;font-size:14px}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{font-weight:700;color:var(--el-text-color-regular);background:var(--el-descriptions-item-bordered-label-background)}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:0.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{100%{opacity:0}}@keyframes v-modal-out{100%{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}100%{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translateX(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl{transform:translate(0,0)}.el-drawer .ltr{transform:translate(0,0)}.el-drawer .ttb{transform:translate(0,0)}.el-drawer .btt{transform:translate(0,0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translateX(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translateX(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow::before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button::before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button::before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translateX(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-input-number{position:relative;display:inline-flex;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);transform:translate3d(0,0,0);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{100%{transform:rotate(360deg)}}@keyframes loading-rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}100%{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-6px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box::after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status::before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}100%{transform:translate3d(0,0,0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,-20px,0);opacity:0}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translateX(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular)}.el-notification{display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translateX(100%)}.el-notification-fade-enter-from.left{left:0;transform:translateX(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select .el-input{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:0}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager li.is-disabled,.el-pager li:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin-top:8px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translate(0,-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 50%,rgba(0,0,0,.1) 50%,rgba(0,0,0,.1) 75%,transparent 75%,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{-webkit-animation:striped-flow 3s linear infinite;animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}100%{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}100%{left:100%}}@keyframes indeterminate{0%{left:-100%}100%{left:100%}}@-webkit-keyframes striped-flow{0%{background-position:-100%}100%{background-position:100%}}@keyframes striped-flow{0%{background-position:-100%}100%{background-position:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner::after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner::after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner::after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner::after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary)}.el-rate{display:inline-flex;align-items:center;height:32px}.el-rate:active,.el-rate:focus{outline:0}.el-rate__item{cursor:pointer;display:inline-block;position:relative;font-size:0;vertical-align:middle;color:var(--el-rate-void-color);line-height:normal}.el-rate .el-rate__icon{position:relative;display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{position:absolute;left:0;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;color:var(--el-rate-fill-color)}.el-rate__text{font-size:var(--el-rate-font-size);vertical-align:middle;color:var(--el-rate-text-color)}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate--small .el-rate__icon{font-size:14px}.el-rate.is-disabled .el-rate__item{cursor:auto;color:var(--el-rate-disabled-void-color)}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px}.el-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-result-padding)}.el-result__icon svg{width:var(--el-result-icon-font-size);height:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{margin:0;font-size:var(--el-result-title-font-size);color:var(--el-text-color-primary);line-height:1.3}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);line-height:1.3}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:0.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:0.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity 340ms ease-out}.el-scrollbar-fade-leave-active{transition:opacity 120ms ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled{color:var(--el-text-color-disabled)}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled::after{background-color:var(--el-text-color-disabled)}.el-select-dropdown__option-item:hover:not(.hover){background-color:transparent}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-disabled.is-selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;margin:6px 0!important;padding:0!important;box-sizing:border-box}.el-select-dropdown__option-item{font-size:var(--el-select-font-size);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__option-item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__option-item.is-disabled:hover{background-color:var(--el-bg-color)}.el-select-dropdown__option-item.is-selected{background-color:var(--el-fill-color-light);font-weight:700}.el-select-dropdown__option-item.is-selected:not(.is-multiple){color:var(--el-color-primary)}.el-select-dropdown__option-item.hover{background-color:var(--el-fill-color-light)!important}.el-select-dropdown__option-item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon{position:absolute;right:20px;top:0;height:inherit;font-size:12px}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon svg{height:inherit;vertical-align:middle}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type)::after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-v2{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select-v2{display:inline-block;position:relative;vertical-align:middle;font-size:14px}.el-select-v2__wrapper{display:flex;align-items:center;flex-wrap:wrap;position:relative;box-sizing:border-box;cursor:pointer;padding:1px 30px 1px 0;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration)}.el-select-v2__wrapper:hover{border-color:var(--el-text-color-placeholder)}.el-select-v2__wrapper.is-filterable{cursor:text}.el-select-v2__wrapper.is-focused{border-color:var(--el-color-primary)}.el-select-v2__wrapper.is-hovering:not(.is-focused){border-color:var(--el-border-color-hover)}.el-select-v2__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled:hover{border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled.is-focus{border-color:var(--el-input-focus-border-color)}.el-select-v2__wrapper.is-disabled .is-transparent{opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select-v2__wrapper.is-disabled .el-select-v2__caret{cursor:not-allowed}.el-select-v2__wrapper.is-disabled .el-select-v2__combobox-input{cursor:not-allowed}.el-select-v2__wrapper .el-select-v2__input-wrapper{box-sizing:border-box;position:relative;-webkit-margin-start:12px;margin-inline-start:12px;max-width:100%;overflow:hidden}.el-select-v2__wrapper,.el-select-v2__wrapper .el-select-v2__input-wrapper{line-height:32px}.el-select-v2__wrapper .el-select-v2__input-wrapper input{--el-input-inner-height:calc(var(--el-component-size, 32px) - 8px);height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);min-width:4px;width:100%;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;margin:2px 0;outline:0;padding:0}.el-select-v2 .el-select-v2__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-v2__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:14px}.el-select-v2__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select-v2__popper.el-popper .el-popper__arrow::before{border:1px solid var(--el-border-color-light)}.el-select-v2__popper.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent;border-left-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent;border-right-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent;border-bottom-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent;border-top-color:transparent}.el-select-v2--large .el-select-v2__wrapper .el-select-v2__combobox-input{height:32px}.el-select-v2--large .el-select-v2__caret{height:40px}.el-select-v2--large .el-select-v2__suffix{height:40px}.el-select-v2--large .el-select-v2__placeholder{font-size:14px;line-height:40px}.el-select-v2--small .el-select-v2__wrapper .el-select-v2__combobox-input{height:16px}.el-select-v2--small .el-select-v2__caret{height:24px}.el-select-v2--small .el-select-v2__suffix{height:24px}.el-select-v2--small .el-select-v2__placeholder{font-size:12px;line-height:24px}.el-select-v2 .el-select-v2__selection>span{display:inline-block}.el-select-v2:hover .el-select-v2__combobox-input{border-color:var(--el-select-border-color-hover)}.el-select-v2 .el-select__selection-text{text-overflow:ellipsis;display:inline-block;overflow-x:hidden;vertical-align:bottom}.el-select-v2 .el-select-v2__combobox-input{padding-right:35px;display:block;color:var(--el-text-color-regular)}.el-select-v2 .el-select-v2__combobox-input:focus{border-color:var(--el-select-input-focus-border-color)}.el-select-v2__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px}.el-select-v2__input.is-small{height:14px}.el-select-v2__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select-v2__close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__suffix{display:inline-flex;position:absolute;right:12px;height:32px;top:50%;transform:translateY(-50%);color:var(--el-input-icon-color,var(--el-text-color-placeholder))}.el-select-v2__suffix .el-input__icon{height:inherit}.el-select-v2__suffix .el-input__icon:not(:first-child){margin-left:8px}.el-select-v2__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotateZ(180deg);cursor:pointer}.el-select-v2__caret.is-reverse{transform:rotateZ(0)}.el-select-v2__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotateZ(180deg);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select-v2__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__caret.el-icon{height:inherit}.el-select-v2__caret.el-icon svg{vertical-align:middle}.el-select-v2__selection{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;width:100%}.el-select-v2__input-calculator{left:0;position:absolute;top:0;visibility:hidden;white-space:pre;z-index:999}.el-select-v2__selected-item{line-height:inherit;height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-wrap:wrap}.el-select-v2__placeholder{position:absolute;top:50%;transform:translateY(-50%);-webkit-margin-start:12px;margin-inline-start:12px;width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color,var(--el-text-color-regular))}.el-select-v2__placeholder.is-transparent{color:var(--el-text-color-placeholder)}.el-select-v2 .el-select-v2__selection .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:var(--el-fill-color)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;color:var(--el-color-white)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close::before{display:block;transform:translate(0,.5px)}.el-select-v2.el-select-v2--small .el-select-v2__selection .el-tag{margin:1px 0 1px 6px;height:18px}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled::after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected::after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow::before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotateZ(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotateZ(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotateZ(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner{cursor:not-allowed}.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__tags .el-tag:last-child{margin-right:0}.el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__tags .el-tag .el-icon-close::before{display:block;transform:translate(0,.5px)}.el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__tags.is-disabled{cursor:not-allowed}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__collapse-tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__collapse-tags .el-tag:last-child{margin-right:0}.el-select__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__collapse-tags .el-tag .el-icon-close::before{display:block;transform:translate(0,.5px)}.el-select__collapse-tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}100%{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}100%{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translateX(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translateX(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translateX(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px;white-space:pre}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{100%{transform:rotate(360deg)}}@keyframes rotate{100%{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:var(--el-text-color-primary);border-color:var(--el-text-color-primary)}.el-step__head.is-wait{color:var(--el-text-color-placeholder);border-color:var(--el-text-color-placeholder)}.el-step__head.is-success{color:var(--el-color-success);border-color:var(--el-color-success)}.el-step__head.is-error{color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-step__head.is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:var(--el-bg-color);transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:var(--el-text-color-placeholder)}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:var(--el-text-color-primary)}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head{text-align:center}.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow::after,.el-step.is-simple .el-step__arrow::before{content:"";display:inline-block;position:absolute;height:15px;width:1px;background:var(--el-text-color-placeholder)}.el-step.is-simple .el-step__arrow::before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow::after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:var(--el-fill-color-light)}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 calc(16px + 2px)}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 calc(16px + 2px) 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 calc(20px + 2px)}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 calc(20px + 2px) 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 calc(12px + 2px)}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 calc(12px + 2px) 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, 0.15)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:14px;color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper::before{left:0;bottom:0;width:100%;height:1px}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:-webkit-sticky;position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table thead{color:var(--el-table-header-text-color);font-weight:500}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:14px}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div::before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table__footer-wrapper{border-top:var(--el-table-border)}.el-table--border .el-table__inner-wrapper::after,.el-table--border::after,.el-table--border::before,.el-table__inner-wrapper::before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:3}.el-table--border .el-table__inner-wrapper::after{left:0;top:0;width:100%;height:1px}.el-table--border::before{top:-1px;left:0;width:1px;height:100%}.el-table--border::after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:var(--el-bg-color)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column::before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column::before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column::before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column::before{right:-10px;box-shadow:none}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{position:-webkit-sticky!important;position:sticky!important;z-index:2;background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__footer-wrapper,.el-table__header-wrapper{overflow:hidden}.el-table__footer-wrapper tbody td.el-table__cell,.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column::before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column::before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column::before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column::before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column::before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column::before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column::before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column::before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:2}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:10}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper::after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-fill-color-blank);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, 0.15)}.el-table-v2{font-size:14px}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0;box-shadow:2px 0 4px 0 rgba(0,0,0,.06)}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);right:0;box-shadow:-2px 0 4px 0 rgba(0,0,0,.06)}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{position:relative;overflow:hidden}.el-table-v2__footer{position:absolute;left:0;right:0;bottom:0;overflow:hidden}.el-table-v2__empty{position:absolute;left:0}.el-table-v2__overlay{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9999}.el-table-v2__header-row{display:flex;border-bottom:var(--el-table-border)}.el-table-v2__header-cell{display:flex;align-items:center;padding:0 8px;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);font-weight:700}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{transition:opacity,display var(--el-transition-duration);opacity:.6;display:none}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{border-bottom:var(--el-table-border);display:flex;align-items:center;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{height:100%;overflow:hidden;display:flex;align-items:center;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{margin:0 4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{overflow:hidden;align-items:stretch}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{word-break:break-all}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8,.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;overflow:hidden;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap::after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover{padding-left:13px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover{padding-right:13px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotateZ(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left::after,.el-tabs--left .el-tabs__nav-wrap.is-right::after,.el-tabs--right .el-tabs__nav-wrap.is-left::after,.el-tabs--right .el-tabs__nav-wrap.is-right::after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left::after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right::after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(-100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translateX(-100%)}to{opacity:1;transform-origin:0 0;transform:translateX(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translateX(0);opacity:1}100%{transform-origin:0 0;transform:translateX(-100%);opacity:0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary{--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--success{--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--danger{--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--error{--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular)}.el-text{align-self:center;margin:0;padding:0;font-size:var(--el-text-font-size);color:var(--el-text-color);word-break:break-all}.el-text.is-truncated{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);font-weight:700;cursor:pointer}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light)}.el-timeline{margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);background-color:var(--el-color-white);padding:var(--el-tooltip-v2-padding);border:1px solid var(--el-border-color)}.el-tooltip-v2__arrow{position:absolute;color:var(--el-color-white);width:var(--el-tooltip-v2-arrow-width);height:var(--el-tooltip-v2-arrow-height);pointer-events:none;left:var(--el-tooltip-v2-arrow-x);top:var(--el-tooltip-v2-arrow-y)}.el-tooltip-v2__arrow::before{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__arrow::after{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow::before{border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow::after{border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow::before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow::after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow::before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow::after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow::before{border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow::after{border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;background-color:var(--el-color-black);color:var(--el-color-white);border-color:transparent}.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px}.el-transfer{font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{overflow:hidden;background:var(--el-bg-color-overlay);display:inline-block;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width);max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:var(--el-transfer-panel-body-height);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:var(--el-transfer-panel-body-height);overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px;display:block!important}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:22px;line-height:var(--el-transfer-item-height)}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;padding:15px;box-sizing:border-box}.el-transfer-panel__filter .el-input__inner{height:var(--el-transfer-filter-height);width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:calc(var(--el-transfer-filter-height)/ 2)}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{display:flex;align-items:center;height:var(--el-transfer-panel-header-height);background:var(--el-transfer-panel-header-bg-color);margin:0;padding-left:15px;border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black)}.el-transfer-panel .el-transfer-panel__header .el-checkbox{position:relative;display:flex;width:100%;align-items:center}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:var(--el-text-color-primary);font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0);color:var(--el-text-color-secondary);font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:var(--el-transfer-panel-footer-height);background:var(--el-bg-color-overlay);margin:0;padding:0;border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius)}.el-transfer-panel .el-transfer-panel__footer::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:var(--el-text-color-regular)}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding:6px 15px 0;color:var(--el-text-color-secondary);text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner::after{height:6px;width:3px;left:4px}.el-tree{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree{position:relative;cursor:default;background:var(--el-fill-color-blank);color:var(--el-tree-text-color);font-size:var(--el-font-size-base)}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--el-text-color-secondary);font-size:var(--el-font-size-base)}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:var(--el-color-primary)}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{display:flex;align-items:center;height:26px;cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px;box-sizing:content-box}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:var(--el-tree-expand-icon-color);font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{margin-right:8px;font-size:var(--el-font-size-base);color:var(--el-tree-expand-icon-color)}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected::after{content:none}.el-tree-select__popper .el-select-dropdown__item{flex:1;background:0 0!important;padding-left:0;height:20px;line-height:20px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:inline-flex}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover::after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper:hover .el-virtual-scrollbar{opacity:1}.el-vl__wrapper.always-on .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity 340ms ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow::before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow::before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow::before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow::before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow::before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow::before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow::before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow::before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow::before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow::before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow::before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{font-weight:var(--el-statistic-title-font-weight);font-size:var(--el-statistic-title-font-size);color:var(--el-statistic-title-color);line-height:20px;margin-bottom:4px}.el-statistic__content{font-weight:var(--el-statistic-content-font-weight);font-size:var(--el-statistic-content-font-size);color:var(--el-statistic-content-color)}.el-statistic__value{display:inline-block}.el-statistic__prefix{margin-right:4px;display:inline-block}.el-statistic__suffix{margin-left:4px;display:inline-block} \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/element-plus/index.full.min.mjs b/code/WebApp/vanilla/lib/element-plus/index.full.min.mjs new file mode 100644 index 00000000..45fce7e3 --- /dev/null +++ b/code/WebApp/vanilla/lib/element-plus/index.full.min.mjs @@ -0,0 +1,78 @@ +/*! Element Plus v2.3.6 */import{getCurrentScope as Rk,onScopeDispose as hh,unref as l,readonly as ac,shallowRef as Pt,watchEffect as Yn,ref as M,watch as ue,getCurrentInstance as nt,onMounted as Ze,nextTick as Ee,computed as S,openBlock as _,createElementBlock as x,createElementVNode as z,warn as Pk,isVNode as Jt,Fragment as xe,Comment as lc,onBeforeUnmount as qt,isRef as Rn,inject as Oe,onUnmounted as Yr,h as Ne,Teleport as Ta,onBeforeMount as sc,provide as ut,defineComponent as G,renderSlot as le,normalizeClass as E,normalizeStyle as Ie,mergeProps as ot,useSlots as gn,createBlock as ne,Transition as ln,withCtx as Y,withDirectives as je,resolveDynamicComponent as rt,createCommentVNode as ee,createTextVNode as Ct,toDisplayString as me,createVNode as j,vShow as St,toRef as Kt,reactive as At,toRefs as dn,onUpdated as Xr,TransitionGroup as mh,useAttrs as Oa,withModifiers as Le,cloneVNode as xk,Text as gh,onDeactivated as Lk,renderList as ct,withKeys as mt,createSlots as er,normalizeProps as wo,toRaw as Ma,vModelCheckbox as Ds,vModelRadio as yh,resolveComponent as Ke,onBeforeUpdate as Dk,vModelText as ic,toHandlers as Bk,guardReactiveProps as uc,markRaw as _l,effectScope as Fk,triggerRef as $l,resolveDirective as kl,createApp as Vk,shallowReactive as zk,render as Aa}from"vue";const Hk='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Wk=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,bh=e=>Array.from(e.querySelectorAll(Hk)).filter(t=>Kk(t)&&Wk(t)),Kk=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Bs=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const r=document.createEvent(o);return r.initEvent(t,...n),e.dispatchEvent(r),e},wh=e=>!e.getAttribute("aria-owns"),Ch=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const r=o.querySelectorAll(n),a=Array.prototype.indexOf.call(r,e);return r[a+t]||null},Fs=e=>{!e||(e.focus(),!wh(e)&&e.click())},Gt=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)},Sh=e=>t=>t.pointerType==="mouse"?e(t):void 0;var jk=Object.defineProperty,Uk=Object.defineProperties,qk=Object.getOwnPropertyDescriptors,_h=Object.getOwnPropertySymbols,Gk=Object.prototype.hasOwnProperty,Yk=Object.prototype.propertyIsEnumerable,$h=(e,t,n)=>t in e?jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xk=(e,t)=>{for(var n in t||(t={}))Gk.call(t,n)&&$h(e,n,t[n]);if(_h)for(var n of _h(t))Yk.call(t,n)&&$h(e,n,t[n]);return e},Zk=(e,t)=>Uk(e,qk(t));function kh(e,t){var n;const o=Pt();return Yn(()=>{o.value=e()},Zk(Xk({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),ac(o)}var Eh;const pt=typeof window!="undefined",Jk=e=>typeof e!="undefined",Qk=e=>typeof e=="string",cc=()=>{},eE=pt&&((Eh=window==null?void 0:window.navigator)==null?void 0:Eh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Zr(e){return typeof e=="function"?e():l(e)}function Th(e,t){function n(...o){e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})}return n}function tE(e,t={}){let n,o;return a=>{const s=Zr(e),i=Zr(t.maxWait);if(n&&clearTimeout(n),s<=0||i!==void 0&&i<=0)return o&&(clearTimeout(o),o=null),a();i&&!o&&(o=setTimeout(()=>{n&&clearTimeout(n),o=null,a()},i)),n=setTimeout(()=>{o&&clearTimeout(o),o=null,a()},s)}}function nE(e,t=!0,n=!0){let o=0,r,a=!0;const s=()=>{r&&(clearTimeout(r),r=void 0)};return u=>{const c=Zr(e),f=Date.now()-o;if(s(),c<=0)return o=Date.now(),u();f>c&&(n||!a)?(o=Date.now(),u()):t&&(r=setTimeout(()=>{o=Date.now(),a=!0,s(),u()},c)),!n&&!r&&(r=setTimeout(()=>a=!0,c)),a=!1}}function oE(e){return e}function Vs(e){return Rk()?(hh(e),!0):!1}function rE(e,t=200,n={}){return Th(tE(t,n),e)}function aE(e,t=200,n={}){if(t<=0)return e;const o=M(e.value),r=rE(()=>{o.value=e.value},t,n);return ue(e,()=>r()),o}function Oh(e,t=200,n=!1,o=!0){return Th(nE(t,n,o),e)}function dc(e,t=!0){nt()?Ze(e):t?e():Ee(e)}function Jr(e,t,n={}){const{immediate:o=!0}=n,r=M(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){r.value=!1,s()}function u(...c){s(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...c)},Zr(t))}return o&&(r.value=!0,pt&&u()),Vs(i),{isPending:r,start:u,stop:i}}function Xn(e){var t;const n=Zr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ia=pt?window:void 0,lE=pt?window.document:void 0;function xt(...e){let t,n,o,r;if(Qk(e[0])?([n,o,r]=e,t=Ia):[t,n,o,r]=e,!t)return cc;let a=cc;const s=ue(()=>Xn(t),u=>{a(),u&&(u.addEventListener(n,o,r),a=()=>{u.removeEventListener(n,o,r),a=cc})},{immediate:!0,flush:"post"}),i=()=>{s(),a()};return Vs(i),i}function fc(e,t,n={}){const{window:o=Ia,ignore:r,capture:a=!0,detectIframe:s=!1}=n;if(!o)return;const i=M(!0);let u;const c=p=>{o.clearTimeout(u);const h=Xn(e),m=p.composedPath();!h||h===p.target||m.includes(h)||!i.value||r&&r.length>0&&r.some(v=>{const g=Xn(v);return g&&(p.target===g||m.includes(g))})||t(p)},f=[xt(o,"click",c,{passive:!0,capture:a}),xt(o,"pointerdown",p=>{const h=Xn(e);i.value=!!h&&!p.composedPath().includes(h)},{passive:!0}),xt(o,"pointerup",p=>{if(p.button===0){const h=p.composedPath();p.composedPath=()=>h,u=o.setTimeout(()=>c(p),50)}},{passive:!0}),s&&xt(o,"blur",p=>{var h;const m=Xn(e);((h=document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function sE(e,t=!1){const n=M(),o=()=>n.value=Boolean(e());return o(),dc(o,t),n}const pc=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vc="__vueuse_ssr_handlers__";pc[vc]=pc[vc]||{},pc[vc];function iE(e,t,{window:n=Ia,initialValue:o=""}={}){const r=M(o),a=S(()=>{var s;return Xn(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return ue([a,()=>Zr(e)],([s,i])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(i))==null?void 0:u.trim();r.value=c||o}},{immediate:!0}),ue(r,s=>{var i;(i=a.value)!=null&&i.style&&a.value.style.setProperty(Zr(e),s)}),r}function uE({document:e=lE}={}){if(!e)return M("visible");const t=M(e.visibilityState);return xt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Mh=Object.getOwnPropertySymbols,cE=Object.prototype.hasOwnProperty,dE=Object.prototype.propertyIsEnumerable,fE=(e,t)=>{var n={};for(var o in e)cE.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Mh)for(var o of Mh(e))t.indexOf(o)<0&&dE.call(e,o)&&(n[o]=e[o]);return n};function En(e,t,n={}){const o=n,{window:r=Ia}=o,a=fE(o,["window"]);let s;const i=sE(()=>r&&"ResizeObserver"in r),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>Xn(e),d=>{u(),i.value&&r&&d&&(s=new ResizeObserver(t),s.observe(d,a))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return Vs(f),{isSupported:i,stop:f}}function Ah(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:a=!0}=t,s=M(0),i=M(0),u=M(0),c=M(0),f=M(0),d=M(0),p=M(0),h=M(0);function m(){const v=Xn(e);if(!v){n&&(s.value=0,i.value=0,u.value=0,c.value=0,f.value=0,d.value=0,p.value=0,h.value=0);return}const g=v.getBoundingClientRect();s.value=g.height,i.value=g.bottom,u.value=g.left,c.value=g.right,f.value=g.top,d.value=g.width,p.value=g.x,h.value=g.y}return En(e,m),ue(()=>Xn(e),v=>!v&&m()),r&&xt("scroll",m,{passive:!0}),o&&xt("resize",m,{passive:!0}),dc(()=>{a&&m()}),{height:s,bottom:i,left:u,right:c,top:f,width:d,x:p,y:h,update:m}}var Ih;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ih||(Ih={}));var pE=Object.defineProperty,Nh=Object.getOwnPropertySymbols,vE=Object.prototype.hasOwnProperty,hE=Object.prototype.propertyIsEnumerable,Rh=(e,t,n)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mE=(e,t)=>{for(var n in t||(t={}))vE.call(t,n)&&Rh(e,n,t[n]);if(Nh)for(var n of Nh(t))hE.call(t,n)&&Rh(e,n,t[n]);return e};const gE={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};mE({linear:oE},gE);function yE(e,t,n,o={}){var r,a,s;const{passive:i=!1,eventName:u,deep:c=!1,defaultValue:f}=o,d=nt(),p=n||(d==null?void 0:d.emit)||((r=d==null?void 0:d.$emit)==null?void 0:r.bind(d))||((s=(a=d==null?void 0:d.proxy)==null?void 0:a.$emit)==null?void 0:s.bind(d==null?void 0:d.proxy));let h=u;t||(t="modelValue"),h=u||h||`update:${t.toString()}`;const m=()=>Jk(e[t])?e[t]:f;if(i){const v=M(m());return ue(()=>e[t],g=>v.value=g),ue(v,g=>{(g!==e[t]||c)&&p(h,g)},{deep:c}),v}else return S({get(){return m()},set(v){p(h,v)}})}function bE({window:e=Ia}={}){if(!e)return M(!1);const t=M(e.document.hasFocus());return xt(e,"blur",()=>{t.value=!1}),xt(e,"focus",()=>{t.value=!0}),t}function wE(e={}){const{window:t=Ia,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0}=e,a=M(n),s=M(o),i=()=>{t&&(a.value=t.innerWidth,s.value=t.innerHeight)};return i(),dc(i),xt("resize",i,{passive:!0}),r&&xt("orientationchange",i,{passive:!0}),{width:a,height:s}}const Ph=()=>pt&&/firefox/i.test(window.navigator.userAgent),CE=(e,t)=>{if(!pt||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},SE=(e,t)=>Math.abs(xh(e)-xh(t)),hc=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},Ft=()=>{},_E=Object.prototype.hasOwnProperty,Cn=(e,t)=>_E.call(e,t),et=Array.isArray,El=e=>Lh(e)==="[object Date]",$t=e=>typeof e=="function",it=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",mc=e=>Rt(e)&&$t(e.then)&&$t(e.catch),$E=Object.prototype.toString,Lh=e=>$E.call(e),gc=e=>Lh(e).slice(8,-1),yc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kE=/-(\w)/g,Dh=yc(e=>e.replace(kE,(t,n)=>n?n.toUpperCase():"")),EE=/\B([A-Z])/g,TE=yc(e=>e.replace(EE,"-$1").toLowerCase()),OE=yc(e=>e.charAt(0).toUpperCase()+e.slice(1));var Bh=typeof global=="object"&&global&&global.Object===Object&&global,ME=typeof self=="object"&&self&&self.Object===Object&&self,yn=Bh||ME||Function("return this")(),Tn=yn.Symbol,Fh=Object.prototype,AE=Fh.hasOwnProperty,IE=Fh.toString,Tl=Tn?Tn.toStringTag:void 0;function NE(e){var t=AE.call(e,Tl),n=e[Tl];try{e[Tl]=void 0;var o=!0}catch(a){}var r=IE.call(e);return o&&(t?e[Tl]=n:delete e[Tl]),r}var RE=Object.prototype,PE=RE.toString;function xE(e){return PE.call(e)}var LE="[object Null]",DE="[object Undefined]",Vh=Tn?Tn.toStringTag:void 0;function Pn(e){return e==null?e===void 0?DE:LE:Vh&&Vh in Object(e)?NE(e):xE(e)}function rn(e){return e!=null&&typeof e=="object"}var BE="[object Symbol]";function Zn(e){return typeof e=="symbol"||rn(e)&&Pn(e)==BE}var FE=0/0;function zh(e){return typeof e=="number"?e:Zn(e)?FE:+e}function Qt(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=ST)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nm=tm(Xh),kT=/\{\n\/\* \[wrapped with (.+)\] \*/,ET=/,? & /;function TT(e){var t=e.match(kT);return t?t[1].split(ET):[]}var OT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function MT(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(OT,`{ +/* [wrapped with `+t+`] */ +`)}function Sc(e){return function(){return e}}var Us=function(){try{var e=ea(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),AT=Us?function(e,t){return Us(e,"toString",{configurable:!0,enumerable:!1,value:Sc(t),writable:!0})}:xn,_c=tm(AT);function io(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}var NT=1,RT=2,PT=8,xT=16,LT=32,DT=64,BT=128,FT=256,VT=512,zT=[["ary",BT],["bind",NT],["bindKey",RT],["curry",PT],["curryRight",xT],["flip",VT],["partial",LT],["partialRight",DT],["rearg",FT]];function HT(e,t){return io(zT,function(n){var o="_."+n[0];t&n[1]&&!Gs(e,o)&&e.push(o)}),e.sort()}function rm(e,t,n){var o=t+"";return _c(e,MT(o,HT(TT(o),n)))}var WT=1,KT=2,jT=4,UT=8,am=32,lm=64;function sm(e,t,n,o,r,a,s,i,u,c){var f=t&UT,d=f?s:void 0,p=f?void 0:s,h=f?a:void 0,m=f?void 0:a;t|=f?am:lm,t&=~(f?lm:am),t&jT||(t&=~(WT|KT));var v=[e,t,r,h,d,m,p,i,u,c],g=n.apply(void 0,v);return Cc(e)&&nm(g,v),g.placeholder=o,rm(g,e,t)}function xa(e){var t=e;return t.placeholder}var qT=9007199254740991,GT=/^(?:0|[1-9]\d*)$/;function or(e,t){var n=typeof e;return t=t==null?qT:t,!!t&&(n=="number"||n!="symbol"&>.test(e))&&e>-1&&e%1==0&&e1&&C.reverse(),f&&u-1&&e%1==0&&e<=h3}function Wn(e){return e!=null&&Xs(e.length)&&!nr(e)}function Ln(e,t,n){if(!en(n))return!1;var o=typeof t;return(o=="number"?Wn(n)&&or(t,n.length):o=="string"&&t in n)?Co(n[t],e):!1}function La(e){return Tt(function(t,n){var o=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&Ln(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++o-1}function E4(e,t){var n=this.__data__,o=Js(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function lr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?Sn(i,t-1,n,o,r):kr(r,i):o||(r[r.length]=i)}return r}function Pc(e){var t=e==null?0:e.length;return t?Sn(e,1):[]}function ir(e){return _c(gm(e,void 0,Pc),e+"")}var V4=ir(Rc),ei=Em(Object.getPrototypeOf,Object),z4="[object Object]",H4=Function.prototype,W4=Object.prototype,Am=H4.toString,K4=W4.hasOwnProperty,j4=Am.call(Object);function Dl(e){if(!rn(e)||Pn(e)!=z4)return!1;var t=ei(e);if(t===null)return!0;var n=K4.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Am.call(n)==j4}var U4="[object DOMException]",q4="[object Error]";function xc(e){if(!rn(e))return!1;var t=Pn(e);return t==q4||t==U4||typeof e.message=="string"&&typeof e.name=="string"&&!Dl(e)}var Im=Tt(function(e,t){try{return Qn(e,void 0,t)}catch(n){return xc(n)?n:new Error(n)}}),G4="Expected a function";function Nm(e,t){var n;if(typeof t!="function")throw new TypeError(G4);return e=kt(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Y4=1,X4=32,ti=Tt(function(e,t,n){var o=Y4;if(n.length){var r=Sr(n,xa(ti));o|=X4}return rr(e,o,t,n,r)});ti.placeholder={};var Z4=ir(function(e,t){return io(t,function(n){n=Bo(n),ar(e,n,ti(e[n],e))}),e}),J4=1,Q4=2,eO=32,Lc=Tt(function(e,t,n){var o=J4|Q4;if(n.length){var r=Sr(n,xa(Lc));o|=eO}return rr(t,o,e,n,r)});Lc.placeholder={};function co(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++o=o?e:co(e,t,n)}var tO="\\ud800-\\udfff",nO="\\u0300-\\u036f",oO="\\ufe20-\\ufe2f",rO="\\u20d0-\\u20ff",aO=nO+oO+rO,lO="\\ufe0e\\ufe0f",sO="\\u200d",iO=RegExp("["+sO+tO+aO+lO+"]");function Ba(e){return iO.test(e)}function uO(e){return e.split("")}var Rm="\\ud800-\\udfff",cO="\\u0300-\\u036f",dO="\\ufe20-\\ufe2f",fO="\\u20d0-\\u20ff",pO=cO+dO+fO,vO="\\ufe0e\\ufe0f",hO="["+Rm+"]",Dc="["+pO+"]",Bc="\\ud83c[\\udffb-\\udfff]",mO="(?:"+Dc+"|"+Bc+")",Pm="[^"+Rm+"]",xm="(?:\\ud83c[\\udde6-\\uddff]){2}",Lm="[\\ud800-\\udbff][\\udc00-\\udfff]",gO="\\u200d",Dm=mO+"?",Bm="["+vO+"]?",yO="(?:"+gO+"(?:"+[Pm,xm,Lm].join("|")+")"+Bm+Dm+")*",bO=Bm+Dm+yO,wO="(?:"+[Pm+Dc+"?",Dc,xm,Lm,hO].join("|")+")",CO=RegExp(Bc+"(?="+Bc+")|"+wO+bO,"g");function SO(e){return e.match(CO)||[]}function So(e){return Ba(e)?SO(e):uO(e)}function Fm(e){return function(t){t=Vt(t);var n=Ba(t)?So(t):void 0,o=n?n[0]:t.charAt(0),r=n?Er(n,1).join(""):t.slice(1);return o[e]()+r}}var Fc=Fm("toUpperCase");function Vm(e){return Fc(Vt(e).toLowerCase())}function Vc(e,t,n,o){var r=-1,a=e==null?0:e.length;for(o&&a&&(n=e[++r]);++r=t?e:t)),e}function vM(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=lo(n),n=n===n?n:0),t!==void 0&&(t=lo(t),t=t===t?t:0),aa(lo(e),t,n)}function hM(){this.__data__=new lr,this.size=0}function mM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function gM(e){return this.__data__.get(e)}function yM(e){return this.__data__.has(e)}var bM=200;function wM(e,t){var n=this.__data__;if(n instanceof lr){var o=n.__data__;if(!xl||o.lengthi))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=n&JA?new sa:void 0;for(a.set(e,t),a.set(t,e);++d=t||O<0||d&&I>=a}function y(){var $=li();if(g($))return C($);i=setTimeout(y,v($))}function C($){return i=void 0,p&&o?h($):(o=r=void 0,s)}function b(){i!==void 0&&clearTimeout(i),c=0,o=u=r=i=void 0}function w(){return i===void 0?s:C(li())}function k(){var $=li(),O=g($);if(o=arguments,r=this,u=$,O){if(i===void 0)return m(u);if(d)return clearTimeout(i),i=setTimeout(y,t),h(u)}return i===void 0&&(i=setTimeout(y,t)),s}return k.cancel=b,k.flush=w,k}function WI(e,t){return e==null||e!==e?t:e}var Ug=Object.prototype,KI=Ug.hasOwnProperty,jI=Tt(function(e,t){e=Object(e);var n=-1,o=t.length,r=o>2?t[2]:void 0;for(r&&Ln(t[0],t[1],r)&&(o=1);++n=ZI&&(a=Fl,s=!1,t=new sa(t));e:for(;++r=0&&e.slice(n,r)==t}function iN(e,t){return Qt(t,function(n){return[n,e[n]]})}function uN(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=[o,o]}),n}var cN="[object Map]",dN="[object Set]";function t0(e){return function(t){var n=Fo(t);return n==cN?Jc(t):n==dN?uN(t):iN(t,e(t))}}var n0=t0(pn),o0=t0(Kn),fN={"&":"&","<":"<",">":">",'"':""","'":"'"},pN=zc(fN),r0=/[&<>"']/g,vN=RegExp(r0.source);function a0(e){return e=Vt(e),e&&vN.test(e)?e.replace(r0,pN):e}var l0=/[\\^$.*+?()[\]{}|]/g,hN=RegExp(l0.source);function mN(e){return e=Vt(e),e&&hN.test(e)?e.replace(l0,"\\$&"):e}function s0(e,t){for(var n=-1,o=e==null?0:e.length;++nr?0:r+n),o=o===void 0||o>r?r:kt(o),o<0&&(o+=r),o=n>o?0:i0(o);n-1?r[a?t[s]:s]:void 0}}var _N=Math.max;function d0(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:kt(n);return r<0&&(r=_N(o+r,0)),qs(e,wt(t),r)}var $N=c0(d0);function f0(e,t,n){var o;return n(e,function(r,a,s){if(t(r,a,s))return o=a,!1}),o}function kN(e,t){return f0(e,wt(t),Vo)}var EN=Math.max,TN=Math.min;function p0(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=o-1;return n!==void 0&&(r=kt(n),r=n<0?EN(o+r,0):TN(r,o-1)),qs(e,wt(t),r,!0)}var ON=c0(p0);function MN(e,t){return f0(e,wt(t),cd)}function v0(e){return e&&e.length?e[0]:void 0}function h0(e,t){var n=-1,o=Wn(e)?Array(e.length):[];return Or(e,function(r,a,s){o[++n]=t(r,a,s)}),o}function ui(e,t){var n=_t(e)?Qt:h0;return n(e,wt(t))}function m0(e,t){return Sn(ui(e,t),1)}var AN=1/0;function IN(e,t){return Sn(ui(e,t),AN)}function NN(e,t,n){return n=n===void 0?1:kt(n),Sn(ui(e,t),n)}var RN=1/0;function g0(e){var t=e==null?0:e.length;return t?Sn(e,RN):[]}function PN(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:kt(t),Sn(e,t)):[]}var xN=512;function LN(e){return rr(e,xN)}var DN=Hc("floor"),BN="Expected a function",FN=8,VN=32,zN=128,HN=256;function y0(e){return ir(function(t){var n=t.length,o=n,r=so.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if(typeof a!="function")throw new TypeError(BN);if(r&&!s&&js(a)=="wrapper")var s=new so([],!0)}for(o=s?o:n;++ot}function di(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=lo(t),n=lo(n)),e(t,n)}}var eR=di(dd),tR=di(function(e,t){return e>=t}),nR=Object.prototype,oR=nR.hasOwnProperty;function rR(e,t){return e!=null&&oR.call(e,t)}function aR(e,t){return e!=null&&Vg(e,t,rR)}var lR=Math.max,sR=Math.min;function iR(e,t,n){return e>=sR(t,n)&&e-1:!!r&&Pa(e,t,n)>-1}var pR=Math.max;function vR(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:kt(n);return r<0&&(r=pR(o+r,0)),Pa(e,t,r)}function hR(e){var t=e==null?0:e.length;return t?co(e,0,-1):[]}var mR=Math.min;function pd(e,t,n){for(var o=n?ud:Gs,r=e[0].length,a=e.length,s=a,i=Array(a),u=1/0,c=[];s--;){var f=e[s];s&&t&&(f=Qt(f,eo(t))),u=mR(f.length,u),i[s]=!n&&(t||r>=120&&f.length>=120)?new sa(s&&f):void 0}f=e[0];var d=-1,p=i[0];e:for(;++d=-T0&&e<=T0}function O0(e){return e===void 0}var oP="[object WeakMap]";function rP(e){return rn(e)&&Fo(e)==oP}var aP="[object WeakSet]";function lP(e){return rn(e)&&Pn(e)==aP}var sP=1;function iP(e){return wt(typeof e=="function"?e:fo(e,sP))}var uP=Array.prototype,cP=uP.join;function dP(e,t){return e==null?"":cP.call(e,t)}var fP=Va(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),pP=ai(function(e,t,n){ar(e,n,t)});function vP(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}var hP=Math.max,mP=Math.min;function gP(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=o;return n!==void 0&&(r=kt(n),r=r<0?hP(o+r,0):mP(r,o-1)),t===t?vP(e,t,r):qs(e,om,r,!0)}var yP=Va(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bP=Fm("toLowerCase");function md(e,t){return e=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function N0(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,or(t,n)?e[t]:void 0}function WP(e,t){return e&&e.length?N0(e,kt(t)):void 0}function KP(e){return e=kt(e),Tt(function(t){return N0(t,e)})}function wd(e,t){return t=$r(t,e),e=C0(e,t),e==null||delete e[Bo(to(t))]}function jP(e){return Dl(e)?void 0:e}var UP=1,qP=2,GP=4,YP=ir(function(e,t){var n={};if(e==null)return n;var o=!1;t=Qt(t,function(a){return a=$r(a,e),o||(o=a.length>1),a}),Do(e,Uc(e),n),o&&(n=fo(n,UP|qP|GP,jP));for(var r=t.length;r--;)wd(n,t[r]);return n});function jl(e,t,n,o){if(!en(e))return e;t=$r(t,e);for(var r=-1,a=t.length,s=a-1,i=e;i!=null&&++rt||a&&s&&u&&!i&&!c||o&&s&&u||!n&&u||!r)return 1;if(!o&&!a&&!c&&e=i)return u;var c=n[o];return u*(c=="desc"?-1:1)}}return e.index-t.index}function L0(e,t,n){t.length?t=Qt(t,function(a){return _t(a)?function(s){return oa(s,a.length===1?a[0]:a)}:a}):t=[xn];var o=-1;t=Qt(t,eo(wt));var r=h0(e,function(a,s,i){var u=Qt(t,function(c){return c(a)});return{criteria:u,index:++o,value:a}});return JP(r,function(a,s){return QP(a,s,n)})}function ex(e,t,n,o){return e==null?[]:(_t(t)||(t=t==null?[]:[t]),n=o?void 0:n,_t(n)||(n=n==null?[]:[n]),L0(e,t,n))}function Cd(e){return ir(function(t){return t=Qt(t,eo(wt)),Tt(function(n){var o=this;return e(t,function(r){return Qn(r,o,n)})})})}var tx=Cd(Qt),nx=Tt,ox=Math.min,rx=nx(function(e,t){t=t.length==1&&_t(t[0])?Qt(t[0],eo(wt)):Qt(Sn(t,1),eo(wt));var n=t.length;return Tt(function(o){for(var r=-1,a=ox(o.length,n);++rsx)return n;do t%2&&(n+=e),t=ix(t/2),t&&(e+=e);while(t);return n}var ux=od("length"),D0="\\ud800-\\udfff",cx="\\u0300-\\u036f",dx="\\ufe20-\\ufe2f",fx="\\u20d0-\\u20ff",px=cx+dx+fx,vx="\\ufe0e\\ufe0f",hx="["+D0+"]",_d="["+px+"]",$d="\\ud83c[\\udffb-\\udfff]",mx="(?:"+_d+"|"+$d+")",B0="[^"+D0+"]",F0="(?:\\ud83c[\\udde6-\\uddff]){2}",V0="[\\ud800-\\udbff][\\udc00-\\udfff]",gx="\\u200d",z0=mx+"?",H0="["+vx+"]?",yx="(?:"+gx+"(?:"+[B0,F0,V0].join("|")+")"+H0+z0+")*",bx=H0+z0+yx,wx="(?:"+[B0+_d+"?",_d,F0,V0,hx].join("|")+")",W0=RegExp($d+"(?="+$d+")|"+wx+bx,"g");function Cx(e){for(var t=W0.lastIndex=0;W0.test(e);)++t;return t}function Wa(e){return Ba(e)?Cx(e):ux(e)}var Sx=Math.ceil;function vi(e,t){t=t===void 0?" ":Jn(t);var n=t.length;if(n<2)return n?Sd(t,e):t;var o=Sd(t,Sx(e/Wa(t)));return Ba(t)?Er(So(o),0,e).join(""):o.slice(0,e)}var _x=Math.ceil,$x=Math.floor;function kx(e,t,n){e=Vt(e),t=kt(t);var o=t?Wa(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return vi($x(r),n)+e+vi(_x(r),n)}function Ex(e,t,n){e=Vt(e),t=kt(t);var o=t?Wa(e):0;return t&&o-1;)i!==e&&K0.call(i,u,1),K0.call(e,u,1);return e}function j0(e,t){return e&&e.length&&t&&t.length?Ed(e,t):e}var Fx=Tt(j0);function Vx(e,t,n){return e&&e.length&&t&&t.length?Ed(e,t,wt(n)):e}function zx(e,t,n){return e&&e.length&&t&&t.length?Ed(e,t,void 0,n):e}var Hx=Array.prototype,Wx=Hx.splice;function U0(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==a){var a=r;or(r)?Wx.call(e,r,1):wd(e,r)}}return e}var Kx=ir(function(e,t){var n=e==null?0:e.length,o=Rc(e,t);return U0(e,Qt(t,function(r){return or(r,n)?+r:r}).sort(x0)),o}),jx=Math.floor,Ux=Math.random;function Td(e,t){return e+jx(Ux()*(t-e+1))}var qx=parseFloat,Gx=Math.min,Yx=Math.random;function Xx(e,t,n){if(n&&typeof n!="boolean"&&Ln(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=tr(e),t===void 0?(t=e,e=0):t=tr(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var r=Yx();return Gx(e+r*(t-e+qx("1e-"+((r+"").length-1))),t)}return Td(e,t)}var Zx=Math.ceil,Jx=Math.max;function Qx(e,t,n,o){for(var r=-1,a=Jx(Zx((t-e)/(n||1)),0),s=Array(a);a--;)s[o?a:++r]=e,e+=n;return s}function q0(e){return function(t,n,o){return o&&typeof o!="number"&&Ln(t,n,o)&&(n=o=void 0),t=tr(t),n===void 0?(n=t,t=0):n=tr(n),o=o===void 0?t1&&Ln(e,t[0],t[1])?t=[]:n>2&&Ln(t[0],t[1],t[2])&&(t=[t[0]]),L0(e,Sn(t,1),[])}),P8=4294967295,x8=P8-1,L8=Math.floor,D8=Math.min;function Md(e,t,n,o){var r=0,a=e==null?0:e.length;if(a===0)return 0;t=n(t);for(var s=t!==t,i=t===null,u=Zn(t),c=t===void 0;r>>1;function gi(e,t,n){var o=0,r=e==null?o:e.length;if(typeof t=="number"&&t===t&&r<=F8){for(;o>>1,s=e[a];s!==null&&!Zn(s)&&(n?s<=t:s>>0,n?(e=Vt(e),e&&(typeof t=="string"||t!=null&&!hd(t))&&(t=Jn(t),!t&&Ba(e))?Er(So(e),0,n):e.split(t,n)):[]}var X8="Expected a function",Z8=Math.max;function J8(e,t){if(typeof e!="function")throw new TypeError(X8);return t=t==null?0:Z8(kt(t),0),Tt(function(n){var o=n[t],r=Er(n,0,t);return o&&kr(r,o),Qn(e,this,r)})}var Q8=Va(function(e,t,n){return e+(n?" ":"")+Fc(t)});function eL(e,t,n){return e=Vt(e),n=n==null?0:aa(kt(n),0,e.length),t=Jn(t),e.slice(n,n+t.length)==t}function tL(){return{}}function nL(){return""}function oL(){return!0}var rL=zs(function(e,t){return e-t},0);function aL(e){return e&&e.length?gd(e,xn):0}function lL(e,t){return e&&e.length?gd(e,wt(t)):0}function sL(e){var t=e==null?0:e.length;return t?co(e,1,t):[]}function iL(e,t,n){return e&&e.length?(t=n||t===void 0?1:kt(t),co(e,0,t<0?0:t)):[]}function uL(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===void 0?1:kt(t),t=o-t,co(e,t<0?0:t,o)):[]}function cL(e,t){return e&&e.length?ii(e,wt(t),!1,!0):[]}function dL(e,t){return e&&e.length?ii(e,wt(t)):[]}function fL(e,t){return t(e),e}var J0=Object.prototype,pL=J0.hasOwnProperty;function Q0(e,t,n,o){return e===void 0||Co(e,J0[n])&&!pL.call(o,n)?t:e}var vL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function hL(e){return"\\"+vL[e]}var ey=/<%=([\s\S]+?)%>/g,mL=/<%-([\s\S]+?)%>/g,gL=/<%([\s\S]+?)%>/g,Ad={escape:mL,evaluate:gL,interpolate:ey,variable:"",imports:{_:{escape:a0}}},yL="Invalid `variable` option passed into `_.template`",bL=/\b__p \+= '';/g,wL=/\b(__p \+=) '' \+/g,CL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,SL=/[()=,{}\[\]\/\s]/,_L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yi=/($^)/,$L=/['\n\r\u2028\u2029\\]/g,kL=Object.prototype,ty=kL.hasOwnProperty;function EL(e,t,n){var o=Ad.imports._.templateSettings||Ad;n&&Ln(e,t,n)&&(t=void 0),e=Vt(e),t=Zs({},t,o,Q0);var r=Zs({},t.imports,o.imports,Q0),a=pn(r),s=fd(r,a),i,u,c=0,f=t.interpolate||yi,d="__p += '",p=RegExp((t.escape||yi).source+"|"+f.source+"|"+(f===ey?_L:yi).source+"|"+(t.evaluate||yi).source+"|$","g"),h=ty.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+` +`:"";e.replace(p,function(g,y,C,b,w,k){return C||(C=b),d+=e.slice(c,k).replace($L,hL),y&&(i=!0,d+=`' + +__e(`+y+`) + +'`),w&&(u=!0,d+=`'; +`+w+`; +__p += '`),C&&(d+=`' + +((__t = (`+C+`)) == null ? '' : __t) + +'`),c=k+g.length,g}),d+=`'; +`;var m=ty.call(t,"variable")&&t.variable;if(!m)d=`with (obj) { +`+d+` +} +`;else if(SL.test(m))throw new Error(yL);d=(u?d.replace(bL,""):d).replace(wL,"$1").replace(CL,"$1;"),d="function("+(m||"obj")+`) { +`+(m?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var v=Im(function(){return Function(a,h+"return "+d).apply(void 0,s)});if(v.source=d,xc(v))throw v;return v}var TL="Expected a function";function Mr(e,t,n){var o=!0,r=!0;if(typeof e!="function")throw new TypeError(TL);return en(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),On(e,t,{leading:o,maxWait:t,trailing:r})}function Ul(e,t){return t(e)}var OL=9007199254740991,Id=4294967295,ML=Math.min;function AL(e,t){if(e=kt(e),e<1||e>OL)return[];var n=Id,o=ML(e,Id);t=zo(t),e-=Id;for(var r=Oc(o,t);++n-1;);return n}function ay(e,t){for(var n=-1,o=e.length;++n-1;);return n}function DL(e,t,n){if(e=Vt(e),e&&(n||t===void 0))return jh(e);if(!e||!(t=Jn(t)))return e;var o=So(e),r=So(t),a=ay(o,r),s=ry(o,r)+1;return Er(o,a,s).join("")}function BL(e,t,n){if(e=Vt(e),e&&(n||t===void 0))return e.slice(0,Kh(e)+1);if(!e||!(t=Jn(t)))return e;var o=So(e),r=ry(o,So(t))+1;return Er(o,0,r).join("")}var FL=/^\s+/;function VL(e,t,n){if(e=Vt(e),e&&(n||t===void 0))return e.replace(FL,"");if(!e||!(t=Jn(t)))return e;var o=So(e),r=ay(o,So(t));return Er(o,r).join("")}var zL=30,HL="...",WL=/\w*$/;function KL(e,t){var n=zL,o=HL;if(en(t)){var r="separator"in t?t.separator:r;n="length"in t?kt(t.length):n,o="omission"in t?Jn(t.omission):o}e=Vt(e);var a=e.length;if(Ba(e)){var s=So(e);a=s.length}if(n>=a)return e;var i=n-Wa(o);if(i<1)return o;var u=s?Er(s,0,i).join(""):e.slice(0,i);if(r===void 0)return u+o;if(s&&(i+=u.length-i),hd(r)){if(e.slice(i).search(r)){var c,f=u;for(r.global||(r=RegExp(r.source,Vt(WL.exec(r))+"g")),r.lastIndex=0;c=r.exec(f);)var d=c.index;u=u.slice(0,d===void 0?i:d)}}else if(e.indexOf(Jn(r),i)!=i){var p=u.lastIndexOf(r);p>-1&&(u=u.slice(0,p))}return u+o}function jL(e){return hm(e,1)}var UL={"&":"&","<":"<",">":">",""":'"',"'":"'"},qL=zc(UL),ly=/&(?:amp|lt|gt|quot|#39);/g,GL=RegExp(ly.source);function YL(e){return e=Vt(e),e&&GL.test(e)?e.replace(ly,qL):e}var XL=1/0,ZL=za&&1/oi(new za([,-0]))[1]==XL?function(e){return new za(e)}:bc,JL=200;function Ar(e,t,n){var o=-1,r=Gs,a=e.length,s=!0,i=[],u=i;if(n)s=!1,r=ud;else if(a>=JL){var c=t?null:ZL(e);if(c)return oi(c);s=!1,r=Fl,u=new sa}else u=t?[]:i;e:for(;++o1||this.__actions__.length||!(o instanceof It)||!or(n)?this.thru(r):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Ul,args:[r],thisArg:void 0}),new so(o,this.__chain__).thru(function(a){return t&&!a.length&&a.push(void 0),a}))});function h6(){return lg(this)}function m6(){var e=this.__wrapped__;if(e instanceof It){var t=e;return this.__actions__.length&&(t=new It(this)),t=t.reverse(),t.__actions__.push({func:Ul,args:[Od],thisArg:void 0}),new so(t,this.__chain__)}return this.thru(Od)}function Pd(e,t,n){var o=e.length;if(o<2)return o?Ar(e[0]):[];for(var r=-1,a=Array(o);++r1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,sy(e,n)}),Ye={chunk:pM,compact:UA,concat:qA,difference:JI,differenceBy:QI,differenceWith:eN,drop:nN,dropRight:oN,dropRightWhile:rN,dropWhile:aN,fill:CN,findIndex:d0,findLastIndex:p0,first:v0,flatten:Pc,flattenDeep:g0,flattenDepth:PN,fromPairs:Hl,head:v0,indexOf:vR,initial:hR,intersection:gR,intersectionBy:yR,intersectionWith:bR,join:dP,last:to,lastIndexOf:gP,nth:WP,pull:Fx,pullAll:j0,pullAllBy:Vx,pullAllWith:zx,pullAt:Kx,remove:i8,reverse:Od,slice:M8,sortedIndex:V8,sortedIndexBy:z8,sortedIndexOf:H8,sortedLastIndex:W8,sortedLastIndexBy:K8,sortedLastIndexOf:j8,sortedUniq:U8,sortedUniqBy:q8,tail:sL,take:iL,takeRight:uL,takeRightWhile:cL,takeWhile:dL,union:bi,unionBy:QL,unionWith:e6,uniq:t6,uniqBy:n6,uniqWith:o6,unzip:Rd,unzipWith:sy,without:f6,xor:g6,xorBy:y6,xorWith:b6,zip:w6,zipObject:C6,zipObjectDeep:S6,zipWith:_6},jt={countBy:LI,each:Zg,eachRight:e0,every:yN,filter:SN,find:$N,findLast:ON,flatMap:m0,flatMapDeep:IN,flatMapDepth:NN,forEach:Zg,forEachRight:e0,groupBy:QN,includes:fR,invokeMap:OR,keyBy:pP,map:ui,orderBy:ex,partition:Rx,reduce:r8,reduceRight:l8,reject:s8,sample:y8,sampleSize:C8,shuffle:k8,size:O8,some:N8,sortBy:R8},$6={now:li},an={after:XE,ary:hm,before:Nm,bind:ti,bindKey:Lc,curry:ad,curryRight:ld,debounce:On,defer:YI,delay:XI,flip:LN,memoize:Ll,negate:Kl,once:ZP,overArgs:rx,partial:hi,partialRight:kd,rearg:o8,rest:f8,spread:J8,throttle:Mr,unary:jL,wrap:p6},dt={castArray:ra,clone:Xc,cloneDeep:Bl,cloneDeepWith:HA,cloneWith:KA,conformsTo:II,eq:Co,gt:eR,gte:tR,isArguments:ta,isArray:_t,isArrayBuffer:IR,isArrayLike:Wn,isArrayLikeObject:sn,isBoolean:RR,isBuffer:_r,isDate:LR,isElement:DR,isEmpty:HR,isEqual:Dn,isEqualWith:WR,isError:xc,isFinite:jR,isFunction:nr,isInteger:$0,isLength:Xs,isMap:Eg,isMatch:UR,isMatchWith:qR,isNaN:YR,isNative:JR,isNil:nn,isNull:QR,isNumber:k0,isObject:en,isObjectLike:rn,isPlainObject:Dl,isRegExp:hd,isSafeInteger:nP,isSet:Og,isString:fi,isSymbol:Zn,isTypedArray:Da,isUndefined:O0,isWeakMap:rP,isWeakSet:lP,lt:wP,lte:CP,toArray:I0,toFinite:tr,toInteger:kt,toLength:i0,toNumber:lo,toPlainObject:qg,toSafeInteger:PL,toString:Vt},Bn={add:zE,ceil:cM,divide:tN,floor:DN,max:OP,maxBy:MP,mean:IP,meanBy:NP,min:xP,minBy:LP,multiply:DP,round:m8,subtract:rL,sum:aL,sumBy:lL},xd={clamp:vM,inRange:uR,random:Xx},bt={assign:t4,assignIn:Tm,assignInWith:Zs,assignWith:l4,at:V4,create:DI,defaults:jI,defaultsDeep:qI,entries:n0,entriesIn:o0,extend:Tm,extendWith:Zs,findKey:kN,findLastKey:MN,forIn:jN,forInRight:UN,forOwn:qN,forOwnRight:GN,functions:YN,functionsIn:XN,get:zt,has:aR,hasIn:nd,invert:_R,invertBy:ER,invoke:TR,keys:pn,keysIn:Kn,mapKeys:SP,mapValues:_P,merge:yd,mergeWith:Yg,omit:YP,omitBy:XP,pick:Ho,pickBy:P0,result:p8,set:X0,setWith:S8,toPairs:n0,toPairsIn:o0,transform:LL,unset:l6,update:i6,updateWith:u6,values:Ha,valuesIn:d6},Wo={at:v6,chain:lg,commit:jA,lodash:H,next:HP,plant:xx,reverse:m6,tap:fL,thru:Ul,toIterator:IL,toJSON:Nd,value:Nd,valueOf:Nd,wrapperChain:h6},Lt={camelCase:sM,capitalize:Vm,deburr:zm,endsWith:sN,escape:a0,escapeRegExp:mN,kebabCase:fP,lowerCase:yP,lowerFirst:bP,pad:kx,padEnd:Ex,padStart:Tx,parseInt:Ax,repeat:u8,replace:c8,snakeCase:A8,split:Y8,startCase:Q8,startsWith:eL,template:EL,templateSettings:Ad,toLower:NL,toUpper:xL,trim:DL,trimEnd:BL,trimStart:VL,truncate:KL,unescape:YL,upperCase:c6,upperFirst:Fc,words:ag},Ht={attempt:Im,bindAll:Z4,cond:TI,conforms:AI,constant:Sc,defaultTo:WI,flow:WN,flowRight:KN,identity:xn,iteratee:iP,matches:kP,matchesProperty:TP,method:RP,methodOf:PP,mixin:A0,noop:bc,nthArg:KP,over:tx,overEvery:ax,overSome:lx,property:Hg,propertyOf:Lx,range:e8,rangeRight:t8,stubArray:Wc,stubFalse:Mc,stubObject:tL,stubString:nL,stubTrue:oL,times:AL,toPath:RL,uniqueId:a6};function k6(){var e=new It(this.__wrapped__);return e.__actions__=Hn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Hn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Hn(this.__views__),e}function E6(){if(this.__filtered__){var e=new It(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var T6=Math.max,O6=Math.min;function M6(e,t,n){for(var o=-1,r=n.length;++o0||t<0)?new It(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=kt(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},It.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},It.prototype.toArray=function(){return this.take(cy)},Vo(It.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=H[o?"take"+(t=="last"?"Right":""):t],a=o||/^find/.test(t);!r||(H.prototype[t]=function(){var s=this.__wrapped__,i=o?[1]:arguments,u=s instanceof It,c=i[0],f=u||_t(s),d=function(y){var C=r.apply(H,kr([y],i));return o&&p?C[0]:C};f&&n&&typeof c=="function"&&c.length!=1&&(u=f=!1);var p=this.__chain__,h=!!this.__actions__.length,m=a&&!p,v=u&&!h;if(!a&&f){s=v?s:new It(this);var g=e.apply(s,i);return g.__actions__.push({func:Ul,args:[d],thisArg:void 0}),new so(g,p)}return m&&v?e.apply(this,i):(g=this.thru(d),m?o?g.value()[0]:g.value():g)})}),io(["pop","push","shift","sort","splice","unshift"],function(e){var t=B6[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);H.prototype[e]=function(){var r=arguments;if(o&&!this.__chain__){var a=this.value();return t.apply(_t(a)?a:[],r)}return this[n](function(s){return t.apply(_t(s)?s:[],r)})}}),Vo(It.prototype,function(e,t){var n=H[t];if(n){var o=n.name+"";dy.call(Ra,o)||(Ra[o]=[]),Ra[o].push({name:t,func:n})}}),Ra[Ys(void 0,x6).name]=[{name:"wrapper",func:void 0}],It.prototype.clone=k6,It.prototype.reverse=E6,It.prototype.value=R6,H.prototype.at=Wo.at,H.prototype.chain=Wo.wrapperChain,H.prototype.commit=Wo.commit,H.prototype.next=Wo.next,H.prototype.plant=Wo.plant,H.prototype.reverse=Wo.reverse,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=Wo.value,H.prototype.first=H.prototype.head,fy&&(H.prototype[fy]=Wo.toIterator);/** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */const bn=e=>e===void 0,un=e=>typeof e=="boolean",De=e=>typeof e=="number",po=e=>!e&&e!==0||et(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,vo=e=>typeof Element=="undefined"?!1:e instanceof Element,z6=e=>nn(e),H6=e=>it(e)?!Number.isNaN(Number(e)):!1,vy=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ko=e=>OE(e),ql=e=>Object.keys(e),W6=e=>Object.entries(e),wi=(e,t,n)=>({get value(){return zt(e,t,n)},set value(o){X0(e,t,o)}});class K6 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function cn(e,t){throw new K6(`[${e}] ${t}`)}function Ure(e,t){}const hy=(e="")=>e.split(" ").filter(t=>!!t.trim()),$o=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},jo=(e,t)=>{!e||!t.trim()||e.classList.add(...hy(t))},jn=(e,t)=>{!e||!t.trim()||e.classList.remove(...hy(t))},ur=(e,t)=>{var n;if(!pt||!e||!t)return"";let o=Dh(t);o==="float"&&(o="cssFloat");try{const r=e.style[o];if(r)return r;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch(r){return e.style[o]}};function tn(e,t="px"){if(!e)return"";if(De(e)||H6(e))return`${e}${t}`;if(it(e))return e}const j6=(e,t)=>{if(!pt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=ur(e,n);return["scroll","auto","overlay"].some(r=>o.includes(r))},Dd=(e,t)=>{if(!pt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(j6(n,t))return n;n=n.parentNode}return n};let Ci;const my=e=>{var t;if(!pt)return 0;if(Ci!==void 0)return Ci;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const a=r.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Ci=o-a,Ci};function gy(e,t){if(!pt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const r=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),a=r+t.offsetHeight,s=e.scrollTop,i=s+e.clientHeight;ri&&(e.scrollTop=a-e.clientHeight)}let U6=pt?document.body:void 0;function q6(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),U6.appendChild(t),t}function G6(e){e.remove()}var Et=(e,t)=>{let n=e.__vccOpts||e;for(let[o,r]of t)n[o]=r;return n},Y6={name:"ArrowDown"},X6={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z6=z("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),J6=[Z6];function Q6(e,t,n,o,r,a){return _(),x("svg",X6,J6)}var Ir=Et(Y6,[["render",Q6],["__file","arrow-down.vue"]]),eD={name:"ArrowLeft"},tD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nD=z("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),oD=[nD];function rD(e,t,n,o,r,a){return _(),x("svg",tD,oD)}var Nr=Et(eD,[["render",rD],["__file","arrow-left.vue"]]),aD={name:"ArrowRight"},lD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sD=z("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),iD=[sD];function uD(e,t,n,o,r,a){return _(),x("svg",lD,iD)}var Fn=Et(aD,[["render",uD],["__file","arrow-right.vue"]]),cD={name:"ArrowUp"},dD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fD=z("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),pD=[fD];function vD(e,t,n,o,r,a){return _(),x("svg",dD,pD)}var Si=Et(cD,[["render",vD],["__file","arrow-up.vue"]]),hD={name:"Back"},mD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gD=z("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),yD=z("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),bD=[gD,yD];function wD(e,t,n,o,r,a){return _(),x("svg",mD,bD)}var CD=Et(hD,[["render",wD],["__file","back.vue"]]),SD={name:"Calendar"},_D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$D=z("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),kD=[$D];function ED(e,t,n,o,r,a){return _(),x("svg",_D,kD)}var TD=Et(SD,[["render",ED],["__file","calendar.vue"]]),OD={name:"CaretRight"},MD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},AD=z("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),ID=[AD];function ND(e,t,n,o,r,a){return _(),x("svg",MD,ID)}var yy=Et(OD,[["render",ND],["__file","caret-right.vue"]]),RD={name:"CaretTop"},PD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xD=z("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),LD=[xD];function DD(e,t,n,o,r,a){return _(),x("svg",PD,LD)}var BD=Et(RD,[["render",DD],["__file","caret-top.vue"]]),FD={name:"Check"},VD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zD=z("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),HD=[zD];function WD(e,t,n,o,r,a){return _(),x("svg",VD,HD)}var Gl=Et(FD,[["render",WD],["__file","check.vue"]]),KD={name:"CircleCheckFilled"},jD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},UD=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),qD=[UD];function GD(e,t,n,o,r,a){return _(),x("svg",jD,qD)}var YD=Et(KD,[["render",GD],["__file","circle-check-filled.vue"]]),XD={name:"CircleCheck"},ZD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JD=z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),QD=z("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),eB=[JD,QD];function tB(e,t,n,o,r,a){return _(),x("svg",ZD,eB)}var Bd=Et(XD,[["render",tB],["__file","circle-check.vue"]]),nB={name:"CircleCloseFilled"},oB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rB=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),aB=[rB];function lB(e,t,n,o,r,a){return _(),x("svg",oB,aB)}var Fd=Et(nB,[["render",lB],["__file","circle-close-filled.vue"]]),sB={name:"CircleClose"},iB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uB=z("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),cB=z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),dB=[uB,cB];function fB(e,t,n,o,r,a){return _(),x("svg",iB,dB)}var Rr=Et(sB,[["render",fB],["__file","circle-close.vue"]]),pB={name:"Clock"},vB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hB=z("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),mB=z("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),gB=z("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),yB=[hB,mB,gB];function bB(e,t,n,o,r,a){return _(),x("svg",vB,yB)}var by=Et(pB,[["render",bB],["__file","clock.vue"]]),wB={name:"Close"},CB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},SB=z("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_B=[SB];function $B(e,t,n,o,r,a){return _(),x("svg",CB,_B)}var ko=Et(wB,[["render",$B],["__file","close.vue"]]),kB={name:"DArrowLeft"},EB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TB=z("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),OB=[TB];function MB(e,t,n,o,r,a){return _(),x("svg",EB,OB)}var Ka=Et(kB,[["render",MB],["__file","d-arrow-left.vue"]]),AB={name:"DArrowRight"},IB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},NB=z("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),RB=[NB];function PB(e,t,n,o,r,a){return _(),x("svg",IB,RB)}var ja=Et(AB,[["render",PB],["__file","d-arrow-right.vue"]]),xB={name:"Delete"},LB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DB=z("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),BB=[DB];function FB(e,t,n,o,r,a){return _(),x("svg",LB,BB)}var VB=Et(xB,[["render",FB],["__file","delete.vue"]]),zB={name:"Document"},HB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WB=z("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),KB=[WB];function jB(e,t,n,o,r,a){return _(),x("svg",HB,KB)}var UB=Et(zB,[["render",jB],["__file","document.vue"]]),qB={name:"FullScreen"},GB={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YB=z("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),XB=[YB];function ZB(e,t,n,o,r,a){return _(),x("svg",GB,XB)}var JB=Et(qB,[["render",ZB],["__file","full-screen.vue"]]),QB={name:"Hide"},eF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},tF=z("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),nF=z("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),oF=[tF,nF];function rF(e,t,n,o,r,a){return _(),x("svg",eF,oF)}var aF=Et(QB,[["render",rF],["__file","hide.vue"]]),lF={name:"InfoFilled"},sF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iF=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),uF=[iF];function cF(e,t,n,o,r,a){return _(),x("svg",sF,uF)}var Vd=Et(lF,[["render",cF],["__file","info-filled.vue"]]),dF={name:"Loading"},fF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pF=z("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),vF=[pF];function hF(e,t,n,o,r,a){return _(),x("svg",fF,vF)}var Pr=Et(dF,[["render",hF],["__file","loading.vue"]]),mF={name:"Minus"},gF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yF=z("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),bF=[yF];function wF(e,t,n,o,r,a){return _(),x("svg",gF,bF)}var CF=Et(mF,[["render",wF],["__file","minus.vue"]]),SF={name:"MoreFilled"},_F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$F=z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),kF=[$F];function EF(e,t,n,o,r,a){return _(),x("svg",_F,kF)}var wy=Et(SF,[["render",EF],["__file","more-filled.vue"]]),TF={name:"More"},OF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},MF=z("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),AF=[MF];function IF(e,t,n,o,r,a){return _(),x("svg",OF,AF)}var NF=Et(TF,[["render",IF],["__file","more.vue"]]),RF={name:"PictureFilled"},PF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xF=z("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),LF=[xF];function DF(e,t,n,o,r,a){return _(),x("svg",PF,LF)}var BF=Et(RF,[["render",DF],["__file","picture-filled.vue"]]),FF={name:"Plus"},VF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zF=z("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),HF=[zF];function WF(e,t,n,o,r,a){return _(),x("svg",VF,HF)}var Cy=Et(FF,[["render",WF],["__file","plus.vue"]]),KF={name:"QuestionFilled"},jF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},UF=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),qF=[UF];function GF(e,t,n,o,r,a){return _(),x("svg",jF,qF)}var YF=Et(KF,[["render",GF],["__file","question-filled.vue"]]),XF={name:"RefreshLeft"},ZF={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JF=z("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),QF=[JF];function e5(e,t,n,o,r,a){return _(),x("svg",ZF,QF)}var t5=Et(XF,[["render",e5],["__file","refresh-left.vue"]]),n5={name:"RefreshRight"},o5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},r5=z("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),a5=[r5];function l5(e,t,n,o,r,a){return _(),x("svg",o5,a5)}var s5=Et(n5,[["render",l5],["__file","refresh-right.vue"]]),i5={name:"ScaleToOriginal"},u5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},c5=z("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),d5=[c5];function f5(e,t,n,o,r,a){return _(),x("svg",u5,d5)}var p5=Et(i5,[["render",f5],["__file","scale-to-original.vue"]]),v5={name:"Search"},h5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m5=z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),g5=[m5];function y5(e,t,n,o,r,a){return _(),x("svg",h5,g5)}var b5=Et(v5,[["render",y5],["__file","search.vue"]]),w5={name:"SortDown"},C5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},S5=z("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_5=[S5];function $5(e,t,n,o,r,a){return _(),x("svg",C5,_5)}var k5=Et(w5,[["render",$5],["__file","sort-down.vue"]]),E5={name:"SortUp"},T5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},O5=z("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),M5=[O5];function A5(e,t,n,o,r,a){return _(),x("svg",T5,M5)}var I5=Et(E5,[["render",A5],["__file","sort-up.vue"]]),N5={name:"StarFilled"},R5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P5=z("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),x5=[P5];function L5(e,t,n,o,r,a){return _(),x("svg",R5,x5)}var _i=Et(N5,[["render",L5],["__file","star-filled.vue"]]),D5={name:"Star"},B5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F5=z("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),V5=[F5];function z5(e,t,n,o,r,a){return _(),x("svg",B5,V5)}var H5=Et(D5,[["render",z5],["__file","star.vue"]]),W5={name:"SuccessFilled"},K5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j5=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),U5=[j5];function q5(e,t,n,o,r,a){return _(),x("svg",K5,U5)}var Sy=Et(W5,[["render",q5],["__file","success-filled.vue"]]),G5={name:"View"},Y5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X5=z("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Z5=[X5];function J5(e,t,n,o,r,a){return _(),x("svg",Y5,Z5)}var Q5=Et(G5,[["render",J5],["__file","view.vue"]]),eV={name:"WarningFilled"},tV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nV=z("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),oV=[nV];function rV(e,t,n,o,r,a){return _(),x("svg",tV,oV)}var $i=Et(eV,[["render",rV],["__file","warning-filled.vue"]]),aV={name:"ZoomIn"},lV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sV=z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),iV=[sV];function uV(e,t,n,o,r,a){return _(),x("svg",lV,iV)}var _y=Et(aV,[["render",uV],["__file","zoom-in.vue"]]),cV={name:"ZoomOut"},dV={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},fV=z("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),pV=[fV];function vV(e,t,n,o,r,a){return _(),x("svg",dV,pV)}var hV=Et(cV,[["render",vV],["__file","zoom-out.vue"]]);/*! Element Plus Icons Vue v2.0.6 */const $y="__epPropKey",te=e=>e,mV=e=>Rt(e)&&!!e[$y],Eo=(e,t)=>{if(!Rt(e)||mV(e))return e;const{values:n,required:o,default:r,type:a,validator:s}=e,u={type:a,required:!!o,validator:n||s?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),Cn(e,"default")&&d.push(r),f||(f=d.includes(c))),s&&(f||(f=s(c))),!f&&d.length>0){const p=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");Pk(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[$y]:!0};return Cn(e,"default")&&(u.default=r),u},be=e=>Hl(Object.entries(e).map(([t,n])=>[t,Eo(n,t)])),Dt=te([String,Object,Function]),ky={Close:ko},zd={Close:ko,SuccessFilled:Sy,InfoFilled:Vd,WarningFilled:$i,CircleCloseFilled:Fd},xr={success:Sy,warning:$i,error:Fd,info:Vd},Ey={validating:Pr,success:Bd,error:Rr},Je=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},Ty=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),gV=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Xt=e=>(e.install=Ft,e),ki=(...e)=>t=>{e.forEach(n=>{$t(n)?n(t):n.value=t})},Ae={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Oy=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Ei=["sun","mon","tue","wed","thu","fri","sat"],tt="update:modelValue",Bt="change",Mn="input",Hd=Symbol("INSTALLED_KEY"),To=["","default","small","large"],My={large:40,default:32,small:24},yV=e=>My[e||"default"],Ti=e=>["",...To].includes(e);var ho=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ho||{});function Wd(e){return Jt(e)&&e.type===xe}function bV(e){return Jt(e)&&e.type===lc}function wV(e){return Jt(e)&&!Wd(e)&&!bV(e)}const CV=e=>{if(!Jt(e))return{};const t=e.props||{},n=(Jt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(r=>{Cn(n[r],"default")&&(o[r]=n[r].default)}),Object.keys(t).forEach(r=>{o[Dh(r)]=t[r]}),o},SV=e=>{if(!et(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Ua=e=>{const t=et(e)?e:[e],n=[];return t.forEach(o=>{var r;et(o)?n.push(...Ua(o)):Jt(o)&&et(o.children)?n.push(...Ua(o.children)):(n.push(o),Jt(o)&&((r=o.component)==null?void 0:r.subTree)&&n.push(...Ua(o.component.subTree)))}),n},Ay=e=>[...new Set(e)],cr=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Oi=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Yl=e=>pt?window.requestAnimationFrame(e):setTimeout(e,16),Mi=e=>pt?window.cancelAnimationFrame(e):clearTimeout(e),Ai=()=>Math.floor(Math.random()*1e4),Ut=e=>e,_V=["class","style"],$V=/^on[A-Z]/,Ii=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=S(()=>((n==null?void 0:n.value)||[]).concat(_V)),r=nt();return r?S(()=>{var a;return Hl(Object.entries((a=r.proxy)==null?void 0:a.$attrs).filter(([s])=>!o.value.includes(s)&&!(t&&$V.test(s))))}):S(()=>({}))},Oo=({from:e,replacement:t,scope:n,version:o,ref:r,type:a="API"},s)=>{ue(()=>l(s),i=>{},{immediate:!0})},Kd=(e,t,n)=>{let o={offsetX:0,offsetY:0};const r=i=>{const u=i.clientX,c=i.clientY,{offsetX:f,offsetY:d}=o,p=e.value.getBoundingClientRect(),h=p.left,m=p.top,v=p.width,g=p.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,b=-h+f,w=-m+d,k=y-h-v+f,$=C-m-g+d,O=P=>{const N=Math.min(Math.max(f+P.clientX-u,b),k),L=Math.min(Math.max(d+P.clientY-c,w),$);o={offsetX:N,offsetY:L},e.value.style.transform=`translate(${tn(N)}, ${tn(L)})`},I=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)};Ze(()=>{Yn(()=>{n.value?a():s()})}),qt(()=>{s()})},Iy=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var kV={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Ny=e=>(t,n)=>Ry(t,n,l(e)),Ry=(e,t,n)=>zt(n,e,e).replace(/\{(\w+)\}/g,(o,r)=>{var a;return`${(a=t==null?void 0:t[r])!=null?a:`{${r}}`}`}),Py=e=>{const t=S(()=>l(e).name),n=Rn(e)?e:M(e);return{lang:t,locale:n,t:Ny(e)}},jd=Symbol("localeContextKey"),gt=e=>{const t=e||Oe(jd,M());return Py(S(()=>t.value||kV))};let EV;function TV(e,t=EV){t&&t.active&&t.effects.push(e)}const OV=e=>{const t=new Set(e);return t.w=0,t.n=0,t},xy=e=>(e.w&Lr)>0,Ly=e=>(e.n&Lr)>0,MV=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{this._dirty||(this._dirty=!0,xV(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=Ri(this);return PV(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function DV(e,t,n=!1){let o,r;const a=$t(e);return a?(o=e,r=Ft):(o=e.get,r=e.set),new LV(o,r,a||!r,n)}const Zl="el",BV="is-",ia=(e,t,n,o,r)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),r&&(a+=`--${r}`),a},qd=Symbol("namespaceContextKey"),Pi=e=>{const t=e||Oe(qd,M(Zl));return S(()=>l(t)||Zl)},ce=(e,t)=>{const n=Pi(t);return{namespace:n,b:(v="")=>ia(n.value,e,v,"",""),e:v=>v?ia(n.value,e,"",v,""):"",m:v=>v?ia(n.value,e,"","",v):"",be:(v,g)=>v&&g?ia(n.value,e,v,g,""):"",em:(v,g)=>v&&g?ia(n.value,e,"",v,g):"",bm:(v,g)=>v&&g?ia(n.value,e,v,"",g):"",bem:(v,g,y)=>v&&g&&y?ia(n.value,e,v,g,y):"",is:(v,...g)=>{const y=g.length>=1?g[0]:!0;return v&&y?`${BV}${v}`:""},cssVar:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${y}`]=v[y]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${e}-${y}`]=v[y]);return g},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},Gd=(e,t={})=>{Rn(e)||cn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ce("popup"),o=DV(()=>n.bm("parent","hidden"));if(!pt||$o(document.body,o.value))return;let r=0,a=!1,s="0";const i=()=>{setTimeout(()=>{jn(document==null?void 0:document.body,o.value),a&&document&&(document.body.style.width=s)},200)};ue(e,u=>{if(!u){i();return}a=!$o(document.body,o.value),a&&(s=document.body.style.width),r=my(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${r}px)`),jo(document.body,o.value)}),hh(()=>i())},qa=[],FV=e=>{qa.length!==0&&e.code===Ae.esc&&(e.stopPropagation(),qa[qa.length-1].handleClose())},VV=(e,t)=>{ue(t,n=>{n?qa.push(e):qa.splice(qa.indexOf(e),1)})};pt&&xt(document,"keydown",FV);const zV=Eo({type:te(Boolean),default:null}),HV=Eo({type:te(Function)}),Yd=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:zV,[n]:HV};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:f,onHide:d})=>{const p=nt(),{emit:h}=p,m=p.props,v=S(()=>$t(m[n])),g=S(()=>m[e]===null),y=O=>{s.value!==!0&&(s.value=!0,i&&(i.value=O),$t(f)&&f(O))},C=O=>{s.value!==!1&&(s.value=!1,i&&(i.value=O),$t(d)&&d(O))},b=O=>{if(m.disabled===!0||$t(c)&&!c())return;const I=v.value&&pt;I&&h(t,!0),(g.value||!I)&&y(O)},w=O=>{if(m.disabled===!0||!pt)return;const I=v.value&&pt;I&&h(t,!1),(g.value||!I)&&C(O)},k=O=>{!un(O)||(m.disabled&&O?v.value&&h(t,!1):s.value!==O&&(O?y():C()))},$=()=>{s.value?w():b()};return ue(()=>m[e],k),u&&p.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...p.proxy.$route}),()=>{u.value&&s.value&&w()}),Ze(()=>{k(m[e])}),{hide:w,show:b,toggle:$,hasUpdateHandler:v}},useModelToggleProps:r,useModelToggleEmits:o}},{useModelToggle:WV,useModelToggleProps:KV,useModelToggleEmits:jV}=Yd("modelValue"),UV=(e,t,n)=>{const o=a=>{n(a)&&a.stopImmediatePropagation()};let r;ue(()=>e.value,a=>{a?r=xt(document,t,o,!0):r==null||r()},{immediate:!0})},Xd=e=>{const t=nt();return S(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var Un="top",mo="bottom",go="right",qn="left",Zd="auto",Jl=[Un,mo,go,qn],Ga="start",Ql="end",qV="clippingParents",Fy="viewport",es="popper",GV="reference",Vy=Jl.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+Ql])},[]),ua=[].concat(Jl,[Zd]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+Ql])},[]),YV="beforeRead",XV="read",ZV="afterRead",JV="beforeMain",QV="main",ez="afterMain",tz="beforeWrite",nz="write",oz="afterWrite",rz=[YV,XV,ZV,JV,QV,ez,tz,nz,oz];function qo(e){return e?(e.nodeName||"").toLowerCase():null}function Mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ya(e){var t=Mo(e).Element;return e instanceof t||e instanceof Element}function yo(e){var t=Mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jd(e){if(typeof ShadowRoot=="undefined")return!1;var t=Mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function az(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},a=t.elements[n];!yo(a)||!qo(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function lz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=s.reduce(function(u,c){return u[c]="",u},{});!yo(r)||!qo(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(u){r.removeAttribute(u)}))})}}var zy={name:"applyStyles",enabled:!0,phase:"write",fn:az,effect:lz,requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var ca=Math.max,xi=Math.min,Xa=Math.round;function Za(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(yo(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(o=Xa(n.width)/s||1),a>0&&(r=Xa(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Qd(e){var t=Za(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Hy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jd(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dr(e){return Mo(e).getComputedStyle(e)}function sz(e){return["table","td","th"].indexOf(qo(e))>=0}function Dr(e){return((Ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return qo(e)==="html"?e:e.assignedSlot||e.parentNode||(Jd(e)?e.host:null)||Dr(e)}function Wy(e){return!yo(e)||dr(e).position==="fixed"?null:e.offsetParent}function iz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&yo(e)){var o=dr(e);if(o.position==="fixed")return null}var r=Li(e);for(Jd(r)&&(r=r.host);yo(r)&&["html","body"].indexOf(qo(r))<0;){var a=dr(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function ts(e){for(var t=Mo(e),n=Wy(e);n&&sz(n)&&dr(n).position==="static";)n=Wy(n);return n&&(qo(n)==="html"||qo(n)==="body"&&dr(n).position==="static")?t:n||iz(e)||t}function ef(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ns(e,t,n){return ca(e,xi(t,n))}function uz(e,t,n){var o=ns(e,t,n);return o>n?n:o}function Ky(){return{top:0,right:0,bottom:0,left:0}}function jy(e){return Object.assign({},Ky(),e)}function Uy(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var cz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jy(typeof e!="number"?e:Uy(e,Jl))};function dz(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,i=Go(n.placement),u=ef(i),c=[qn,go].indexOf(i)>=0,f=c?"height":"width";if(!(!a||!s)){var d=cz(r.padding,n),p=Qd(a),h=u==="y"?Un:qn,m=u==="y"?mo:go,v=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],g=s[u]-n.rects.reference[u],y=ts(a),C=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,b=v/2-g/2,w=d[h],k=C-p[f]-d[m],$=C/2-p[f]/2+b,O=ns(w,$,k),I=u;n.modifiersData[o]=(t={},t[I]=O,t.centerOffset=O-$,t)}}function fz(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!Hy(t.elements.popper,r)||(t.elements.arrow=r))}var pz={name:"arrow",enabled:!0,phase:"main",fn:dz,effect:fz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ja(e){return e.split("-")[1]}var vz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hz(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:Xa(t*r)/r||0,y:Xa(n*r)/r||0}}function qy(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=s.x,h=p===void 0?0:p,m=s.y,v=m===void 0?0:m,g=typeof f=="function"?f({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var y=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),b=qn,w=Un,k=window;if(c){var $=ts(n),O="clientHeight",I="clientWidth";if($===Mo(n)&&($=Dr(n),dr($).position!=="static"&&i==="absolute"&&(O="scrollHeight",I="scrollWidth")),$=$,r===Un||(r===qn||r===go)&&a===Ql){w=mo;var P=d&&$===k&&k.visualViewport?k.visualViewport.height:$[O];v-=P-o.height,v*=u?1:-1}if(r===qn||(r===Un||r===mo)&&a===Ql){b=go;var N=d&&$===k&&k.visualViewport?k.visualViewport.width:$[I];h-=N-o.width,h*=u?1:-1}}var L=Object.assign({position:i},c&&vz),D=f===!0?hz({x:h,y:v}):{x:h,y:v};if(h=D.x,v=D.y,u){var R;return Object.assign({},L,(R={},R[w]=C?"0":"",R[b]=y?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",R))}return Object.assign({},L,(t={},t[w]=C?v+"px":"",t[b]=y?h+"px":"",t.transform="",t))}function mz(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,a=n.adaptive,s=a===void 0?!0:a,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Go(t.placement),variation:Ja(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Gy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mz,data:{}},Di={passive:!0};function gz(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,i=s===void 0?!0:s,u=Mo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(f){f.addEventListener("scroll",n.update,Di)}),i&&u.addEventListener("resize",n.update,Di),function(){a&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Di)}),i&&u.removeEventListener("resize",n.update,Di)}}var Yy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gz,data:{}},yz={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(e){return e.replace(/left|right|bottom|top/g,function(t){return yz[t]})}var bz={start:"end",end:"start"};function Xy(e){return e.replace(/start|end/g,function(t){return bz[t]})}function tf(e){var t=Mo(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function nf(e){return Za(Dr(e)).left+tf(e).scrollLeft}function wz(e){var t=Mo(e),n=Dr(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,i=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,i=o.offsetTop)),{width:r,height:a,x:s+nf(e),y:i}}function Cz(e){var t,n=Dr(e),o=tf(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=ca(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ca(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-o.scrollLeft+nf(e),u=-o.scrollTop;return dr(r||n).direction==="rtl"&&(i+=ca(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:u}}function of(e){var t=dr(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Zy(e){return["html","body","#document"].indexOf(qo(e))>=0?e.ownerDocument.body:yo(e)&&of(e)?e:Zy(Li(e))}function os(e,t){var n;t===void 0&&(t=[]);var o=Zy(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=Mo(o),s=r?[a].concat(a.visualViewport||[],of(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(os(Li(s)))}function rf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sz(e){var t=Za(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Jy(e,t){return t===Fy?rf(wz(e)):Ya(t)?Sz(t):rf(Cz(Dr(e)))}function _z(e){var t=os(Li(e)),n=["absolute","fixed"].indexOf(dr(e).position)>=0,o=n&&yo(e)?ts(e):e;return Ya(o)?t.filter(function(r){return Ya(r)&&Hy(r,o)&&qo(r)!=="body"}):[]}function $z(e,t,n){var o=t==="clippingParents"?_z(e):[].concat(t),r=[].concat(o,[n]),a=r[0],s=r.reduce(function(i,u){var c=Jy(e,u);return i.top=ca(c.top,i.top),i.right=xi(c.right,i.right),i.bottom=xi(c.bottom,i.bottom),i.left=ca(c.left,i.left),i},Jy(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Qy(e){var t=e.reference,n=e.element,o=e.placement,r=o?Go(o):null,a=o?Ja(o):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(r){case Un:u={x:s,y:t.y-n.height};break;case mo:u={x:s,y:t.y+t.height};break;case go:u={x:t.x+t.width,y:i};break;case qn:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=r?ef(r):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case Ga:u[c]=u[c]-(t[f]/2-n[f]/2);break;case Ql:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function rs(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,a=n.boundary,s=a===void 0?qV:a,i=n.rootBoundary,u=i===void 0?Fy:i,c=n.elementContext,f=c===void 0?es:c,d=n.altBoundary,p=d===void 0?!1:d,h=n.padding,m=h===void 0?0:h,v=jy(typeof m!="number"?m:Uy(m,Jl)),g=f===es?GV:es,y=e.rects.popper,C=e.elements[p?g:f],b=$z(Ya(C)?C:C.contextElement||Dr(e.elements.popper),s,u),w=Za(e.elements.reference),k=Qy({reference:w,element:y,strategy:"absolute",placement:r}),$=rf(Object.assign({},y,k)),O=f===es?$:w,I={top:b.top-O.top+v.top,bottom:O.bottom-b.bottom+v.bottom,left:b.left-O.left+v.left,right:O.right-b.right+v.right},P=e.modifiersData.offset;if(f===es&&P){var N=P[r];Object.keys(I).forEach(function(L){var D=[go,mo].indexOf(L)>=0?1:-1,R=[Un,mo].indexOf(L)>=0?"y":"x";I[L]+=N[R]*D})}return I}function kz(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?ua:u,f=Ja(o),d=f?i?Vy:Vy.filter(function(m){return Ja(m)===f}):Jl,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,v){return m[v]=rs(e,{placement:v,boundary:r,rootBoundary:a,padding:s})[Go(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function Ez(e){if(Go(e)===Zd)return[];var t=Bi(e);return[Xy(e),t,Xy(t)]}function Tz(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,y=Go(g),C=y===g,b=u||(C||!m?[Bi(g)]:Ez(g)),w=[g].concat(b).reduce(function(se,ve){return se.concat(Go(ve)===Zd?kz(t,{placement:ve,boundary:f,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):ve)},[]),k=t.rects.reference,$=t.rects.popper,O=new Map,I=!0,P=w[0],N=0;N=0,U=V?"width":"height",F=rs(t,{placement:L,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),T=V?R?go:qn:R?mo:Un;k[U]>$[U]&&(T=Bi(T));var B=Bi(T),A=[];if(a&&A.push(F[D]<=0),i&&A.push(F[T]<=0,F[B]<=0),A.every(function(se){return se})){P=L,I=!1;break}O.set(L,A)}if(I)for(var W=m?3:1,Z=function(se){var ve=w.find(function(re){var ie=O.get(re);if(ie)return ie.slice(0,se).every(function(J){return J})});if(ve)return P=ve,"break"},K=W;K>0;K--){var X=Z(K);if(X==="break")break}t.placement!==P&&(t.modifiersData[o]._skip=!0,t.placement=P,t.reset=!0)}}var Oz={name:"flip",enabled:!0,phase:"main",fn:Tz,requiresIfExists:["offset"],data:{_skip:!1}};function eb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tb(e){return[Un,go,mo,qn].some(function(t){return e[t]>=0})}function Mz(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=rs(t,{elementContext:"reference"}),i=rs(t,{altBoundary:!0}),u=eb(s,o),c=eb(i,r,a),f=tb(u),d=tb(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var Az={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mz};function Iz(e,t,n){var o=Go(e),r=[qn,Un].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[qn,go].indexOf(o)>=0?{x:i,y:s}:{x:s,y:i}}function Nz(e){var t=e.state,n=e.options,o=e.name,r=n.offset,a=r===void 0?[0,0]:r,s=ua.reduce(function(f,d){return f[d]=Iz(d,t.rects,a),f},{}),i=s[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=s}var Rz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nz};function Pz(e){var t=e.state,n=e.name;t.modifiersData[n]=Qy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var nb={name:"popperOffsets",enabled:!0,phase:"read",fn:Pz,data:{}};function xz(e){return e==="x"?"y":"x"}function Lz(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=r===void 0?!0:r,s=n.altAxis,i=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,v=m===void 0?0:m,g=rs(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),y=Go(t.placement),C=Ja(t.placement),b=!C,w=ef(y),k=xz(w),$=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,P=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,N=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if($){if(a){var R,V=w==="y"?Un:qn,U=w==="y"?mo:go,F=w==="y"?"height":"width",T=$[w],B=T+g[V],A=T-g[U],W=h?-I[F]/2:0,Z=C===Ga?O[F]:I[F],K=C===Ga?-I[F]:-O[F],X=t.elements.arrow,se=h&&X?Qd(X):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ky(),re=ve[V],ie=ve[U],J=ns(0,O[F],se[F]),oe=b?O[F]/2-W-J-re-N.mainAxis:Z-J-re-N.mainAxis,de=b?-O[F]/2+W+J+ie+N.mainAxis:K+J+ie+N.mainAxis,Te=t.elements.arrow&&ts(t.elements.arrow),Re=Te?w==="y"?Te.clientTop||0:Te.clientLeft||0:0,Ve=(R=L==null?void 0:L[w])!=null?R:0,We=T+oe-Ve-Re,Ge=T+de-Ve,yt=ns(h?xi(B,We):B,T,h?ca(A,Ge):A);$[w]=yt,D[w]=yt-T}if(i){var Se,Fe=w==="x"?Un:qn,Pe=w==="x"?mo:go,He=$[k],Be=k==="y"?"height":"width",Xe=He+g[Fe],Qe=He-g[Pe],Ce=[Un,qn].indexOf(y)!==-1,ze=(Se=L==null?void 0:L[k])!=null?Se:0,ht=Ce?Xe:He-O[Be]-I[Be]-ze+N.altAxis,Ot=Ce?He+O[Be]+I[Be]-ze-N.altAxis:Qe,lt=h&&Ce?uz(ht,He,Ot):ns(h?ht:Xe,He,h?Ot:Qe);$[k]=lt,D[k]=lt-He}t.modifiersData[o]=D}}var Dz={name:"preventOverflow",enabled:!0,phase:"main",fn:Lz,requiresIfExists:["offset"]};function Bz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Fz(e){return e===Mo(e)||!yo(e)?tf(e):Bz(e)}function Vz(e){var t=e.getBoundingClientRect(),n=Xa(t.width)/e.offsetWidth||1,o=Xa(t.height)/e.offsetHeight||1;return n!==1||o!==1}function zz(e,t,n){n===void 0&&(n=!1);var o=yo(t),r=yo(t)&&Vz(t),a=Dr(t),s=Za(e,r),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((qo(t)!=="body"||of(a))&&(i=Fz(t)),yo(t)?(u=Za(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=nf(a))),{x:s.left+i.scrollLeft-u.x,y:s.top+i.scrollTop-u.y,width:s.width,height:s.height}}function Hz(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function r(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&r(u)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||r(a)}),o}function Wz(e){var t=Hz(e);return rz.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Kz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function jz(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ob={placement:"bottom",modifiers:[],strategy:"absolute"};function rb(){for(var e=arguments.length,t=new Array(e),n=0;n{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=Gz(u);Object.assign(s.value,c)},requires:["computeStyles"]},r=S(()=>{const{onFirstUpdate:u,placement:c,strategy:f,modifiers:d}=l(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),a=Pt(),s=M({styles:{popper:{position:l(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{!a.value||(a.value.destroy(),a.value=void 0)};return ue(r,u=>{const c=l(a);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(a.value=ab(u,c,l(r)))}),qt(()=>{i()}),{state:S(()=>{var u;return{...((u=l(a))==null?void 0:u.state)||{}}}),styles:S(()=>l(s).styles),attributes:S(()=>l(s).attributes),update:()=>{var u;return(u=l(a))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=l(a))==null?void 0:u.forceUpdate()},instanceRef:S(()=>l(a))}};function Gz(e){const t=Object.keys(e.elements),n=Hl(t.map(r=>[r,e.styles[r]||{}])),o=Hl(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}const Fi=e=>{if(!e)return{onClick:Ft,onMousedown:Ft,onMouseup:Ft};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},Yz=(e,t)=>{const n=M(!1);if(!pt)return{isTeleportVisible:n,showTeleport:Ft,hideTeleport:Ft,renderTeleport:Ft};let o=null;const r=()=>{n.value=!0,o===null&&(o=q6())},a=()=>{n.value=!1,o!==null&&(G6(o),o=null)},s=()=>t.value!==!0?e():n.value?[Ne(Ta,{to:o},e())]:void 0;return Yr(a),{isTeleportVisible:n,showTeleport:r,hideTeleport:a,renderTeleport:s}},sb=(e,t=0)=>{if(t===0)return e;const n=M(!1);let o=0;const r=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return Ze(r),ue(()=>e.value,a=>{a?r():n.value=a}),n};function lf(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return Vs(()=>n()),{registerTimeout:t,cancelTimeout:n}}const ib="after-appear",ub="after-enter",cb="after-leave",Xz="appear",db="appear-cancelled",fb="before-enter",pb="before-leave",vb="enter",hb="enter-cancelled",mb="leave",gb="leave-cancelled",Zz=[ib,ub,cb,Xz,db,fb,pb,vb,hb,mb,gb],Jz=()=>{const{emit:e}=nt();return{onAfterAppear:()=>{e(ib)},onAfterEnter:()=>{e(ub)},onAfterLeave:()=>{e(cb)},onAppearCancelled:()=>{e(db)},onBeforeEnter:()=>{e(fb)},onBeforeLeave:()=>{e(pb)},onEnter:()=>{e(vb)},onEnterCancelled:()=>{e(hb)},onLeave:()=>{e(mb)},onLeaveCancelled:()=>{e(gb)}}},yb={prefix:Math.floor(Math.random()*1e4),current:0},bb=Symbol("elIdInjection"),sf=()=>nt()?Oe(bb,yb):yb,no=e=>{const t=sf(),n=Pi();return S(()=>l(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Qa=[];const wb=e=>{const t=e;t.key===Ae.esc&&Qa.forEach(n=>n(t))},Cb=e=>{Ze(()=>{Qa.length===0&&document.addEventListener("keydown",wb),pt&&Qa.push(e)}),qt(()=>{Qa=Qa.filter(t=>t!==e),Qa.length===0&&pt&&document.removeEventListener("keydown",wb)})};let Sb;const uf=()=>{const e=Pi(),t=sf(),n=S(()=>`${e.value}-popper-container-${t.prefix}`),o=S(()=>`#${n.value}`);return{id:n,selector:o}},Qz=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},_b=()=>{const{id:e,selector:t}=uf();return sc(()=>{!pt||!Sb&&!document.body.querySelector(t.value)&&(Sb=Qz(e.value))}),{id:e,selector:t}},eH=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:r,afterHide:a,beforeHide:s})=>{ue(()=>l(e),i=>{i?(o==null||o(),Ee(()=>{!l(e)||n("show")&&(t.value=!0)})):(s==null||s(),Ee(()=>{l(e)||n("hide")&&(t.value=!1)}))}),ue(()=>t.value,i=>{i?r==null||r():a==null||a()})},$b=be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),cf=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:a}=lf(),{registerTimeout:s,cancelTimeout:i}=lf();return{onOpen:f=>{a(()=>{o(f);const d=l(n);De(d)&&d>0&&s(()=>{r(f)},d)},l(e))},onClose:f=>{i(),a(()=>{r(f)},l(t))}}},df=Symbol("elForwardRef"),kb=e=>{ut(df,{setForwardRef:n=>{e.value=n}})},Eb=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Tb=M(0),ff=2e3,pf=Symbol("zIndexContextKey"),da=e=>{const t=e||Oe(pf,void 0),n=S(()=>{const a=l(t);return De(a)?a:ff}),o=S(()=>n.value+Tb.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Tb.value++,o.value)}};function vf(e){return e.split("-")[0]}function hf(e){return e.split("-")[1]}function mf(e){return["top","bottom"].includes(vf(e))?"x":"y"}function Ob(e){return e==="y"?"height":"width"}function Mb(e,t,n){let{reference:o,floating:r}=e;const a=o.x+o.width/2-r.width/2,s=o.y+o.height/2-r.height/2,i=mf(t),u=Ob(i),c=o[u]/2-r[u]/2,f=vf(t),d=i==="x";let p;switch(f){case"top":p={x:a,y:o.y-r.height};break;case"bottom":p={x:a,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:s};break;case"left":p={x:o.x-r.width,y:s};break;default:p={x:o.x,y:o.y}}switch(hf(t)){case"start":p[i]-=c*(n&&d?-1:1);break;case"end":p[i]+=c*(n&&d?-1:1);break}return p}const tH=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=n,i=await(s.isRTL==null?void 0:s.isRTL(t));if(process.env.NODE_ENV!=="production"&&(s==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),a.filter(m=>{let{name:v}=m;return v==="autoPlacement"||v==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=Mb(u,o,i),d=o,p={},h=0;for(let m=0;m50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),w&&h<=50){h++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:c,y:f}=Mb(u,d,i)),m=-1;continue}}return{x:c,y:f,placement:d,strategy:r,middlewareData:p}};function nH(e){return{top:0,right:0,bottom:0,left:0,...e}}function oH(e){return typeof e!="number"?nH(e):{top:e,right:e,bottom:e,left:e}}function Ab(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const rH=Math.min,aH=Math.max;function lH(e,t,n){return aH(e,rH(t,n))}const sH=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:r,y:a,placement:s,rects:i,platform:u}=t;if(n==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const c=oH(o),f={x:r,y:a},d=mf(s),p=hf(s),h=Ob(d),m=await u.getDimensions(n),v=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=i.reference[h]+i.reference[d]-f[d]-i.floating[h],C=f[d]-i.reference[d],b=await(u.getOffsetParent==null?void 0:u.getOffsetParent(n));let w=b?d==="y"?b.clientHeight||0:b.clientWidth||0:0;w===0&&(w=i.floating[h]);const k=y/2-C/2,$=c[v],O=w-m[h]-c[g],I=w/2-m[h]/2+k,P=lH($,I,O),D=(p==="start"?c[v]:c[g])>0&&I!==P&&i.reference[h]<=i.floating[h]?I<$?$-I:O-I:0;return{[d]:f[d]-D,data:{[d]:P,centerOffset:I-P}}}});async function iH(e,t){const{placement:n,platform:o,elements:r}=e,a=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=vf(n),i=hf(n),u=mf(n)==="x",c=["left","top"].includes(s)?-1:1,f=a&&u?-1:1,d=typeof t=="function"?t(e):t;let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(h=i==="end"?m*-1:m),u?{x:h*f,y:p*c}:{x:p*c,y:h*f}}const uH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await iH(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};function Ib(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function fr(e){if(e==null)return window;if(!Ib(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yo(e){return fr(e).getComputedStyle(e)}function pr(e){return Ib(e)?"":e?(e.nodeName||"").toLowerCase():""}function Nb(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Xo(e){return e instanceof fr(e).HTMLElement}function el(e){return e instanceof fr(e).Element}function cH(e){return e instanceof fr(e).Node}function tl(e){if(typeof ShadowRoot=="undefined")return!1;const t=fr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vi(e){const{overflow:t,overflowX:n,overflowY:o}=Yo(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function dH(e){return["table","td","th"].includes(pr(e))}function Rb(e){const t=/firefox/i.test(Nb()),n=Yo(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function Pb(){return!/^((?!chrome|android).)*safari/i.test(Nb())}const xb=Math.min,as=Math.max,zi=Math.round;function fa(e,t,n){var o,r,a,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect();let u=1,c=1;t&&Xo(e)&&(u=e.offsetWidth>0&&zi(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&zi(i.height)/e.offsetHeight||1);const f=el(e)?fr(e):window,d=!Pb()&&n,p=(i.left+(d&&(o=(r=f.visualViewport)==null?void 0:r.offsetLeft)!=null?o:0))/u,h=(i.top+(d&&(a=(s=f.visualViewport)==null?void 0:s.offsetTop)!=null?a:0))/c,m=i.width/u,v=i.height/c;return{width:m,height:v,top:h,right:p+m,bottom:h+v,left:p,x:p,y:h}}function Br(e){return((cH(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hi(e){return el(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lb(e){return fa(Br(e)).left+Hi(e).scrollLeft}function fH(e){const t=fa(e);return zi(t.width)!==e.offsetWidth||zi(t.height)!==e.offsetHeight}function pH(e,t,n){const o=Xo(t),r=Br(t),a=fa(e,o&&fH(t),n==="fixed");let s={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(o||!o&&n!=="fixed")if((pr(t)!=="body"||Vi(r))&&(s=Hi(t)),Xo(t)){const u=fa(t,!0);i.x=u.x+t.clientLeft,i.y=u.y+t.clientTop}else r&&(i.x=Lb(r));return{x:a.left+s.scrollLeft-i.x,y:a.top+s.scrollTop-i.y,width:a.width,height:a.height}}function Db(e){return pr(e)==="html"?e:e.assignedSlot||e.parentNode||(tl(e)?e.host:null)||Br(e)}function Bb(e){return!Xo(e)||Yo(e).position==="fixed"?null:vH(e)}function vH(e){let{offsetParent:t}=e,n=e,o=!1;for(;n&&n!==t;){const{assignedSlot:r}=n;if(r){let a=r.offsetParent;if(Yo(r).display==="contents"){const s=r.hasAttribute("style"),i=r.style.display;r.style.display=Yo(n).display,a=r.offsetParent,r.style.display=i,s||r.removeAttribute("style")}n=r,t!==a&&(t=a,o=!0)}else if(tl(n)&&n.host&&o)break;n=tl(n)&&n.host||n.parentNode}return t}function hH(e){let t=Db(e);for(tl(t)&&(t=t.host);Xo(t)&&!["html","body"].includes(pr(t));){if(Rb(t))return t;{const n=t.parentNode;t=tl(n)?n.host:n}}return null}function gf(e){const t=fr(e);let n=Bb(e);for(;n&&dH(n)&&Yo(n).position==="static";)n=Bb(n);return n&&(pr(n)==="html"||pr(n)==="body"&&Yo(n).position==="static"&&!Rb(n))?t:n||hH(e)||t}function Fb(e){if(Xo(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=fa(e);return{width:t.width,height:t.height}}function mH(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Xo(n),a=Br(n);if(n===a)return t;let s={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if((r||!r&&o!=="fixed")&&((pr(n)!=="body"||Vi(a))&&(s=Hi(n)),Xo(n))){const u=fa(n,!0);i.x=u.x+n.clientLeft,i.y=u.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+i.x,y:t.y-s.scrollTop+i.y}}function gH(e,t){const n=fr(e),o=Br(e),r=n.visualViewport;let a=o.clientWidth,s=o.clientHeight,i=0,u=0;if(r){a=r.width,s=r.height;const c=Pb();(c||!c&&t==="fixed")&&(i=r.offsetLeft,u=r.offsetTop)}return{width:a,height:s,x:i,y:u}}function yH(e){var t;const n=Br(e),o=Hi(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=as(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=as(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let i=-o.scrollLeft+Lb(e);const u=-o.scrollTop;return Yo(r||n).direction==="rtl"&&(i+=as(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:i,y:u}}function Vb(e){const t=Db(e);return["html","body","#document"].includes(pr(t))?e.ownerDocument.body:Xo(t)&&Vi(t)?t:Vb(t)}function zb(e,t){var n;t===void 0&&(t=[]);const o=Vb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=fr(o),s=r?[a].concat(a.visualViewport||[],Vi(o)?o:[]):o,i=t.concat(s);return r?i:i.concat(zb(s))}function bH(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tl(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function wH(e,t){const n=fa(e,!1,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Hb(e,t,n){return t==="viewport"?Ab(gH(e,n)):el(t)?wH(t,n):Ab(yH(Br(e)))}function CH(e){const t=zb(e),o=["absolute","fixed"].includes(Yo(e).position)&&Xo(e)?gf(e):e;return el(o)?t.filter(r=>el(r)&&bH(r,o)&&pr(r)!=="body"):[]}function SH(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?CH(t):[].concat(n),o],i=s[0],u=s.reduce((c,f)=>{const d=Hb(t,f,r);return c.top=as(d.top,c.top),c.right=xb(d.right,c.right),c.bottom=xb(d.bottom,c.bottom),c.left=as(d.left,c.left),c},Hb(t,i,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}const _H={getClippingRect:SH,convertOffsetParentRelativeRectToViewportRelativeRect:mH,isElement:el,getDimensions:Fb,getOffsetParent:gf,getDocumentElement:Br,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:pH(t,gf(n),o),floating:{...Fb(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yo(e).direction==="rtl"},$H=(e,t,n)=>tH(e,t,{platform:_H,...n}),kH=be({}),EH=e=>{if(!pt)return;if(!e)return e;const t=Xn(e);return t||(Rn(e)?t:e)},TH=(e,t)=>{const n=e==null?void 0:e[t];return nn(n)?"":`${n}px`},Wb=({middleware:e,placement:t,strategy:n})=>{const o=M(),r=M(),a=M(),s=M(),i=M({}),u={x:a,y:s,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!pt)return;const f=EH(o),d=Xn(r);if(!f||!d)return;const p=await $H(f,d,{placement:l(t),strategy:l(n),middleware:l(e)});ql(u).forEach(h=>{u[h].value=p[h]})};return Ze(()=>{Yn(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:r}},Kb=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=l(e);return o?sH({element:o,padding:t}).fn(n):{}}});function jb(e){const t=M();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:a,value:s}=e.value;if(r==null||a==null)return;const i=s.slice(0,Math.max(0,r)),u=s.slice(Math.max(0,a));t.value={selectionStart:r,selectionEnd:a,value:s,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:i}=t.value;if(a==null||s==null||i==null)return;let u=r.length;if(r.endsWith(s))u=r.length-s.length;else if(r.startsWith(a))u=a.length;else{const c=a[i-1],f=r.indexOf(c,i-1);f!==-1&&(u=f+1)}e.value.setSelectionRange(u,u)}return[n,o]}const OH=(e,t,n)=>Ua(e.subTree).filter(a=>{var s;return Jt(a)&&((s=a.type)==null?void 0:s.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),Wi=(e,t)=>{const n={},o=Pt([]);return{children:o,addChild:s=>{n[s.uid]=s,o.value=OH(e,t,n)},removeChild:s=>{delete n[s],o.value=o.value.filter(i=>i.uid!==s)}}},vn=Eo({type:String,values:To,required:!1}),MH={size:vn},yf=Symbol("size"),Ub=()=>{const e=Oe(yf,{});return S(()=>l(e.size)||"")},bf=Symbol(),Ki=M();function ls(e,t=void 0){const n=nt()?Oe(bf,Ki):Ki;return e?S(()=>{var o,r;return(r=(o=n.value)==null?void 0:o[e])!=null?r:t}):n}function ss(e,t){const n=ls(),o=ce(e,S(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Zl})),r=gt(S(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=da(S(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ff})),s=S(()=>{var i;return l(t)||((i=n.value)==null?void 0:i.size)||""});return ji(S(()=>l(n)||{})),{ns:o,locale:r,zIndex:a,size:s}}const ji=(e,t,n=!1)=>{var o;const r=!!nt(),a=r?ls():void 0,s=(o=t==null?void 0:t.provide)!=null?o:r?ut:void 0;if(!s)return;const i=S(()=>{const u=l(e);return a!=null&&a.value?AH(a.value,u):u});return s(bf,i),s(jd,S(()=>i.value.locale)),s(qd,S(()=>i.value.namespace)),s(pf,S(()=>i.value.zIndex)),s(yf,{size:S(()=>i.value.size||"")}),(n||!Ki.value)&&(Ki.value=i.value),i},AH=(e,t)=>{var n;const o=[...new Set([...ql(e),...ql(t)])],r={};for(const a of o)r[a]=(n=t[a])!=null?n:e[a];return r},qb=be({a11y:{type:Boolean,default:!0},locale:{type:te(Object)},size:vn,button:{type:te(Object)},experimentalFeatures:{type:te(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:te(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),Ui={},IH=G({name:"ElConfigProvider",props:qb,setup(e,{slots:t}){ue(()=>e.message,o=>{Object.assign(Ui,o!=null?o:{})},{immediate:!0,deep:!0});const n=ji(e);return()=>le(t,"default",{config:n==null?void 0:n.value})}}),Gb=Je(IH),NH="2.3.6",Yb=(e=[])=>({version:NH,install:(n,o)=>{n[Hd]||(n[Hd]=!0,e.forEach(r=>n.use(r)),o&&ji(o,n,!0))}}),Xb=be({zIndex:{type:te([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Zb={scroll:({scrollTop:e,fixed:t})=>De(e)&&un(t),[Bt]:e=>un(e)};var ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const Jb="ElAffix",RH=G({name:Jb}),PH=G({...RH,props:Xb,emits:Zb,setup(e,{expose:t,emit:n}){const o=e,r=ce("affix"),a=Pt(),s=Pt(),i=Pt(),{height:u}=wE(),{height:c,width:f,top:d,bottom:p,update:h}=Ah(s,{windowScroll:!1}),m=Ah(a),v=M(!1),g=M(0),y=M(0),C=S(()=>({height:v.value?`${c.value}px`:"",width:v.value?`${f.value}px`:""})),b=S(()=>{if(!v.value)return{};const $=o.offset?tn(o.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:o.position==="top"?$:"",bottom:o.position==="bottom"?$:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:o.zIndex}}),w=()=>{if(!!i.value)if(g.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,o.position==="top")if(o.target){const $=m.bottom.value-o.offset-c.value;v.value=o.offset>d.value&&m.bottom.value>0,y.value=$<0?$:0}else v.value=o.offset>d.value;else if(o.target){const $=u.value-m.top.value-o.offset-c.value;v.value=u.value-o.offsetm.top.value,y.value=$<0?-$:0}else v.value=u.value-o.offset{h(),n("scroll",{scrollTop:g.value,fixed:v.value})};return ue(v,$=>n("change",$)),Ze(()=>{var $;o.target?(a.value=($=document.querySelector(o.target))!=null?$:void 0,a.value||cn(Jb,`Target is not existed: ${o.target}`)):a.value=document.documentElement,i.value=Dd(s.value,!0),h()}),xt(i,"scroll",k),Yn(w),t({update:w,updateRoot:h}),($,O)=>(_(),x("div",{ref_key:"root",ref:s,class:E(l(r).b()),style:Ie(l(C))},[z("div",{class:E({[l(r).m("fixed")]:v.value}),style:Ie(l(b))},[le($.$slots,"default")],6)],6))}});var xH=ge(PH,[["__file","affix.vue"]]);const Qb=Je(xH),e1=be({size:{type:te([Number,String])},color:{type:String}}),LH=G({name:"ElIcon",inheritAttrs:!1}),DH=G({...LH,props:e1,setup(e){const t=e,n=ce("icon"),o=S(()=>{const{size:r,color:a}=t;return!r&&!a?{}:{fontSize:bn(r)?void 0:tn(r),"--color":a}});return(r,a)=>(_(),x("i",ot({class:l(n).b(),style:l(o)},r.$attrs),[le(r.$slots,"default")],16))}});var BH=ge(DH,[["__file","icon.vue"]]);const ke=Je(BH),t1=["light","dark"],n1=be({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ql(xr),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:t1,default:"light"}}),o1={close:e=>e instanceof MouseEvent},FH=G({name:"ElAlert"}),VH=G({...FH,props:n1,emits:o1,setup(e,{emit:t}){const n=e,{Close:o}=zd,r=gn(),a=ce("alert"),s=M(!0),i=S(()=>xr[n.type]),u=S(()=>[a.e("icon"),{[a.is("big")]:!!n.description||!!r.default}]),c=S(()=>({[a.is("bold")]:n.description||r.default})),f=d=>{s.value=!1,t("close",d)};return(d,p)=>(_(),ne(ln,{name:l(a).b("fade"),persisted:""},{default:Y(()=>[je(z("div",{class:E([l(a).b(),l(a).m(d.type),l(a).is("center",d.center),l(a).is(d.effect)]),role:"alert"},[d.showIcon&&l(i)?(_(),ne(l(ke),{key:0,class:E(l(u))},{default:Y(()=>[(_(),ne(rt(l(i))))]),_:1},8,["class"])):ee("v-if",!0),z("div",{class:E(l(a).e("content"))},[d.title||d.$slots.title?(_(),x("span",{key:0,class:E([l(a).e("title"),l(c)])},[le(d.$slots,"title",{},()=>[Ct(me(d.title),1)])],2)):ee("v-if",!0),d.$slots.default||d.description?(_(),x("p",{key:1,class:E(l(a).e("description"))},[le(d.$slots,"default",{},()=>[Ct(me(d.description),1)])],2)):ee("v-if",!0),d.closable?(_(),x(xe,{key:2},[d.closeText?(_(),x("div",{key:0,class:E([l(a).e("close-btn"),l(a).is("customed")]),onClick:f},me(d.closeText),3)):(_(),ne(l(ke),{key:1,class:E(l(a).e("close-btn")),onClick:f},{default:Y(()=>[j(l(o))]),_:1},8,["class"]))],64)):ee("v-if",!0)],2)],2),[[St,s.value]])]),_:3},8,["name"]))}});var zH=ge(VH,[["__file","alert.vue"]]);const r1=Je(zH),Fr=Symbol("formContextKey"),Ao=Symbol("formItemContextKey"),on=(e,t={})=>{const n=M(void 0),o=t.prop?n:Xd("size"),r=t.global?n:Ub(),a=t.form?{size:void 0}:Oe(Fr,void 0),s=t.formItem?{size:void 0}:Oe(Ao,void 0);return S(()=>o.value||l(e)||(s==null?void 0:s.size)||(a==null?void 0:a.size)||r.value||"")},An=e=>{const t=Xd("disabled"),n=Oe(Fr,void 0);return S(()=>t.value||l(e)||(n==null?void 0:n.disabled)||!1)},HH=on,WH=An,In=()=>{const e=Oe(Fr,void 0),t=Oe(Ao,void 0);return{form:e,formItem:t}},vr=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=M(!1)),o||(o=M(!1));const r=M();let a;const s=S(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Ze(()=>{a=ue([Kt(e,"id"),n],([i,u])=>{const c=i!=null?i:u?void 0:no().value;c!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!u&&c&&t.addInputId(c)),r.value=c)},{immediate:!0})}),Yr(()=>{a&&a(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:s,inputId:r}},KH=be({size:{type:String,values:To},disabled:Boolean}),a1=be({...KH,model:Object,rules:{type:te(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),l1={validate:(e,t,n)=>(et(e)||it(e))&&un(t)&&it(n)};function jH(){const e=M([]),t=S(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function n(a){const s=e.value.indexOf(a);return s===-1&&t.value,s}function o(a,s){if(a&&s){const i=n(s);e.value.splice(i,1,a)}else a&&e.value.push(a)}function r(a){const s=n(a);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:r}}const qi=(e,t)=>{const n=ra(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},UH="ElForm",qH=G({name:UH}),GH=G({...qH,props:a1,emits:l1,setup(e,{expose:t,emit:n}){const o=e,r=[],a=on(),s=ce("form"),i=S(()=>{const{labelPosition:C,inline:b}=o;return[s.b(),s.m(a.value||"default"),{[s.m(`label-${C}`)]:C,[s.m("inline")]:b}]}),u=C=>{r.push(C)},c=C=>{C.prop&&r.splice(r.indexOf(C),1)},f=(C=[])=>{!o.model||qi(r,C).forEach(b=>b.resetField())},d=(C=[])=>{qi(r,C).forEach(b=>b.clearValidate())},p=S(()=>!!o.model),h=C=>{if(r.length===0)return[];const b=qi(r,C);return b.length?b:[]},m=async C=>g(void 0,C),v=async(C=[])=>{if(!p.value)return!1;const b=h(C);if(b.length===0)return!0;let w={};for(const k of b)try{await k.validate("")}catch($){w={...w,...$}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(C=[],b)=>{const w=!$t(b);try{const k=await v(C);return k===!0&&(b==null||b(k)),k}catch(k){if(k instanceof Error)throw k;const $=k;return o.scrollToError&&y(Object.keys($)[0]),b==null||b(!1,$),w&&Promise.reject($)}},y=C=>{var b;const w=qi(r,C)[0];w&&((b=w.$el)==null||b.scrollIntoView(o.scrollIntoViewOptions))};return ue(()=>o.rules,()=>{o.validateOnRuleChange&&m().catch(C=>void 0)},{deep:!0}),ut(Fr,At({...dn(o),emit:n,resetFields:f,clearValidate:d,validateField:g,addField:u,removeField:c,...jH()})),t({validate:m,validateField:g,resetFields:f,clearValidate:d,scrollToField:y}),(C,b)=>(_(),x("form",{class:E(l(i))},[le(C.$slots,"default")],2))}});var YH=ge(GH,[["__file","form.vue"]]);function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o=a)return i;switch(i){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}break;default:return i}});return s}return e}function t9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||t9(t)&&typeof e=="string"&&!e)}function n9(e,t,n){var o=[],r=0,a=e.length;function s(i){o.push.apply(o,i||[]),r++,r===a&&n(o)}e.forEach(function(i){t(i,s)})}function s1(e,t,n){var o=0,r=e.length;function a(s){if(s&&s.length){n(s);return}var i=o;o=o+1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(f1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(i9())},hex:function(t){return typeof t=="string"&&!!t.match(f1.hex)}},u9=function(t,n,o,r,a){if(t.required&&n===void 0){d1(t,n,o,r,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;s.indexOf(i)>-1?us[i](n)||r.push(oo(a.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&r.push(oo(a.messages.types[i],t.fullField,t.type))},c9=function(t,n,o,r,a){var s=typeof t.len=="number",i=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,p=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(p?d="number":h?d="string":m&&(d="array"),!d)return!1;m&&(f=n.length),h&&(f=n.replace(c,"_").length),s?f!==t.len&&r.push(oo(a.messages[d].len,t.fullField,t.len)):i&&!u&&ft.max?r.push(oo(a.messages[d].max,t.fullField,t.max)):i&&u&&(ft.max)&&r.push(oo(a.messages[d].range,t.fullField,t.min,t.max))},nl="enum",d9=function(t,n,o,r,a){t[nl]=Array.isArray(t[nl])?t[nl]:[],t[nl].indexOf(n)===-1&&r.push(oo(a.messages[nl],t.fullField,t[nl].join(", ")))},f9=function(t,n,o,r,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(oo(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||r.push(oo(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Nt={required:d1,whitespace:s9,type:u9,range:c9,enum:d9,pattern:f9},p9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n,"string")&&!t.required)return o();Nt.required(t,n,r,s,a,"string"),hn(n,"string")||(Nt.type(t,n,r,s,a),Nt.range(t,n,r,s,a),Nt.pattern(t,n,r,s,a),t.whitespace===!0&&Nt.whitespace(t,n,r,s,a))}o(s)},v9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&Nt.type(t,n,r,s,a)}o(s)},h9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&(Nt.type(t,n,r,s,a),Nt.range(t,n,r,s,a))}o(s)},m9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&Nt.type(t,n,r,s,a)}o(s)},g9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),hn(n)||Nt.type(t,n,r,s,a)}o(s)},y9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&(Nt.type(t,n,r,s,a),Nt.range(t,n,r,s,a))}o(s)},b9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&(Nt.type(t,n,r,s,a),Nt.range(t,n,r,s,a))}o(s)},w9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return o();Nt.required(t,n,r,s,a,"array"),n!=null&&(Nt.type(t,n,r,s,a),Nt.range(t,n,r,s,a))}o(s)},C9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&Nt.type(t,n,r,s,a)}o(s)},S9="enum",_9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a),n!==void 0&&Nt[S9](t,n,r,s,a)}o(s)},$9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n,"string")&&!t.required)return o();Nt.required(t,n,r,s,a),hn(n,"string")||Nt.pattern(t,n,r,s,a)}o(s)},k9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n,"date")&&!t.required)return o();if(Nt.required(t,n,r,s,a),!hn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Nt.type(t,u,r,s,a),u&&Nt.range(t,u.getTime(),r,s,a)}}o(s)},E9=function(t,n,o,r,a){var s=[],i=Array.isArray(n)?"array":typeof n;Nt.required(t,n,r,s,a,i),o(s)},_f=function(t,n,o,r,a){var s=t.type,i=[],u=t.required||!t.required&&r.hasOwnProperty(t.field);if(u){if(hn(n,s)&&!t.required)return o();Nt.required(t,n,r,i,a,s),hn(n,s)||Nt.type(t,n,r,i,a)}o(i)},T9=function(t,n,o,r,a){var s=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(hn(n)&&!t.required)return o();Nt.required(t,n,r,s,a)}o(s)},cs={string:p9,method:v9,number:h9,boolean:m9,regexp:g9,integer:y9,float:b9,array:w9,object:C9,enum:_9,pattern:$9,date:k9,url:_f,hex:_f,email:_f,required:E9,any:T9};function $f(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var kf=$f(),ds=function(){function e(n){this.rules=null,this._messages=kf,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(a){var s=o[a];r.rules[a]=Array.isArray(s)?s:[s]})},t.messages=function(o){return o&&(this._messages=c1($f(),o)),this._messages},t.validate=function(o,r,a){var s=this;r===void 0&&(r={}),a===void 0&&(a=function(){});var i=o,u=r,c=a;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function f(v){var g=[],y={};function C(w){if(Array.isArray(w)){var k;g=(k=g).concat.apply(k,w)}else g.push(w)}for(var b=0;b");const r=ce("form"),a=M(),s=M(0),i=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(f="update")=>{Ee(()=>{t.default&&e.isAutoWidth&&(f==="update"?s.value=i():f==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},c=()=>u("update");return Ze(()=>{c()}),qt(()=>{u("remove")}),Xr(()=>c()),ue(s,(f,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,d))}),En(S(()=>{var f,d;return(d=(f=a.value)==null?void 0:f.firstElementChild)!=null?d:null}),c),()=>{var f,d;if(!t)return null;const{isAutoWidth:p}=e;if(p){const h=n==null?void 0:n.autoLabelWidth,m=o==null?void 0:o.hasLabel,v={};if(m&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-s.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(v[y]=`${g}px`)}return j("div",{ref:a,class:[r.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return j(xe,{ref:a},[(d=t.default)==null?void 0:d.call(t)])}}});const M9=["role","aria-labelledby"],A9=G({name:"ElFormItem"}),I9=G({...A9,props:v1,setup(e,{expose:t}){const n=e,o=gn(),r=Oe(Fr,void 0),a=Oe(Ao,void 0),s=on(void 0,{formItem:!1}),i=ce("form-item"),u=no().value,c=M([]),f=M(""),d=aE(f,100),p=M(""),h=M();let m,v=!1;const g=S(()=>{if((r==null?void 0:r.labelPosition)==="top")return{};const ie=tn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return ie?{width:ie}:{}}),y=S(()=>{if((r==null?void 0:r.labelPosition)==="top"||(r==null?void 0:r.inline))return{};if(!n.label&&!n.labelWidth&&P)return{};const ie=tn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!o.label?{marginLeft:ie}:{}}),C=S(()=>[i.b(),i.m(s.value),i.is("error",f.value==="error"),i.is("validating",f.value==="validating"),i.is("success",f.value==="success"),i.is("required",V.value||n.required),i.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:r==null?void 0:r.statusIcon}]),b=S(()=>un(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),w=S(()=>[i.e("error"),{[i.em("error","inline")]:b.value}]),k=S(()=>n.prop?it(n.prop)?n.prop:n.prop.join("."):""),$=S(()=>!!(n.label||o.label)),O=S(()=>n.for||c.value.length===1?c.value[0]:void 0),I=S(()=>!O.value&&$.value),P=!!a,N=S(()=>{const ie=r==null?void 0:r.model;if(!(!ie||!n.prop))return wi(ie,n.prop).value}),L=S(()=>{const{required:ie}=n,J=[];n.rules&&J.push(...ra(n.rules));const oe=r==null?void 0:r.rules;if(oe&&n.prop){const de=wi(oe,n.prop).value;de&&J.push(...ra(de))}if(ie!==void 0){const de=J.map((Te,Re)=>[Te,Re]).filter(([Te])=>Object.keys(Te).includes("required"));if(de.length>0)for(const[Te,Re]of de)Te.required!==ie&&(J[Re]={...Te,required:ie});else J.push({required:ie})}return J}),D=S(()=>L.value.length>0),R=ie=>L.value.filter(oe=>!oe.trigger||!ie?!0:Array.isArray(oe.trigger)?oe.trigger.includes(ie):oe.trigger===ie).map(({trigger:oe,...de})=>de),V=S(()=>L.value.some(ie=>ie.required)),U=S(()=>{var ie;return d.value==="error"&&n.showMessage&&((ie=r==null?void 0:r.showMessage)!=null?ie:!0)}),F=S(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),T=ie=>{f.value=ie},B=ie=>{var J,oe;const{errors:de,fields:Te}=ie;(!de||!Te)&&console.error(ie),T("error"),p.value=de?(oe=(J=de==null?void 0:de[0])==null?void 0:J.message)!=null?oe:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,p.value)},A=()=>{T("success"),r==null||r.emit("validate",n.prop,!0,"")},W=async ie=>{const J=k.value;return new ds({[J]:ie}).validate({[J]:N.value},{firstFields:!0}).then(()=>(A(),!0)).catch(de=>(B(de),Promise.reject(de)))},Z=async(ie,J)=>{if(v||!n.prop)return!1;const oe=$t(J);if(!D.value)return J==null||J(!1),!1;const de=R(ie);return de.length===0?(J==null||J(!0),!0):(T("validating"),W(de).then(()=>(J==null||J(!0),!0)).catch(Te=>{const{fields:Re}=Te;return J==null||J(!1,Re),oe?!1:Promise.reject(Re)}))},K=()=>{T(""),p.value="",v=!1},X=async()=>{const ie=r==null?void 0:r.model;if(!ie||!n.prop)return;const J=wi(ie,n.prop);v=!0,J.value=Xc(m),await Ee(),K(),v=!1},se=ie=>{c.value.includes(ie)||c.value.push(ie)},ve=ie=>{c.value=c.value.filter(J=>J!==ie)};ue(()=>n.error,ie=>{p.value=ie||"",T(ie?"error":"")},{immediate:!0}),ue(()=>n.validateStatus,ie=>T(ie||""));const re=At({...dn(n),$el:h,size:s,validateState:f,labelId:u,inputIds:c,isGroup:I,hasLabel:$,addInputId:se,removeInputId:ve,resetField:X,clearValidate:K,validate:Z});return ut(Ao,re),Ze(()=>{n.prop&&(r==null||r.addField(re),m=Xc(N.value))}),qt(()=>{r==null||r.removeField(re)}),t({size:s,validateMessage:p,validateState:f,validate:Z,clearValidate:K,resetField:X}),(ie,J)=>{var oe;return _(),x("div",{ref_key:"formItemRef",ref:h,class:E(l(C)),role:l(I)?"group":void 0,"aria-labelledby":l(I)?l(u):void 0},[j(l(O9),{"is-auto-width":l(g).width==="auto","update-all":((oe=l(r))==null?void 0:oe.labelWidth)==="auto"},{default:Y(()=>[l($)?(_(),ne(rt(l(O)?"label":"div"),{key:0,id:l(u),for:l(O),class:E(l(i).e("label")),style:Ie(l(g))},{default:Y(()=>[le(ie.$slots,"label",{label:l(F)},()=>[Ct(me(l(F)),1)])]),_:3},8,["id","for","class","style"])):ee("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),z("div",{class:E(l(i).e("content")),style:Ie(l(y))},[le(ie.$slots,"default"),j(mh,{name:`${l(i).namespace.value}-zoom-in-top`},{default:Y(()=>[l(U)?le(ie.$slots,"error",{key:0,error:p.value},()=>[z("div",{class:E(l(w))},me(p.value),3)]):ee("v-if",!0)]),_:3},8,["name"])],6)],10,M9)}}});var m1=ge(I9,[["__file","form-item.vue"]]);const g1=Je(YH,{FormItem:m1}),y1=Xt(m1);let Io;const N9=` + height:0 !important; + visibility:hidden !important; + ${Ph()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,R9=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function P9(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:R9.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function b1(e,t=1,n){var o;Io||(Io=document.createElement("textarea"),document.body.appendChild(Io));const{paddingSize:r,borderSize:a,boxSizing:s,contextStyle:i}=P9(e);Io.setAttribute("style",`${i};${N9}`),Io.value=e.value||e.placeholder||"";let u=Io.scrollHeight;const c={};s==="border-box"?u=u+a:s==="content-box"&&(u=u-r),Io.value="";const f=Io.scrollHeight-r;if(De(t)){let d=f*t;s==="border-box"&&(d=d+r+a),u=Math.max(d,u),c.minHeight=`${d}px`}if(De(n)){let d=f*n;s==="border-box"&&(d=d+r+a),u=Math.min(d,u)}return c.height=`${u}px`,(o=Io.parentNode)==null||o.removeChild(Io),Io=void 0,c}const w1=be({id:{type:String,default:void 0},size:vn,disabled:Boolean,modelValue:{type:te([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:te([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Dt},prefixIcon:{type:Dt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:te([Object,Array,String]),default:()=>Ut({})}}),C1={[tt]:e=>it(e),input:e=>it(e),change:e=>it(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},x9=["role"],L9=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],D9=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],B9=G({name:"ElInput",inheritAttrs:!1}),F9=G({...B9,props:w1,emits:C1,setup(e,{expose:t,emit:n}){const o=e,r=Oa(),a=gn(),s=S(()=>{const Ce={};return o.containerRole==="combobox"&&(Ce["aria-haspopup"]=r["aria-haspopup"],Ce["aria-owns"]=r["aria-owns"],Ce["aria-expanded"]=r["aria-expanded"]),Ce}),i=S(()=>[o.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",m.value),v.is("exceed",Z.value),{[v.b("group")]:a.prepend||a.append,[v.bm("group","append")]:a.append,[v.bm("group","prepend")]:a.prepend,[v.m("prefix")]:a.prefix||o.prefixIcon,[v.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[v.bm("suffix","password-clear")]:T.value&&B.value},r.class]),u=S(()=>[v.e("wrapper"),v.is("focus",b.value)]),c=Ii({excludeKeys:S(()=>Object.keys(s.value))}),{form:f,formItem:d}=In(),{inputId:p}=vr(o,{formItemContext:d}),h=on(),m=An(),v=ce("input"),g=ce("textarea"),y=Pt(),C=Pt(),b=M(!1),w=M(!1),k=M(!1),$=M(!1),O=M(),I=Pt(o.inputStyle),P=S(()=>y.value||C.value),N=S(()=>{var Ce;return(Ce=f==null?void 0:f.statusIcon)!=null?Ce:!1}),L=S(()=>(d==null?void 0:d.validateState)||""),D=S(()=>L.value&&Ey[L.value]),R=S(()=>$.value?Q5:aF),V=S(()=>[r.style,o.inputStyle]),U=S(()=>[o.inputStyle,I.value,{resize:o.resize}]),F=S(()=>nn(o.modelValue)?"":String(o.modelValue)),T=S(()=>o.clearable&&!m.value&&!o.readonly&&!!F.value&&(b.value||w.value)),B=S(()=>o.showPassword&&!m.value&&!o.readonly&&!!F.value&&(!!F.value||b.value)),A=S(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!m.value&&!o.readonly&&!o.showPassword),W=S(()=>F.value.length),Z=S(()=>!!A.value&&W.value>Number(c.value.maxlength)),K=S(()=>!!a.suffix||!!o.suffixIcon||T.value||o.showPassword||A.value||!!L.value&&N.value),[X,se]=jb(y);En(C,Ce=>{if(ie(),!A.value||o.resize!=="both")return;const ze=Ce[0],{width:ht}=ze.contentRect;O.value={right:`calc(100% - ${ht+15+6}px)`}});const ve=()=>{const{type:Ce,autosize:ze}=o;if(!(!pt||Ce!=="textarea"||!C.value))if(ze){const ht=Rt(ze)?ze.minRows:void 0,Ot=Rt(ze)?ze.maxRows:void 0,lt=b1(C.value,ht,Ot);I.value={overflowY:"hidden",...lt},Ee(()=>{C.value.offsetHeight,I.value=lt})}else I.value={minHeight:b1(C.value).minHeight}},ie=(Ce=>{let ze=!1;return()=>{var ht;if(ze||!o.autosize)return;((ht=C.value)==null?void 0:ht.offsetParent)===null||(Ce(),ze=!0)}})(ve),J=()=>{const Ce=P.value;!Ce||Ce.value===F.value||(Ce.value=F.value)},oe=async Ce=>{X();let{value:ze}=Ce.target;if(o.formatter&&(ze=o.parser?o.parser(ze):ze,ze=o.formatter(ze)),!k.value){if(ze===F.value){J();return}n(tt,ze),n("input",ze),await Ee(),J(),se()}},de=Ce=>{n("change",Ce.target.value)},Te=Ce=>{n("compositionstart",Ce),k.value=!0},Re=Ce=>{var ze;n("compositionupdate",Ce);const ht=(ze=Ce.target)==null?void 0:ze.value,Ot=ht[ht.length-1]||"";k.value=!Oi(Ot)},Ve=Ce=>{n("compositionend",Ce),k.value&&(k.value=!1,oe(Ce))},We=()=>{$.value=!$.value,Ge()},Ge=async()=>{var Ce;await Ee(),(Ce=P.value)==null||Ce.focus()},yt=()=>{var Ce;return(Ce=P.value)==null?void 0:Ce.blur()},Se=Ce=>{b.value=!0,n("focus",Ce)},Fe=Ce=>{var ze;b.value=!1,n("blur",Ce),o.validateEvent&&((ze=d==null?void 0:d.validate)==null||ze.call(d,"blur").catch(ht=>void 0))},Pe=Ce=>{w.value=!1,n("mouseleave",Ce)},He=Ce=>{w.value=!0,n("mouseenter",Ce)},Be=Ce=>{n("keydown",Ce)},Xe=()=>{var Ce;(Ce=P.value)==null||Ce.select()},Qe=()=>{n(tt,""),n("change",""),n("clear"),n("input","")};return ue(()=>o.modelValue,()=>{var Ce;Ee(()=>ve()),o.validateEvent&&((Ce=d==null?void 0:d.validate)==null||Ce.call(d,"change").catch(ze=>void 0))}),ue(F,()=>J()),ue(()=>o.type,async()=>{await Ee(),J(),ve()}),Ze(()=>{!o.formatter&&o.parser,J(),Ee(ve)}),t({input:y,textarea:C,ref:P,textareaStyle:U,autosize:Kt(o,"autosize"),focus:Ge,blur:yt,select:Xe,clear:Qe,resizeTextarea:ve}),(Ce,ze)=>je((_(),x("div",ot(l(s),{class:l(i),style:l(V),role:Ce.containerRole,onMouseenter:He,onMouseleave:Pe}),[ee(" input "),Ce.type!=="textarea"?(_(),x(xe,{key:0},[ee(" prepend slot "),Ce.$slots.prepend?(_(),x("div",{key:0,class:E(l(v).be("group","prepend"))},[le(Ce.$slots,"prepend")],2)):ee("v-if",!0),z("div",{class:E(l(u))},[ee(" prefix slot "),Ce.$slots.prefix||Ce.prefixIcon?(_(),x("span",{key:0,class:E(l(v).e("prefix"))},[z("span",{class:E(l(v).e("prefix-inner")),onClick:Ge},[le(Ce.$slots,"prefix"),Ce.prefixIcon?(_(),ne(l(ke),{key:0,class:E(l(v).e("icon"))},{default:Y(()=>[(_(),ne(rt(Ce.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0),z("input",ot({id:l(p),ref_key:"input",ref:y,class:l(v).e("inner")},l(c),{type:Ce.showPassword?$.value?"text":"password":Ce.type,disabled:l(m),formatter:Ce.formatter,parser:Ce.parser,readonly:Ce.readonly,autocomplete:Ce.autocomplete,tabindex:Ce.tabindex,"aria-label":Ce.label,placeholder:Ce.placeholder,style:Ce.inputStyle,form:o.form,onCompositionstart:Te,onCompositionupdate:Re,onCompositionend:Ve,onInput:oe,onFocus:Se,onBlur:Fe,onChange:de,onKeydown:Be}),null,16,L9),ee(" suffix slot "),l(K)?(_(),x("span",{key:1,class:E(l(v).e("suffix"))},[z("span",{class:E(l(v).e("suffix-inner")),onClick:Ge},[!l(T)||!l(B)||!l(A)?(_(),x(xe,{key:0},[le(Ce.$slots,"suffix"),Ce.suffixIcon?(_(),ne(l(ke),{key:0,class:E(l(v).e("icon"))},{default:Y(()=>[(_(),ne(rt(Ce.suffixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],64)):ee("v-if",!0),l(T)?(_(),ne(l(ke),{key:1,class:E([l(v).e("icon"),l(v).e("clear")]),onMousedown:Le(l(Ft),["prevent"]),onClick:Qe},{default:Y(()=>[j(l(Rr))]),_:1},8,["class","onMousedown"])):ee("v-if",!0),l(B)?(_(),ne(l(ke),{key:2,class:E([l(v).e("icon"),l(v).e("password")]),onClick:We},{default:Y(()=>[(_(),ne(rt(l(R))))]),_:1},8,["class"])):ee("v-if",!0),l(A)?(_(),x("span",{key:3,class:E(l(v).e("count"))},[z("span",{class:E(l(v).e("count-inner"))},me(l(W))+" / "+me(l(c).maxlength),3)],2)):ee("v-if",!0),l(L)&&l(D)&&l(N)?(_(),ne(l(ke),{key:4,class:E([l(v).e("icon"),l(v).e("validateIcon"),l(v).is("loading",l(L)==="validating")])},{default:Y(()=>[(_(),ne(rt(l(D))))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0)],2),ee(" append slot "),Ce.$slots.append?(_(),x("div",{key:1,class:E(l(v).be("group","append"))},[le(Ce.$slots,"append")],2)):ee("v-if",!0)],64)):(_(),x(xe,{key:1},[ee(" textarea "),z("textarea",ot({id:l(p),ref_key:"textarea",ref:C,class:l(g).e("inner")},l(c),{tabindex:Ce.tabindex,disabled:l(m),readonly:Ce.readonly,autocomplete:Ce.autocomplete,style:l(U),"aria-label":Ce.label,placeholder:Ce.placeholder,form:o.form,onCompositionstart:Te,onCompositionupdate:Re,onCompositionend:Ve,onInput:oe,onFocus:Se,onBlur:Fe,onChange:de,onKeydown:Be}),null,16,D9),l(A)?(_(),x("span",{key:0,style:Ie(O.value),class:E(l(v).e("count"))},me(l(W))+" / "+me(l(c).maxlength),7)):ee("v-if",!0)],64))],16,x9)),[[St,Ce.type!=="hidden"]])}});var V9=ge(F9,[["__file","input.vue"]]);const _n=Je(V9),va=4,Ef={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},S1=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Tf=Symbol("scrollbarContextKey"),_1=be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),z9="Thumb",H9=G({__name:"thumb",props:_1,setup(e){const t=e,n=Oe(Tf),o=ce("scrollbar");n||cn(z9,"can not inject scrollbar context");const r=M(),a=M(),s=M({}),i=M(!1);let u=!1,c=!1,f=pt?document.onselectstart:null;const d=S(()=>Ef[t.vertical?"vertical":"horizontal"]),p=S(()=>S1({size:t.size,move:t.move,bar:d.value})),h=S(()=>r.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/a.value[d.value.offset]),m=$=>{var O;if($.stopPropagation(),$.ctrlKey||[1,2].includes($.button))return;(O=window.getSelection())==null||O.removeAllRanges(),g($);const I=$.currentTarget;!I||(s.value[d.value.axis]=I[d.value.offset]-($[d.value.client]-I.getBoundingClientRect()[d.value.direction]))},v=$=>{if(!a.value||!r.value||!n.wrapElement)return;const O=Math.abs($.target.getBoundingClientRect()[d.value.direction]-$[d.value.client]),I=a.value[d.value.offset]/2,P=(O-I)*100*h.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=P*n.wrapElement[d.value.scrollSize]/100},g=$=>{$.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),f=document.onselectstart,document.onselectstart=()=>!1},y=$=>{if(!r.value||!a.value||u===!1)return;const O=s.value[d.value.axis];if(!O)return;const I=(r.value.getBoundingClientRect()[d.value.direction]-$[d.value.client])*-1,P=a.value[d.value.offset]-O,N=(I-P)*100*h.value/r.value[d.value.offset];n.wrapElement[d.value.scroll]=N*n.wrapElement[d.value.scrollSize]/100},C=()=>{u=!1,s.value[d.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),k(),c&&(i.value=!1)},b=()=>{c=!1,i.value=!!t.size},w=()=>{c=!0,i.value=u};qt(()=>{k(),document.removeEventListener("mouseup",C)});const k=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return xt(Kt(n,"scrollbarElement"),"mousemove",b),xt(Kt(n,"scrollbarElement"),"mouseleave",w),($,O)=>(_(),ne(ln,{name:l(o).b("fade"),persisted:""},{default:Y(()=>[je(z("div",{ref_key:"instance",ref:r,class:E([l(o).e("bar"),l(o).is(l(d).key)]),onMousedown:v},[z("div",{ref_key:"thumb",ref:a,class:E(l(o).e("thumb")),style:Ie(l(p)),onMousedown:m},null,38)],34),[[St,$.always||i.value]])]),_:1},8,["name"]))}});var $1=ge(H9,[["__file","thumb.vue"]]);const W9=be({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),K9=G({__name:"bar",props:W9,setup(e,{expose:t}){const n=e,o=M(0),r=M(0);return t({handleScroll:s=>{if(s){const i=s.offsetHeight-va,u=s.offsetWidth-va;r.value=s.scrollTop*100/i*n.ratioY,o.value=s.scrollLeft*100/u*n.ratioX}}}),(s,i)=>(_(),x(xe,null,[j($1,{move:o.value,ratio:s.ratioX,size:s.width,always:s.always},null,8,["move","ratio","size","always"]),j($1,{move:r.value,ratio:s.ratioY,size:s.height,vertical:"",always:s.always},null,8,["move","ratio","size","always"])],64))}});var j9=ge(K9,[["__file","bar.vue"]]);const k1=be({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:te([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),E1={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(De)},U9="ElScrollbar",q9=G({name:U9}),G9=G({...q9,props:k1,emits:E1,setup(e,{expose:t,emit:n}){const o=e,r=ce("scrollbar");let a,s;const i=M(),u=M(),c=M(),f=M("0"),d=M("0"),p=M(),h=M(1),m=M(1),v=S(()=>{const O={};return o.height&&(O.height=tn(o.height)),o.maxHeight&&(O.maxHeight=tn(o.maxHeight)),[o.wrapStyle,O]}),g=S(()=>[o.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!o.native}]),y=S(()=>[r.e("view"),o.viewClass]),C=()=>{var O;u.value&&((O=p.value)==null||O.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function b(O,I){Rt(O)?u.value.scrollTo(O):De(O)&&De(I)&&u.value.scrollTo(O,I)}const w=O=>{!De(O)||(u.value.scrollTop=O)},k=O=>{!De(O)||(u.value.scrollLeft=O)},$=()=>{if(!u.value)return;const O=u.value.offsetHeight-va,I=u.value.offsetWidth-va,P=O**2/u.value.scrollHeight,N=I**2/u.value.scrollWidth,L=Math.max(P,o.minSize),D=Math.max(N,o.minSize);h.value=P/(O-P)/(L/(O-L)),m.value=N/(I-N)/(D/(I-D)),d.value=L+vao.noresize,O=>{O?(a==null||a(),s==null||s()):({stop:a}=En(c,$),s=xt("resize",$))},{immediate:!0}),ue(()=>[o.maxHeight,o.height],()=>{o.native||Ee(()=>{var O;$(),u.value&&((O=p.value)==null||O.handleScroll(u.value))})}),ut(Tf,At({scrollbarElement:i,wrapElement:u})),Ze(()=>{o.native||Ee(()=>{$()})}),Xr(()=>$()),t({wrapRef:u,update:$,scrollTo:b,setScrollTop:w,setScrollLeft:k,handleScroll:C}),(O,I)=>(_(),x("div",{ref_key:"scrollbarRef",ref:i,class:E(l(r).b())},[z("div",{ref_key:"wrapRef",ref:u,class:E(l(g)),style:Ie(l(v)),onScroll:C},[(_(),ne(rt(O.tag),{ref_key:"resizeRef",ref:c,class:E(l(y)),style:Ie(O.viewStyle)},{default:Y(()=>[le(O.$slots,"default")]),_:3},8,["class","style"]))],38),O.native?ee("v-if",!0):(_(),ne(j9,{key:0,ref_key:"barRef",ref:p,height:d.value,width:f.value,always:O.always,"ratio-x":m.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Y9=ge(G9,[["__file","scrollbar.vue"]]);const Zo=Je(Y9),Xi=Symbol("popper"),Of=Symbol("popperContent"),X9={LIGHT:"light",DARK:"dark"},T1=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Zi=be({role:{type:String,values:T1,default:"tooltip"}}),Z9=Zi,J9=G({name:"ElPopper",inheritAttrs:!1}),Q9=G({...J9,props:Zi,setup(e,{expose:t}){const n=e,o=M(),r=M(),a=M(),s=M(),i=S(()=>n.role),u={triggerRef:o,popperInstanceRef:r,contentRef:a,referenceRef:s,role:i};return t(u),ut(Xi,u),(c,f)=>le(c.$slots,"default")}});var eW=ge(Q9,[["__file","popper.vue"]]);const Ji=be({arrowOffset:{type:Number,default:5}}),tW=Ji,nW=G({name:"ElPopperArrow",inheritAttrs:!1}),oW=G({...nW,props:Ji,setup(e,{expose:t}){const n=e,o=ce("popper"),{arrowOffset:r,arrowRef:a,arrowStyle:s}=Oe(Of,void 0);return ue(()=>n.arrowOffset,i=>{r.value=i}),qt(()=>{a.value=void 0}),t({arrowRef:a}),(i,u)=>(_(),x("span",{ref_key:"arrowRef",ref:a,class:E(l(o).e("arrow")),style:Ie(l(s)),"data-popper-arrow":""},null,6))}});var O1=ge(oW,[["__file","arrow.vue"]]);const rW="ElOnlyChild",M1=G({name:rW,setup(e,{slots:t,attrs:n}){var o;const r=Oe(df),a=Eb((o=r==null?void 0:r.setForwardRef)!=null?o:Ft);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i||i.length>1)return null;const u=A1(i);return u?je(xk(u,n),[[a]]):null}}});function A1(e){if(!e)return null;const t=e;for(const n of t){if(Rt(n))switch(n.type){case lc:continue;case gh:case"svg":return I1(n);case xe:return A1(n.children);default:return n}return I1(n)}return null}function I1(e){const t=ce("only-child");return j("span",{class:t.e("content")},[e])}const Qi=be({virtualRef:{type:te(Object)},virtualTriggering:Boolean,onMouseenter:{type:te(Function)},onMouseleave:{type:te(Function)},onClick:{type:te(Function)},onKeydown:{type:te(Function)},onFocus:{type:te(Function)},onBlur:{type:te(Function)},onContextmenu:{type:te(Function)},id:String,open:Boolean}),aW=Qi,lW=G({name:"ElPopperTrigger",inheritAttrs:!1}),sW=G({...lW,props:Qi,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=Oe(Xi,void 0);kb(r);const a=S(()=>i.value?n.id:void 0),s=S(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=S(()=>{if(o&&o.value!=="tooltip")return o.value}),u=S(()=>i.value?`${n.open}`:void 0);let c;return Ze(()=>{ue(()=>n.virtualRef,f=>{f&&(r.value=Xn(f))},{immediate:!0}),ue(r,(f,d)=>{c==null||c(),c=void 0,vo(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var h;const m=n[p];m&&(f.addEventListener(p.slice(2).toLowerCase(),m),(h=d==null?void 0:d.removeEventListener)==null||h.call(d,p.slice(2).toLowerCase(),m))}),c=ue([a,s,i,u],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{nn(p[m])?f.removeAttribute(h):f.setAttribute(h,p[m])})},{immediate:!0})),vo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),qt(()=>{c==null||c(),c=void 0}),t({triggerRef:r}),(f,d)=>f.virtualTriggering?ee("v-if",!0):(_(),ne(l(M1),ot({key:0},f.$attrs,{"aria-controls":l(a),"aria-describedby":l(s),"aria-expanded":l(u),"aria-haspopup":l(i)}),{default:Y(()=>[le(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var N1=ge(sW,[["__file","trigger.vue"]]);const Mf="focus-trap.focus-after-trapped",Af="focus-trap.focus-after-released",iW="focus-trap.focusout-prevented",R1={cancelable:!0,bubbles:!1},uW={cancelable:!0,bubbles:!1},P1="focusAfterTrapped",x1="focusAfterReleased",If=Symbol("elFocusTrap"),Nf=M(),eu=M(0),Rf=M(0);let tu=0;const L1=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},D1=(e,t)=>{for(const n of e)if(!cW(n,t))return n},cW=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},dW=e=>{const t=L1(e),n=D1(t,e),o=D1(t.reverse(),e);return[n,o]},fW=e=>e instanceof HTMLInputElement&&"select"in e,Vr=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Rf.value=window.performance.now(),e!==n&&fW(e)&&t&&e.select()}};function B1(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const pW=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=B1(e,o),e.unshift(o)},remove:o=>{var r,a;e=B1(e,o),(a=(r=e[0])==null?void 0:r.resume)==null||a.call(r)}}},vW=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(Vr(o,t),document.activeElement!==n)return},F1=pW(),hW=()=>eu.value>Rf.value,nu=()=>{Nf.value="pointer",eu.value=window.performance.now()},V1=()=>{Nf.value="keyboard",eu.value=window.performance.now()},mW=()=>(Ze(()=>{tu===0&&(document.addEventListener("mousedown",nu),document.addEventListener("touchstart",nu),document.addEventListener("keydown",V1)),tu++}),qt(()=>{tu--,tu<=0&&(document.removeEventListener("mousedown",nu),document.removeEventListener("touchstart",nu),document.removeEventListener("keydown",V1))}),{focusReason:Nf,lastUserFocusTimestamp:eu,lastAutomatedFocusTimestamp:Rf}),ou=e=>new CustomEvent(iW,{...uW,detail:e}),gW=G({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[P1,x1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=M();let o,r;const{focusReason:a}=mW();Cb(m=>{e.trapped&&!s.paused&&t("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:v,altKey:g,ctrlKey:y,metaKey:C,currentTarget:b,shiftKey:w}=m,{loop:k}=e,$=v===Ae.tab&&!g&&!y&&!C,O=document.activeElement;if($&&O){const I=b,[P,N]=dW(I);if(P&&N){if(!w&&O===N){const D=ou({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),k&&Vr(P,!0))}else if(w&&[P,I].includes(O)){const D=ou({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),k&&Vr(N,!0))}}else if(O===I){const D=ou({focusReason:a.value});t("focusout-prevented",D),D.defaultPrevented||m.preventDefault()}}};ut(If,{focusTrapRef:n,onKeydown:i}),ue(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ue([n],([m],[v])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",f),m.addEventListener("focusout",d)),v&&(v.removeEventListener("keydown",i),v.removeEventListener("focusin",f),v.removeEventListener("focusout",d))});const u=m=>{t(P1,m)},c=m=>t(x1,m),f=m=>{const v=l(n);if(!v)return;const g=m.target,y=m.relatedTarget,C=g&&v.contains(g);e.trapped||y&&v.contains(y)||(o=y),C&&t("focusin",m),!s.paused&&e.trapped&&(C?r=g:Vr(r,!0))},d=m=>{const v=l(n);if(!(s.paused||!v))if(e.trapped){const g=m.relatedTarget;!nn(g)&&!v.contains(g)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=ou({focusReason:a.value});t("focusout-prevented",y),y.defaultPrevented||Vr(r,!0)}},0)}else{const g=m.target;g&&v.contains(g)||t("focusout",m)}};async function p(){await Ee();const m=l(n);if(m){F1.push(s);const v=m.contains(document.activeElement)?o:document.activeElement;if(o=v,!m.contains(v)){const y=new Event(Mf,R1);m.addEventListener(Mf,u),m.dispatchEvent(y),y.defaultPrevented||Ee(()=>{let C=e.focusStartEl;it(C)||(Vr(C),document.activeElement!==C&&(C="first")),C==="first"&&vW(L1(m),!0),(document.activeElement===v||C==="container")&&Vr(m)})}}}function h(){const m=l(n);if(m){m.removeEventListener(Mf,u);const v=new CustomEvent(Af,{...R1,detail:{focusReason:a.value}});m.addEventListener(Af,c),m.dispatchEvent(v),!v.defaultPrevented&&(a.value=="keyboard"||!hW()||m.contains(document.activeElement))&&Vr(o!=null?o:document.body),m.removeEventListener(Af,u),F1.remove(s)}}return Ze(()=>{e.trapped&&p(),ue(()=>e.trapped,m=>{m?p():h()})}),qt(()=>{e.trapped&&h()}),{onKeydown:i}}});function yW(e,t,n,o,r,a){return le(e.$slots,"default",{handleKeydown:e.onKeydown})}var ru=ge(gW,[["render",yW],["__file","focus-trap.vue"]]);const bW=["fixed","absolute"],Pf=be({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:te(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ua,default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},strategy:{type:String,values:bW,default:"absolute"}}),au=be({...Pf,id:String,style:{type:te([String,Array,Object])},className:{type:te([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:te([String,Array,Object])},popperStyle:{type:te([String,Array,Object])},referenceEl:{type:te(Object)},triggerTargetEl:{type:te(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),xf={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},wW=Pf,CW=au,SW=xf,_W=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,a={placement:n,strategy:o,...r,modifiers:[...kW(e),...t]};return EW(a,r==null?void 0:r.modifiers),a},$W=e=>{if(!!pt)return Xn(e)};function kW(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function EW(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const TW=0,OW=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=Oe(Xi,void 0),a=M(),s=M(),i=S(()=>({name:"eventListeners",enabled:!!e.visible})),u=S(()=>{var y;const C=l(a),b=(y=l(s))!=null?y:TW;return{name:"arrow",enabled:!O0(C),options:{element:C,padding:b}}}),c=S(()=>({onFirstUpdate:()=>{m()},..._W(e,[l(u),l(i)])})),f=S(()=>$W(e.referenceEl)||l(o)),{attributes:d,state:p,styles:h,update:m,forceUpdate:v,instanceRef:g}=lb(f,n,c);return ue(g,y=>t.value=y),Ze(()=>{ue(()=>{var y;return(y=l(f))==null?void 0:y.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:a,contentRef:n,instanceRef:g,state:p,styles:h,role:r,forceUpdate:v,update:m}},MW=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=da(),a=ce("popper"),s=S(()=>l(t).popper),i=M(e.zIndex||r()),u=S(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),c=S(()=>[{zIndex:l(i)},l(n).popper,e.popperStyle||{}]),f=S(()=>o.value==="dialog"?"false":void 0),d=S(()=>l(n).arrow||{});return{ariaModal:f,arrowStyle:d,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=e.zIndex||r()}}},AW=(e,t)=>{const n=M(!1),o=M();return{focusStartRef:o,trapped:n,onFocusAfterReleased:c=>{var f;((f=c.detail)==null?void 0:f.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(o.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},IW=G({name:"ElPopperContent"}),NW=G({...IW,props:au,emits:xf,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:r,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:f}=AW(o,n),{attributes:d,arrowRef:p,contentRef:h,styles:m,instanceRef:v,role:g,update:y}=OW(o),{ariaModal:C,arrowStyle:b,contentAttrs:w,contentClass:k,contentStyle:$,updateZIndex:O}=MW(o,{styles:m,attributes:d,role:g}),I=Oe(Ao,void 0),P=M();ut(Of,{arrowStyle:b,arrowRef:p,arrowOffset:P}),I&&(I.addInputId||I.removeInputId)&&ut(Ao,{...I,addInputId:Ft,removeInputId:Ft});let N;const L=(R=!0)=>{y(),R&&O()},D=()=>{L(!1),o.visible&&o.focusOnShow?a.value=!0:o.visible===!1&&(a.value=!1)};return Ze(()=>{ue(()=>o.triggerTargetEl,(R,V)=>{N==null||N(),N=void 0;const U=l(R||h.value),F=l(V||h.value);vo(U)&&(N=ue([g,()=>o.ariaLabel,C,()=>o.id],T=>{["role","aria-label","aria-modal","id"].forEach((B,A)=>{nn(T[A])?U.removeAttribute(B):U.setAttribute(B,T[A])})},{immediate:!0})),F!==U&&vo(F)&&["role","aria-label","aria-modal","id"].forEach(T=>{F.removeAttribute(T)})},{immediate:!0}),ue(()=>o.visible,D,{immediate:!0})}),qt(()=>{N==null||N(),N=void 0}),t({popperContentRef:h,popperInstanceRef:v,updatePopper:L,contentStyle:$}),(R,V)=>(_(),x("div",ot({ref_key:"contentRef",ref:h},l(w),{style:l($),class:l(k),tabindex:"-1",onMouseenter:V[0]||(V[0]=U=>R.$emit("mouseenter",U)),onMouseleave:V[1]||(V[1]=U=>R.$emit("mouseleave",U))}),[j(l(ru),{trapped:l(a),"trap-on-focus-in":!0,"focus-trap-el":l(h),"focus-start-el":l(r),onFocusAfterTrapped:l(i),onFocusAfterReleased:l(s),onFocusin:l(u),onFocusoutPrevented:l(c),onReleaseRequested:l(f)},{default:Y(()=>[le(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var z1=ge(NW,[["__file","content.vue"]]);const Lf=Je(eW),fs=Symbol("elTooltip"),mn=be({...$b,...au,appendTo:{type:te([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:te(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),ol=be({...Qi,disabled:Boolean,trigger:{type:te([String,Array]),default:"hover"},triggerKeys:{type:te(Array),default:()=>[Ae.enter,Ae.space]}}),{useModelToggleProps:H1,useModelToggleEmits:W1,useModelToggle:K1}=Yd("visible"),j1=be({...Zi,...H1,...mn,...ol,...Ji,showArrow:{type:Boolean,default:!0}}),U1=[...W1,"before-show","before-hide","show","hide","open","close"],RW=(e,t)=>et(e)?e.includes(t):e===t,rl=(e,t,n)=>o=>{RW(l(e),t)&&n(o)},PW=G({name:"ElTooltipTrigger"}),xW=G({...PW,props:ol,setup(e,{expose:t}){const n=e,o=ce("tooltip"),{controlled:r,id:a,open:s,onOpen:i,onClose:u,onToggle:c}=Oe(fs,void 0),f=M(null),d=()=>{if(l(r)||n.disabled)return!0},p=Kt(n,"trigger"),h=Gt(d,rl(p,"hover",i)),m=Gt(d,rl(p,"hover",u)),v=Gt(d,rl(p,"click",w=>{w.button===0&&c(w)})),g=Gt(d,rl(p,"focus",i)),y=Gt(d,rl(p,"focus",u)),C=Gt(d,rl(p,"contextmenu",w=>{w.preventDefault(),c(w)})),b=Gt(d,w=>{const{code:k}=w;n.triggerKeys.includes(k)&&(w.preventDefault(),c(w))});return t({triggerRef:f}),(w,k)=>(_(),ne(l(N1),{id:l(a),"virtual-ref":w.virtualRef,open:l(s),"virtual-triggering":w.virtualTriggering,class:E(l(o).e("trigger")),onBlur:l(y),onClick:l(v),onContextmenu:l(C),onFocus:l(g),onMouseenter:l(h),onMouseleave:l(m),onKeydown:l(b)},{default:Y(()=>[le(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var LW=ge(xW,[["__file","trigger.vue"]]);const DW=G({name:"ElTooltipContent",inheritAttrs:!1}),BW=G({...DW,props:mn,setup(e,{expose:t}){const n=e,{selector:o}=uf(),r=ce("tooltip"),a=M(null),s=M(!1),{controlled:i,id:u,open:c,trigger:f,onClose:d,onOpen:p,onShow:h,onHide:m,onBeforeShow:v,onBeforeHide:g}=Oe(fs,void 0),y=S(()=>n.transition||`${r.namespace.value}-fade-in-linear`),C=S(()=>n.persistent);qt(()=>{s.value=!0});const b=S(()=>l(C)?!0:l(c)),w=S(()=>n.disabled?!1:l(c)),k=S(()=>n.appendTo||o.value),$=S(()=>{var T;return(T=n.style)!=null?T:{}}),O=S(()=>!l(c)),I=()=>{m()},P=()=>{if(l(i))return!0},N=Gt(P,()=>{n.enterable&&l(f)==="hover"&&p()}),L=Gt(P,()=>{l(f)==="hover"&&d()}),D=()=>{var T,B;(B=(T=a.value)==null?void 0:T.updatePopper)==null||B.call(T),v==null||v()},R=()=>{g==null||g()},V=()=>{h(),F=fc(S(()=>{var T;return(T=a.value)==null?void 0:T.popperContentRef}),()=>{if(l(i))return;l(f)!=="hover"&&d()})},U=()=>{n.virtualTriggering||d()};let F;return ue(()=>l(c),T=>{T||F==null||F()},{flush:"post"}),ue(()=>n.content,()=>{var T,B;(B=(T=a.value)==null?void 0:T.updatePopper)==null||B.call(T)}),t({contentRef:a}),(T,B)=>(_(),ne(Ta,{disabled:!T.teleported,to:l(k)},[j(ln,{name:l(y),onAfterLeave:I,onBeforeEnter:D,onAfterEnter:V,onBeforeLeave:R},{default:Y(()=>[l(b)?je((_(),ne(l(z1),ot({key:0,id:l(u),ref_key:"contentRef",ref:a},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":l(O),"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,l($)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:l(w),"z-index":T.zIndex,onMouseenter:l(N),onMouseleave:l(L),onBlur:U,onClose:l(d)}),{default:Y(()=>[s.value?ee("v-if",!0):le(T.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[St,l(w)]]):ee("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var FW=ge(BW,[["__file","content.vue"]]);const VW=["innerHTML"],zW={key:1},HW=G({name:"ElTooltip"}),WW=G({...HW,props:j1,emits:U1,setup(e,{expose:t,emit:n}){const o=e;_b();const r=no(),a=M(),s=M(),i=()=>{var y;const C=l(a);C&&((y=C.popperInstanceRef)==null||y.update())},u=M(!1),c=M(),{show:f,hide:d,hasUpdateHandler:p}=K1({indicator:u,toggleReason:c}),{onOpen:h,onClose:m}=cf({showAfter:Kt(o,"showAfter"),hideAfter:Kt(o,"hideAfter"),autoClose:Kt(o,"autoClose"),open:f,close:d}),v=S(()=>un(o.visible)&&!p.value);ut(fs,{controlled:v,id:r,open:ac(u),trigger:Kt(o,"trigger"),onOpen:y=>{h(y)},onClose:y=>{m(y)},onToggle:y=>{l(u)?m(y):h(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:i}),ue(()=>o.disabled,y=>{y&&u.value&&(u.value=!1)});const g=()=>{var y,C;const b=(C=(y=s.value)==null?void 0:y.contentRef)==null?void 0:C.popperContentRef;return b&&b.contains(document.activeElement)};return Lk(()=>u.value&&d()),t({popperRef:a,contentRef:s,isFocusInsideContent:g,updatePopper:i,onOpen:h,onClose:m,hide:d}),(y,C)=>(_(),ne(l(Lf),{ref_key:"popperRef",ref:a,role:y.role},{default:Y(()=>[j(LW,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:Y(()=>[y.$slots.default?le(y.$slots,"default",{key:0}):ee("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),j(FW,{ref_key:"contentRef",ref:s,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:Y(()=>[le(y.$slots,"content",{},()=>[y.rawContent?(_(),x("span",{key:0,innerHTML:y.content},null,8,VW)):(_(),x("span",zW,me(y.content),1))]),y.showArrow?(_(),ne(l(O1),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):ee("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var KW=ge(WW,[["__file","tooltip.vue"]]);const Nn=Je(KW),q1=be({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:te(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:te([Function,Array]),default:Ft},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:mn.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),G1={[tt]:e=>it(e),[Mn]:e=>it(e),[Bt]:e=>it(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Rt(e)},jW=["aria-expanded","aria-owns"],UW={key:0},qW=["id","aria-selected","onClick"],Y1="ElAutocomplete",GW=G({name:Y1,inheritAttrs:!1}),YW=G({...GW,props:q1,emits:G1,setup(e,{expose:t,emit:n}){const o=e,r=Ii(),a=Oa(),s=An(),i=ce("autocomplete"),u=M(),c=M(),f=M(),d=M();let p=!1,h=!1;const m=M([]),v=M(-1),g=M(""),y=M(!1),C=M(!1),b=M(!1),w=S(()=>i.b(String(Ai()))),k=S(()=>a.style),$=S(()=>(m.value.length>0||b.value)&&y.value),O=S(()=>!o.hideLoading&&b.value),I=S(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),P=async()=>{await Ee(),$.value&&(g.value=`${u.value.$el.offsetWidth}px`)},N=()=>{v.value=-1},D=On(async re=>{if(C.value)return;const ie=J=>{b.value=!1,!C.value&&(et(J)?(m.value=J,v.value=o.highlightFirstItem?0:-1):cn(Y1,"autocomplete suggestions must be an array"))};if(b.value=!0,et(o.fetchSuggestions))ie(o.fetchSuggestions);else{const J=await o.fetchSuggestions(re,ie);et(J)&&ie(J)}},o.debounce),R=re=>{const ie=!!re;if(n(Mn,re),n(tt,re),C.value=!1,y.value||(y.value=ie),!o.triggerOnFocus&&!re){C.value=!0,m.value=[];return}D(re)},V=re=>{var ie;s.value||(((ie=re.target)==null?void 0:ie.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(y.value=!0)},U=re=>{n(Bt,re)},F=re=>{h?h=!1:(y.value=!0,n("focus",re),o.triggerOnFocus&&!p&&D(String(o.modelValue)))},T=re=>{setTimeout(()=>{var ie;if((ie=f.value)!=null&&ie.isFocusInsideContent()){h=!0;return}y.value&&Z(),n("blur",re)})},B=()=>{y.value=!1,n(tt,""),n("clear")},A=async()=>{$.value&&v.value>=0&&v.value{$.value&&(re.preventDefault(),re.stopPropagation(),Z())},Z=()=>{y.value=!1},K=()=>{var re;(re=u.value)==null||re.focus()},X=()=>{var re;(re=u.value)==null||re.blur()},se=async re=>{n(Mn,re[o.valueKey]),n(tt,re[o.valueKey]),n("select",re),m.value=[],v.value=-1},ve=re=>{if(!$.value||b.value)return;if(re<0){v.value=-1;return}re>=m.value.length&&(re=m.value.length-1);const ie=c.value.querySelector(`.${i.be("suggestion","wrap")}`),oe=ie.querySelectorAll(`.${i.be("suggestion","list")} li`)[re],de=ie.scrollTop,{offsetTop:Te,scrollHeight:Re}=oe;Te+Re>de+ie.clientHeight&&(ie.scrollTop+=Re),Te{$.value&&Z()}),Ze(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`),p=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:v,activated:y,loading:b,inputRef:u,popperRef:f,suggestions:m,handleSelect:se,handleKeyEnter:A,focus:K,blur:X,close:Z,highlight:ve}),(re,ie)=>(_(),ne(l(Nn),{ref_key:"popperRef",ref:f,visible:l($),placement:re.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[l(i).e("popper"),re.popperClass],teleported:re.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${l(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:P,onHide:N},{content:Y(()=>[z("div",{ref_key:"regionRef",ref:c,class:E([l(i).b("suggestion"),l(i).is("loading",l(O))]),style:Ie({[re.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[j(l(Zo),{id:l(w),tag:"ul","wrap-class":l(i).be("suggestion","wrap"),"view-class":l(i).be("suggestion","list"),role:"listbox"},{default:Y(()=>[l(O)?(_(),x("li",UW,[j(l(ke),{class:E(l(i).is("loading"))},{default:Y(()=>[j(l(Pr))]),_:1},8,["class"])])):(_(!0),x(xe,{key:1},ct(m.value,(J,oe)=>(_(),x("li",{id:`${l(w)}-item-${oe}`,key:oe,class:E({highlighted:v.value===oe}),role:"option","aria-selected":v.value===oe,onClick:de=>se(J)},[le(re.$slots,"default",{item:J},()=>[Ct(me(J[re.valueKey]),1)])],10,qW))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Y(()=>[z("div",{ref_key:"listboxRef",ref:d,class:E([l(i).b(),re.$attrs.class]),style:Ie(l(k)),role:"combobox","aria-haspopup":"listbox","aria-expanded":l($),"aria-owns":l(w)},[j(l(_n),ot({ref_key:"inputRef",ref:u},l(r),{clearable:re.clearable,disabled:l(s),name:re.name,"model-value":re.modelValue,onInput:R,onChange:U,onFocus:F,onBlur:T,onClear:B,onKeydown:[ie[0]||(ie[0]=mt(Le(J=>ve(v.value-1),["prevent"]),["up"])),ie[1]||(ie[1]=mt(Le(J=>ve(v.value+1),["prevent"]),["down"])),mt(A,["enter"]),mt(Z,["tab"]),mt(W,["esc"])],onMousedown:V}),er({_:2},[re.$slots.prepend?{name:"prepend",fn:Y(()=>[le(re.$slots,"prepend")])}:void 0,re.$slots.append?{name:"append",fn:Y(()=>[le(re.$slots,"append")])}:void 0,re.$slots.prefix?{name:"prefix",fn:Y(()=>[le(re.$slots,"prefix")])}:void 0,re.$slots.suffix?{name:"suffix",fn:Y(()=>[le(re.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,jW)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var XW=ge(YW,[["__file","autocomplete.vue"]]);const X1=Je(XW),Z1=be({size:{type:[Number,String],values:To,default:"",validator:e=>De(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Dt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:te(String),default:"cover"}}),J1={error:e=>e instanceof Event},ZW=["src","alt","srcset"],JW=G({name:"ElAvatar"}),QW=G({...JW,props:Z1,emits:J1,setup(e,{emit:t}){const n=e,o=ce("avatar"),r=M(!1),a=S(()=>{const{size:c,icon:f,shape:d}=n,p=[o.b()];return it(c)&&p.push(o.m(c)),f&&p.push(o.m("icon")),d&&p.push(o.m(d)),p}),s=S(()=>{const{size:c}=n;return De(c)?o.cssVarBlock({size:tn(c)||""}):void 0}),i=S(()=>({objectFit:n.fit}));ue(()=>n.src,()=>r.value=!1);function u(c){r.value=!0,t("error",c)}return(c,f)=>(_(),x("span",{class:E(l(a)),style:Ie(l(s))},[(c.src||c.srcSet)&&!r.value?(_(),x("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:Ie(l(i)),onError:u},null,44,ZW)):c.icon?(_(),ne(l(ke),{key:1},{default:Y(()=>[(_(),ne(rt(c.icon)))]),_:1})):le(c.$slots,"default",{key:2})],6))}});var eK=ge(QW,[["__file","avatar.vue"]]);const Q1=Je(eK),ew={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},tw={click:e=>e instanceof MouseEvent},tK=(e,t,n)=>{const o=Pt(),r=Pt(),a=M(!1),s=()=>{o.value&&(a.value=o.value.scrollTop>=e.visibilityHeight)},i=c=>{var f;(f=o.value)==null||f.scrollTo({top:0,behavior:"smooth"}),t("click",c)},u=Oh(s,300,!0);return xt(r,"scroll",u),Ze(()=>{var c;r.value=document,o.value=document.documentElement,e.target&&(o.value=(c=document.querySelector(e.target))!=null?c:void 0,o.value||cn(n,`target does not exist: ${e.target}`),r.value=o.value)}),{visible:a,handleClick:i}},nw="ElBacktop",nK=G({name:nw}),oK=G({...nK,props:ew,emits:tw,setup(e,{emit:t}){const n=e,o=ce("backtop"),{handleClick:r,visible:a}=tK(n,t,nw),s=S(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(i,u)=>(_(),ne(ln,{name:`${l(o).namespace.value}-fade-in`},{default:Y(()=>[l(a)?(_(),x("div",{key:0,style:Ie(l(s)),class:E(l(o).b()),onClick:u[0]||(u[0]=Le((...c)=>l(r)&&l(r)(...c),["stop"]))},[le(i.$slots,"default",{},()=>[j(l(ke),{class:E(l(o).e("icon"))},{default:Y(()=>[j(l(BD))]),_:1},8,["class"])])],6)):ee("v-if",!0)]),_:3},8,["name"]))}});var rK=ge(oK,[["__file","backtop.vue"]]);const ow=Je(rK),rw=be({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),aK=["textContent"],lK=G({name:"ElBadge"}),sK=G({...lK,props:rw,setup(e,{expose:t}){const n=e,o=ce("badge"),r=S(()=>n.isDot?"":De(n.value)&&De(n.max)?n.max(_(),x("div",{class:E(l(o).b())},[le(a.$slots,"default"),j(ln,{name:`${l(o).namespace.value}-zoom-in-center`,persisted:""},{default:Y(()=>[je(z("sup",{class:E([l(o).e("content"),l(o).em("content",a.type),l(o).is("fixed",!!a.$slots.default),l(o).is("dot",a.isDot)]),textContent:me(l(r))},null,10,aK),[[St,!a.hidden&&(l(r)||a.isDot)]])]),_:1},8,["name"])],2))}});var iK=ge(sK,[["__file","badge.vue"]]);const Df=Je(iK),Bf=Symbol("breadcrumbKey"),aw=be({separator:{type:String,default:"/"},separatorIcon:{type:Dt}}),uK=G({name:"ElBreadcrumb"}),cK=G({...uK,props:aw,setup(e){const t=e,n=ce("breadcrumb"),o=M();return ut(Bf,t),Ze(()=>{const r=o.value.querySelectorAll(`.${n.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,a)=>(_(),x("div",{ref_key:"breadcrumb",ref:o,class:E(l(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[le(r.$slots,"default")],2))}});var dK=ge(cK,[["__file","breadcrumb.vue"]]);const lw=be({to:{type:te([String,Object]),default:""},replace:{type:Boolean,default:!1}}),fK=G({name:"ElBreadcrumbItem"}),pK=G({...fK,props:lw,setup(e){const t=e,n=nt(),o=Oe(Bf,void 0),r=ce("breadcrumb"),{separator:a,separatorIcon:s}=dn(o),i=n.appContext.config.globalProperties.$router,u=M(),c=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(f,d)=>(_(),x("span",{class:E(l(r).e("item"))},[z("span",{ref_key:"link",ref:u,class:E([l(r).e("inner"),l(r).is("link",!!f.to)]),role:"link",onClick:c},[le(f.$slots,"default")],2),l(s)?(_(),ne(l(ke),{key:0,class:E(l(r).e("separator"))},{default:Y(()=>[(_(),ne(rt(l(s))))]),_:1},8,["class"])):(_(),x("span",{key:1,class:E(l(r).e("separator")),role:"presentation"},me(l(a)),3))],2))}});var sw=ge(pK,[["__file","breadcrumb-item.vue"]]);const iw=Je(dK,{BreadcrumbItem:sw}),uw=Xt(sw),Ff=Symbol("buttonGroupContextKey"),vK=(e,t)=>{Oo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},S(()=>e.type==="text"));const n=Oe(Ff,void 0),o=ls("button"),{form:r}=In(),a=on(S(()=>n==null?void 0:n.size)),s=An(),i=M(),u=gn(),c=S(()=>e.type||(n==null?void 0:n.type)||""),f=S(()=>{var m,v,g;return(g=(v=e.autoInsertSpace)!=null?v:(m=o.value)==null?void 0:m.autoInsertSpace)!=null?g:!1}),d=S(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=S(()=>{var m;const v=(m=u.default)==null?void 0:m.call(u);if(f.value&&(v==null?void 0:v.length)===1){const g=v[0];if((g==null?void 0:g.type)===gh){const y=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:s,_size:a,_type:c,_ref:i,_props:d,shouldAddSpace:p,handleClick:m=>{e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",m)}}},lu=["default","primary","success","warning","info","danger","text",""],cw=["button","submit","reset"],su=be({size:vn,disabled:Boolean,type:{type:String,values:lu,default:""},icon:{type:Dt},nativeType:{type:String,values:cw,default:"button"},loading:Boolean,loadingIcon:{type:Dt,default:()=>Pr},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:te([String,Object]),default:"button"}}),dw={click:e=>e instanceof MouseEvent};function $n(e,t){hK(e)&&(e="100%");var n=mK(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function iu(e){return Math.min(1,Math.max(0,e))}function hK(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function mK(e){return typeof e=="string"&&e.indexOf("%")!==-1}function fw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ha(e){return e.length===1?"0"+e:String(e)}function gK(e,t,n){return{r:$n(e,255)*255,g:$n(t,255)*255,b:$n(n,255)*255}}function pw(e,t,n){e=$n(e,255),t=$n(t,255),n=$n(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=0,i=(o+r)/2;if(o===r)s=0,a=0;else{var u=o-r;switch(s=i>.5?u/(2-o-r):u/(o+r),o){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yK(e,t,n){var o,r,a;if(e=$n(e,360),t=$n(t,100),n=$n(n,100),t===0)r=n,a=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;o=Vf(i,s,e+1/3),r=Vf(i,s,e),a=Vf(i,s,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function vw(e,t,n){e=$n(e,255),t=$n(t,255),n=$n(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,s=o,i=o-r,u=o===0?0:i/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var zf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function _K(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=EK(e)),typeof e=="object"&&(hr(e.r)&&hr(e.g)&&hr(e.b)?(t=gK(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):hr(e.h)&&hr(e.s)&&hr(e.v)?(o=uu(e.s),r=uu(e.v),t=bK(e.h,o,r),s=!0,i="hsv"):hr(e.h)&&hr(e.s)&&hr(e.l)&&(o=uu(e.s),a=uu(e.l),t=yK(e.h,o,a),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=fw(n),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var $K="[-\\+]?\\d+%?",kK="[-\\+]?\\d*\\.\\d+%?",zr="(?:".concat(kK,")|(?:").concat($K,")"),Hf="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),Wf="[\\s|\\(]+(".concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")[,|\\s]+(").concat(zr,")\\s*\\)?"),No={CSS_UNIT:new RegExp(zr),rgb:new RegExp("rgb"+Hf),rgba:new RegExp("rgba"+Wf),hsl:new RegExp("hsl"+Hf),hsla:new RegExp("hsla"+Wf),hsv:new RegExp("hsv"+Hf),hsva:new RegExp("hsva"+Wf),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function EK(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zf[e])e=zf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=No.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=No.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=No.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=No.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=No.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=No.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=No.hex8.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),a:mw(n[4]),format:t?"name":"hex8"}:(n=No.hex6.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),format:t?"name":"hex"}:(n=No.hex4.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),a:mw(n[4]+n[4]),format:t?"name":"hex8"}:(n=No.hex3.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function hr(e){return Boolean(No.CSS_UNIT.exec(String(e)))}var gw=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=SK(t)),this.originalInput=t;var r=_K(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,a=t.r/255,s=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=fw(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=vw(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=vw(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pw(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pw(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),hw(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),wK(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round($n(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round($n(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+hw(this.r,this.g,this.b,!1),n=0,o=Object.entries(zf);n=0,a=!n&&r&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=iu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=iu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=iu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=iu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),a=n/100,s={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,a=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,a=n.v,s=[],i=1/t;t--;)s.push(new e({h:o,s:r,v:a})),a=(a+i)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb();return new e({r:o.r+(n.r-o.r)*n.a,g:o.g+(n.g-o.g)*n.a,b:o.b+(n.b-o.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],a=360/t,s=1;s{let o={};const r=e.color;if(r){const a=new gw(r),s=e.dark?a.tint(20).toString():Hr(a,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Hr(a,90):a.tint(90).toString(),"text-color":r,"border-color":e.dark?Hr(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Hr(a,90):a.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Hr(a,50):a.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Hr(a,80):a.tint(80).toString());else{const i=e.dark?Hr(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":i,"hover-text-color":u,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?Hr(a,50):a.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const OK=G({name:"ElButton"}),MK=G({...OK,props:su,emits:dw,setup(e,{expose:t,emit:n}){const o=e,r=TK(o),a=ce("button"),{_ref:s,_size:i,_type:u,_disabled:c,_props:f,shouldAddSpace:d,handleClick:p}=vK(o,n);return t({ref:s,size:i,type:u,disabled:c,shouldAddSpace:d}),(h,m)=>(_(),ne(rt(h.tag),ot({ref_key:"_ref",ref:s},l(f),{class:[l(a).b(),l(a).m(l(u)),l(a).m(l(i)),l(a).is("disabled",l(c)),l(a).is("loading",h.loading),l(a).is("plain",h.plain),l(a).is("round",h.round),l(a).is("circle",h.circle),l(a).is("text",h.text),l(a).is("link",h.link),l(a).is("has-bg",h.bg)],style:l(r),onClick:l(p)}),{default:Y(()=>[h.loading?(_(),x(xe,{key:0},[h.$slots.loading?le(h.$slots,"loading",{key:0}):(_(),ne(l(ke),{key:1,class:E(l(a).is("loading"))},{default:Y(()=>[(_(),ne(rt(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(_(),ne(l(ke),{key:1},{default:Y(()=>[h.icon?(_(),ne(rt(h.icon),{key:0})):le(h.$slots,"icon",{key:1})]),_:3})):ee("v-if",!0),h.$slots.default?(_(),x("span",{key:2,class:E({[l(a).em("text","expand")]:l(d)})},[le(h.$slots,"default")],2)):ee("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var AK=ge(MK,[["__file","button.vue"]]);const IK={size:su.size,type:su.type},NK=G({name:"ElButtonGroup"}),RK=G({...NK,props:IK,setup(e){const t=e;ut(Ff,At({size:Kt(t,"size"),type:Kt(t,"type")}));const n=ce("button");return(o,r)=>(_(),x("div",{class:E(`${l(n).b("group")}`)},[le(o.$slots,"default")],2))}});var yw=ge(RK,[["__file","button-group.vue"]]);const wn=Je(AK,{ButtonGroup:yw}),Kf=Xt(yw);var mr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},bw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){var n=1e3,o=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",c="day",f="week",d="month",p="quarter",h="year",m="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(R,V,U){var F=String(R);return!F||F.length>=V?R:""+Array(V+1-F.length).join(U)+R},w={s:b,z:function(R){var V=-R.utcOffset(),U=Math.abs(V),F=Math.floor(U/60),T=U%60;return(V<=0?"+":"-")+b(F,2,"0")+":"+b(T,2,"0")},m:function R(V,U){if(V.date()1)return R(A[0])}else{var W=V.name;$[W]=V,T=W}return!F&&T&&(k=T),T||!F&&k},P=function(R,V){if(O(R))return R.clone();var U=typeof V=="object"?V:{};return U.date=R,U.args=arguments,new L(U)},N=w;N.l=I,N.i=O,N.w=function(R,V){return P(R,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var L=function(){function R(U){this.$L=I(U.locale,null,!0),this.parse(U)}var V=R.prototype;return V.parse=function(U){this.$d=function(F){var T=F.date,B=F.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var A=T.match(g);if(A){var W=A[2]-1||0,Z=(A[7]||"0").substring(0,3);return B?new Date(Date.UTC(A[1],W,A[3]||1,A[4]||0,A[5]||0,A[6]||0,Z)):new Date(A[1],W,A[3]||1,A[4]||0,A[5]||0,A[6]||0,Z)}}return new Date(T)}(U),this.$x=U.x||{},this.init()},V.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},V.$utils=function(){return N},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(U,F){var T=P(U);return this.startOf(F)<=T&&T<=this.endOf(F)},V.isAfter=function(U,F){return P(U)68?1900:2e3)},c=function(v){return function(g){this[v]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),C=60*y[1]+(+y[2]||0);return C===0?0:y[0]==="+"?-C:C}(v)}],d=function(v){var g=i[v];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(v,g){var y,C=i.meridiem;if(C){for(var b=1;b<=24;b+=1)if(v.indexOf(C(b,0,g))>-1){y=b>12;break}}else y=v===(g?"pm":"PM");return y},h={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[r,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[s,function(v){var g=i.ordinal,y=v.match(/\d+/);if(this.day=y[0],g)for(var C=1;C<=31;C+=1)g(C).replace(/\[|\]/g,"")===v&&(this.day=C)}],M:[a,c("month")],MM:[r,c("month")],MMM:[s,function(v){var g=d("months"),y=(d("monthsShort")||g.map(function(C){return C.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(v){var g=d("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(v){this.year=u(v)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function m(v){var g,y;g=v,y=i&&i.formats;for(var C=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,N,L){var D=L&&L.toUpperCase();return N||y[L]||n[L]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,V,U){return V||U.slice(1)})})).match(o),b=C.length,w=0;w-1)return new Date((T==="X"?1e3:1)*F);var A=m(T)(F),W=A.year,Z=A.month,K=A.day,X=A.hours,se=A.minutes,ve=A.seconds,re=A.milliseconds,ie=A.zone,J=new Date,oe=K||(W||Z?1:J.getDate()),de=W||J.getFullYear(),Te=0;W&&!Z||(Te=Z>0?Z-1:J.getMonth());var Re=X||0,Ve=se||0,We=ve||0,Ge=re||0;return ie?new Date(Date.UTC(de,Te,oe,Re,Ve,We,Ge+60*ie.offset*1e3)):B?new Date(Date.UTC(de,Te,oe,Re,Ve,We,Ge)):new Date(de,Te,oe,Re,Ve,We,Ge)}catch(yt){return new Date("")}}(k,I,$),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),L&&k!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var R=I.length,V=1;V<=R;V+=1){O[1]=I[V-1];var U=y.apply(this,O);if(U.isValid()){this.$d=U.$d,this.$L=U.$L,this.init();break}V===R&&(this.$d=new Date(""))}else b.call(this,w)}}})})(ww);var jf=ww.exports;const Uf=["hours","minutes","seconds"],cu="HH:mm:ss",ma="YYYY-MM-DD",Cw={date:ma,dates:ma,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${ma} ${cu}`,monthrange:"YYYY-MM",daterange:ma,datetimerange:`${ma} ${cu}`},du=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),qf=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Gf=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Yf=function(e,t){const n=El(e),o=El(t);return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},Xf=function(e,t){const n=et(e),o=et(t);return n&&o?e.length!==t.length?!1:e.every((r,a)=>Yf(r,t[a])):!n&&!o?Yf(e,t):!1},Zf=function(e,t,n){const o=po(t)||t==="x"?qe(e).locale(n):qe(e,t).locale(n);return o.isValid()?o:void 0},Jf=function(e,t,n){return po(t)?e:t==="x"?+e:qe(e).locale(n).format(t)},fu=(e,t)=>{var n;const o=[],r=t==null?void 0:t();for(let a=0;a({})},modelValue:{type:te([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:te([Date,Array])},defaultTime:{type:te([Date,Array])},isRange:{type:Boolean,default:!1},...Sw,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:te([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),PK=["id","name","placeholder","value","disabled","readonly"],xK=["id","name","placeholder","value","disabled","readonly"],LK=G({name:"Picker"}),DK=G({...LK,props:pu,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const o=e,{lang:r}=gt(),a=ce("date"),s=ce("input"),i=ce("range"),{form:u,formItem:c}=In(),f=Oe("ElPopperOptions",{}),d=M(),p=M(),h=M(!1),m=M(!1),v=M(null);let g=!1,y=!1;ue(h,q=>{q?Ee(()=>{q&&(v.value=o.modelValue)}):(Se.value=null,Ee(()=>{C(o.modelValue)}))});const C=(q,Q)=>{(Q||!Xf(q,v.value))&&(n("change",q),o.validateEvent&&(c==null||c.validate("change").catch(pe=>void 0)))},b=q=>{if(!Xf(o.modelValue,q)){let Q;et(q)?Q=q.map(pe=>Jf(pe,o.valueFormat,r.value)):q&&(Q=Jf(q,o.valueFormat,r.value)),n("update:modelValue",q&&Q,r.value)}},w=q=>{n("keydown",q)},k=S(()=>{if(p.value){const q=Ve.value?p.value:p.value.$el;return Array.from(q.querySelectorAll("input"))}return[]}),$=(q,Q,pe)=>{const $e=k.value;!$e.length||(!pe||pe==="min"?($e[0].setSelectionRange(q,Q),$e[0].focus()):pe==="max"&&($e[1].setSelectionRange(q,Q),$e[1].focus()))},O=()=>{U(!0,!0),Ee(()=>{y=!1})},I=(q="",Q=!1)=>{Q||(y=!0),h.value=Q;let pe;et(q)?pe=q.map($e=>$e.toDate()):pe=q&&q.toDate(),Se.value=null,b(pe)},P=()=>{m.value=!0},N=()=>{n("visible-change",!0)},L=q=>{(q==null?void 0:q.key)===Ae.esc&&U(!0,!0)},D=()=>{m.value=!1,h.value=!1,y=!1,n("visible-change",!1)},R=()=>{h.value=!0},V=()=>{h.value=!1},U=(q=!0,Q=!1)=>{y=Q;const[pe,$e]=l(k);let st=pe;!q&&Ve.value&&(st=$e),st&&st.focus()},F=q=>{o.readonly||A.value||h.value||y||(h.value=!0,n("focus",q))};let T;const B=q=>{const Q=async()=>{setTimeout(()=>{var pe;T===Q&&(!(((pe=d.value)==null?void 0:pe.isFocusInsideContent())&&!g)&&k.value.filter($e=>$e.contains(document.activeElement)).length===0&&(Fe(),h.value=!1,n("blur",q),o.validateEvent&&(c==null||c.validate("blur").catch($e=>void 0))),g=!1)},0)};T=Q,Q()},A=S(()=>o.disabled||(u==null?void 0:u.disabled)),W=S(()=>{let q;if(J.value?lt.value.getDefaultValue&&(q=lt.value.getDefaultValue()):et(o.modelValue)?q=o.modelValue.map(Q=>Zf(Q,o.valueFormat,r.value)):q=Zf(o.modelValue,o.valueFormat,r.value),lt.value.getRangeAvailableTime){const Q=lt.value.getRangeAvailableTime(q);Dn(Q,q)||(q=Q,b(et(q)?q.map(pe=>pe.toDate()):q.toDate()))}return et(q)&&q.some(Q=>!Q)&&(q=[]),q}),Z=S(()=>{if(!lt.value.panelReady)return"";const q=He(W.value);return et(Se.value)?[Se.value[0]||q&&q[0]||"",Se.value[1]||q&&q[1]||""]:Se.value!==null?Se.value:!X.value&&J.value||!h.value&&J.value?"":q?se.value?q.join(", "):q:""}),K=S(()=>o.type.includes("time")),X=S(()=>o.type.startsWith("time")),se=S(()=>o.type==="dates"),ve=S(()=>o.prefixIcon||(K.value?by:TD)),re=M(!1),ie=q=>{o.readonly||A.value||re.value&&(q.stopPropagation(),O(),b(null),C(null,!0),re.value=!1,h.value=!1,lt.value.handleClear&<.value.handleClear())},J=S(()=>{const{modelValue:q}=o;return!q||et(q)&&!q.filter(Boolean).length}),oe=async q=>{var Q;o.readonly||A.value||(((Q=q.target)==null?void 0:Q.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(h.value=!0)},de=()=>{o.readonly||A.value||!J.value&&o.clearable&&(re.value=!0)},Te=()=>{re.value=!1},Re=q=>{var Q;o.readonly||A.value||(((Q=q.touches[0].target)==null?void 0:Q.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(h.value=!0)},Ve=S(()=>o.type.includes("range")),We=on(),Ge=S(()=>{var q,Q;return(Q=(q=l(d))==null?void 0:q.popperRef)==null?void 0:Q.contentRef}),yt=S(()=>{var q;return l(Ve)?l(p):(q=l(p))==null?void 0:q.$el});fc(yt,q=>{const Q=l(Ge),pe=l(yt);Q&&(q.target===Q||q.composedPath().includes(Q))||q.target===pe||q.composedPath().includes(pe)||(h.value=!1)});const Se=M(null),Fe=()=>{if(Se.value){const q=Pe(Z.value);q&&Be(q)&&(b(et(q)?q.map(Q=>Q.toDate()):q.toDate()),Se.value=null)}Se.value===""&&(b(null),C(null),Se.value=null)},Pe=q=>q?lt.value.parseUserInput(q):null,He=q=>q?lt.value.formatToString(q):null,Be=q=>lt.value.isValidValue(q),Xe=async q=>{if(o.readonly||A.value)return;const{code:Q}=q;if(w(q),Q===Ae.esc){h.value===!0&&(h.value=!1,q.preventDefault(),q.stopPropagation());return}if(Q===Ae.down&&(lt.value.handleFocusPicker&&(q.preventDefault(),q.stopPropagation()),h.value===!1&&(h.value=!0,await Ee()),lt.value.handleFocusPicker)){lt.value.handleFocusPicker();return}if(Q===Ae.tab){g=!0;return}if(Q===Ae.enter||Q===Ae.numpadEnter){(Se.value===null||Se.value===""||Be(Pe(Z.value)))&&(Fe(),h.value=!1),q.stopPropagation();return}if(Se.value){q.stopPropagation();return}lt.value.handleKeydownInput&<.value.handleKeydownInput(q)},Qe=q=>{Se.value=q,h.value||(h.value=!0)},Ce=q=>{const Q=q.target;Se.value?Se.value=[Q.value,Se.value[1]]:Se.value=[Q.value,null]},ze=q=>{const Q=q.target;Se.value?Se.value=[Se.value[0],Q.value]:Se.value=[null,Q.value]},ht=()=>{var q;const Q=Se.value,pe=Pe(Q&&Q[0]),$e=l(W);if(pe&&pe.isValid()){Se.value=[He(pe),((q=Z.value)==null?void 0:q[1])||null];const st=[pe,$e&&($e[1]||null)];Be(st)&&(b(st),Se.value=null)}},Ot=()=>{var q;const Q=l(Se),pe=Pe(Q&&Q[1]),$e=l(W);if(pe&&pe.isValid()){Se.value=[((q=l(Z))==null?void 0:q[0])||null,He(pe)];const st=[$e&&$e[0],pe];Be(st)&&(b(st),Se.value=null)}},lt=M({}),we=q=>{lt.value[q[0]]=q[1],lt.value.panelReady=!0},ye=q=>{n("calendar-change",q)},ae=(q,Q,pe)=>{n("panel-change",q,Q,pe)};return ut("EP_PICKER_BASE",{props:o}),t({focus:U,handleFocusInput:F,handleBlurInput:B,handleOpen:R,handleClose:V,onPick:I}),(q,Q)=>(_(),ne(l(Nn),ot({ref_key:"refPopper",ref:d,visible:h.value,effect:"light",pure:"",trigger:"click"},q.$attrs,{role:"dialog",teleported:"",transition:`${l(a).namespace.value}-zoom-in-top`,"popper-class":[`${l(a).namespace.value}-picker__popper`,q.popperClass],"popper-options":l(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:P,onShow:N,onHide:D}),{default:Y(()=>[l(Ve)?(_(),x("div",{key:1,ref_key:"inputRef",ref:p,class:E([l(a).b("editor"),l(a).bm("editor",q.type),l(s).e("wrapper"),l(a).is("disabled",l(A)),l(a).is("active",h.value),l(i).b("editor"),l(We)?l(i).bm("editor",l(We)):"",q.$attrs.class]),style:Ie(q.$attrs.style),onClick:F,onMouseenter:de,onMouseleave:Te,onTouchstart:Re,onKeydown:Xe},[l(ve)?(_(),ne(l(ke),{key:0,class:E([l(s).e("icon"),l(i).e("icon")]),onMousedown:Le(oe,["prevent"]),onTouchstart:Re},{default:Y(()=>[(_(),ne(rt(l(ve))))]),_:1},8,["class","onMousedown"])):ee("v-if",!0),z("input",{id:q.id&&q.id[0],autocomplete:"off",name:q.name&&q.name[0],placeholder:q.startPlaceholder,value:l(Z)&&l(Z)[0],disabled:l(A),readonly:!q.editable||q.readonly,class:E(l(i).b("input")),onMousedown:oe,onInput:Ce,onChange:ht,onFocus:F,onBlur:B},null,42,PK),le(q.$slots,"range-separator",{},()=>[z("span",{class:E(l(i).b("separator"))},me(q.rangeSeparator),3)]),z("input",{id:q.id&&q.id[1],autocomplete:"off",name:q.name&&q.name[1],placeholder:q.endPlaceholder,value:l(Z)&&l(Z)[1],disabled:l(A),readonly:!q.editable||q.readonly,class:E(l(i).b("input")),onMousedown:oe,onFocus:F,onBlur:B,onInput:ze,onChange:Ot},null,42,xK),q.clearIcon?(_(),ne(l(ke),{key:1,class:E([l(s).e("icon"),l(i).e("close-icon"),{[l(i).e("close-icon--hidden")]:!re.value}]),onClick:ie},{default:Y(()=>[(_(),ne(rt(q.clearIcon)))]),_:1},8,["class"])):ee("v-if",!0)],38)):(_(),ne(l(_n),{key:0,id:q.id,ref_key:"inputRef",ref:p,"container-role":"combobox","model-value":l(Z),name:q.name,size:l(We),disabled:l(A),placeholder:q.placeholder,class:E([l(a).b("editor"),l(a).bm("editor",q.type),q.$attrs.class]),style:Ie(q.$attrs.style),readonly:!q.editable||q.readonly||l(se)||q.type==="week",label:q.label,tabindex:q.tabindex,"validate-event":!1,onInput:Qe,onFocus:F,onBlur:B,onKeydown:Xe,onChange:Fe,onMousedown:oe,onMouseenter:de,onMouseleave:Te,onTouchstart:Re,onClick:Q[0]||(Q[0]=Le(()=>{},["stop"]))},{prefix:Y(()=>[l(ve)?(_(),ne(l(ke),{key:0,class:E(l(s).e("icon")),onMousedown:Le(oe,["prevent"]),onTouchstart:Re},{default:Y(()=>[(_(),ne(rt(l(ve))))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),suffix:Y(()=>[re.value&&q.clearIcon?(_(),ne(l(ke),{key:0,class:E(`${l(s).e("icon")} clear-icon`),onClick:Le(ie,["stop"])},{default:Y(()=>[(_(),ne(rt(q.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:Y(()=>[le(q.$slots,"default",{visible:h.value,actualVisible:m.value,parsedValue:l(W),format:q.format,unlinkPanels:q.unlinkPanels,type:q.type,defaultValue:q.defaultValue,onPick:I,onSelectRange:$,onSetPickerOption:we,onCalendarChange:ye,onPanelChange:ae,onKeydown:L,onMousedown:Q[1]||(Q[1]=Le(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Qf=ge(DK,[["__file","picker.vue"]]);const BK=be({..._w,datetimeRole:String,parsedValue:{type:te(Object)}}),$w=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const o=(s,i,u,c)=>{const f={hour:e,minute:t,second:n};let d=s;return["hour","minute","second"].forEach(p=>{if(f[p]){let h;const m=f[p];switch(p){case"minute":{h=m(d.hour(),i,c);break}case"second":{h=m(d.hour(),d.minute(),i,c);break}default:{h=m(i,c);break}}if((h==null?void 0:h.length)&&!h.includes(d[p]())){const v=u?0:h.length-1;d=d[p](h[v])}}}),d},r={};return{timePickerOptions:r,getAvailableTime:o,onSetOption:([s,i])=>{r[s]=i}}},ep=e=>{const t=(o,r)=>o||r,n=o=>o!==!0;return e.map(t).filter(n)},kw=(e,t,n)=>({getHoursList:(s,i)=>fu(24,e&&(()=>e==null?void 0:e(s,i))),getMinutesList:(s,i,u)=>fu(60,t&&(()=>t==null?void 0:t(s,i,u))),getSecondsList:(s,i,u,c)=>fu(60,n&&(()=>n==null?void 0:n(s,i,u,c)))}),Ew=(e,t,n)=>{const{getHoursList:o,getMinutesList:r,getSecondsList:a}=kw(e,t,n);return{getAvailableHours:(c,f)=>ep(o(c,f)),getAvailableMinutes:(c,f,d)=>ep(r(c,f,d)),getAvailableSeconds:(c,f,d,p)=>ep(a(c,f,d,p))}},Tw=e=>{const t=M(e.parsedValue);return ue(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Wr=new Map;let Ow;pt&&(document.addEventListener("mousedown",e=>Ow=e),document.addEventListener("mouseup",e=>{for(const t of Wr.values())for(const{documentHandler:n}of t)n(e,Ow)}));function Mw(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:vo(t.arg)&&n.push(t.arg),function(o,r){const a=t.instance.popperRef,s=o.target,i=r==null?void 0:r.target,u=!t||!t.instance,c=!s||!i,f=e.contains(s)||e.contains(i),d=e===s,p=n.length&&n.some(m=>m==null?void 0:m.contains(s))||n.length&&n.includes(i),h=a&&(a.contains(s)||a.contains(i));u||c||f||d||p||h||t.value(o,r)}}const yr={beforeMount(e,t){Wr.has(e)||Wr.set(e,[]),Wr.get(e).push({documentHandler:Mw(e,t),bindingFn:t.value})},updated(e,t){Wr.has(e)||Wr.set(e,[]);const n=Wr.get(e),o=n.findIndex(a=>a.bindingFn===t.oldValue),r={documentHandler:Mw(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(e){Wr.delete(e)}},FK=100,VK=600,ps={beforeMount(e,t){const n=t.value,{interval:o=FK,delay:r=VK}=$t(n)?{}:n;let a,s;const i=()=>$t(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),a&&(clearInterval(a),a=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(u(),i(),document.addEventListener("mouseup",()=>u(),{once:!0}),s=setTimeout(()=>{a=setInterval(()=>{i()},o)},r))})}},tp="_trap-focus-children",ga=[],Aw=e=>{if(ga.length===0)return;const t=ga[ga.length-1][tp];if(t.length>0&&e.code===Ae.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],r=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),r&&!n&&(e.preventDefault(),t[0].focus())}},Iw={beforeMount(e){e[tp]=bh(e),ga.push(e),ga.length<=1&&document.addEventListener("keydown",Aw)},updated(e){Ee(()=>{e[tp]=bh(e)})},unmounted(){ga.shift(),ga.length===0&&document.removeEventListener("keydown",Aw)}};var Nw=!1,ya,np,op,vu,hu,Rw,mu,rp,ap,lp,Pw,sp,ip,xw,Lw;function Gn(){if(!Nw){Nw=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(sp=/\b(iPhone|iP[ao]d)/.exec(e),ip=/\b(iP[ao]d)/.exec(e),lp=/Android/i.exec(e),xw=/FBAN\/\w+;/i.exec(e),Lw=/Mobile/i.exec(e),Pw=!!/Win64/.exec(e),t){ya=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ya&&document&&document.documentMode&&(ya=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);Rw=o?parseFloat(o[1])+4:ya,np=t[2]?parseFloat(t[2]):NaN,op=t[3]?parseFloat(t[3]):NaN,vu=t[4]?parseFloat(t[4]):NaN,vu?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),hu=t&&t[1]?parseFloat(t[1]):NaN):hu=NaN}else ya=np=op=hu=vu=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);mu=r?parseFloat(r[1].replace("_",".")):!0}else mu=!1;rp=!!n[2],ap=!!n[3]}else mu=rp=ap=!1}}var up={ie:function(){return Gn()||ya},ieCompatibilityMode:function(){return Gn()||Rw>ya},ie64:function(){return up.ie()&&Pw},firefox:function(){return Gn()||np},opera:function(){return Gn()||op},webkit:function(){return Gn()||vu},safari:function(){return up.webkit()},chrome:function(){return Gn()||hu},windows:function(){return Gn()||rp},osx:function(){return Gn()||mu},linux:function(){return Gn()||ap},iphone:function(){return Gn()||sp},mobile:function(){return Gn()||sp||ip||lp||Lw},nativeApp:function(){return Gn()||xw},android:function(){return Gn()||lp},ipad:function(){return Gn()||ip}},zK=up,gu=!!(typeof window<"u"&&window.document&&window.document.createElement),HK={canUseDOM:gu,canUseWorkers:typeof Worker<"u",canUseEventListeners:gu&&!!(window.addEventListener||window.attachEvent),canUseViewport:gu&&!!window.screen,isInWorker:!gu},Dw=HK,Bw;Dw.canUseDOM&&(Bw=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function WK(e,t){if(!Dw.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var r=document.createElement("div");r.setAttribute(n,"return;"),o=typeof r[n]=="function"}return!o&&Bw&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var KK=WK,Fw=10,Vw=40,zw=800;function Hw(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*Fw,r=n*Fw,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(e.deltaMode==1?(o*=Vw,r*=Vw):(o*=zw,r*=zw)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}Hw.getEventType=function(){return zK.firefox()?"DOMMouseScroll":KK("wheel")?"wheel":"mousewheel"};var jK=Hw;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const UK=function(e,t){if(e&&e.addEventListener){const n=function(o){const r=jK(o);t&&Reflect.apply(t,this,[o,r])};e.addEventListener("wheel",n,{passive:!0})}},Ww={beforeMount(e,t){UK(e,t.value)}},qK=be({role:{type:String,required:!0},spinnerDate:{type:te(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:te(String),default:""},...Sw}),GK=["onClick"],YK=["onMouseenter"],XK=G({__name:"basic-time-spinner",props:qK,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=ce("time"),{getHoursList:r,getMinutesList:a,getSecondsList:s}=kw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let i=!1;const u=M(),c=M(),f=M(),d=M(),p={hours:c,minutes:f,seconds:d},h=S(()=>n.showSeconds?Uf:Uf.slice(0,2)),m=S(()=>{const{spinnerDate:A}=n,W=A.hour(),Z=A.minute(),K=A.second();return{hours:W,minutes:Z,seconds:K}}),v=S(()=>{const{hours:A,minutes:W}=l(m);return{hours:r(n.role),minutes:a(A,n.role),seconds:s(A,W,n.role)}}),g=S(()=>{const{hours:A,minutes:W,seconds:Z}=l(m);return{hours:du(A,23),minutes:du(W,59),seconds:du(Z,59)}}),y=On(A=>{i=!1,w(A)},200),C=A=>{if(!!!n.amPmMode)return"";const Z=n.amPmMode==="A";let K=A<12?" am":" pm";return Z&&(K=K.toUpperCase()),K},b=A=>{let W;switch(A){case"hours":W=[0,2];break;case"minutes":W=[3,5];break;case"seconds":W=[6,8];break}const[Z,K]=W;t("select-range",Z,K),u.value=A},w=A=>{O(A,l(m)[A])},k=()=>{w("hours"),w("minutes"),w("seconds")},$=A=>A.querySelector(`.${o.namespace.value}-scrollbar__wrap`),O=(A,W)=>{if(n.arrowControl)return;const Z=l(p[A]);Z&&Z.$el&&($(Z.$el).scrollTop=Math.max(0,W*I(A)))},I=A=>{const W=l(p[A]);return(W==null?void 0:W.$el.querySelector("li").offsetHeight)||0},P=()=>{L(1)},N=()=>{L(-1)},L=A=>{u.value||b("hours");const W=u.value,Z=l(m)[W],K=u.value==="hours"?24:60,X=D(W,Z,A,K);R(W,X),O(W,X),Ee(()=>b(W))},D=(A,W,Z,K)=>{let X=(W+Z+K)%K;const se=l(v)[A];for(;se[X]&&X!==W;)X=(X+Z+K)%K;return X},R=(A,W)=>{if(l(v)[A][W])return;const{hours:X,minutes:se,seconds:ve}=l(m);let re;switch(A){case"hours":re=n.spinnerDate.hour(W).minute(se).second(ve);break;case"minutes":re=n.spinnerDate.hour(X).minute(W).second(ve);break;case"seconds":re=n.spinnerDate.hour(X).minute(se).second(W);break}t("change",re)},V=(A,{value:W,disabled:Z})=>{Z||(R(A,W),b(A),O(A,W))},U=A=>{i=!0,y(A);const W=Math.min(Math.round(($(l(p[A]).$el).scrollTop-(F(A)*.5-10)/I(A)+3)/I(A)),A==="hours"?23:59);R(A,W)},F=A=>l(p[A]).$el.offsetHeight,T=()=>{const A=W=>{const Z=l(p[W]);Z&&Z.$el&&($(Z.$el).onscroll=()=>{U(W)})};A("hours"),A("minutes"),A("seconds")};Ze(()=>{Ee(()=>{!n.arrowControl&&T(),k(),n.role==="start"&&b("hours")})});const B=(A,W)=>{p[W].value=A};return t("set-option",[`${n.role}_scrollDown`,L]),t("set-option",[`${n.role}_emitSelectRange`,b]),ue(()=>n.spinnerDate,()=>{i||k()}),(A,W)=>(_(),x("div",{class:E([l(o).b("spinner"),{"has-seconds":A.showSeconds}])},[A.arrowControl?ee("v-if",!0):(_(!0),x(xe,{key:0},ct(l(h),Z=>(_(),ne(l(Zo),{key:Z,ref_for:!0,ref:K=>B(K,Z),class:E(l(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":l(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:K=>b(Z),onMousemove:K=>w(Z)},{default:Y(()=>[(_(!0),x(xe,null,ct(l(v)[Z],(K,X)=>(_(),x("li",{key:X,class:E([l(o).be("spinner","item"),l(o).is("active",X===l(m)[Z]),l(o).is("disabled",K)]),onClick:se=>V(Z,{value:X,disabled:K})},[Z==="hours"?(_(),x(xe,{key:0},[Ct(me(("0"+(A.amPmMode?X%12||12:X)).slice(-2))+me(C(X)),1)],64)):(_(),x(xe,{key:1},[Ct(me(("0"+X).slice(-2)),1)],64))],10,GK))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),A.arrowControl?(_(!0),x(xe,{key:1},ct(l(h),Z=>(_(),x("div",{key:Z,class:E([l(o).be("spinner","wrapper"),l(o).is("arrow")]),onMouseenter:K=>b(Z)},[je((_(),ne(l(ke),{class:E(["arrow-up",l(o).be("spinner","arrow")])},{default:Y(()=>[j(l(Si))]),_:1},8,["class"])),[[l(ps),N]]),je((_(),ne(l(ke),{class:E(["arrow-down",l(o).be("spinner","arrow")])},{default:Y(()=>[j(l(Ir))]),_:1},8,["class"])),[[l(ps),P]]),z("ul",{class:E(l(o).be("spinner","list"))},[(_(!0),x(xe,null,ct(l(g)[Z],(K,X)=>(_(),x("li",{key:X,class:E([l(o).be("spinner","item"),l(o).is("active",K===l(m)[Z]),l(o).is("disabled",l(v)[Z][K])])},[typeof K=="number"?(_(),x(xe,{key:0},[Z==="hours"?(_(),x(xe,{key:0},[Ct(me(("0"+(A.amPmMode?K%12||12:K)).slice(-2))+me(C(K)),1)],64)):(_(),x(xe,{key:1},[Ct(me(("0"+K).slice(-2)),1)],64))],64)):ee("v-if",!0)],2))),128))],2)],42,YK))),128)):ee("v-if",!0)],2))}});var cp=ge(XK,[["__file","basic-time-spinner.vue"]]);const ZK=G({__name:"panel-time-pick",props:BK,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=Oe("EP_PICKER_BASE"),{arrowControl:r,disabledHours:a,disabledMinutes:s,disabledSeconds:i,defaultValue:u}=o.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}=Ew(a,s,i),p=ce("time"),{t:h,lang:m}=gt(),v=M([0,2]),g=Tw(n),y=S(()=>bn(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),C=S(()=>n.format.includes("ss")),b=S(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=B=>{const A=qe(B).locale(m.value),W=V(A);return A.isSame(W)},k=()=>{t("pick",g.value,!1)},$=(B=!1,A=!1)=>{A||t("pick",n.parsedValue,B)},O=B=>{if(!n.visible)return;const A=V(B).millisecond(0);t("pick",A,!0)},I=(B,A)=>{t("select-range",B,A),v.value=[B,A]},P=B=>{const A=[0,3].concat(C.value?[6]:[]),W=["hours","minutes"].concat(C.value?["seconds"]:[]),K=(A.indexOf(v.value[0])+B+A.length)%A.length;L.start_emitSelectRange(W[K])},N=B=>{const A=B.code,{left:W,right:Z,up:K,down:X}=Ae;if([W,Z].includes(A)){P(A===W?-1:1),B.preventDefault();return}if([K,X].includes(A)){const se=A===K?-1:1;L.start_scrollDown(se),B.preventDefault();return}},{timePickerOptions:L,onSetOption:D,getAvailableTime:R}=$w({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}),V=B=>R(B,n.datetimeRole||"",!0),U=B=>B?qe(B,n.format).locale(m.value):null,F=B=>B?B.format(n.format):null,T=()=>qe(u).locale(m.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["parseUserInput",U]),t("set-picker-option",["handleKeydownInput",N]),t("set-picker-option",["getRangeAvailableTime",V]),t("set-picker-option",["getDefaultValue",T]),(B,A)=>(_(),ne(ln,{name:l(y)},{default:Y(()=>[B.actualVisible||B.visible?(_(),x("div",{key:0,class:E(l(p).b("panel"))},[z("div",{class:E([l(p).be("panel","content"),{"has-seconds":l(C)}])},[j(cp,{ref:"spinner",role:B.datetimeRole||"start","arrow-control":l(r),"show-seconds":l(C),"am-pm-mode":l(b),"spinner-date":B.parsedValue,"disabled-hours":l(a),"disabled-minutes":l(s),"disabled-seconds":l(i),onChange:O,onSetOption:l(D),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),z("div",{class:E(l(p).be("panel","footer"))},[z("button",{type:"button",class:E([l(p).be("panel","btn"),"cancel"]),onClick:k},me(l(h)("el.datepicker.cancel")),3),z("button",{type:"button",class:E([l(p).be("panel","btn"),"confirm"]),onClick:A[0]||(A[0]=W=>$())},me(l(h)("el.datepicker.confirm")),3)],2)],2)):ee("v-if",!0)]),_:1},8,["name"]))}});var vs=ge(ZK,[["__file","panel-time-pick.vue"]]);const JK=be({..._w,parsedValue:{type:te(Array)}}),QK=["disabled"],e7=G({__name:"panel-time-range",props:JK,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=(oe,de)=>{const Te=[];for(let Re=oe;Re<=de;Re++)Te.push(Re);return Te},{t:r,lang:a}=gt(),s=ce("time"),i=ce("picker"),u=Oe("EP_PICKER_BASE"),{arrowControl:c,disabledHours:f,disabledMinutes:d,disabledSeconds:p,defaultValue:h}=u.props,m=S(()=>n.parsedValue[0]),v=S(()=>n.parsedValue[1]),g=Tw(n),y=()=>{t("pick",g.value,!1)},C=S(()=>n.format.includes("ss")),b=S(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=(oe=!1)=>{t("pick",[m.value,v.value],oe)},k=oe=>{I(oe.millisecond(0),v.value)},$=oe=>{I(m.value,oe.millisecond(0))},O=oe=>{const de=oe.map(Re=>qe(Re).locale(a.value)),Te=A(de);return de[0].isSame(Te[0])&&de[1].isSame(Te[1])},I=(oe,de)=>{t("pick",[oe,de],!0)},P=S(()=>m.value>v.value),N=M([0,2]),L=(oe,de)=>{t("select-range",oe,de,"min"),N.value=[oe,de]},D=S(()=>C.value?11:8),R=(oe,de)=>{t("select-range",oe,de,"max");const Te=l(D);N.value=[oe+Te,de+Te]},V=oe=>{const de=C.value?[0,3,6,11,14,17]:[0,3,8,11],Te=["hours","minutes"].concat(C.value?["seconds"]:[]),Ve=(de.indexOf(N.value[0])+oe+de.length)%de.length,We=de.length/2;Ve{const de=oe.code,{left:Te,right:Re,up:Ve,down:We}=Ae;if([Te,Re].includes(de)){V(de===Te?-1:1),oe.preventDefault();return}if([Ve,We].includes(de)){const Ge=de===Ve?-1:1,yt=N.value[0]{const Te=f?f(oe):[],Re=oe==="start",We=(de||(Re?v.value:m.value)).hour(),Ge=Re?o(We+1,23):o(0,We-1);return bi(Te,Ge)},T=(oe,de,Te)=>{const Re=d?d(oe,de):[],Ve=de==="start",We=Te||(Ve?v.value:m.value),Ge=We.hour();if(oe!==Ge)return Re;const yt=We.minute(),Se=Ve?o(yt+1,59):o(0,yt-1);return bi(Re,Se)},B=(oe,de,Te,Re)=>{const Ve=p?p(oe,de,Te):[],We=Te==="start",Ge=Re||(We?v.value:m.value),yt=Ge.hour(),Se=Ge.minute();if(oe!==yt||de!==Se)return Ve;const Fe=Ge.second(),Pe=We?o(Fe+1,59):o(0,Fe-1);return bi(Ve,Pe)},A=([oe,de])=>[se(oe,"start",!0,de),se(de,"end",!1,oe)],{getAvailableHours:W,getAvailableMinutes:Z,getAvailableSeconds:K}=Ew(F,T,B),{timePickerOptions:X,getAvailableTime:se,onSetOption:ve}=$w({getAvailableHours:W,getAvailableMinutes:Z,getAvailableSeconds:K}),re=oe=>oe?et(oe)?oe.map(de=>qe(de,n.format).locale(a.value)):qe(oe,n.format).locale(a.value):null,ie=oe=>oe?et(oe)?oe.map(de=>de.format(n.format)):oe.format(n.format):null,J=()=>{if(et(h))return h.map(de=>qe(de).locale(a.value));const oe=qe(h).locale(a.value);return[oe,oe.add(60,"m")]};return t("set-picker-option",["formatToString",ie]),t("set-picker-option",["parseUserInput",re]),t("set-picker-option",["isValidValue",O]),t("set-picker-option",["handleKeydownInput",U]),t("set-picker-option",["getDefaultValue",J]),t("set-picker-option",["getRangeAvailableTime",A]),(oe,de)=>oe.actualVisible?(_(),x("div",{key:0,class:E([l(s).b("range-picker"),l(i).b("panel")])},[z("div",{class:E(l(s).be("range-picker","content"))},[z("div",{class:E(l(s).be("range-picker","cell"))},[z("div",{class:E(l(s).be("range-picker","header"))},me(l(r)("el.datepicker.startTime")),3),z("div",{class:E([l(s).be("range-picker","body"),l(s).be("panel","content"),l(s).is("arrow",l(c)),{"has-seconds":l(C)}])},[j(cp,{ref:"minSpinner",role:"start","show-seconds":l(C),"am-pm-mode":l(b),"arrow-control":l(c),"spinner-date":l(m),"disabled-hours":F,"disabled-minutes":T,"disabled-seconds":B,onChange:k,onSetOption:l(ve),onSelectRange:L},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),z("div",{class:E(l(s).be("range-picker","cell"))},[z("div",{class:E(l(s).be("range-picker","header"))},me(l(r)("el.datepicker.endTime")),3),z("div",{class:E([l(s).be("range-picker","body"),l(s).be("panel","content"),l(s).is("arrow",l(c)),{"has-seconds":l(C)}])},[j(cp,{ref:"maxSpinner",role:"end","show-seconds":l(C),"am-pm-mode":l(b),"arrow-control":l(c),"spinner-date":l(v),"disabled-hours":F,"disabled-minutes":T,"disabled-seconds":B,onChange:$,onSetOption:l(ve),onSelectRange:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),z("div",{class:E(l(s).be("panel","footer"))},[z("button",{type:"button",class:E([l(s).be("panel","btn"),"cancel"]),onClick:de[0]||(de[0]=Te=>y())},me(l(r)("el.datepicker.cancel")),3),z("button",{type:"button",class:E([l(s).be("panel","btn"),"confirm"]),disabled:l(P),onClick:de[1]||(de[1]=Te=>w())},me(l(r)("el.datepicker.confirm")),11,QK)],2)],2)):ee("v-if",!0)}});var t7=ge(e7,[["__file","panel-time-range.vue"]]);qe.extend(jf);var n7=G({name:"ElTimePicker",install:null,props:{...pu,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=M(),[o,r]=e.isRange?["timerange",t7]:["time",vs],a=s=>t.emit("update:modelValue",s);return ut("ElPopperOptions",e.popperOptions),t.expose({focus:s=>{var i;(i=n.value)==null||i.handleFocusInput(s)},blur:s=>{var i;(i=n.value)==null||i.handleBlurInput(s)},handleOpen:()=>{var s;(s=n.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=n.value)==null||s.handleClose()}}),()=>{var s;const i=(s=e.format)!=null?s:cu;return j(Qf,ot(e,{ref:n,type:o,format:i,"onUpdate:modelValue":a}),{default:u=>j(r,u,null)})}}});const yu=n7;yu.install=e=>{e.component(yu.name,yu)};const Kw=yu,o7=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return gr(t).map((o,r)=>n-(t-r-1))},r7=e=>{const t=e.daysInMonth();return gr(t).map((n,o)=>o+1)},a7=e=>gr(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),l7=be({selectedDay:{type:te(Object)},range:{type:te(Array)},date:{type:te(Object),required:!0},hideHeader:{type:Boolean}}),s7={pick:e=>Rt(e)};var jw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o,r){var a=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,p,h,m,v){var g=d.name?d:d.$locale(),y=s(g[p]),C=s(g[h]),b=y||C.map(function(k){return k.slice(0,m)});if(!v)return b;var w=g.weekStart;return b.map(function(k,$){return b[($+(w||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,p){return d.formats[p]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,v,g){return v||g.slice(1)})}(d.formats[p.toUpperCase()])},f=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):i(d,"months")},monthsShort:function(p){return p?p.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):i(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return c(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(d){return i(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(jw);var Uw=jw.exports;const i7=(e,t)=>{qe.extend(Uw);const n=qe.localeData().firstDayOfWeek(),{t:o,lang:r}=gt(),a=qe().locale(r.value),s=S(()=>!!e.range&&!!e.range.length),i=S(()=>{let p=[];if(s.value){const[h,m]=e.range,v=gr(m.date()-h.date()+1).map(C=>({text:h.date()+C,type:"current"}));let g=v.length%7;g=g===0?0:7-g;const y=gr(g).map((C,b)=>({text:b+1,type:"next"}));p=v.concat(y)}else{const h=e.date.startOf("month").day(),m=o7(e.date,(h-n+7)%7).map(C=>({text:C,type:"prev"})),v=r7(e.date).map(C=>({text:C,type:"current"}));p=[...m,...v];const g=7-(p.length%7||7),y=gr(g).map((C,b)=>({text:b+1,type:"next"}));p=p.concat(y)}return a7(p)}),u=S(()=>{const p=n;return p===0?Ei.map(h=>o(`el.datepicker.weeks.${h}`)):Ei.slice(p).concat(Ei.slice(0,p)).map(h=>o(`el.datepicker.weeks.${h}`))}),c=(p,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:a,isInRange:s,rows:i,weekDays:u,getFormattedDate:c,handlePickDay:({text:p,type:h})=>{const m=c(p,h);t("pick",m)},getSlotData:({text:p,type:h})=>{const m=c(p,h);return{isSelected:m.isSame(e.selectedDay),type:`${h}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},u7={key:0},c7=["onClick"],d7=G({name:"DateTable"}),f7=G({...d7,props:l7,emits:s7,setup(e,{expose:t,emit:n}){const o=e,{isInRange:r,now:a,rows:s,weekDays:i,getFormattedDate:u,handlePickDay:c,getSlotData:f}=i7(o,n),d=ce("calendar-table"),p=ce("calendar-day"),h=({text:m,type:v})=>{const g=[v];if(v==="current"){const y=u(m,v);y.isSame(o.selectedDay,"day")&&g.push(p.is("selected")),y.isSame(a,"day")&&g.push(p.is("today"))}return g};return t({getFormattedDate:u}),(m,v)=>(_(),x("table",{class:E([l(d).b(),l(d).is("range",l(r))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ee("v-if",!0):(_(),x("thead",u7,[(_(!0),x(xe,null,ct(l(i),g=>(_(),x("th",{key:g},me(g),1))),128))])),z("tbody",null,[(_(!0),x(xe,null,ct(l(s),(g,y)=>(_(),x("tr",{key:y,class:E({[l(d).e("row")]:!0,[l(d).em("row","hide-border")]:y===0&&m.hideHeader})},[(_(!0),x(xe,null,ct(g,(C,b)=>(_(),x("td",{key:b,class:E(h(C)),onClick:w=>l(c)(C)},[z("div",{class:E(l(p).b())},[le(m.$slots,"date-cell",{data:l(f)(C)},()=>[z("span",null,me(C.text),1)])],2)],10,c7))),128))],2))),128))])],2))}});var qw=ge(f7,[["__file","date-table.vue"]]);const p7=(e,t)=>{const n=e.endOf("month"),o=t.startOf("month"),a=n.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),t]]},v7=(e,t)=>{const n=e.endOf("month"),o=e.add(1,"month").startOf("month"),r=n.isSame(o,"week")?o.add(1,"week"):o,a=r.endOf("month"),s=t.startOf("month"),i=a.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[r.startOf("week"),a],[i.startOf("week"),t]]},h7=(e,t,n)=>{const o=gn(),{lang:r}=gt(),a=M(),s=qe().locale(r.value),i=S({get(){return e.modelValue?c.value:a.value},set(y){if(!y)return;a.value=y;const C=y.toDate();t(Mn,C),t(tt,C)}}),u=S(()=>{if(!e.range)return[];const y=e.range.map(w=>qe(w).locale(r.value)),[C,b]=y;return C.isAfter(b)?[]:C.isSame(b,"month")?m(C,b):C.add(1,"month").month()!==b.month()?[]:m(C,b)}),c=S(()=>e.modelValue?qe(e.modelValue).locale(r.value):i.value||(u.value.length?u.value[0][0]:s)),f=S(()=>c.value.subtract(1,"month").date(1)),d=S(()=>c.value.add(1,"month").date(1)),p=S(()=>c.value.subtract(1,"year").date(1)),h=S(()=>c.value.add(1,"year").date(1)),m=(y,C)=>{const b=y.startOf("week"),w=C.endOf("week"),k=b.get("month"),$=w.get("month");return k===$?[[b,w]]:(k+1)%12===$?p7(b,w):k+2===$||(k+1)%11===$?v7(b,w):[]},v=y=>{i.value=y},g=y=>{const b={"prev-month":f.value,"next-month":d.value,"prev-year":p.value,"next-year":h.value,today:s}[y];b.isSame(c.value,"day")||v(b)};return Oo({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},S(()=>!!o.dateCell)),{calculateValidatedDateRange:m,date:c,realSelectedDay:i,pickDay:v,selectDate:g,validatedRange:u}},m7=e=>et(e)&&e.length===2&&e.every(t=>El(t)),Gw=be({modelValue:{type:Date},range:{type:te(Array),validator:m7}}),Yw={[tt]:e=>El(e),[Mn]:e=>El(e)},g7="ElCalendar",y7=G({name:g7}),b7=G({...y7,props:Gw,emits:Yw,setup(e,{expose:t,emit:n}){const o=e,r=ce("calendar"),{calculateValidatedDateRange:a,date:s,pickDay:i,realSelectedDay:u,selectDate:c,validatedRange:f}=h7(o,n),{t:d}=gt(),p=S(()=>{const h=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${d("el.datepicker.year")} ${d(h)}`});return t({selectedDay:u,pickDay:i,selectDate:c,calculateValidatedDateRange:a}),(h,m)=>(_(),x("div",{class:E(l(r).b())},[z("div",{class:E(l(r).e("header"))},[le(h.$slots,"header",{date:l(p)},()=>[z("div",{class:E(l(r).e("title"))},me(l(p)),3),l(f).length===0?(_(),x("div",{key:0,class:E(l(r).e("button-group"))},[j(l(Kf),null,{default:Y(()=>[j(l(wn),{size:"small",onClick:m[0]||(m[0]=v=>l(c)("prev-month"))},{default:Y(()=>[Ct(me(l(d)("el.datepicker.prevMonth")),1)]),_:1}),j(l(wn),{size:"small",onClick:m[1]||(m[1]=v=>l(c)("today"))},{default:Y(()=>[Ct(me(l(d)("el.datepicker.today")),1)]),_:1}),j(l(wn),{size:"small",onClick:m[2]||(m[2]=v=>l(c)("next-month"))},{default:Y(()=>[Ct(me(l(d)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ee("v-if",!0)])],2),l(f).length===0?(_(),x("div",{key:0,class:E(l(r).e("body"))},[j(qw,{date:l(s),"selected-day":l(u),onPick:l(i)},er({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Y(v=>[h.$slots["date-cell"]?le(h.$slots,"date-cell",wo(ot({key:0},v))):le(h.$slots,"dateCell",wo(ot({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),x("div",{key:1,class:E(l(r).e("body"))},[(_(!0),x(xe,null,ct(l(f),(v,g)=>(_(),ne(qw,{key:g,date:v[0],"selected-day":l(u),range:v,"hide-header":g!==0,onPick:l(i)},er({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Y(y=>[h.$slots["date-cell"]?le(h.$slots,"date-cell",wo(ot({key:0},y))):le(h.$slots,"dateCell",wo(ot({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var w7=ge(b7,[["__file","calendar.vue"]]);const Xw=Je(w7),Zw=be({header:{type:String,default:""},bodyStyle:{type:te([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),C7=G({name:"ElCard"}),S7=G({...C7,props:Zw,setup(e){const t=ce("card");return(n,o)=>(_(),x("div",{class:E([l(t).b(),l(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(_(),x("div",{key:0,class:E(l(t).e("header"))},[le(n.$slots,"header",{},()=>[Ct(me(n.header),1)])],2)):ee("v-if",!0),z("div",{class:E(l(t).e("body")),style:Ie(n.bodyStyle)},[le(n.$slots,"default")],6)],2))}});var _7=ge(S7,[["__file","card.vue"]]);const Jw=Je(_7),Qw=be({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),e2={change:(e,t)=>[e,t].every(De)},dp=Symbol("carouselContextKey"),t2=300,$7=(e,t,n)=>{const{children:o,addChild:r,removeChild:a}=Wi(nt(),"ElCarouselItem"),s=M(-1),i=M(null),u=M(!1),c=M(),f=M(0),d=S(()=>e.arrow!=="never"&&!l(m)),p=S(()=>o.value.some(A=>A.props.label.toString().length>0)),h=S(()=>e.type==="card"),m=S(()=>e.direction==="vertical"),v=S(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),g=Mr(A=>{k(A)},t2,{trailing:!0}),y=Mr(A=>{R(A)},t2);function C(){i.value&&(clearInterval(i.value),i.value=null)}function b(){e.interval<=0||!e.autoplay||i.value||(i.value=setInterval(()=>w(),e.interval))}const w=()=>{s.valueX.props.name===A);K.length>0&&(A=o.value.indexOf(K[0]))}if(A=Number(A),Number.isNaN(A)||A!==Math.floor(A))return;const W=o.value.length,Z=s.value;A<0?s.value=e.loop?W-1:0:A>=W?s.value=e.loop?0:W-1:s.value=A,Z===s.value&&$(Z),F()}function $(A){o.value.forEach((W,Z)=>{W.translateItem(Z,s.value,A)})}function O(A,W){var Z,K,X,se;const ve=l(o),re=ve.length;if(re===0||!A.states.inStage)return!1;const ie=W+1,J=W-1,oe=re-1,de=ve[oe].states.active,Te=ve[0].states.active,Re=(K=(Z=ve[ie])==null?void 0:Z.states)==null?void 0:K.active,Ve=(se=(X=ve[J])==null?void 0:X.states)==null?void 0:se.active;return W===oe&&Te||Re?"left":W===0&&de||Ve?"right":!1}function I(){u.value=!0,e.pauseOnHover&&C()}function P(){u.value=!1,b()}function N(A){l(m)||o.value.forEach((W,Z)=>{A===O(W,Z)&&(W.states.hover=!0)})}function L(){l(m)||o.value.forEach(A=>{A.states.hover=!1})}function D(A){s.value=A}function R(A){e.trigger==="hover"&&A!==s.value&&(s.value=A)}function V(){k(s.value-1)}function U(){k(s.value+1)}function F(){C(),b()}function T(A){e.height==="auto"&&(f.value=A)}ue(()=>s.value,(A,W)=>{$(W),W>-1&&t("change",A,W)}),ue(()=>e.autoplay,A=>{A?b():C()}),ue(()=>e.loop,()=>{k(s.value)}),ue(()=>e.interval,()=>{F()}),ue(()=>o.value,()=>{o.value.length>0&&k(e.initialIndex)});const B=Pt();return Ze(()=>{B.value=En(c.value,()=>{$()}),b()}),qt(()=>{C(),c.value&&B.value&&B.value.stop()}),ut(dp,{root:c,isCardType:h,isVertical:m,items:o,loop:e.loop,addItem:r,removeItem:a,setActiveItem:k,setContainerHeight:T}),{root:c,activeIndex:s,arrowDisplay:d,hasLabel:p,hover:u,isCardType:h,items:o,isVertical:m,containerStyle:v,handleButtonEnter:N,handleButtonLeave:L,handleIndicatorClick:D,handleMouseEnter:I,handleMouseLeave:P,setActiveItem:k,prev:V,next:U,throttledArrowClick:g,throttledIndicatorHover:y}},k7=["onMouseenter","onClick"],E7={key:0},T7="ElCarousel",O7=G({name:T7}),M7=G({...O7,props:Qw,emits:e2,setup(e,{expose:t,emit:n}){const o=e,{root:r,activeIndex:a,arrowDisplay:s,hasLabel:i,hover:u,isCardType:c,items:f,isVertical:d,containerStyle:p,handleButtonEnter:h,handleButtonLeave:m,handleIndicatorClick:v,handleMouseEnter:g,handleMouseLeave:y,setActiveItem:C,prev:b,next:w,throttledArrowClick:k,throttledIndicatorHover:$}=$7(o,n),O=ce("carousel"),I=S(()=>{const N=[O.b(),O.m(o.direction)];return l(c)&&N.push(O.m("card")),N}),P=S(()=>{const N=[O.e("indicators"),O.em("indicators",o.direction)];return l(i)&&N.push(O.em("indicators","labels")),o.indicatorPosition==="outside"&&N.push(O.em("indicators","outside")),l(d)&&N.push(O.em("indicators","right")),N});return t({setActiveItem:C,prev:b,next:w}),(N,L)=>(_(),x("div",{ref_key:"root",ref:r,class:E(l(I)),onMouseenter:L[6]||(L[6]=Le((...D)=>l(g)&&l(g)(...D),["stop"])),onMouseleave:L[7]||(L[7]=Le((...D)=>l(y)&&l(y)(...D),["stop"]))},[z("div",{class:E(l(O).e("container")),style:Ie(l(p))},[l(s)?(_(),ne(ln,{key:0,name:"carousel-arrow-left",persisted:""},{default:Y(()=>[je(z("button",{type:"button",class:E([l(O).e("arrow"),l(O).em("arrow","left")]),onMouseenter:L[0]||(L[0]=D=>l(h)("left")),onMouseleave:L[1]||(L[1]=(...D)=>l(m)&&l(m)(...D)),onClick:L[2]||(L[2]=Le(D=>l(k)(l(a)-1),["stop"]))},[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1})],34),[[St,(N.arrow==="always"||l(u))&&(o.loop||l(a)>0)]])]),_:1})):ee("v-if",!0),l(s)?(_(),ne(ln,{key:1,name:"carousel-arrow-right",persisted:""},{default:Y(()=>[je(z("button",{type:"button",class:E([l(O).e("arrow"),l(O).em("arrow","right")]),onMouseenter:L[3]||(L[3]=D=>l(h)("right")),onMouseleave:L[4]||(L[4]=(...D)=>l(m)&&l(m)(...D)),onClick:L[5]||(L[5]=Le(D=>l(k)(l(a)+1),["stop"]))},[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})],34),[[St,(N.arrow==="always"||l(u))&&(o.loop||l(a)(_(),x("li",{key:R,class:E([l(O).e("indicator"),l(O).em("indicator",N.direction),l(O).is("active",R===l(a))]),onMouseenter:V=>l($)(R),onClick:Le(V=>l(v)(R),["stop"])},[z("button",{class:E(l(O).e("button"))},[l(i)?(_(),x("span",E7,me(D.props.label),1)):ee("v-if",!0)],2)],42,k7))),128))],2)):ee("v-if",!0)],34))}});var A7=ge(M7,[["__file","carousel.vue"]]);const n2=be({name:{type:String,default:""},label:{type:[String,Number],default:""}}),I7=(e,t)=>{const n=Oe(dp),o=nt(),r=.83,a=M(),s=M(!1),i=M(0),u=M(1),c=M(!1),f=M(!1),d=M(!1),p=M(!1),{isCardType:h,isVertical:m}=n;function v(w,k,$){const O=$-1,I=k-1,P=k+1,N=$/2;return k===0&&w===O?-1:k===O&&w===0?$:w=N?$+1:w>P&&w-k>=N?-2:w}function g(w,k){var $,O;const I=l(m)?(($=n.root.value)==null?void 0:$.offsetHeight)||0:((O=n.root.value)==null?void 0:O.offsetWidth)||0;return d.value?I*((2-r)*(w-k)+1)/4:w{var O;const I=l(h),P=(O=n.items.value.length)!=null?O:Number.NaN,N=w===k;!I&&!bn($)&&(p.value=N||w===$),!N&&P>2&&n.loop&&(w=v(w,k,P));const L=l(m);c.value=N,I?(d.value=Math.round(Math.abs(w-k))<=1,i.value=g(w,k),u.value=l(c)?1:r):i.value=y(w,k,L),f.value=!0,N&&a.value&&n.setContainerHeight(a.value.offsetHeight)};function b(){if(n&&l(h)){const w=n.items.value.findIndex(({uid:k})=>k===o.uid);n.setActiveItem(w)}}return Ze(()=>{n.addItem({props:e,states:At({hover:s,translate:i,scale:u,active:c,ready:f,inStage:d,animating:p}),uid:o.uid,translateItem:C})}),Yr(()=>{n.removeItem(o.uid)}),{carouselItemRef:a,active:c,animating:p,hover:s,inStage:d,isVertical:m,translate:i,isCardType:h,scale:u,ready:f,handleItemClick:b}},N7=G({name:"ElCarouselItem"}),R7=G({...N7,props:n2,setup(e){const t=e,n=ce("carousel"),{carouselItemRef:o,active:r,animating:a,hover:s,inStage:i,isVertical:u,translate:c,isCardType:f,scale:d,ready:p,handleItemClick:h}=I7(t),m=S(()=>{const g=`${`translate${l(u)?"Y":"X"}`}(${l(c)}px)`,y=`scale(${l(d)})`;return{transform:[g,y].join(" ")}});return(v,g)=>je((_(),x("div",{ref_key:"carouselItemRef",ref:o,class:E([l(n).e("item"),l(n).is("active",l(r)),l(n).is("in-stage",l(i)),l(n).is("hover",l(s)),l(n).is("animating",l(a)),{[l(n).em("item","card")]:l(f),[l(n).em("item","card-vertical")]:l(f)&&l(u)}]),style:Ie(l(m)),onClick:g[0]||(g[0]=(...y)=>l(h)&&l(h)(...y))},[l(f)?je((_(),x("div",{key:0,class:E(l(n).e("mask"))},null,2)),[[St,!l(r)]]):ee("v-if",!0),le(v.$slots,"default")],6)),[[St,l(p)]])}});var o2=ge(R7,[["__file","carousel-item.vue"]]);const r2=Je(A7,{CarouselItem:o2}),a2=Xt(o2),fp={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:vn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},pp={[tt]:e=>it(e)||De(e)||un(e),change:e=>it(e)||De(e)||un(e)},ba=Symbol("checkboxGroupContextKey"),P7=({model:e,isChecked:t})=>{const n=Oe(ba,void 0),o=S(()=>{var a,s;const i=(a=n==null?void 0:n.max)==null?void 0:a.value,u=(s=n==null?void 0:n.min)==null?void 0:s.value;return!bn(i)&&e.value.length>=i&&!t.value||!bn(u)&&e.value.length<=u&&t.value});return{isDisabled:An(S(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},x7=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:a})=>{const s=Oe(ba,void 0),{formItem:i}=In(),{emit:u}=nt();function c(m){var v,g;return m===e.trueLabel||m===!0?(v=e.trueLabel)!=null?v:!0:(g=e.falseLabel)!=null?g:!1}function f(m,v){u("change",c(m),v)}function d(m){if(n.value)return;const v=m.target;u("change",c(v.checked),m)}async function p(m){n.value||!o.value&&!r.value&&a.value&&(m.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await Ee(),f(t.value,m)))}const h=S(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return ue(()=>e.modelValue,()=>{h.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:d,onClickRoot:p}},L7=e=>{const t=M(!1),{emit:n}=nt(),o=Oe(ba,void 0),r=S(()=>bn(o)===!1),a=M(!1);return{model:S({get(){var i,u;return r.value?(i=o==null?void 0:o.modelValue)==null?void 0:i.value:(u=e.modelValue)!=null?u:t.value},set(i){var u,c;r.value&&et(i)?(a.value=((u=o==null?void 0:o.max)==null?void 0:u.value)!==void 0&&i.length>(o==null?void 0:o.max.value),a.value===!1&&((c=o==null?void 0:o.changeEvent)==null||c.call(o,i))):(n(tt,i),t.value=i)}}),isGroup:r,isLimitExceeded:a}},D7=(e,t,{model:n})=>{const o=Oe(ba,void 0),r=M(!1),a=S(()=>{const c=n.value;return un(c)?c:et(c)?Rt(e.label)?c.map(Ma).some(f=>Dn(f,e.label)):c.map(Ma).includes(e.label):c!=null?c===e.trueLabel:!!c}),s=on(S(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value}),{prop:!0}),i=on(S(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value})),u=S(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:a,isFocused:r,checkboxSize:i,hasOwnLabel:u}},B7=(e,{model:t})=>{function n(){et(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},l2=(e,t)=>{const{formItem:n}=In(),{model:o,isGroup:r,isLimitExceeded:a}=L7(e),{isFocused:s,isChecked:i,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f}=D7(e,t,{model:o}),{isDisabled:d}=P7({model:o,isChecked:i}),{inputId:p,isLabeledByFormItem:h}=vr(e,{formItemContext:n,disableIdGeneration:f,disableIdManagement:r}),{handleChange:m,onClickRoot:v}=x7(e,{model:o,isLimitExceeded:a,hasOwnLabel:f,isDisabled:d,isLabeledByFormItem:h});return B7(e,{model:o}),{inputId:p,isLabeledByFormItem:h,isChecked:i,isDisabled:d,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f,model:o,handleChange:m,onClickRoot:v}},F7=["tabindex","role","aria-checked"],V7=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],z7=["id","aria-hidden","disabled","value","name","tabindex"],H7=G({name:"ElCheckbox"}),W7=G({...H7,props:fp,emits:pp,setup(e){const t=e,n=gn(),{inputId:o,isLabeledByFormItem:r,isChecked:a,isDisabled:s,isFocused:i,checkboxSize:u,hasOwnLabel:c,model:f,handleChange:d,onClickRoot:p}=l2(t,n),h=ce("checkbox"),m=S(()=>[h.b(),h.m(u.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",a.value)]),v=S(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",i.value)]);return(g,y)=>(_(),ne(rt(!l(c)&&l(r)?"span":"label"),{class:E(l(m)),"aria-controls":g.indeterminate?g.controls:null,onClick:l(p)},{default:Y(()=>[z("span",{class:E(l(v)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?je((_(),x("input",{key:0,id:l(o),"onUpdate:modelValue":y[0]||(y[0]=C=>Rn(f)?f.value=C:null),class:E(l(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:l(s),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:y[1]||(y[1]=(...C)=>l(d)&&l(d)(...C)),onFocus:y[2]||(y[2]=C=>i.value=!0),onBlur:y[3]||(y[3]=C=>i.value=!1)},null,42,V7)),[[Ds,l(f)]]):je((_(),x("input",{key:1,id:l(o),"onUpdate:modelValue":y[4]||(y[4]=C=>Rn(f)?f.value=C:null),class:E(l(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:l(s),value:g.label,name:g.name,tabindex:g.tabindex,onChange:y[5]||(y[5]=(...C)=>l(d)&&l(d)(...C)),onFocus:y[6]||(y[6]=C=>i.value=!0),onBlur:y[7]||(y[7]=C=>i.value=!1)},null,42,z7)),[[Ds,l(f)]]),z("span",{class:E(l(h).e("inner"))},null,2)],10,F7),l(c)?(_(),x("span",{key:0,class:E(l(h).e("label"))},[le(g.$slots,"default"),g.$slots.default?ee("v-if",!0):(_(),x(xe,{key:0},[Ct(me(g.label),1)],64))],2)):ee("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var K7=ge(W7,[["__file","checkbox.vue"]]);const j7=["name","tabindex","disabled","true-value","false-value"],U7=["name","tabindex","disabled","value"],q7=G({name:"ElCheckboxButton"}),G7=G({...q7,props:fp,emits:pp,setup(e){const t=e,n=gn(),{isFocused:o,isChecked:r,isDisabled:a,checkboxButtonSize:s,model:i,handleChange:u}=l2(t,n),c=Oe(ba,void 0),f=ce("checkbox"),d=S(()=>{var h,m,v,g;const y=(m=(h=c==null?void 0:c.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:y,borderColor:y,color:(g=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?g:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),p=S(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",a.value),f.is("checked",r.value),f.is("focus",o.value)]);return(h,m)=>(_(),x("label",{class:E(l(p))},[h.trueLabel||h.falseLabel?je((_(),x("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=v=>Rn(i)?i.value=v:null),class:E(l(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:l(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:m[1]||(m[1]=(...v)=>l(u)&&l(u)(...v)),onFocus:m[2]||(m[2]=v=>o.value=!0),onBlur:m[3]||(m[3]=v=>o.value=!1)},null,42,j7)),[[Ds,l(i)]]):je((_(),x("input",{key:1,"onUpdate:modelValue":m[4]||(m[4]=v=>Rn(i)?i.value=v:null),class:E(l(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:l(a),value:h.label,onChange:m[5]||(m[5]=(...v)=>l(u)&&l(u)(...v)),onFocus:m[6]||(m[6]=v=>o.value=!0),onBlur:m[7]||(m[7]=v=>o.value=!1)},null,42,U7)),[[Ds,l(i)]]),h.$slots.default||h.label?(_(),x("span",{key:2,class:E(l(f).be("button","inner")),style:Ie(l(r)?l(d):void 0)},[le(h.$slots,"default",{},()=>[Ct(me(h.label),1)])],6)):ee("v-if",!0)],2))}});var s2=ge(G7,[["__file","checkbox-button.vue"]]);const i2=be({modelValue:{type:te(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:vn,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),u2={[tt]:e=>et(e),change:e=>et(e)},Y7=G({name:"ElCheckboxGroup"}),X7=G({...Y7,props:i2,emits:u2,setup(e,{emit:t}){const n=e,o=ce("checkbox"),{formItem:r}=In(),{inputId:a,isLabeledByFormItem:s}=vr(n,{formItemContext:r}),i=async c=>{t(tt,c),await Ee(),t("change",c)},u=S({get(){return n.modelValue},set(c){i(c)}});return ut(ba,{...Ho(dn(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:i}),ue(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(c=>void 0))}),(c,f)=>{var d;return _(),ne(rt(c.tag),{id:l(a),class:E(l(o).b("group")),role:"group","aria-label":l(s)?void 0:c.label||"checkbox-group","aria-labelledby":l(s)?(d=l(r))==null?void 0:d.labelId:void 0},{default:Y(()=>[le(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var c2=ge(X7,[["__file","checkbox-group.vue"]]);const ao=Je(K7,{CheckboxButton:s2,CheckboxGroup:c2}),d2=Xt(s2),vp=Xt(c2),hp=be({size:vn,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),f2=be({...hp,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),mp={[tt]:e=>it(e)||De(e)||un(e),[Bt]:e=>it(e)||De(e)||un(e)},gp=Symbol("radioGroupKey"),p2=(e,t)=>{const n=M(),o=Oe(gp,void 0),r=S(()=>!!o),a=S({get(){return r.value?o.modelValue:e.modelValue},set(f){r.value?o.changeEvent(f):t&&t(tt,f),n.value.checked=e.modelValue===e.label}}),s=on(S(()=>o==null?void 0:o.size)),i=An(S(()=>o==null?void 0:o.disabled)),u=M(!1),c=S(()=>i.value||r.value&&a.value!==e.label?-1:0);return{radioRef:n,isGroup:r,radioGroup:o,focus:u,size:s,disabled:i,tabIndex:c,modelValue:a}},Z7=["value","name","disabled"],J7=G({name:"ElRadio"}),Q7=G({...J7,props:f2,emits:mp,setup(e,{emit:t}){const n=e,o=ce("radio"),{radioRef:r,radioGroup:a,focus:s,size:i,disabled:u,modelValue:c}=p2(n,t);function f(){Ee(()=>t("change",c.value))}return(d,p)=>{var h;return _(),x("label",{class:E([l(o).b(),l(o).is("disabled",l(u)),l(o).is("focus",l(s)),l(o).is("bordered",d.border),l(o).is("checked",l(c)===d.label),l(o).m(l(i))])},[z("span",{class:E([l(o).e("input"),l(o).is("disabled",l(u)),l(o).is("checked",l(c)===d.label)])},[je(z("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p[0]||(p[0]=m=>Rn(c)?c.value=m:null),class:E(l(o).e("original")),value:d.label,name:d.name||((h=l(a))==null?void 0:h.name),disabled:l(u),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:f},null,42,Z7),[[yh,l(c)]]),z("span",{class:E(l(o).e("inner"))},null,2)],2),z("span",{class:E(l(o).e("label")),onKeydown:p[3]||(p[3]=Le(()=>{},["stop"]))},[le(d.$slots,"default",{},()=>[Ct(me(d.label),1)])],34)],2)}}});var ej=ge(Q7,[["__file","radio.vue"]]);const v2=be({...hp,name:{type:String,default:""}}),tj=["value","name","disabled"],nj=G({name:"ElRadioButton"}),oj=G({...nj,props:v2,setup(e){const t=e,n=ce("radio"),{radioRef:o,focus:r,size:a,disabled:s,modelValue:i,radioGroup:u}=p2(t),c=S(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,d)=>{var p;return _(),x("label",{class:E([l(n).b("button"),l(n).is("active",l(i)===f.label),l(n).is("disabled",l(s)),l(n).is("focus",l(r)),l(n).bm("button",l(a))])},[je(z("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":d[0]||(d[0]=h=>Rn(i)?i.value=h:null),class:E(l(n).be("button","original-radio")),value:f.label,type:"radio",name:f.name||((p=l(u))==null?void 0:p.name),disabled:l(s),onFocus:d[1]||(d[1]=h=>r.value=!0),onBlur:d[2]||(d[2]=h=>r.value=!1)},null,42,tj),[[yh,l(i)]]),z("span",{class:E(l(n).be("button","inner")),style:Ie(l(i)===f.label?l(c):{}),onKeydown:d[3]||(d[3]=Le(()=>{},["stop"]))},[le(f.$slots,"default",{},()=>[Ct(me(f.label),1)])],38)],2)}}});var h2=ge(oj,[["__file","radio-button.vue"]]);const m2=be({id:{type:String,default:void 0},size:vn,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),g2=mp,rj=["id","aria-label","aria-labelledby"],aj=G({name:"ElRadioGroup"}),lj=G({...aj,props:m2,emits:g2,setup(e,{emit:t}){const n=e,o=ce("radio"),r=no(),a=M(),{formItem:s}=In(),{inputId:i,isLabeledByFormItem:u}=vr(n,{formItemContext:s}),c=d=>{t(tt,d),Ee(()=>t("change",d))};Ze(()=>{const d=a.value.querySelectorAll("[type=radio]"),p=d[0];!Array.from(d).some(h=>h.checked)&&p&&(p.tabIndex=0)});const f=S(()=>n.name||r.value);return ut(gp,At({...dn(n),changeEvent:c,name:f})),ue(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(d=>void 0))}),(d,p)=>(_(),x("div",{id:l(i),ref_key:"radioGroupRef",ref:a,class:E(l(o).b("group")),role:"radiogroup","aria-label":l(u)?void 0:d.label||"radio-group","aria-labelledby":l(u)?l(s).labelId:void 0},[le(d.$slots,"default")],10,rj))}});var y2=ge(lj,[["__file","radio-group.vue"]]);const yp=Je(ej,{RadioButton:h2,RadioGroup:y2}),b2=Xt(y2),w2=Xt(h2);var sj=G({name:"NodeContent",setup(){return{ns:ce("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:o,label:r}=t,{renderLabelFn:a}=n;return Ne("span",{class:e.e("label")},a?a({node:t,data:o}):r)}});const bu=Symbol(),ij=G({name:"ElCascaderNode",components:{ElCheckbox:ao,ElRadio:yp,NodeContent:sj,ElIcon:ke,Check:Gl,Loading:Pr,ArrowRight:Fn},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Oe(bu),o=ce("cascader-node"),r=S(()=>n.isHoverMenu),a=S(()=>n.config.multiple),s=S(()=>n.config.checkStrictly),i=S(()=>{var $;return($=n.checkedNodes[0])==null?void 0:$.uid}),u=S(()=>e.node.isDisabled),c=S(()=>e.node.isLeaf),f=S(()=>s.value&&!c.value||!u.value),d=S(()=>h(n.expandingNode)),p=S(()=>s.value&&n.checkedNodes.some(h)),h=$=>{var O;const{level:I,uid:P}=e.node;return((O=$==null?void 0:$.pathNodes[I-1])==null?void 0:O.uid)===P},m=()=>{d.value||n.expandNode(e.node)},v=$=>{const{node:O}=e;$!==O.checked&&n.handleCheckChange(O,$)},g=()=>{n.lazyLoad(e.node,()=>{c.value||m()})},y=$=>{!r.value||(C(),!c.value&&t("expand",$))},C=()=>{const{node:$}=e;!f.value||$.loading||($.loaded?m():g())},b=()=>{r.value&&!c.value||(c.value&&!u.value&&!s.value&&!a.value?k(!0):C())},w=$=>{s.value?(v($),e.node.loaded&&m()):k($)},k=$=>{e.node.loaded?(v($),!s.value&&m()):g()};return{panel:n,isHoverMenu:r,multiple:a,checkStrictly:s,checkedNodeId:i,isDisabled:u,isLeaf:c,expandable:f,inExpandingPath:d,inCheckedPath:p,ns:o,handleHoverExpand:y,handleExpand:C,handleClick:b,handleCheck:k,handleSelectCheck:w}}}),uj=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],cj=z("span",null,null,-1);function dj(e,t,n,o,r,a){const s=Ke("el-checkbox"),i=Ke("el-radio"),u=Ke("check"),c=Ke("el-icon"),f=Ke("node-content"),d=Ke("loading"),p=Ke("arrow-right");return _(),x("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:E([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[ee(" prefix "),e.multiple?(_(),ne(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Le(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(_(),ne(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Le(()=>{},["stop"]))},{default:Y(()=>[ee(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),cj]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(_(),ne(c,{key:2,class:E(e.ns.e("prefix"))},{default:Y(()=>[j(u)]),_:1},8,["class"])):ee("v-if",!0),ee(" content "),j(f),ee(" postfix "),e.isLeaf?ee("v-if",!0):(_(),x(xe,{key:3},[e.node.loading?(_(),ne(c,{key:0,class:E([e.ns.is("loading"),e.ns.e("postfix")])},{default:Y(()=>[j(d)]),_:1},8,["class"])):(_(),ne(c,{key:1,class:E(["arrow-right",e.ns.e("postfix")])},{default:Y(()=>[j(p)]),_:1},8,["class"]))],64))],42,uj)}var fj=ge(ij,[["render",dj],["__file","node.vue"]]);const pj=G({name:"ElCascaderMenu",components:{Loading:Pr,ElIcon:ke,ElScrollbar:Zo,ElCascaderNode:fj},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=nt(),n=ce("cascader-menu"),{t:o}=gt(),r=Ai();let a=null,s=null;const i=Oe(bu),u=M(null),c=S(()=>!e.nodes.length),f=S(()=>!i.initialLoaded),d=S(()=>`cascader-menu-${r}-${e.index}`),p=g=>{a=g.target},h=g=>{if(!(!i.isHoverMenu||!a||!u.value))if(a.contains(g.target)){m();const y=t.vnode.el,{left:C}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:w}=y,k=g.clientX-C,$=a.offsetTop,O=$+a.offsetHeight;u.value.innerHTML=` + + + `}else s||(s=window.setTimeout(v,i.config.hoverThreshold))},m=()=>{!s||(clearTimeout(s),s=null)},v=()=>{!u.value||(u.value.innerHTML="",m())};return{ns:n,panel:i,hoverZone:u,isEmpty:c,isLoading:f,menuId:d,t:o,handleExpand:p,handleMouseMove:h,clearHoverZone:v}}});function vj(e,t,n,o,r,a){const s=Ke("el-cascader-node"),i=Ke("loading"),u=Ke("el-icon"),c=Ke("el-scrollbar");return _(),ne(c,{key:e.menuId,tag:"ul",role:"menu",class:E(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Y(()=>{var f;return[(_(!0),x(xe,null,ct(e.nodes,d=>(_(),ne(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(_(),x("div",{key:0,class:E(e.ns.e("empty-text"))},[j(u,{size:"14",class:E(e.ns.is("loading"))},{default:Y(()=>[j(i)]),_:1},8,["class"]),Ct(" "+me(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(_(),x("div",{key:1,class:E(e.ns.e("empty-text"))},me(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(_(),x("svg",{key:2,ref:"hoverZone",class:E(e.ns.e("hover-zone"))},null,2)):ee("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var hj=ge(pj,[["render",vj],["__file","menu.vue"]]);let mj=0;const gj=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class rc{constructor(t,n,o,r=!1){this.data=t,this.config=n,this.parent=o,this.root=r,this.uid=mj++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:s,children:i}=n,u=t[i],c=gj(this);this.level=r?0:o?o.level+1:1,this.value=t[a],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(f=>f.value),this.pathLabels=c.map(f=>f.label),this.childrenData=u,this.children=(u||[]).map(f=>new rc(f,n,this)),this.loaded=!n.lazy||this.isLeaf||!po(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:r,checkStrictly:a}=o;return($t(r)?r(t,this):!!t[r])||!a&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:r}=this,{lazy:a,leaf:s}=n,i=$t(s)?s(t,this):t[s];return bn(i)?a&&!r?!1:!(Array.isArray(o)&&o.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,r=new rc(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(r),r}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${Ko(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[o]&&r[o](...n))})}emit(t,...n){const{parent:o}=this,r=`onChild${Ko(t)}`;o&&(o[r]&&o[r](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(r=>!r.isDisabled),o=n.length?n.every(r=>r.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((r,a)=>{const s=a.checked?1:a.indeterminate?.5:0;return r+s},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}var bp=rc;const wp=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(wp(o.children,t))),n),[]);class C2{constructor(t,n){this.config=n;const o=(t||[]).map(r=>new bp(r,this.config));this.nodes=o,this.allNodes=wp(o,!1),this.leafNodes=wp(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new bp(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(r=>Dn(r.value,t)||Dn(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:o,level:r})=>Dn(t.value,o)&&t.level===r)||null}}const Cp=be({modelValue:{type:te([Number,String,Array])},options:{type:te(Array),default:()=>[]},props:{type:te(Object),default:()=>({})}}),S2={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Ft,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},_2=e=>S(()=>({...S2,...e.props})),$2=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},yj=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():wh(e)&&e.click()},bj=(e,t)=>{const n=t.slice(0),o=n.map(a=>a.uid),r=e.reduce((a,s)=>{const i=o.indexOf(s.uid);return i>-1&&(a.push(s),n.splice(i,1),o.splice(i,1)),a},[]);return r.push(...n),r},wj=G({name:"ElCascaderPanel",components:{ElCascaderMenu:hj},props:{...Cp,border:{type:Boolean,default:!0},renderLabel:Function},emits:[tt,Bt,"close","expand-change"],setup(e,{emit:t,slots:n}){let o=!1;const r=ce("cascader"),a=_2(e);let s=null;const i=M(!0),u=M([]),c=M(null),f=M([]),d=M(null),p=M([]),h=S(()=>a.value.expandTrigger==="hover"),m=S(()=>e.renderLabel||n.default),v=()=>{const{options:D}=e,R=a.value;o=!1,s=new C2(D,R),f.value=[s.getNodes()],R.lazy&&po(e.options)?(i.value=!1,g(void 0,V=>{V&&(s=new C2(V,R),f.value=[s.getNodes()]),i.value=!0,I(!1,!0)})):I(!1,!0)},g=(D,R)=>{const V=a.value;D=D||new bp({},V,void 0,!0),D.loading=!0;const U=F=>{const T=D,B=T.root?null:T;F&&(s==null||s.appendNodes(F,B)),T.loading=!1,T.loaded=!0,T.childrenData=T.childrenData||[],R&&R(F)};V.lazyLoad(D,U)},y=(D,R)=>{var V;const{level:U}=D,F=f.value.slice(0,U);let T;D.isLeaf?T=D.pathNodes[U-2]:(T=D,F.push(D.children)),((V=d.value)==null?void 0:V.uid)!==(T==null?void 0:T.uid)&&(d.value=D,f.value=F,!R&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},C=(D,R,V=!0)=>{const{checkStrictly:U,multiple:F}=a.value,T=p.value[0];o=!0,!F&&(T==null||T.doCheck(!1)),D.doCheck(R),O(),V&&!F&&!U&&t("close"),!V&&!F&&!U&&b(D)},b=D=>{!D||(D=D.parent,b(D),D&&y(D))},w=D=>s==null?void 0:s.getFlattedNodes(D),k=D=>{var R;return(R=w(D))==null?void 0:R.filter(V=>V.checked!==!1)},$=()=>{p.value.forEach(D=>D.doCheck(!1)),O(),f.value=f.value.slice(0,1),d.value=null,t("expand-change",[])},O=()=>{var D;const{checkStrictly:R,multiple:V}=a.value,U=p.value,F=k(!R),T=bj(U,F),B=T.map(A=>A.valueByOption);p.value=T,c.value=V?B:(D=B[0])!=null?D:null},I=(D=!1,R=!1)=>{const{modelValue:V}=e,{lazy:U,multiple:F,checkStrictly:T}=a.value,B=!T;if(!(!i.value||o||!R&&Dn(V,c.value)))if(U&&!D){const W=Ay(g0(cr(V))).map(Z=>s==null?void 0:s.getNodeByValue(Z)).filter(Z=>!!Z&&!Z.loaded&&!Z.loading);W.length?W.forEach(Z=>{g(Z,()=>I(!1,R))}):I(!0,R)}else{const A=F?cr(V):[V],W=Ay(A.map(Z=>s==null?void 0:s.getNodeByValue(Z,B)));P(W,R),c.value=Bl(V)}},P=(D,R=!0)=>{const{checkStrictly:V}=a.value,U=p.value,F=D.filter(A=>!!A&&(V||A.isLeaf)),T=s==null?void 0:s.getSameNode(d.value),B=R&&T||F[0];B?B.pathNodes.forEach(A=>y(A,!0)):d.value=null,U.forEach(A=>A.doCheck(!1)),F.forEach(A=>A.doCheck(!0)),p.value=F,Ee(N)},N=()=>{!pt||u.value.forEach(D=>{const R=D==null?void 0:D.$el;if(R){const V=R.querySelector(`.${r.namespace.value}-scrollbar__wrap`),U=R.querySelector(`.${r.b("node")}.${r.is("active")}`)||R.querySelector(`.${r.b("node")}.in-active-path`);gy(V,U)}})},L=D=>{const R=D.target,{code:V}=D;switch(V){case Ae.up:case Ae.down:{D.preventDefault();const U=V===Ae.up?-1:1;Fs(Ch(R,U,`.${r.b("node")}[tabindex="-1"]`));break}case Ae.left:{D.preventDefault();const U=u.value[$2(R)-1],F=U==null?void 0:U.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Fs(F);break}case Ae.right:{D.preventDefault();const U=u.value[$2(R)+1],F=U==null?void 0:U.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Fs(F);break}case Ae.enter:yj(R);break}};return ut(bu,At({config:a,expandingNode:d,checkedNodes:p,isHoverMenu:h,initialLoaded:i,renderLabelFn:m,lazyLoad:g,expandNode:y,handleCheckChange:C})),ue([a,()=>e.options],v,{deep:!0,immediate:!0}),ue(()=>e.modelValue,()=>{o=!1,I()},{deep:!0}),ue(()=>c.value,D=>{Dn(D,e.modelValue)||(t(tt,D),t(Bt,D))}),Dk(()=>u.value=[]),Ze(()=>!po(e.modelValue)&&I()),{ns:r,menuList:u,menus:f,checkedNodes:p,handleKeyDown:L,handleCheckChange:C,getFlattedNodes:w,getCheckedNodes:k,clearCheckedNodes:$,calculateCheckedValue:O,scrollToExpandingNode:N}}});function Cj(e,t,n,o,r,a){const s=Ke("el-cascader-menu");return _(),x("div",{class:E([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...i)=>e.handleKeyDown&&e.handleKeyDown(...i))},[(_(!0),x(xe,null,ct(e.menus,(i,u)=>(_(),ne(s,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...i]},null,8,["index","nodes"]))),128))],34)}var wu=ge(wj,[["render",Cj],["__file","index.vue"]]);wu.install=e=>{e.component(wu.name,wu)};const k2=wu,E2=k2,Cu=be({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:To,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),T2={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Sj=G({name:"ElTag"}),_j=G({...Sj,props:Cu,emits:T2,setup(e,{emit:t}){const n=e,o=on(),r=ce("tag"),a=S(()=>{const{type:u,hit:c,effect:f,closable:d,round:p}=n;return[r.b(),r.is("closable",d),r.m(u),r.m(o.value),r.m(f),r.is("hit",c),r.is("round",p)]}),s=u=>{t("close",u)},i=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(_(),x("span",{key:0,class:E(l(a)),style:Ie({backgroundColor:u.color}),onClick:i},[z("span",{class:E(l(r).e("content"))},[le(u.$slots,"default")],2),u.closable?(_(),ne(l(ke),{key:0,class:E(l(r).e("close")),onClick:Le(s,["stop"])},{default:Y(()=>[j(l(ko))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)):(_(),ne(ln,{key:1,name:`${l(r).namespace.value}-zoom-in-center`,appear:""},{default:Y(()=>[z("span",{class:E(l(a)),style:Ie({backgroundColor:u.color}),onClick:i},[z("span",{class:E(l(r).e("content"))},[le(u.$slots,"default")],2),u.closable?(_(),ne(l(ke),{key:0,class:E(l(r).e("close")),onClick:Le(s,["stop"])},{default:Y(()=>[j(l(ko))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)]),_:3},8,["name"]))}});var $j=ge(_j,[["__file","tag.vue"]]);const al=Je($j),O2=be({...Cp,size:vn,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:te(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:te(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:mn.teleported,tagType:{...Cu.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),M2={[tt]:e=>!!e||e===null,[Bt]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>un(e),expandChange:e=>!!e,removeTag:e=>!!e},kj={key:0},Ej=["placeholder","onKeydown"],Tj=["onClick"],Oj="ElCascader",Mj=G({name:Oj}),Aj=G({...Mj,props:O2,emits:M2,setup(e,{expose:t,emit:n}){const o=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ae})=>{const{modifiersData:q,placement:Q}=ae;["right","left","bottom","top"].includes(Q)||(q.arrow.x=35)},requires:["arrow"]}]},a=Oa();let s=0,i=0;const u=ce("cascader"),c=ce("input"),{t:f}=gt(),{form:d,formItem:p}=In(),h=M(null),m=M(null),v=M(null),g=M(null),y=M(null),C=M(!1),b=M(!1),w=M(!1),k=M(!1),$=M(""),O=M(""),I=M([]),P=M([]),N=M([]),L=M(!1),D=S(()=>a.style),R=S(()=>o.disabled||(d==null?void 0:d.disabled)),V=S(()=>o.placeholder||f("el.cascader.placeholder")),U=S(()=>O.value||I.value.length>0||L.value?"":V.value),F=on(),T=S(()=>["small"].includes(F.value)?"small":"default"),B=S(()=>!!o.props.multiple),A=S(()=>!o.filterable||B.value),W=S(()=>B.value?O.value:$.value),Z=S(()=>{var ae;return((ae=g.value)==null?void 0:ae.checkedNodes)||[]}),K=S(()=>!o.clearable||R.value||w.value||!b.value?!1:!!Z.value.length),X=S(()=>{const{showAllLevels:ae,separator:q}=o,Q=Z.value;return Q.length?B.value?"":Q[0].calcText(ae,q):""}),se=S({get(){return Bl(o.modelValue)},set(ae){n(tt,ae),n(Bt,ae),o.validateEvent&&(p==null||p.validate("change").catch(q=>void 0))}}),ve=S(()=>[u.b(),u.m(F.value),u.is("disabled",R.value),a.class]),re=S(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",C.value)]),ie=S(()=>u.is("focus",C.value||k.value)),J=S(()=>{var ae,q;return(q=(ae=h.value)==null?void 0:ae.popperRef)==null?void 0:q.contentRef}),oe=ae=>{var q,Q,pe;R.value||(ae=ae!=null?ae:!C.value,ae!==C.value&&(C.value=ae,(Q=(q=m.value)==null?void 0:q.input)==null||Q.setAttribute("aria-expanded",`${ae}`),ae?(de(),Ee((pe=g.value)==null?void 0:pe.scrollToExpandingNode)):o.filterable&&Qe(),n("visibleChange",ae)))},de=()=>{Ee(()=>{var ae;(ae=h.value)==null||ae.updatePopper()})},Te=()=>{w.value=!1},Re=ae=>{const{showAllLevels:q,separator:Q}=o;return{node:ae,key:ae.uid,text:ae.calcText(q,Q),hitState:!1,closable:!R.value&&!ae.isDisabled,isCollapseTag:!1}},Ve=ae=>{var q;const Q=ae.node;Q.doCheck(!1),(q=g.value)==null||q.calculateCheckedValue(),n("removeTag",Q.valueByOption)},We=()=>{if(!B.value)return;const ae=Z.value,q=[],Q=[];if(ae.forEach(pe=>Q.push(Re(pe))),P.value=Q,ae.length){const[pe,...$e]=ae,st=$e.length;q.push(Re(pe)),st&&(o.collapseTags?q.push({key:-1,text:`+ ${st}`,closable:!1,isCollapseTag:!0}):$e.forEach(fe=>q.push(Re(fe))))}I.value=q},Ge=()=>{var ae,q;const{filterMethod:Q,showAllLevels:pe,separator:$e}=o,st=(q=(ae=g.value)==null?void 0:ae.getFlattedNodes(!o.props.checkStrictly))==null?void 0:q.filter(fe=>fe.isDisabled?!1:(fe.calcText(pe,$e),Q(fe,W.value)));B.value&&(I.value.forEach(fe=>{fe.hitState=!1}),P.value.forEach(fe=>{fe.hitState=!1})),w.value=!0,N.value=st,de()},yt=()=>{var ae;let q;w.value&&y.value?q=y.value.$el.querySelector(`.${u.e("suggestion-item")}`):q=(ae=g.value)==null?void 0:ae.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),q&&(q.focus(),!w.value&&q.click())},Se=()=>{var ae,q;const Q=(ae=m.value)==null?void 0:ae.input,pe=v.value,$e=(q=y.value)==null?void 0:q.$el;if(!(!pt||!Q)){if($e){const st=$e.querySelector(`.${u.e("suggestion-list")}`);st.style.minWidth=`${Q.offsetWidth}px`}if(pe){const{offsetHeight:st}=pe,fe=I.value.length>0?`${Math.max(st+6,s)}px`:`${s}px`;Q.style.height=fe,de()}}},Fe=ae=>{var q;return(q=g.value)==null?void 0:q.getCheckedNodes(ae)},Pe=ae=>{de(),n("expandChange",ae)},He=ae=>{var q;const Q=(q=ae.target)==null?void 0:q.value;if(ae.type==="compositionend")L.value=!1,Ee(()=>ye(Q));else{const pe=Q[Q.length-1]||"";L.value=!Oi(pe)}},Be=ae=>{if(!L.value)switch(ae.code){case Ae.enter:oe();break;case Ae.down:oe(!0),Ee(yt),ae.preventDefault();break;case Ae.esc:C.value===!0&&(ae.preventDefault(),ae.stopPropagation(),oe(!1));break;case Ae.tab:oe(!1);break}},Xe=()=>{var ae;(ae=g.value)==null||ae.clearCheckedNodes(),!C.value&&o.filterable&&Qe(),oe(!1)},Qe=()=>{const{value:ae}=X;$.value=ae,O.value=ae},Ce=ae=>{var q,Q;const{checked:pe}=ae;B.value?(q=g.value)==null||q.handleCheckChange(ae,!pe,!1):(!pe&&((Q=g.value)==null||Q.handleCheckChange(ae,!0,!1)),oe(!1))},ze=ae=>{const q=ae.target,{code:Q}=ae;switch(Q){case Ae.up:case Ae.down:{const pe=Q===Ae.up?-1:1;Fs(Ch(q,pe,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Ae.enter:q.click();break}},ht=()=>{const ae=I.value,q=ae[ae.length-1];i=O.value?0:i+1,!(!q||!i||o.collapseTags&&ae.length>1)&&(q.hitState?Ve(q):q.hitState=!0)},Ot=ae=>{const q=ae.target,Q=u.e("search-input");q.className===Q&&(k.value=!0),n("focus",ae)},lt=ae=>{k.value=!1,n("blur",ae)},we=On(()=>{const{value:ae}=W;if(!ae)return;const q=o.beforeFilter(ae);mc(q)?q.then(Ge).catch(()=>{}):q!==!1?Ge():Te()},o.debounce),ye=(ae,q)=>{!C.value&&oe(!0),!(q!=null&&q.isComposing)&&(ae?we():Te())};return ue(w,de),ue([Z,R],We),ue(I,()=>{Ee(()=>Se())}),ue(X,Qe,{immediate:!0}),Ze(()=>{const ae=m.value.input,q=Number.parseFloat(iE(c.cssVarName("input-height"),ae).value)-2;s=ae.offsetHeight||q,En(ae,Se)}),t({getCheckedNodes:Fe,cascaderPanelRef:g,togglePopperVisible:oe,contentRef:J}),(ae,q)=>(_(),ne(l(Nn),{ref_key:"tooltipRef",ref:h,visible:C.value,teleported:ae.teleported,"popper-class":[l(u).e("dropdown"),ae.popperClass],"popper-options":r,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${l(u).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:Te},{default:Y(()=>[je((_(),x("div",{class:E(l(ve)),style:Ie(l(D)),onClick:q[5]||(q[5]=()=>oe(l(A)?void 0:!0)),onKeydown:Be,onMouseenter:q[6]||(q[6]=Q=>b.value=!0),onMouseleave:q[7]||(q[7]=Q=>b.value=!1)},[j(l(_n),{ref_key:"input",ref:m,modelValue:$.value,"onUpdate:modelValue":q[1]||(q[1]=Q=>$.value=Q),placeholder:l(U),readonly:l(A),disabled:l(R),"validate-event":!1,size:l(F),class:E(l(ie)),tabindex:l(B)&&ae.filterable&&!l(R)?-1:void 0,onCompositionstart:He,onCompositionupdate:He,onCompositionend:He,onFocus:Ot,onBlur:lt,onInput:ye},{suffix:Y(()=>[l(K)?(_(),ne(l(ke),{key:"clear",class:E([l(c).e("icon"),"icon-circle-close"]),onClick:Le(Xe,["stop"])},{default:Y(()=>[j(l(Rr))]),_:1},8,["class","onClick"])):(_(),ne(l(ke),{key:"arrow-down",class:E(l(re)),onClick:q[0]||(q[0]=Le(Q=>oe(),["stop"]))},{default:Y(()=>[j(l(Ir))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),l(B)?(_(),x("div",{key:0,ref_key:"tagWrapper",ref:v,class:E(l(u).e("tags"))},[(_(!0),x(xe,null,ct(I.value,Q=>(_(),ne(l(al),{key:Q.key,type:ae.tagType,size:l(T),hit:Q.hitState,closable:Q.closable,"disable-transitions":"",onClose:pe=>Ve(Q)},{default:Y(()=>[Q.isCollapseTag===!1?(_(),x("span",kj,me(Q.text),1)):(_(),ne(l(Nn),{key:1,disabled:C.value||!ae.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Y(()=>[z("span",null,me(Q.text),1)]),content:Y(()=>[z("div",{class:E(l(u).e("collapse-tags"))},[(_(!0),x(xe,null,ct(P.value.slice(1),(pe,$e)=>(_(),x("div",{key:$e,class:E(l(u).e("collapse-tag"))},[(_(),ne(l(al),{key:pe.key,class:"in-tooltip",type:ae.tagType,size:l(T),hit:pe.hitState,closable:pe.closable,"disable-transitions":"",onClose:st=>Ve(pe)},{default:Y(()=>[z("span",null,me(pe.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ae.filterable&&!l(R)?je((_(),x("input",{key:0,"onUpdate:modelValue":q[2]||(q[2]=Q=>O.value=Q),type:"text",class:E(l(u).e("search-input")),placeholder:l(X)?"":l(V),onInput:q[3]||(q[3]=Q=>ye(O.value,Q)),onClick:q[4]||(q[4]=Le(Q=>oe(!0),["stop"])),onKeydown:mt(ht,["delete"]),onCompositionstart:He,onCompositionupdate:He,onCompositionend:He,onFocus:Ot,onBlur:lt},null,42,Ej)),[[ic,O.value]]):ee("v-if",!0)],2)):ee("v-if",!0)],38)),[[l(yr),()=>oe(!1),l(J)]])]),content:Y(()=>[je(j(l(k2),{ref_key:"cascaderPanelRef",ref:g,modelValue:l(se),"onUpdate:modelValue":q[8]||(q[8]=Q=>Rn(se)?se.value=Q:null),options:ae.options,props:o.props,border:!1,"render-label":ae.$slots.default,onExpandChange:Pe,onClose:q[9]||(q[9]=Q=>ae.$nextTick(()=>oe(!1)))},null,8,["modelValue","options","props","render-label"]),[[St,!w.value]]),ae.filterable?je((_(),ne(l(Zo),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:E(l(u).e("suggestion-panel")),"view-class":l(u).e("suggestion-list"),onKeydown:ze},{default:Y(()=>[N.value.length?(_(!0),x(xe,{key:0},ct(N.value,Q=>(_(),x("li",{key:Q.uid,class:E([l(u).e("suggestion-item"),l(u).is("checked",Q.checked)]),tabindex:-1,onClick:pe=>Ce(Q)},[z("span",null,me(Q.text),1),Q.checked?(_(),ne(l(ke),{key:0},{default:Y(()=>[j(l(Gl))]),_:1})):ee("v-if",!0)],10,Tj))),128)):le(ae.$slots,"empty",{key:1},()=>[z("li",{class:E(l(u).e("empty-text"))},me(l(f)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[St,w.value]]):ee("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Su=ge(Aj,[["__file","cascader.vue"]]);Su.install=e=>{e.component(Su.name,Su)};const Ij=Su,A2=Ij,I2=be({checked:{type:Boolean,default:!1}}),N2={"update:checked":e=>un(e),[Bt]:e=>un(e)},Nj=G({name:"ElCheckTag"}),Rj=G({...Nj,props:I2,emits:N2,setup(e,{emit:t}){const n=e,o=ce("check-tag"),r=S(()=>[o.b(),o.is("checked",n.checked)]),a=()=>{const s=!n.checked;t(Bt,s),t("update:checked",s)};return(s,i)=>(_(),x("span",{class:E(l(r)),onClick:a},[le(s.$slots,"default")],2))}});var Pj=ge(Rj,[["__file","check-tag.vue"]]);const R2=Je(Pj),Sp=Symbol("rowContextKey"),P2=["start","center","end","space-around","space-between","space-evenly"],x2=["top","middle","bottom"],L2=be({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:P2,default:"start"},align:{type:String,values:x2,default:"top"}}),xj=G({name:"ElRow"}),Lj=G({...xj,props:L2,setup(e){const t=e,n=ce("row"),o=S(()=>t.gutter);ut(Sp,{gutter:o});const r=S(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),a=S(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(s,i)=>(_(),ne(rt(s.tag),{class:E(l(a)),style:Ie(l(r))},{default:Y(()=>[le(s.$slots,"default")]),_:3},8,["class","style"]))}});var Dj=ge(Lj,[["__file","row.vue"]]);const D2=Je(Dj),B2=be({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:te([Number,Object]),default:()=>Ut({})},sm:{type:te([Number,Object]),default:()=>Ut({})},md:{type:te([Number,Object]),default:()=>Ut({})},lg:{type:te([Number,Object]),default:()=>Ut({})},xl:{type:te([Number,Object]),default:()=>Ut({})}}),Bj=G({name:"ElCol"}),Fj=G({...Bj,props:B2,setup(e){const t=e,{gutter:n}=Oe(Sp,{gutter:S(()=>0)}),o=ce("col"),r=S(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),a=S(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const f=t[c];De(f)&&(c==="span"?s.push(o.b(`${t[c]}`)):f>0&&s.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{De(t[c])?s.push(o.b(`${c}-${t[c]}`)):Rt(t[c])&&Object.entries(t[c]).forEach(([f,d])=>{s.push(f!=="span"?o.b(`${c}-${f}-${d}`):o.b(`${c}-${d}`))})}),n.value&&s.push(o.is("guttered")),[o.b(),s]});return(s,i)=>(_(),ne(rt(s.tag),{class:E(l(a)),style:Ie(l(r))},{default:Y(()=>[le(s.$slots,"default")]),_:3},8,["class","style"]))}});var Vj=ge(Fj,[["__file","col.vue"]]);const F2=Je(Vj),_p=e=>typeof De(e),V2=be({accordion:Boolean,modelValue:{type:te([Array,String,Number]),default:()=>Ut([])}}),z2={[tt]:_p,[Bt]:_p},$p=Symbol("collapseContextKey"),zj=(e,t)=>{const n=M(ra(e.modelValue)),o=a=>{n.value=a;const s=e.accordion?n.value[0]:n.value;t(tt,s),t(Bt,s)},r=a=>{if(e.accordion)o([n.value[0]===a?"":a]);else{const s=[...n.value],i=s.indexOf(a);i>-1?s.splice(i,1):s.push(a),o(s)}};return ue(()=>e.modelValue,()=>n.value=ra(e.modelValue),{deep:!0}),ut($p,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:o}},Hj=()=>{const e=ce("collapse");return{rootKls:S(()=>e.b())}},Wj=G({name:"ElCollapse"}),Kj=G({...Wj,props:V2,emits:z2,setup(e,{expose:t,emit:n}){const o=e,{activeNames:r,setActiveNames:a}=zj(o,n),{rootKls:s}=Hj();return t({activeNames:r,setActiveNames:a}),(i,u)=>(_(),x("div",{class:E(l(s)),role:"tablist","aria-multiselectable":"true"},[le(i.$slots,"default")],2))}});var jj=ge(Kj,[["__file","collapse.vue"]]);const Uj=G({name:"ElCollapseTransition"}),qj=G({...Uj,setup(e){const t=ce("collapse-transition"),n={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?(o.style.maxHeight=`${o.scrollHeight}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom):(o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom),o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom}};return(o,r)=>(_(),ne(ln,ot({name:l(t).b()},Bk(n)),{default:Y(()=>[le(o.$slots,"default")]),_:3},16,["name"]))}});var _u=ge(qj,[["__file","collapse-transition.vue"]]);_u.install=e=>{e.component(_u.name,_u)};const $u=_u,H2=$u,W2=be({title:{type:String,default:""},name:{type:te([String,Number]),default:()=>Ai()},disabled:Boolean}),Gj=e=>{const t=Oe($p),n=M(!1),o=M(!1),r=M(Ai()),a=S(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:r,isActive:a,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,o.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},Yj=(e,{focusing:t,isActive:n,id:o})=>{const r=ce("collapse"),a=S(()=>[r.b("item"),r.is("active",l(n)),r.is("disabled",e.disabled)]),s=S(()=>[r.be("item","header"),r.is("active",l(n)),{focusing:l(t)&&!e.disabled}]),i=S(()=>[r.be("item","arrow"),r.is("active",l(n))]),u=S(()=>r.be("item","wrap")),c=S(()=>r.be("item","content")),f=S(()=>r.b(`content-${l(o)}`)),d=S(()=>r.b(`head-${l(o)}`));return{arrowKls:i,headKls:s,rootKls:a,itemWrapperKls:u,itemContentKls:c,scopedContentId:f,scopedHeadId:d}},Xj=["aria-expanded","aria-controls","aria-describedby"],Zj=["id","tabindex"],Jj=["id","aria-hidden","aria-labelledby"],Qj=G({name:"ElCollapseItem"}),eU=G({...Qj,props:W2,setup(e,{expose:t}){const n=e,{focusing:o,id:r,isActive:a,handleFocus:s,handleHeaderClick:i,handleEnterClick:u}=Gj(n),{arrowKls:c,headKls:f,rootKls:d,itemWrapperKls:p,itemContentKls:h,scopedContentId:m,scopedHeadId:v}=Yj(n,{focusing:o,isActive:a,id:r});return t({isActive:a}),(g,y)=>(_(),x("div",{class:E(l(d))},[z("div",{role:"tab","aria-expanded":l(a),"aria-controls":l(m),"aria-describedby":l(m)},[z("div",{id:l(v),class:E(l(f)),role:"button",tabindex:g.disabled?-1:0,onClick:y[0]||(y[0]=(...C)=>l(i)&&l(i)(...C)),onKeypress:y[1]||(y[1]=mt(Le((...C)=>l(u)&&l(u)(...C),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...C)=>l(s)&&l(s)(...C)),onBlur:y[3]||(y[3]=C=>o.value=!1)},[le(g.$slots,"title",{},()=>[Ct(me(g.title),1)]),j(l(ke),{class:E(l(c))},{default:Y(()=>[j(l(Fn))]),_:1},8,["class"])],42,Zj)],8,Xj),j(l($u),null,{default:Y(()=>[je(z("div",{id:l(m),class:E(l(p)),role:"tabpanel","aria-hidden":!l(a),"aria-labelledby":l(v)},[z("div",{class:E(l(h))},[le(g.$slots,"default")],2)],10,Jj),[[St,l(a)]])]),_:3})],2))}});var K2=ge(eU,[["__file","collapse-item.vue"]]);const j2=Je(jj,{CollapseItem:K2}),U2=Xt(K2),tU=be({color:{type:te(Object),required:!0},vertical:{type:Boolean,default:!1}});let kp=!1;function hs(e,t){if(!pt)return;const n=function(a){var s;(s=t.drag)==null||s.call(t,a)},o=function(a){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,kp=!1,(s=t.end)==null||s.call(t,a)},r=function(a){var s;kp||(a.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),kp=!0,(s=t.start)==null||s.call(t,a))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}const nU=e=>{const t=nt(),n=Pt(),o=Pt();function r(s){s.target!==n.value&&a(s)}function a(s){if(!o.value||!n.value)return;const u=t.vnode.el.getBoundingClientRect(),{clientX:c,clientY:f}=hc(s);if(e.vertical){let d=f-u.top;d=Math.max(n.value.offsetHeight/2,d),d=Math.min(d,u.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((d-n.value.offsetHeight/2)/(u.height-n.value.offsetHeight)*100))}else{let d=c-u.left;d=Math.max(n.value.offsetWidth/2,d),d=Math.min(d,u.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((d-n.value.offsetWidth/2)/(u.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:o,handleDrag:a,handleClick:r}},oU=(e,{bar:t,thumb:n,handleDrag:o})=>{const r=nt(),a=ce("color-alpha-slider"),s=M(0),i=M(0),u=M();function c(){if(!n.value||e.vertical)return 0;const C=r.vnode.el,b=e.color.get("alpha");return C?Math.round(b*(C.offsetWidth-n.value.offsetWidth/2)/100):0}function f(){if(!n.value)return 0;const C=r.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return C?Math.round(b*(C.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:C,g:b,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${C}, ${b}, ${w}, 0) 0%, rgba(${C}, ${b}, ${w}, 1) 100%)`}return""}function p(){s.value=c(),i.value=f(),u.value=d()}Ze(()=>{if(!t.value||!n.value)return;const C={drag:b=>{o(b)},end:b=>{o(b)}};hs(t.value,C),hs(n.value,C),p()}),ue(()=>e.color.get("alpha"),()=>p()),ue(()=>e.color.value,()=>p());const h=S(()=>[a.b(),a.is("vertical",e.vertical)]),m=S(()=>a.e("bar")),v=S(()=>a.e("thumb")),g=S(()=>({background:u.value})),y=S(()=>({left:tn(s.value),top:tn(i.value)}));return{rootKls:h,barKls:m,barStyle:g,thumbKls:v,thumbStyle:y,update:p}},rU="ElColorAlphaSlider",aU=G({name:rU}),lU=G({...aU,props:tU,setup(e,{expose:t}){const n=e,{bar:o,thumb:r,handleDrag:a,handleClick:s}=nU(n),{rootKls:i,barKls:u,barStyle:c,thumbKls:f,thumbStyle:d,update:p}=oU(n,{bar:o,thumb:r,handleDrag:a});return t({update:p,bar:o,thumb:r}),(h,m)=>(_(),x("div",{class:E(l(i))},[z("div",{ref_key:"bar",ref:o,class:E(l(u)),style:Ie(l(c)),onClick:m[0]||(m[0]=(...v)=>l(s)&&l(s)(...v))},null,6),z("div",{ref_key:"thumb",ref:r,class:E(l(f)),style:Ie(l(d))},null,6)],2))}});var sU=ge(lU,[["__file","alpha-slider.vue"]]);const iU=G({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=ce("color-hue-slider"),n=nt(),o=M(),r=M(),a=M(0),s=M(0),i=S(()=>e.color.get("hue"));ue(()=>i.value,()=>{p()});function u(h){h.target!==o.value&&c(h)}function c(h){if(!r.value||!o.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=hc(h);let C;if(e.vertical){let b=y-v.top;b=Math.min(b,v.height-o.value.offsetHeight/2),b=Math.max(o.value.offsetHeight/2,b),C=Math.round((b-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*360)}else{let b=g-v.left;b=Math.min(b,v.width-o.value.offsetWidth/2),b=Math.max(o.value.offsetWidth/2,b),C=Math.round((b-o.value.offsetWidth/2)/(v.width-o.value.offsetWidth)*360)}e.color.set("hue",C)}function f(){if(!o.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetWidth-o.value.offsetWidth/2)/360):0}function d(){if(!o.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetHeight-o.value.offsetHeight/2)/360):0}function p(){a.value=f(),s.value=d()}return Ze(()=>{if(!r.value||!o.value)return;const h={drag:m=>{c(m)},end:m=>{c(m)}};hs(r.value,h),hs(o.value,h),p()}),{bar:r,thumb:o,thumbLeft:a,thumbTop:s,hueValue:i,handleClick:u,update:p,ns:t}}});function uU(e,t,n,o,r,a){return _(),x("div",{class:E([e.ns.b(),e.ns.is("vertical",e.vertical)])},[z("div",{ref:"bar",class:E(e.ns.e("bar")),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,2),z("div",{ref:"thumb",class:E(e.ns.e("thumb")),style:Ie({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var cU=ge(iU,[["render",uU],["__file","hue-slider.vue"]]);const q2=be({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:vn,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:te(Array)},validateEvent:{type:Boolean,default:!0}}),G2={[tt]:e=>it(e)||nn(e),[Bt]:e=>it(e)||nn(e),activeChange:e=>it(e)||nn(e)},Ep=Symbol("colorPickerContextKey"),Y2=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},dU=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},fU=function(e){return typeof e=="string"&&e.includes("%")},ll=function(e,t){dU(e)&&(e="100%");const n=fU(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},X2={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},ku=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${X2[t]||t}${X2[n]||n}`},Z2=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${ku(e)}${ku(t)}${ku(n)}`},Tp={A:10,B:11,C:12,D:13,E:14,F:15},wa=function(e){return e.length===2?(Tp[e[0].toUpperCase()]||+e[0])*16+(Tp[e[1].toUpperCase()]||+e[1]):Tp[e[1].toUpperCase()]||+e[1]},pU=function(e,t,n){t=t/100,n=n/100;let o=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=r<=1?r:2-r;const a=(n+t)/2,s=n===0?2*o/(r+o):2*t/(n+t);return{h:e,s:s*100,v:a*100}},J2=(e,t,n)=>{e=ll(e,255),t=ll(t,255),n=ll(n,255);const o=Math.max(e,t,n),r=Math.min(e,t,n);let a;const s=o,i=o-r,u=o===0?0:i/o;if(o===r)a=0;else{switch(o){case e:{a=(t-n)/i+(t{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,a)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,a)=>a>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s:a,v:s}=pU(o[0],o[1],o[2]);n(r,a,s)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,a)=>a>2?Number.parseFloat(r):Number.parseInt(r,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,a)=>a>2?Number.parseFloat(r):Number.parseInt(r,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:r,s:a,v:s}=J2(o[0],o[1],o[2]);n(r,a,s)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let r,a,s;o.length===3?(r=wa(o[0]+o[0]),a=wa(o[1]+o[1]),s=wa(o[2]+o[2])):(o.length===6||o.length===8)&&(r=wa(o.slice(0,2)),a=wa(o.slice(2,4)),s=wa(o.slice(4,6))),o.length===8?this._alpha=wa(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:i,s:u,v:c}=J2(r,a,s);n(i,u,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:r,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const s=Y2(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Z2(ms(t,n,o))}${ku(r*255/100)}`;break}default:{const{r:s,g:i,b:u}=ms(t,n,o);this.value=`rgba(${s}, ${i}, ${u}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const s=Y2(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:s,g:i,b:u}=ms(t,n,o);this.value=`rgb(${s}, ${i}, ${u})`;break}default:this.value=Z2(ms(t,n,o))}}}const vU=G({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=ce("color-predefine"),{currentColor:n}=Oe(Ep),o=M(a(e.colors,e.color));ue(()=>n.value,s=>{const i=new gs;i.fromString(s),o.value.forEach(u=>{u.selected=i.compare(u)})}),Yn(()=>{o.value=a(e.colors,e.color)});function r(s){e.color.fromString(e.colors[s])}function a(s,i){return s.map(u=>{const c=new gs;return c.enableAlpha=!0,c.format="rgba",c.fromString(u),c.selected=c.value===i.value,c})}return{rgbaColors:o,handleSelect:r,ns:t}}}),hU=["onClick"];function mU(e,t,n,o,r,a){return _(),x("div",{class:E(e.ns.b())},[z("div",{class:E(e.ns.e("colors"))},[(_(!0),x(xe,null,ct(e.rgbaColors,(s,i)=>(_(),x("div",{key:e.colors[i],class:E([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:u=>e.handleSelect(i)},[z("div",{style:Ie({backgroundColor:s.value})},null,4)],10,hU))),128))],2)],2)}var gU=ge(vU,[["render",mU],["__file","predefine.vue"]]);const yU=G({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=ce("color-svpanel"),n=nt(),o=M(0),r=M(0),a=M("hsl(0, 100%, 50%)"),s=S(()=>{const c=e.color.get("hue"),f=e.color.get("value");return{hue:c,value:f}});function i(){const c=e.color.get("saturation"),f=e.color.get("value"),d=n.vnode.el,{clientWidth:p,clientHeight:h}=d;r.value=c*p/100,o.value=(100-f)*h/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(c){const d=n.vnode.el.getBoundingClientRect(),{clientX:p,clientY:h}=hc(c);let m=p-d.left,v=h-d.top;m=Math.max(0,m),m=Math.min(m,d.width),v=Math.max(0,v),v=Math.min(v,d.height),r.value=m,o.value=v,e.color.set({saturation:m/d.width*100,value:100-v/d.height*100})}return ue(()=>s.value,()=>{i()}),Ze(()=>{hs(n.vnode.el,{drag:c=>{u(c)},end:c=>{u(c)}}),i()}),{cursorTop:o,cursorLeft:r,background:a,colorValue:s,handleDrag:u,update:i,ns:t}}}),bU=z("div",null,null,-1),wU=[bU];function CU(e,t,n,o,r,a){return _(),x("div",{class:E(e.ns.b()),style:Ie({backgroundColor:e.background})},[z("div",{class:E(e.ns.e("white"))},null,2),z("div",{class:E(e.ns.e("black"))},null,2),z("div",{class:E(e.ns.e("cursor")),style:Ie({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},wU,6)],6)}var SU=ge(yU,[["render",CU],["__file","sv-panel.vue"]]);const _U=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],$U=G({name:"ElColorPicker"}),kU=G({...$U,props:q2,emits:G2,setup(e,{expose:t,emit:n}){const o=e,{t:r}=gt(),a=ce("color"),{formItem:s}=In(),i=on(),u=An(),{inputId:c,isLabeledByFormItem:f}=vr(o,{formItemContext:s}),d=M(),p=M(),h=M(),m=M();let v=!0;const g=At(new gs({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),y=M(!1),C=M(!1),b=M(""),w=S(()=>!o.modelValue&&!C.value?"transparent":P(g,o.showAlpha)),k=S(()=>!o.modelValue&&!C.value?"":g.value),$=S(()=>f.value?void 0:o.label||r("el.colorpicker.defaultLabel")),O=S(()=>f.value?s==null?void 0:s.labelId:void 0),I=S(()=>[a.b("picker"),a.is("disabled",u.value),a.bm("picker",i.value)]);function P(A,W){if(!(A instanceof gs))throw new TypeError("color should be instance of _color Class");const{r:Z,g:K,b:X}=A.toRgb();return W?`rgba(${Z}, ${K}, ${X}, ${A.get("alpha")/100})`:`rgb(${Z}, ${K}, ${X})`}function N(A){y.value=A}const L=On(N,100);function D(){u.value||N(!0)}function R(){L(!1),V()}function V(){Ee(()=>{o.modelValue?g.fromString(o.modelValue):(g.value="",Ee(()=>{C.value=!1}))})}function U(){u.value||L(!y.value)}function F(){g.fromString(b.value)}function T(){const A=g.value;n(tt,A),n("change",A),o.validateEvent&&(s==null||s.validate("change").catch(W=>void 0)),L(!1),Ee(()=>{const W=new gs({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});g.compare(W)||V()})}function B(){L(!1),n(tt,null),n("change",null),o.modelValue!==null&&o.validateEvent&&(s==null||s.validate("change").catch(A=>void 0)),V()}return Ze(()=>{o.modelValue&&(b.value=k.value)}),ue(()=>o.modelValue,A=>{A?A&&A!==g.value&&(v=!1,g.fromString(A)):C.value=!1}),ue(()=>k.value,A=>{b.value=A,v&&n("activeChange",A),v=!0}),ue(()=>g.value,()=>{!o.modelValue&&!C.value&&(C.value=!0)}),ue(()=>y.value,()=>{Ee(()=>{var A,W,Z;(A=d.value)==null||A.update(),(W=p.value)==null||W.update(),(Z=h.value)==null||Z.update()})}),ut(Ep,{currentColor:k}),t({color:g,show:D,hide:R}),(A,W)=>(_(),ne(l(Nn),{ref_key:"popper",ref:m,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[l(a).be("picker","panel"),l(a).b("dropdown"),A.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${l(a).namespace.value}-zoom-in-top`,persistent:""},{content:Y(()=>[je((_(),x("div",null,[z("div",{class:E(l(a).be("dropdown","main-wrapper"))},[j(cU,{ref_key:"hue",ref:d,class:"hue-slider",color:l(g),vertical:""},null,8,["color"]),j(SU,{ref:"svPanel",color:l(g)},null,8,["color"])],2),A.showAlpha?(_(),ne(sU,{key:0,ref_key:"alpha",ref:h,color:l(g)},null,8,["color"])):ee("v-if",!0),A.predefine?(_(),ne(gU,{key:1,ref:"predefine",color:l(g),colors:A.predefine},null,8,["color","colors"])):ee("v-if",!0),z("div",{class:E(l(a).be("dropdown","btns"))},[z("span",{class:E(l(a).be("dropdown","value"))},[j(l(_n),{modelValue:b.value,"onUpdate:modelValue":W[0]||(W[0]=Z=>b.value=Z),"validate-event":!1,size:"small",onKeyup:mt(F,["enter"]),onBlur:F},null,8,["modelValue","onKeyup"])],2),j(l(wn),{class:E(l(a).be("dropdown","link-btn")),text:"",size:"small",onClick:B},{default:Y(()=>[Ct(me(l(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),j(l(wn),{plain:"",size:"small",class:E(l(a).be("dropdown","btn")),onClick:T},{default:Y(()=>[Ct(me(l(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[l(yr),R]])]),default:Y(()=>[z("div",{id:l(c),class:E(l(I)),role:"button","aria-label":l($),"aria-labelledby":l(O),"aria-description":l(r)("el.colorpicker.description",{color:A.modelValue||""}),tabindex:A.tabindex,onKeydown:mt(U,["enter"])},[l(u)?(_(),x("div",{key:0,class:E(l(a).be("picker","mask"))},null,2)):ee("v-if",!0),z("div",{class:E(l(a).be("picker","trigger")),onClick:U},[z("span",{class:E([l(a).be("picker","color"),l(a).is("alpha",A.showAlpha)])},[z("span",{class:E(l(a).be("picker","color-inner")),style:Ie({backgroundColor:l(w)})},[je(j(l(ke),{class:E([l(a).be("picker","icon"),l(a).is("icon-arrow-down")])},{default:Y(()=>[j(l(Ir))]),_:1},8,["class"]),[[St,A.modelValue||C.value]]),!A.modelValue&&!C.value?(_(),ne(l(ke),{key:0,class:E([l(a).be("picker","empty"),l(a).is("icon-close")])},{default:Y(()=>[j(l(ko))]),_:1},8,["class"])):ee("v-if",!0)],6)],2)],2)],42,_U)]),_:1},8,["visible","popper-class","transition"]))}});var EU=ge(kU,[["__file","color-picker.vue"]]);const Q2=Je(EU),TU=G({name:"ElContainer"}),OU=G({...TU,props:{direction:{type:String}},setup(e){const t=e,n=gn(),o=ce("container"),r=S(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const i=s.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(a,s)=>(_(),x("section",{class:E([l(o).b(),l(o).is("vertical",l(r))])},[le(a.$slots,"default")],2))}});var MU=ge(OU,[["__file","container.vue"]]);const AU=G({name:"ElAside"}),IU=G({...AU,props:{width:{type:String,default:null}},setup(e){const t=e,n=ce("aside"),o=S(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,a)=>(_(),x("aside",{class:E(l(n).b()),style:Ie(l(o))},[le(r.$slots,"default")],6))}});var eC=ge(IU,[["__file","aside.vue"]]);const NU=G({name:"ElFooter"}),RU=G({...NU,props:{height:{type:String,default:null}},setup(e){const t=e,n=ce("footer"),o=S(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,a)=>(_(),x("footer",{class:E(l(n).b()),style:Ie(l(o))},[le(r.$slots,"default")],6))}});var tC=ge(RU,[["__file","footer.vue"]]);const PU=G({name:"ElHeader"}),xU=G({...PU,props:{height:{type:String,default:null}},setup(e){const t=e,n=ce("header"),o=S(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,a)=>(_(),x("header",{class:E(l(n).b()),style:Ie(l(o))},[le(r.$slots,"default")],6))}});var nC=ge(xU,[["__file","header.vue"]]);const LU=G({name:"ElMain"}),DU=G({...LU,setup(e){const t=ce("main");return(n,o)=>(_(),x("main",{class:E(l(t).b())},[le(n.$slots,"default")],2))}});var oC=ge(DU,[["__file","main.vue"]]);const rC=Je(MU,{Aside:eC,Footer:tC,Header:nC,Main:oC}),aC=Xt(eC),lC=Xt(tC),sC=Xt(nC),iC=Xt(oC);var uC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o,r){var a=o.prototype,s=a.format;r.en.ordinal=function(i){var u=["th","st","nd","rd"],c=i%100;return"["+i+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(i){var u=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var f=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),p==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),p==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return p}});return s.bind(this)(d)}}})})(uC);var BU=uC.exports,cC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){var n="week",o="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(o).add(1,o).date(c),d=s(this).endOf(n);if(f.isBefore(d))return 1}var p=s(this).startOf(o).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(cC);var FU=cC.exports,dC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(dC);var VU=dC.exports,fC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o,r){o.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(fC);var zU=fC.exports,pC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o){o.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(pC);var HU=pC.exports,vC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mr,function(){return function(n,o){o.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(vC);var WU=vC.exports;const Eu=Symbol(),hC=be({...pu,type:{type:te(String),default:"date"}}),KU=["date","dates","year","month","week","range"],Op=be({disabledDate:{type:te(Function)},date:{type:te(Object),required:!0},minDate:{type:te(Object)},maxDate:{type:te(Object)},parsedValue:{type:te([Object,Array])},rangeState:{type:te(Object),default:()=>({endDate:null,selecting:!1})}}),mC=be({type:{type:te(String),required:!0,values:Oy}}),gC=be({unlinkPanels:Boolean,parsedValue:{type:te(Array)}}),yC=e=>({type:String,values:KU,default:e}),jU=be({...mC,parsedValue:{type:te([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),UU=be({...Op,cellClassName:{type:te(Function)},showWeekNumber:Boolean,selectionMode:yC("date")}),Mp=e=>{if(!et(e))return!1;const[t,n]=e;return qe.isDayjs(t)&&qe.isDayjs(n)&&t.isSameOrBefore(n)},bC=(e,{lang:t,unit:n,unlinkPanels:o})=>{let r;if(et(e)){let[a,s]=e.map(i=>qe(i).locale(t));return o||(s=a.add(1,n)),[a,s]}else e?r=qe(e):r=qe();return r=r.locale(t),[r,r.add(1,n)]},qU=(e,t,{columnIndexOffset:n,startDate:o,nextEndDate:r,now:a,unit:s,relativeDateGetter:i,setCellMetadata:u,setRowMetadata:c})=>{for(let f=0;f{const{cell:o}=e;if(n.default){const r=n.default(o).filter(a=>a.patchFlag!==-2&&a.type.toString()!=="Symbol(Comment)");if(r.length)return r}return j("div",{class:t.b()},[j("span",{class:t.e("text")},[o==null?void 0:o.text])])}}});const XU=["aria-label","onMousedown"],ZU={key:0,scope:"col"},JU=["aria-label"],QU=["aria-current","aria-selected","tabindex"],eq=G({__name:"basic-date-table",props:UU,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,r=ce("date-table"),{t:a,lang:s}=gt(),i=M(),u=M(),c=M(),f=M(),d=M([[],[],[],[],[],[]]);let p=!1;const h=o.date.$locale().weekStart||7,m=o.date.locale("en").localeData().weekdaysShort().map(K=>K.toLowerCase()),v=S(()=>h>3?7-h:-h),g=S(()=>{const K=o.date.startOf("month");return K.subtract(K.day()||7,"day")}),y=S(()=>m.concat(m).slice(h,h+7)),C=S(()=>Pc(I.value).some(K=>K.isCurrent)),b=S(()=>{const K=o.date.startOf("month"),X=K.day()||7,se=K.daysInMonth(),ve=K.subtract(1,"month").daysInMonth();return{startOfMonthDay:X,dateCountOfMonth:se,dateCountOfLastMonth:ve}}),w=S(()=>o.selectionMode==="dates"?cr(o.parsedValue):[]),k=(K,{count:X,rowIndex:se,columnIndex:ve})=>{const{startOfMonthDay:re,dateCountOfMonth:ie,dateCountOfLastMonth:J}=l(b),oe=l(v);if(se>=0&&se<=1){const de=re+oe<0?7+re+oe:re+oe;if(ve+se*7>=de)return K.text=X,!0;K.text=J-(de-ve%7)+1+se*7,K.type="prev-month"}else return X<=ie?K.text=X:(K.text=X-ie,K.type="next-month"),!0;return!1},$=(K,{columnIndex:X,rowIndex:se},ve)=>{const{disabledDate:re,cellClassName:ie}=o,J=l(w),oe=k(K,{count:ve,rowIndex:se,columnIndex:X}),de=K.dayjs.toDate();return K.selected=J.find(Te=>Te.valueOf()===K.dayjs.valueOf()),K.isSelected=!!K.selected,K.isCurrent=L(K),K.disabled=re==null?void 0:re(de),K.customClass=ie==null?void 0:ie(de),oe},O=K=>{if(o.selectionMode==="week"){const[X,se]=o.showWeekNumber?[1,7]:[0,6],ve=Z(K[X+1]);K[X].inRange=ve,K[X].start=ve,K[se].inRange=ve,K[se].end=ve}},I=S(()=>{const{minDate:K,maxDate:X,rangeState:se,showWeekNumber:ve}=o,re=v.value,ie=d.value,J="day";let oe=1;if(ve)for(let de=0;de<6;de++)ie[de][0]||(ie[de][0]={type:"week",text:g.value.add(de*7+1,J).week()});return qU({row:6,column:7},ie,{startDate:K,columnIndexOffset:ve?1:0,nextEndDate:se.endDate||X||se.selecting&&K||null,now:qe().locale(l(s)).startOf(J),unit:J,relativeDateGetter:de=>g.value.add(de-re,J),setCellMetadata:(...de)=>{$(...de,oe)&&(oe+=1)},setRowMetadata:O}),ie});ue(()=>o.date,async()=>{var K,X;(K=i.value)!=null&&K.contains(document.activeElement)&&(await Ee(),(X=u.value)==null||X.focus())});const P=async()=>{var K;(K=u.value)==null||K.focus()},N=(K="")=>["normal","today"].includes(K),L=K=>o.selectionMode==="date"&&N(K.type)&&D(K,o.parsedValue),D=(K,X)=>X?qe(X).locale(s.value).isSame(o.date.date(Number(K.text)),"day"):!1,R=K=>{const X=[];return N(K.type)&&!K.disabled?(X.push("available"),K.type==="today"&&X.push("today")):X.push(K.type),L(K)&&X.push("current"),K.inRange&&(N(K.type)||o.selectionMode==="week")&&(X.push("in-range"),K.start&&X.push("start-date"),K.end&&X.push("end-date")),K.disabled&&X.push("disabled"),K.selected&&X.push("selected"),K.customClass&&X.push(K.customClass),X.join(" ")},V=(K,X)=>{const se=K*7+(X-(o.showWeekNumber?1:0))-v.value;return g.value.add(se,"day")},U=K=>{var X;if(!o.rangeState.selecting)return;let se=K.target;if(se.tagName==="SPAN"&&(se=(X=se.parentNode)==null?void 0:X.parentNode),se.tagName==="DIV"&&(se=se.parentNode),se.tagName!=="TD")return;const ve=se.parentNode.rowIndex-1,re=se.cellIndex;I.value[ve][re].disabled||(ve!==c.value||re!==f.value)&&(c.value=ve,f.value=re,n("changerange",{selecting:!0,endDate:V(ve,re)}))},F=K=>!C.value&&(K==null?void 0:K.text)===1&&K.type==="normal"||K.isCurrent,T=K=>{p||C.value||o.selectionMode!=="date"||W(K,!0)},B=K=>{!K.target.closest("td")||(p=!0)},A=K=>{!K.target.closest("td")||(p=!1)},W=(K,X=!1)=>{const se=K.target.closest("td");if(!se)return;const ve=se.parentNode.rowIndex-1,re=se.cellIndex,ie=I.value[ve][re];if(ie.disabled||ie.type==="week")return;const J=V(ve,re);if(o.selectionMode==="range")!o.rangeState.selecting||!o.minDate?(n("pick",{minDate:J,maxDate:null}),n("select",!0)):(J>=o.minDate?n("pick",{minDate:o.minDate,maxDate:J}):n("pick",{minDate:J,maxDate:o.minDate}),n("select",!1));else if(o.selectionMode==="date")n("pick",J,X);else if(o.selectionMode==="week"){const oe=J.week(),de=`${J.year()}w${oe}`;n("pick",{year:J.year(),week:oe,value:de,date:J.startOf("week")})}else if(o.selectionMode==="dates"){const oe=ie.selected?cr(o.parsedValue).filter(de=>(de==null?void 0:de.valueOf())!==J.valueOf()):cr(o.parsedValue).concat([J]);n("pick",oe)}},Z=K=>{if(o.selectionMode!=="week")return!1;let X=o.date.startOf("day");if(K.type==="prev-month"&&(X=X.subtract(1,"month")),K.type==="next-month"&&(X=X.add(1,"month")),X=X.date(Number.parseInt(K.text,10)),o.parsedValue&&!Array.isArray(o.parsedValue)){const se=(o.parsedValue.day()-h+7)%7-1;return o.parsedValue.subtract(se,"day").isSame(X,"day")}return!1};return t({focus:P}),(K,X)=>(_(),x("table",{role:"grid","aria-label":l(a)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:E([l(r).b(),{"is-week-mode":K.selectionMode==="week"}]),onClick:W,onMousemove:U,onMousedown:Le(B,["prevent"]),onMouseup:A},[z("tbody",{ref_key:"tbodyRef",ref:i},[z("tr",null,[K.showWeekNumber?(_(),x("th",ZU,me(l(a)("el.datepicker.week")),1)):ee("v-if",!0),(_(!0),x(xe,null,ct(l(y),(se,ve)=>(_(),x("th",{key:ve,scope:"col","aria-label":l(a)("el.datepicker.weeksFull."+se)},me(l(a)("el.datepicker.weeks."+se)),9,JU))),128))]),(_(!0),x(xe,null,ct(l(I),(se,ve)=>(_(),x("tr",{key:ve,class:E([l(r).e("row"),{current:Z(se[1])}])},[(_(!0),x(xe,null,ct(se,(re,ie)=>(_(),x("td",{key:`${ve}.${ie}`,ref_for:!0,ref:J=>F(re)&&(u.value=J),class:E(R(re)),"aria-current":re.isCurrent?"date":void 0,"aria-selected":re.isCurrent,tabindex:F(re)?0:-1,onFocus:T},[j(l(YU),{cell:re},null,8,["cell"])],42,QU))),128))],2))),128))],512)],42,XU))}});var Ap=ge(eq,[["__file","basic-date-table.vue"]]);const tq=be({...Op,selectionMode:yC("month")}),nq=["aria-label"],oq=["aria-selected","aria-label","tabindex","onKeydown"],rq={class:"cell"},aq=G({__name:"basic-month-table",props:tq,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,r=(w,k,$)=>{const O=qe().locale($).startOf("month").month(k).year(w),I=O.daysInMonth();return gr(I).map(P=>O.add(P,"day").toDate())},a=ce("month-table"),{t:s,lang:i}=gt(),u=M(),c=M(),f=M(o.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),d=M([[],[],[]]),p=M(),h=M(),m=S(()=>{var w,k;const $=d.value,O=qe().locale(i.value).startOf("month");for(let I=0;I<3;I++){const P=$[I];for(let N=0;N<4;N++){const L=P[N]||(P[N]={row:I,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});L.type="normal";const D=I*4+N,R=o.date.startOf("year").month(D),V=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;L.inRange=!!(o.minDate&&R.isSameOrAfter(o.minDate,"month")&&V&&R.isSameOrBefore(V,"month"))||!!(o.minDate&&R.isSameOrBefore(o.minDate,"month")&&V&&R.isSameOrAfter(V,"month")),(w=o.minDate)!=null&&w.isSameOrAfter(V)?(L.start=!!(V&&R.isSame(V,"month")),L.end=o.minDate&&R.isSame(o.minDate,"month")):(L.start=!!(o.minDate&&R.isSame(o.minDate,"month")),L.end=!!(V&&R.isSame(V,"month"))),O.isSame(R)&&(L.type="today"),L.text=D,L.disabled=((k=o.disabledDate)==null?void 0:k.call(o,R.toDate()))||!1}}return $}),v=()=>{var w;(w=c.value)==null||w.focus()},g=w=>{const k={},$=o.date.year(),O=new Date,I=w.text;return k.disabled=o.disabledDate?r($,I,i.value).every(o.disabledDate):!1,k.current=cr(o.parsedValue).findIndex(P=>qe.isDayjs(P)&&P.year()===$&&P.month()===I)>=0,k.today=O.getFullYear()===$&&O.getMonth()===I,w.inRange&&(k["in-range"]=!0,w.start&&(k["start-date"]=!0),w.end&&(k["end-date"]=!0)),k},y=w=>{const k=o.date.year(),$=w.text;return cr(o.date).findIndex(O=>O.year()===k&&O.month()===$)>=0},C=w=>{var k;if(!o.rangeState.selecting)return;let $=w.target;if($.tagName==="A"&&($=(k=$.parentNode)==null?void 0:k.parentNode),$.tagName==="DIV"&&($=$.parentNode),$.tagName!=="TD")return;const O=$.parentNode.rowIndex,I=$.cellIndex;m.value[O][I].disabled||(O!==p.value||I!==h.value)&&(p.value=O,h.value=I,n("changerange",{selecting:!0,endDate:o.date.startOf("year").month(O*4+I)}))},b=w=>{var k;const $=(k=w.target)==null?void 0:k.closest("td");if(($==null?void 0:$.tagName)!=="TD"||$o($,"disabled"))return;const O=$.cellIndex,P=$.parentNode.rowIndex*4+O,N=o.date.startOf("year").month(P);o.selectionMode==="range"?o.rangeState.selecting?(o.minDate&&N>=o.minDate?n("pick",{minDate:o.minDate,maxDate:N}):n("pick",{minDate:N,maxDate:o.minDate}),n("select",!1)):(n("pick",{minDate:N,maxDate:null}),n("select",!0)):n("pick",P)};return ue(()=>o.date,async()=>{var w,k;(w=u.value)!=null&&w.contains(document.activeElement)&&(await Ee(),(k=c.value)==null||k.focus())}),t({focus:v}),(w,k)=>(_(),x("table",{role:"grid","aria-label":l(s)("el.datepicker.monthTablePrompt"),class:E(l(a).b()),onClick:b,onMousemove:C},[z("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),x(xe,null,ct(l(m),($,O)=>(_(),x("tr",{key:O},[(_(!0),x(xe,null,ct($,(I,P)=>(_(),x("td",{key:P,ref_for:!0,ref:N=>y(I)&&(c.value=N),class:E(g(I)),"aria-selected":`${y(I)}`,"aria-label":l(s)(`el.datepicker.month${+I.text+1}`),tabindex:y(I)?0:-1,onKeydown:[mt(Le(b,["prevent","stop"]),["space"]),mt(Le(b,["prevent","stop"]),["enter"])]},[z("div",null,[z("span",rq,me(l(s)("el.datepicker.months."+f.value[I.text])),1)])],42,oq))),128))]))),128))],512)],42,nq))}});var Ip=ge(aq,[["__file","basic-month-table.vue"]]);const{date:lq,disabledDate:sq,parsedValue:iq}=Op,uq=be({date:lq,disabledDate:sq,parsedValue:iq}),cq=["aria-label"],dq=["aria-selected","tabindex","onKeydown"],fq={class:"cell"},pq={key:1},vq=G({__name:"basic-year-table",props:uq,emits:["pick"],setup(e,{expose:t,emit:n}){const o=e,r=(v,g)=>{const y=qe(String(v)).locale(g).startOf("year"),b=y.endOf("year").dayOfYear();return gr(b).map(w=>y.add(w,"day").toDate())},a=ce("year-table"),{t:s,lang:i}=gt(),u=M(),c=M(),f=S(()=>Math.floor(o.date.year()/10)*10),d=()=>{var v;(v=c.value)==null||v.focus()},p=v=>{const g={},y=qe().locale(i.value);return g.disabled=o.disabledDate?r(v,i.value).every(o.disabledDate):!1,g.current=cr(o.parsedValue).findIndex(C=>C.year()===v)>=0,g.today=y.year()===v,g},h=v=>v===f.value&&o.date.year()f.value+9||cr(o.date).findIndex(g=>g.year()===v)>=0,m=v=>{const y=v.target.closest("td");if(y&&y.textContent){if($o(y,"disabled"))return;const C=y.textContent||y.innerText;n("pick",Number(C))}};return ue(()=>o.date,async()=>{var v,g;(v=u.value)!=null&&v.contains(document.activeElement)&&(await Ee(),(g=c.value)==null||g.focus())}),t({focus:d}),(v,g)=>(_(),x("table",{role:"grid","aria-label":l(s)("el.datepicker.yearTablePrompt"),class:E(l(a).b()),onClick:m},[z("tbody",{ref_key:"tbodyRef",ref:u},[(_(),x(xe,null,ct(3,(y,C)=>z("tr",{key:C},[(_(),x(xe,null,ct(4,(b,w)=>(_(),x(xe,{key:C+"_"+w},[C*4+w<10?(_(),x("td",{key:0,ref_for:!0,ref:k=>h(l(f)+C*4+w)&&(c.value=k),class:E(["available",p(l(f)+C*4+w)]),"aria-selected":`${h(l(f)+C*4+w)}`,tabindex:h(l(f)+C*4+w)?0:-1,onKeydown:[mt(Le(m,["prevent","stop"]),["space"]),mt(Le(m,["prevent","stop"]),["enter"])]},[z("span",fq,me(l(f)+C*4+w),1)],42,dq)):(_(),x("td",pq))],64))),64))])),64))],512)],10,cq))}});var hq=ge(vq,[["__file","basic-year-table.vue"]]);const mq=["onClick"],gq=["aria-label"],yq=["aria-label"],bq=["aria-label"],wq=["aria-label"],Cq=G({__name:"panel-date-pick",props:jU,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,o=(we,ye,ae)=>!0,r=ce("picker-panel"),a=ce("date-picker"),s=Oa(),i=gn(),{t:u,lang:c}=gt(),f=Oe("EP_PICKER_BASE"),d=Oe(fs),{shortcuts:p,disabledDate:h,cellClassName:m,defaultTime:v,arrowControl:g}=f.props,y=Kt(f.props,"defaultValue"),C=M(),b=M(qe().locale(c.value)),w=M(!1),k=S(()=>qe(v).locale(c.value)),$=S(()=>b.value.month()),O=S(()=>b.value.year()),I=M([]),P=M(null),N=M(null),L=we=>I.value.length>0?o(we,I.value,n.format||"HH:mm:ss"):!0,D=we=>v&&!Re.value&&!w.value?k.value.year(we.year()).month(we.month()).date(we.date()):re.value?we.millisecond(0):we.startOf("day"),R=(we,...ye)=>{if(!we)t("pick",we,...ye);else if(et(we)){const ae=we.map(D);t("pick",ae,...ye)}else t("pick",D(we),...ye);P.value=null,N.value=null,w.value=!1},V=(we,ye)=>{if(W.value==="date"){we=we;let ae=n.parsedValue?n.parsedValue.year(we.year()).month(we.month()).date(we.date()):we;L(ae)||(ae=I.value[0][0].year(we.year()).month(we.month()).date(we.date())),b.value=ae,R(ae,re.value||ye)}else W.value==="week"?R(we.date):W.value==="dates"&&R(we,!0)},U=we=>{const ye=we?"add":"subtract";b.value=b.value[ye](1,"month"),lt("month")},F=we=>{const ye=b.value,ae=we?"add":"subtract";b.value=T.value==="year"?ye[ae](10,"year"):ye[ae](1,"year"),lt("year")},T=M("date"),B=S(()=>{const we=u("el.datepicker.year");if(T.value==="year"){const ye=Math.floor(O.value/10)*10;return we?`${ye} ${we} - ${ye+9} ${we}`:`${ye} - ${ye+9}`}return`${O.value} ${we}`}),A=we=>{const ye=$t(we.value)?we.value():we.value;if(ye){R(qe(ye).locale(c.value));return}we.onClick&&we.onClick({attrs:s,slots:i,emit:t})},W=S(()=>{const{type:we}=n;return["week","month","year","dates"].includes(we)?we:"date"}),Z=S(()=>W.value==="date"?T.value:W.value),K=S(()=>!!p.length),X=async we=>{b.value=b.value.startOf("month").month(we),W.value==="month"?R(b.value,!1):(T.value="date",["month","year","date","week"].includes(W.value)&&(R(b.value,!0),await Ee(),ze())),lt("month")},se=async we=>{W.value==="year"?(b.value=b.value.startOf("year").year(we),R(b.value,!1)):(b.value=b.value.year(we),T.value="month",["month","year","date","week"].includes(W.value)&&(R(b.value,!0),await Ee(),ze())),lt("year")},ve=async we=>{T.value=we,await Ee(),ze()},re=S(()=>n.type==="datetime"||n.type==="datetimerange"),ie=S(()=>re.value||W.value==="dates"),J=()=>{if(W.value==="dates")R(n.parsedValue);else{let we=n.parsedValue;if(!we){const ye=qe(v).locale(c.value),ae=Ce();we=ye.year(ae.year()).month(ae.month()).date(ae.date())}b.value=we,R(we)}},oe=()=>{const ye=qe().locale(c.value).toDate();w.value=!0,(!h||!h(ye))&&L(ye)&&(b.value=qe().locale(c.value),R(b.value))},de=S(()=>Gf(n.format)),Te=S(()=>qf(n.format)),Re=S(()=>{if(N.value)return N.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||b.value).format(de.value)}),Ve=S(()=>{if(P.value)return P.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||b.value).format(Te.value)}),We=M(!1),Ge=()=>{We.value=!0},yt=()=>{We.value=!1},Se=we=>({hour:we.hour(),minute:we.minute(),second:we.second(),year:we.year(),month:we.month(),date:we.date()}),Fe=(we,ye,ae)=>{const{hour:q,minute:Q,second:pe}=Se(we),$e=n.parsedValue?n.parsedValue.hour(q).minute(Q).second(pe):we;b.value=$e,R(b.value,!0),ae||(We.value=ye)},Pe=we=>{const ye=qe(we,de.value).locale(c.value);if(ye.isValid()&&L(ye)){const{year:ae,month:q,date:Q}=Se(b.value);b.value=ye.year(ae).month(q).date(Q),N.value=null,We.value=!1,R(b.value,!0)}},He=we=>{const ye=qe(we,Te.value).locale(c.value);if(ye.isValid()){if(h&&h(ye.toDate()))return;const{hour:ae,minute:q,second:Q}=Se(b.value);b.value=ye.hour(ae).minute(q).second(Q),P.value=null,R(b.value,!0)}},Be=we=>qe.isDayjs(we)&&we.isValid()&&(h?!h(we.toDate()):!0),Xe=we=>W.value==="dates"?we.map(ye=>ye.format(n.format)):we.format(n.format),Qe=we=>qe(we,n.format).locale(c.value),Ce=()=>{const we=qe(y.value).locale(c.value);if(!y.value){const ye=k.value;return qe().hour(ye.hour()).minute(ye.minute()).second(ye.second()).locale(c.value)}return we},ze=async()=>{var we;["week","month","year","date"].includes(W.value)&&((we=C.value)==null||we.focus(),W.value==="week"&&Ot(Ae.down))},ht=we=>{const{code:ye}=we;[Ae.up,Ae.down,Ae.left,Ae.right,Ae.home,Ae.end,Ae.pageUp,Ae.pageDown].includes(ye)&&(Ot(ye),we.stopPropagation(),we.preventDefault()),[Ae.enter,Ae.space,Ae.numpadEnter].includes(ye)&&P.value===null&&N.value===null&&(we.preventDefault(),R(b.value,!1))},Ot=we=>{var ye;const{up:ae,down:q,left:Q,right:pe,home:$e,end:st,pageUp:fe,pageDown:_e}=Ae,Ue={year:{[ae]:-4,[q]:4,[Q]:-1,[pe]:1,offset:(vt,Mt)=>vt.setFullYear(vt.getFullYear()+Mt)},month:{[ae]:-4,[q]:4,[Q]:-1,[pe]:1,offset:(vt,Mt)=>vt.setMonth(vt.getMonth()+Mt)},week:{[ae]:-1,[q]:1,[Q]:-1,[pe]:1,offset:(vt,Mt)=>vt.setDate(vt.getDate()+Mt*7)},date:{[ae]:-7,[q]:7,[Q]:-1,[pe]:1,[$e]:vt=>-vt.getDay(),[st]:vt=>-vt.getDay()+6,[fe]:vt=>-new Date(vt.getFullYear(),vt.getMonth(),0).getDate(),[_e]:vt=>new Date(vt.getFullYear(),vt.getMonth()+1,0).getDate(),offset:(vt,Mt)=>vt.setDate(vt.getDate()+Mt)}},at=b.value.toDate();for(;Math.abs(b.value.diff(at,"year",!0))<1;){const vt=Ue[Z.value];if(!vt)return;if(vt.offset(at,$t(vt[we])?vt[we](at):(ye=vt[we])!=null?ye:0),h&&h(at))break;const Mt=qe(at).locale(c.value);b.value=Mt,t("pick",Mt,!0);break}},lt=we=>{t("panel-change",b.value.toDate(),we,T.value)};return ue(()=>W.value,we=>{if(["month","year"].includes(we)){T.value=we;return}T.value="date"},{immediate:!0}),ue(()=>T.value,()=>{d==null||d.updatePopper()}),ue(()=>y.value,we=>{we&&(b.value=Ce())},{immediate:!0}),ue(()=>n.parsedValue,we=>{if(we){if(W.value==="dates"||Array.isArray(we))return;b.value=we}else b.value=Ce()},{immediate:!0}),t("set-picker-option",["isValidValue",Be]),t("set-picker-option",["formatToString",Xe]),t("set-picker-option",["parseUserInput",Qe]),t("set-picker-option",["handleFocusPicker",ze]),(we,ye)=>(_(),x("div",{class:E([l(r).b(),l(a).b(),{"has-sidebar":we.$slots.sidebar||l(K),"has-time":l(re)}])},[z("div",{class:E(l(r).e("body-wrapper"))},[le(we.$slots,"sidebar",{class:E(l(r).e("sidebar"))}),l(K)?(_(),x("div",{key:0,class:E(l(r).e("sidebar"))},[(_(!0),x(xe,null,ct(l(p),(ae,q)=>(_(),x("button",{key:q,type:"button",class:E(l(r).e("shortcut")),onClick:Q=>A(ae)},me(ae.text),11,mq))),128))],2)):ee("v-if",!0),z("div",{class:E(l(r).e("body"))},[l(re)?(_(),x("div",{key:0,class:E(l(a).e("time-header"))},[z("span",{class:E(l(a).e("editor-wrap"))},[j(l(_n),{placeholder:l(u)("el.datepicker.selectDate"),"model-value":l(Ve),size:"small","validate-event":!1,onInput:ye[0]||(ye[0]=ae=>P.value=ae),onChange:He},null,8,["placeholder","model-value"])],2),je((_(),x("span",{class:E(l(a).e("editor-wrap"))},[j(l(_n),{placeholder:l(u)("el.datepicker.selectTime"),"model-value":l(Re),size:"small","validate-event":!1,onFocus:Ge,onInput:ye[1]||(ye[1]=ae=>N.value=ae),onChange:Pe},null,8,["placeholder","model-value"]),j(l(vs),{visible:We.value,format:l(de),"time-arrow-control":l(g),"parsed-value":b.value,onPick:Fe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(yr),yt]])],2)):ee("v-if",!0),je(z("div",{class:E([l(a).e("header"),(T.value==="year"||T.value==="month")&&l(a).e("header--bordered")])},[z("span",{class:E(l(a).e("prev-btn"))},[z("button",{type:"button","aria-label":l(u)("el.datepicker.prevYear"),class:E(["d-arrow-left",l(r).e("icon-btn")]),onClick:ye[2]||(ye[2]=ae=>F(!1))},[j(l(ke),null,{default:Y(()=>[j(l(Ka))]),_:1})],10,gq),je(z("button",{type:"button","aria-label":l(u)("el.datepicker.prevMonth"),class:E([l(r).e("icon-btn"),"arrow-left"]),onClick:ye[3]||(ye[3]=ae=>U(!1))},[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1})],10,yq),[[St,T.value==="date"]])],2),z("span",{role:"button",class:E(l(a).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ye[4]||(ye[4]=mt(ae=>ve("year"),["enter"])),onClick:ye[5]||(ye[5]=ae=>ve("year"))},me(l(B)),35),je(z("span",{role:"button","aria-live":"polite",tabindex:"0",class:E([l(a).e("header-label"),{active:T.value==="month"}]),onKeydown:ye[6]||(ye[6]=mt(ae=>ve("month"),["enter"])),onClick:ye[7]||(ye[7]=ae=>ve("month"))},me(l(u)(`el.datepicker.month${l($)+1}`)),35),[[St,T.value==="date"]]),z("span",{class:E(l(a).e("next-btn"))},[je(z("button",{type:"button","aria-label":l(u)("el.datepicker.nextMonth"),class:E([l(r).e("icon-btn"),"arrow-right"]),onClick:ye[8]||(ye[8]=ae=>U(!0))},[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})],10,bq),[[St,T.value==="date"]]),z("button",{type:"button","aria-label":l(u)("el.datepicker.nextYear"),class:E([l(r).e("icon-btn"),"d-arrow-right"]),onClick:ye[9]||(ye[9]=ae=>F(!0))},[j(l(ke),null,{default:Y(()=>[j(l(ja))]),_:1})],10,wq)],2)],2),[[St,T.value!=="time"]]),z("div",{class:E(l(r).e("content")),onKeydown:ht},[T.value==="date"?(_(),ne(Ap,{key:0,ref_key:"currentViewRef",ref:C,"selection-mode":l(W),date:b.value,"parsed-value":we.parsedValue,"disabled-date":l(h),"cell-class-name":l(m),onPick:V},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ee("v-if",!0),T.value==="year"?(_(),ne(hq,{key:1,ref_key:"currentViewRef",ref:C,date:b.value,"disabled-date":l(h),"parsed-value":we.parsedValue,onPick:se},null,8,["date","disabled-date","parsed-value"])):ee("v-if",!0),T.value==="month"?(_(),ne(Ip,{key:2,ref_key:"currentViewRef",ref:C,date:b.value,"parsed-value":we.parsedValue,"disabled-date":l(h),onPick:X},null,8,["date","parsed-value","disabled-date"])):ee("v-if",!0)],34)],2)],2),je(z("div",{class:E(l(r).e("footer"))},[je(j(l(wn),{text:"",size:"small",class:E(l(r).e("link-btn")),onClick:oe},{default:Y(()=>[Ct(me(l(u)("el.datepicker.now")),1)]),_:1},8,["class"]),[[St,l(W)!=="dates"]]),j(l(wn),{plain:"",size:"small",class:E(l(r).e("link-btn")),onClick:J},{default:Y(()=>[Ct(me(l(u)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[St,l(ie)&&T.value==="date"]])],2))}});var Sq=ge(Cq,[["__file","panel-date-pick.vue"]]);const _q=be({...mC,...gC}),$q=e=>{const{emit:t}=nt(),n=Oa(),o=gn();return a=>{const s=$t(a.value)?a.value():a.value;if(s){t("pick",[qe(s[0]).locale(e.value),qe(s[1]).locale(e.value)]);return}a.onClick&&a.onClick({attrs:n,slots:o,emit:t})}},wC=(e,{defaultValue:t,leftDate:n,rightDate:o,unit:r,onParsedValueChanged:a})=>{const{emit:s}=nt(),{pickerNs:i}=Oe(Eu),u=ce("date-range-picker"),{t:c,lang:f}=gt(),d=$q(f),p=M(),h=M(),m=M({endDate:null,selecting:!1}),v=b=>{m.value=b},g=(b=!1)=>{const w=l(p),k=l(h);Mp([w,k])&&s("pick",[w,k],b)},y=b=>{m.value.selecting=b,b||(m.value.endDate=null)},C=()=>{const[b,w]=bC(l(t),{lang:l(f),unit:r,unlinkPanels:e.unlinkPanels});p.value=void 0,h.value=void 0,n.value=b,o.value=w};return ue(t,b=>{b&&C()},{immediate:!0}),ue(()=>e.parsedValue,b=>{if(et(b)&&b.length===2){const[w,k]=b;p.value=w,n.value=w,h.value=k,a(l(p),l(h))}else C()},{immediate:!0}),{minDate:p,maxDate:h,rangeState:m,lang:f,ppNs:i,drpNs:u,handleChangeRange:v,handleRangeConfirm:g,handleShortcutClick:d,onSelect:y,t:c}},kq=["onClick"],Eq=["disabled"],Tq=["disabled"],Oq=["disabled"],Mq=["disabled"],Tu="month",Aq=G({__name:"panel-date-range",props:_q,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,o=Oe("EP_PICKER_BASE"),{disabledDate:r,cellClassName:a,format:s,defaultTime:i,arrowControl:u,clearable:c}=o.props,f=Kt(o.props,"shortcuts"),d=Kt(o.props,"defaultValue"),{lang:p}=gt(),h=M(qe().locale(p.value)),m=M(qe().locale(p.value).add(1,Tu)),{minDate:v,maxDate:g,rangeState:y,ppNs:C,drpNs:b,handleChangeRange:w,handleRangeConfirm:k,handleShortcutClick:$,onSelect:O,t:I}=wC(n,{defaultValue:d,leftDate:h,rightDate:m,unit:Tu,onParsedValueChanged:q}),P=M({min:null,max:null}),N=M({min:null,max:null}),L=S(()=>`${h.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${h.value.month()+1}`)}`),D=S(()=>`${m.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${m.value.month()+1}`)}`),R=S(()=>h.value.year()),V=S(()=>h.value.month()),U=S(()=>m.value.year()),F=S(()=>m.value.month()),T=S(()=>!!f.value.length),B=S(()=>P.value.min!==null?P.value.min:v.value?v.value.format(X.value):""),A=S(()=>P.value.max!==null?P.value.max:g.value||v.value?(g.value||v.value).format(X.value):""),W=S(()=>N.value.min!==null?N.value.min:v.value?v.value.format(K.value):""),Z=S(()=>N.value.max!==null?N.value.max:g.value||v.value?(g.value||v.value).format(K.value):""),K=S(()=>Gf(s)),X=S(()=>qf(s)),se=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(m.value=h.value.add(1,"month")),Re("year")},ve=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(m.value=h.value.add(1,"month")),Re("month")},re=()=>{n.unlinkPanels?m.value=m.value.add(1,"year"):(h.value=h.value.add(1,"year"),m.value=h.value.add(1,"month")),Re("year")},ie=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(h.value=h.value.add(1,"month"),m.value=h.value.add(1,"month")),Re("month")},J=()=>{h.value=h.value.add(1,"year"),Re("year")},oe=()=>{h.value=h.value.add(1,"month"),Re("month")},de=()=>{m.value=m.value.subtract(1,"year"),Re("year")},Te=()=>{m.value=m.value.subtract(1,"month"),Re("month")},Re=Q=>{t("panel-change",[h.value.toDate(),m.value.toDate()],Q)},Ve=S(()=>{const Q=(V.value+1)%12,pe=V.value+1>=12?1:0;return n.unlinkPanels&&new Date(R.value+pe,Q)n.unlinkPanels&&U.value*12+F.value-(R.value*12+V.value+1)>=12),Ge=S(()=>!(v.value&&g.value&&!y.value.selecting&&Mp([v.value,g.value]))),yt=S(()=>n.type==="datetime"||n.type==="datetimerange"),Se=(Q,pe)=>{if(!!Q)return i?qe(i[pe]||i).locale(p.value).year(Q.year()).month(Q.month()).date(Q.date()):Q},Fe=(Q,pe=!0)=>{const $e=Q.minDate,st=Q.maxDate,fe=Se($e,0),_e=Se(st,1);g.value===_e&&v.value===fe||(t("calendar-change",[$e.toDate(),st&&st.toDate()]),g.value=_e,v.value=fe,!(!pe||yt.value)&&k())},Pe=M(!1),He=M(!1),Be=()=>{Pe.value=!1},Xe=()=>{He.value=!1},Qe=(Q,pe)=>{P.value[pe]=Q;const $e=qe(Q,X.value).locale(p.value);if($e.isValid()){if(r&&r($e.toDate()))return;pe==="min"?(h.value=$e,v.value=(v.value||h.value).year($e.year()).month($e.month()).date($e.date()),n.unlinkPanels||(m.value=$e.add(1,"month"),g.value=v.value.add(1,"month"))):(m.value=$e,g.value=(g.value||m.value).year($e.year()).month($e.month()).date($e.date()),n.unlinkPanels||(h.value=$e.subtract(1,"month"),v.value=g.value.subtract(1,"month")))}},Ce=(Q,pe)=>{P.value[pe]=null},ze=(Q,pe)=>{N.value[pe]=Q;const $e=qe(Q,K.value).locale(p.value);$e.isValid()&&(pe==="min"?(Pe.value=!0,v.value=(v.value||h.value).hour($e.hour()).minute($e.minute()).second($e.second()),(!g.value||g.value.isBefore(v.value))&&(g.value=v.value)):(He.value=!0,g.value=(g.value||m.value).hour($e.hour()).minute($e.minute()).second($e.second()),m.value=g.value,g.value&&g.value.isBefore(v.value)&&(v.value=g.value)))},ht=(Q,pe)=>{N.value[pe]=null,pe==="min"?(h.value=v.value,Pe.value=!1):(m.value=g.value,He.value=!1)},Ot=(Q,pe,$e)=>{N.value.min||(Q&&(h.value=Q,v.value=(v.value||h.value).hour(Q.hour()).minute(Q.minute()).second(Q.second())),$e||(Pe.value=pe),(!g.value||g.value.isBefore(v.value))&&(g.value=v.value,m.value=Q))},lt=(Q,pe,$e)=>{N.value.max||(Q&&(m.value=Q,g.value=(g.value||m.value).hour(Q.hour()).minute(Q.minute()).second(Q.second())),$e||(He.value=pe),g.value&&g.value.isBefore(v.value)&&(v.value=g.value))},we=()=>{h.value=bC(l(d),{lang:l(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=h.value.add(1,"month"),t("pick",null)},ye=Q=>et(Q)?Q.map(pe=>pe.format(s)):Q.format(s),ae=Q=>et(Q)?Q.map(pe=>qe(pe,s).locale(p.value)):qe(Q,s).locale(p.value);function q(Q,pe){if(n.unlinkPanels&&pe){const $e=(Q==null?void 0:Q.year())||0,st=(Q==null?void 0:Q.month())||0,fe=pe.year(),_e=pe.month();m.value=$e===fe&&st===_e?pe.add(1,Tu):pe}else m.value=h.value.add(1,Tu),pe&&(m.value=m.value.hour(pe.hour()).minute(pe.minute()).second(pe.second()))}return t("set-picker-option",["isValidValue",Mp]),t("set-picker-option",["parseUserInput",ae]),t("set-picker-option",["formatToString",ye]),t("set-picker-option",["handleClear",we]),(Q,pe)=>(_(),x("div",{class:E([l(C).b(),l(b).b(),{"has-sidebar":Q.$slots.sidebar||l(T),"has-time":l(yt)}])},[z("div",{class:E(l(C).e("body-wrapper"))},[le(Q.$slots,"sidebar",{class:E(l(C).e("sidebar"))}),l(T)?(_(),x("div",{key:0,class:E(l(C).e("sidebar"))},[(_(!0),x(xe,null,ct(l(f),($e,st)=>(_(),x("button",{key:st,type:"button",class:E(l(C).e("shortcut")),onClick:fe=>l($)($e)},me($e.text),11,kq))),128))],2)):ee("v-if",!0),z("div",{class:E(l(C).e("body"))},[l(yt)?(_(),x("div",{key:0,class:E(l(b).e("time-header"))},[z("span",{class:E(l(b).e("editors-wrap"))},[z("span",{class:E(l(b).e("time-picker-wrap"))},[j(l(_n),{size:"small",disabled:l(y).selecting,placeholder:l(I)("el.datepicker.startDate"),class:E(l(b).e("editor")),"model-value":l(B),"validate-event":!1,onInput:pe[0]||(pe[0]=$e=>Qe($e,"min")),onChange:pe[1]||(pe[1]=$e=>Ce($e,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),je((_(),x("span",{class:E(l(b).e("time-picker-wrap"))},[j(l(_n),{size:"small",class:E(l(b).e("editor")),disabled:l(y).selecting,placeholder:l(I)("el.datepicker.startTime"),"model-value":l(W),"validate-event":!1,onFocus:pe[2]||(pe[2]=$e=>Pe.value=!0),onInput:pe[3]||(pe[3]=$e=>ze($e,"min")),onChange:pe[4]||(pe[4]=$e=>ht($e,"min"))},null,8,["class","disabled","placeholder","model-value"]),j(l(vs),{visible:Pe.value,format:l(K),"datetime-role":"start","time-arrow-control":l(u),"parsed-value":h.value,onPick:Ot},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(yr),Be]])],2),z("span",null,[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})]),z("span",{class:E([l(b).e("editors-wrap"),"is-right"])},[z("span",{class:E(l(b).e("time-picker-wrap"))},[j(l(_n),{size:"small",class:E(l(b).e("editor")),disabled:l(y).selecting,placeholder:l(I)("el.datepicker.endDate"),"model-value":l(A),readonly:!l(v),"validate-event":!1,onInput:pe[5]||(pe[5]=$e=>Qe($e,"max")),onChange:pe[6]||(pe[6]=$e=>Ce($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),je((_(),x("span",{class:E(l(b).e("time-picker-wrap"))},[j(l(_n),{size:"small",class:E(l(b).e("editor")),disabled:l(y).selecting,placeholder:l(I)("el.datepicker.endTime"),"model-value":l(Z),readonly:!l(v),"validate-event":!1,onFocus:pe[7]||(pe[7]=$e=>l(v)&&(He.value=!0)),onInput:pe[8]||(pe[8]=$e=>ze($e,"max")),onChange:pe[9]||(pe[9]=$e=>ht($e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),j(l(vs),{"datetime-role":"end",visible:He.value,format:l(K),"time-arrow-control":l(u),"parsed-value":m.value,onPick:lt},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[l(yr),Xe]])],2)],2)):ee("v-if",!0),z("div",{class:E([[l(C).e("content"),l(b).e("content")],"is-left"])},[z("div",{class:E(l(b).e("header"))},[z("button",{type:"button",class:E([l(C).e("icon-btn"),"d-arrow-left"]),onClick:se},[j(l(ke),null,{default:Y(()=>[j(l(Ka))]),_:1})],2),z("button",{type:"button",class:E([l(C).e("icon-btn"),"arrow-left"]),onClick:ve},[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1})],2),Q.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!l(We),class:E([[l(C).e("icon-btn"),{"is-disabled":!l(We)}],"d-arrow-right"]),onClick:J},[j(l(ke),null,{default:Y(()=>[j(l(ja))]),_:1})],10,Eq)):ee("v-if",!0),Q.unlinkPanels?(_(),x("button",{key:1,type:"button",disabled:!l(Ve),class:E([[l(C).e("icon-btn"),{"is-disabled":!l(Ve)}],"arrow-right"]),onClick:oe},[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})],10,Tq)):ee("v-if",!0),z("div",null,me(l(L)),1)],2),j(Ap,{"selection-mode":"range",date:h.value,"min-date":l(v),"max-date":l(g),"range-state":l(y),"disabled-date":l(r),"cell-class-name":l(a),onChangerange:l(w),onPick:Fe,onSelect:l(O)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),z("div",{class:E([[l(C).e("content"),l(b).e("content")],"is-right"])},[z("div",{class:E(l(b).e("header"))},[Q.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!l(We),class:E([[l(C).e("icon-btn"),{"is-disabled":!l(We)}],"d-arrow-left"]),onClick:de},[j(l(ke),null,{default:Y(()=>[j(l(Ka))]),_:1})],10,Oq)):ee("v-if",!0),Q.unlinkPanels?(_(),x("button",{key:1,type:"button",disabled:!l(Ve),class:E([[l(C).e("icon-btn"),{"is-disabled":!l(Ve)}],"arrow-left"]),onClick:Te},[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1})],10,Mq)):ee("v-if",!0),z("button",{type:"button",class:E([l(C).e("icon-btn"),"d-arrow-right"]),onClick:re},[j(l(ke),null,{default:Y(()=>[j(l(ja))]),_:1})],2),z("button",{type:"button",class:E([l(C).e("icon-btn"),"arrow-right"]),onClick:ie},[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})],2),z("div",null,me(l(D)),1)],2),j(Ap,{"selection-mode":"range",date:m.value,"min-date":l(v),"max-date":l(g),"range-state":l(y),"disabled-date":l(r),"cell-class-name":l(a),onChangerange:l(w),onPick:Fe,onSelect:l(O)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),l(yt)?(_(),x("div",{key:0,class:E(l(C).e("footer"))},[l(c)?(_(),ne(l(wn),{key:0,text:"",size:"small",class:E(l(C).e("link-btn")),onClick:we},{default:Y(()=>[Ct(me(l(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):ee("v-if",!0),j(l(wn),{plain:"",size:"small",class:E(l(C).e("link-btn")),disabled:l(Ge),onClick:pe[10]||(pe[10]=$e=>l(k)(!1))},{default:Y(()=>[Ct(me(l(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ee("v-if",!0)],2))}});var Iq=ge(Aq,[["__file","panel-date-range.vue"]]);const Nq=be({...gC}),Rq=["pick","set-picker-option"],Pq=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:o}=gt(),r=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},a=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},u=S(()=>`${t.value.year()} ${o("el.datepicker.year")}`),c=S(()=>`${n.value.year()} ${o("el.datepicker.year")}`),f=S(()=>t.value.year()),d=S(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:r,rightNextYear:a,leftNextYear:s,rightPrevYear:i,leftLabel:u,rightLabel:c,leftYear:f,rightYear:d}},xq=["onClick"],Lq=["disabled"],Dq=["disabled"],Ou="year",Bq=G({name:"DatePickerMonthRange"}),Fq=G({...Bq,props:Nq,emits:Rq,setup(e,{emit:t}){const n=e,{lang:o}=gt(),r=Oe("EP_PICKER_BASE"),{shortcuts:a,disabledDate:s,format:i}=r.props,u=Kt(r.props,"defaultValue"),c=M(qe().locale(o.value)),f=M(qe().locale(o.value).add(1,Ou)),{minDate:d,maxDate:p,rangeState:h,ppNs:m,drpNs:v,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:C,onSelect:b}=wC(n,{defaultValue:u,leftDate:c,rightDate:f,unit:Ou,onParsedValueChanged:F}),w=S(()=>!!a.length),{leftPrevYear:k,rightNextYear:$,leftNextYear:O,rightPrevYear:I,leftLabel:P,rightLabel:N,leftYear:L,rightYear:D}=Pq({unlinkPanels:Kt(n,"unlinkPanels"),leftDate:c,rightDate:f}),R=S(()=>n.unlinkPanels&&D.value>L.value+1),V=(T,B=!0)=>{const A=T.minDate,W=T.maxDate;p.value===W&&d.value===A||(p.value=W,d.value=A,B&&y())},U=T=>T.map(B=>B.format(i));function F(T,B){if(n.unlinkPanels&&B){const A=(T==null?void 0:T.year())||0,W=B.year();f.value=A===W?B.add(1,Ou):B}else f.value=c.value.add(1,Ou)}return t("set-picker-option",["formatToString",U]),(T,B)=>(_(),x("div",{class:E([l(m).b(),l(v).b(),{"has-sidebar":Boolean(T.$slots.sidebar)||l(w)}])},[z("div",{class:E(l(m).e("body-wrapper"))},[le(T.$slots,"sidebar",{class:E(l(m).e("sidebar"))}),l(w)?(_(),x("div",{key:0,class:E(l(m).e("sidebar"))},[(_(!0),x(xe,null,ct(l(a),(A,W)=>(_(),x("button",{key:W,type:"button",class:E(l(m).e("shortcut")),onClick:Z=>l(C)(A)},me(A.text),11,xq))),128))],2)):ee("v-if",!0),z("div",{class:E(l(m).e("body"))},[z("div",{class:E([[l(m).e("content"),l(v).e("content")],"is-left"])},[z("div",{class:E(l(v).e("header"))},[z("button",{type:"button",class:E([l(m).e("icon-btn"),"d-arrow-left"]),onClick:B[0]||(B[0]=(...A)=>l(k)&&l(k)(...A))},[j(l(ke),null,{default:Y(()=>[j(l(Ka))]),_:1})],2),T.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!l(R),class:E([[l(m).e("icon-btn"),{[l(m).is("disabled")]:!l(R)}],"d-arrow-right"]),onClick:B[1]||(B[1]=(...A)=>l(O)&&l(O)(...A))},[j(l(ke),null,{default:Y(()=>[j(l(ja))]),_:1})],10,Lq)):ee("v-if",!0),z("div",null,me(l(P)),1)],2),j(Ip,{"selection-mode":"range",date:c.value,"min-date":l(d),"max-date":l(p),"range-state":l(h),"disabled-date":l(s),onChangerange:l(g),onPick:V,onSelect:l(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),z("div",{class:E([[l(m).e("content"),l(v).e("content")],"is-right"])},[z("div",{class:E(l(v).e("header"))},[T.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!l(R),class:E([[l(m).e("icon-btn"),{"is-disabled":!l(R)}],"d-arrow-left"]),onClick:B[2]||(B[2]=(...A)=>l(I)&&l(I)(...A))},[j(l(ke),null,{default:Y(()=>[j(l(Ka))]),_:1})],10,Dq)):ee("v-if",!0),z("button",{type:"button",class:E([l(m).e("icon-btn"),"d-arrow-right"]),onClick:B[3]||(B[3]=(...A)=>l($)&&l($)(...A))},[j(l(ke),null,{default:Y(()=>[j(l(ja))]),_:1})],2),z("div",null,me(l(N)),1)],2),j(Ip,{"selection-mode":"range",date:f.value,"min-date":l(d),"max-date":l(p),"range-state":l(h),"disabled-date":l(s),onChangerange:l(g),onPick:V,onSelect:l(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var Vq=ge(Fq,[["__file","panel-month-range.vue"]]);const zq=function(e){switch(e){case"daterange":case"datetimerange":return Iq;case"monthrange":return Vq;default:return Sq}};qe.extend(Uw),qe.extend(BU),qe.extend(jf),qe.extend(FU),qe.extend(VU),qe.extend(zU),qe.extend(HU),qe.extend(WU);var Hq=G({name:"ElDatePicker",install:null,props:hC,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:o}){const r=ce("picker-panel");ut("ElPopperOptions",At(Kt(e,"popperOptions"))),ut(Eu,{slots:o,pickerNs:r});const a=M();t({focus:(u=!0)=>{var c;(c=a.value)==null||c.focus(u)},handleOpen:()=>{var u;(u=a.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=a.value)==null||u.handleClose()}});const i=u=>{n("update:modelValue",u)};return()=>{var u;const c=(u=e.format)!=null?u:Cw[e.type]||ma,f=zq(e.type);return j(Qf,ot(e,{format:c,type:e.type,ref:a,"onUpdate:modelValue":i}),{default:d=>j(f,d,null),"range-separator":o["range-separator"]})}}});const Mu=Hq;Mu.install=e=>{e.component(Mu.name,Mu)};const CC=Mu,Np=Symbol("elDescriptions");var ys=G({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Oe(Np,{})}},render(){var e,t,n,o,r,a;const s=CV(this.cell),{border:i,direction:u}=this.descriptions,c=u==="vertical",f=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||s.label,d=(a=(r=(o=this.cell)==null?void 0:o.children)==null?void 0:r.default)==null?void 0:a.call(r),p=s.span,h=s.align?`is-${s.align}`:"",m=s.labelAlign?`is-${s.labelAlign}`:h,v=s.className,g=s.labelClassName,y={width:tn(s.width),minWidth:tn(s.minWidth)},C=ce("descriptions");switch(this.type){case"label":return Ne(this.tag,{style:y,class:[C.e("cell"),C.e("label"),C.is("bordered-label",i),C.is("vertical-label",c),m,g],colSpan:c?p:1},f);case"content":return Ne(this.tag,{style:y,class:[C.e("cell"),C.e("content"),C.is("bordered-content",i),C.is("vertical-content",c),h,v],colSpan:c?p:p*2-1},d);default:return Ne("td",{style:y,class:[C.e("cell"),h],colSpan:p},[nn(f)?void 0:Ne("span",{class:[C.e("label"),g]},f),Ne("span",{class:[C.e("content"),v]},d)])}}});const Wq=be({row:{type:Array,default:()=>[]}}),Kq={key:1},jq=G({name:"ElDescriptionsRow"}),Uq=G({...jq,props:Wq,setup(e){const t=Oe(Np,{});return(n,o)=>l(t).direction==="vertical"?(_(),x(xe,{key:0},[z("tr",null,[(_(!0),x(xe,null,ct(n.row,(r,a)=>(_(),ne(l(ys),{key:`tr1-${a}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),z("tr",null,[(_(!0),x(xe,null,ct(n.row,(r,a)=>(_(),ne(l(ys),{key:`tr2-${a}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),x("tr",Kq,[(_(!0),x(xe,null,ct(n.row,(r,a)=>(_(),x(xe,{key:`tr3-${a}`},[l(t).border?(_(),x(xe,{key:0},[j(l(ys),{cell:r,tag:"td",type:"label"},null,8,["cell"]),j(l(ys),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ne(l(ys),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var qq=ge(Uq,[["__file","descriptions-row.vue"]]);const SC=be({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:vn,title:{type:String,default:""},extra:{type:String,default:""}}),Gq=G({name:"ElDescriptions"}),Yq=G({...Gq,props:SC,setup(e){const t=e,n=ce("descriptions"),o=on(),r=gn();ut(Np,t);const a=S(()=>[n.b(),n.m(o.value)]),s=(u,c,f,d=!1)=>(u.props||(u.props={}),c>f&&(u.props.span=f),d&&(u.props.span=c),u),i=()=>{var u;const c=Ua((u=r.default)==null?void 0:u.call(r)).filter(m=>{var v;return((v=m==null?void 0:m.type)==null?void 0:v.name)==="ElDescriptionsItem"}),f=[];let d=[],p=t.column,h=0;return c.forEach((m,v)=>{var g;const y=((g=m.props)==null?void 0:g.span)||1;if(vp?p:y),v===c.length-1){const C=t.column-h%t.column;d.push(s(m,C,p,!0)),f.push(d);return}y(_(),x("div",{class:E(l(a))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(_(),x("div",{key:0,class:E(l(n).e("header"))},[z("div",{class:E(l(n).e("title"))},[le(u.$slots,"title",{},()=>[Ct(me(u.title),1)])],2),z("div",{class:E(l(n).e("extra"))},[le(u.$slots,"extra",{},()=>[Ct(me(u.extra),1)])],2)],2)):ee("v-if",!0),z("div",{class:E(l(n).e("body"))},[z("table",{class:E([l(n).e("table"),l(n).is("bordered",u.border)])},[z("tbody",null,[(_(!0),x(xe,null,ct(i(),(f,d)=>(_(),ne(qq,{key:d,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var Xq=ge(Yq,[["__file","description.vue"]]),_C=G({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const $C=Je(Xq,{DescriptionsItem:_C}),kC=Xt(_C),EC=be({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:te([String,Array,Object])},zIndex:{type:te([String,Number])}}),TC={click:e=>e instanceof MouseEvent},Zq="overlay";var Jq=G({name:"ElOverlay",props:EC,emits:TC,setup(e,{slots:t,emit:n}){const o=ce(Zq),r=u=>{n("click",u)},{onClick:a,onMousedown:s,onMouseup:i}=Fi(e.customMaskEvent?void 0:r);return()=>e.mask?j("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:s,onMouseup:i},[le(t,"default")],ho.STYLE|ho.CLASS|ho.PROPS,["onClick","onMouseup","onMousedown"]):Ne("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[le(t,"default")])}});const Au=Jq,Rp=Symbol("dialogInjectionKey"),OC=be({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Dt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Qq={close:()=>!0},eG=["aria-label"],tG=["id"],nG=G({name:"ElDialogContent"}),oG=G({...nG,props:OC,emits:Qq,setup(e){const t=e,{t:n}=gt(),{Close:o}=ky,{dialogRef:r,headerRef:a,bodyId:s,ns:i,style:u}=Oe(Rp),{focusTrapRef:c}=Oe(If),f=ki(c,r),d=S(()=>t.draggable);return Kd(r,a,d),(p,h)=>(_(),x("div",{ref:l(f),class:E([l(i).b(),l(i).is("fullscreen",p.fullscreen),l(i).is("draggable",l(d)),l(i).is("align-center",p.alignCenter),{[l(i).m("center")]:p.center},p.customClass]),style:Ie(l(u)),tabindex:"-1"},[z("header",{ref_key:"headerRef",ref:a,class:E(l(i).e("header"))},[le(p.$slots,"header",{},()=>[z("span",{role:"heading",class:E(l(i).e("title"))},me(p.title),3)]),p.showClose?(_(),x("button",{key:0,"aria-label":l(n)("el.dialog.close"),class:E(l(i).e("headerbtn")),type:"button",onClick:h[0]||(h[0]=m=>p.$emit("close"))},[j(l(ke),{class:E(l(i).e("close"))},{default:Y(()=>[(_(),ne(rt(p.closeIcon||l(o))))]),_:1},8,["class"])],10,eG)):ee("v-if",!0)],2),z("div",{id:l(s),class:E(l(i).e("body"))},[le(p.$slots,"default")],10,tG),p.$slots.footer?(_(),x("footer",{key:0,class:E(l(i).e("footer"))},[le(p.$slots,"footer")],2)):ee("v-if",!0)],6))}});var rG=ge(oG,[["__file","dialog-content.vue"]]);const Pp=be({...OC,appendToBody:{type:Boolean,default:!1},beforeClose:{type:te(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),xp={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[tt]:e=>un(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Lp=(e,t)=>{const o=nt().emit,{nextZIndex:r}=da();let a="";const s=no(),i=no(),u=M(!1),c=M(!1),f=M(!1),d=M(e.zIndex||r());let p,h;const m=ls("namespace",Zl),v=S(()=>{const V={},U=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${U}-margin-top`]=e.top),e.width&&(V[`${U}-width`]=tn(e.width))),V}),g=S(()=>e.alignCenter?{display:"flex"}:{});function y(){o("opened")}function C(){o("closed"),o(tt,!1),e.destroyOnClose&&(f.value=!1)}function b(){o("close")}function w(){h==null||h(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Jr(()=>I(),e.openDelay):I()}function k(){p==null||p(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Jr(()=>P(),e.closeDelay):P()}function $(){function V(U){U||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(V):k()}function O(){e.closeOnClickModal&&$()}function I(){!pt||(u.value=!0)}function P(){u.value=!1}function N(){o("openAutoFocus")}function L(){o("closeAutoFocus")}function D(V){var U;((U=V.detail)==null?void 0:U.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&Gd(u);function R(){e.closeOnPressEscape&&$()}return ue(()=>e.modelValue,V=>{V?(c.value=!1,w(),f.value=!0,d.value=e.zIndex?d.value++:r(),Ee(()=>{o("open"),t.value&&(t.value.scrollTop=0)})):u.value&&k()}),ue(()=>e.fullscreen,V=>{!t.value||(V?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),Ze(()=>{e.modelValue&&(u.value=!0,f.value=!0,w())}),{afterEnter:y,afterLeave:C,beforeLeave:b,handleClose:$,onModalClick:O,close:k,doClose:P,onOpenAutoFocus:N,onCloseAutoFocus:L,onCloseRequested:R,onFocusoutPrevented:D,titleId:s,bodyId:i,closed:c,style:v,overlayDialogStyle:g,rendered:f,visible:u,zIndex:d}},aG=["aria-label","aria-labelledby","aria-describedby"],lG=G({name:"ElDialog",inheritAttrs:!1}),sG=G({...lG,props:Pp,emits:xp,setup(e,{expose:t}){const n=e,o=gn();Oo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},S(()=>!!o.title)),Oo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},S(()=>!!n.customClass));const r=ce("dialog"),a=M(),s=M(),i=M(),{visible:u,titleId:c,bodyId:f,style:d,overlayDialogStyle:p,rendered:h,zIndex:m,afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:C,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:k,onCloseRequested:$,onFocusoutPrevented:O}=Lp(n,a);ut(Rp,{dialogRef:a,headerRef:s,bodyId:f,ns:r,rendered:h,style:d});const I=Fi(b),P=S(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:i}),(N,L)=>(_(),ne(Ta,{to:"body",disabled:!N.appendToBody},[j(ln,{name:"dialog-fade",onAfterEnter:l(v),onAfterLeave:l(g),onBeforeLeave:l(y),persisted:""},{default:Y(()=>[je(j(l(Au),{"custom-mask-event":"",mask:N.modal,"overlay-class":N.modalClass,"z-index":l(m)},{default:Y(()=>[z("div",{role:"dialog","aria-modal":"true","aria-label":N.title||void 0,"aria-labelledby":N.title?void 0:l(c),"aria-describedby":l(f),class:E(`${l(r).namespace.value}-overlay-dialog`),style:Ie(l(p)),onClick:L[0]||(L[0]=(...D)=>l(I).onClick&&l(I).onClick(...D)),onMousedown:L[1]||(L[1]=(...D)=>l(I).onMousedown&&l(I).onMousedown(...D)),onMouseup:L[2]||(L[2]=(...D)=>l(I).onMouseup&&l(I).onMouseup(...D))},[j(l(ru),{loop:"",trapped:l(u),"focus-start-el":"container",onFocusAfterTrapped:l(w),onFocusAfterReleased:l(k),onFocusoutPrevented:l(O),onReleaseRequested:l($)},{default:Y(()=>[l(h)?(_(),ne(rG,ot({key:0,ref_key:"dialogContentRef",ref:i},N.$attrs,{"custom-class":N.customClass,center:N.center,"align-center":N.alignCenter,"close-icon":N.closeIcon,draggable:l(P),fullscreen:N.fullscreen,"show-close":N.showClose,title:N.title,onClose:l(C)}),er({header:Y(()=>[N.$slots.title?le(N.$slots,"title",{key:1}):le(N.$slots,"header",{key:0,close:l(C),titleId:l(c),titleClass:l(r).e("title")})]),default:Y(()=>[le(N.$slots,"default")]),_:2},[N.$slots.footer?{name:"footer",fn:Y(()=>[le(N.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ee("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,aG)]),_:3},8,["mask","overlay-class","z-index"]),[[St,l(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var iG=ge(sG,[["__file","dialog.vue"]]);const MC=Je(iG),AC=be({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:te(String),default:"solid"}}),uG=G({name:"ElDivider"}),cG=G({...uG,props:AC,setup(e){const t=e,n=ce("divider"),o=S(()=>n.cssVar({"border-style":t.borderStyle}));return(r,a)=>(_(),x("div",{class:E([l(n).b(),l(n).m(r.direction)]),style:Ie(l(o)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(_(),x("div",{key:0,class:E([l(n).e("text"),l(n).is(r.contentPosition)])},[le(r.$slots,"default")],2)):ee("v-if",!0)],6))}});var dG=ge(cG,[["__file","divider.vue"]]);const Dp=Je(dG),IC=be({...Pp,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),NC=xp,fG=G({name:"ElDrawer",components:{ElOverlay:Au,ElFocusTrap:ru,ElIcon:ke,Close:ko},inheritAttrs:!1,props:IC,emits:NC,setup(e,{slots:t}){Oo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},S(()=>!!t.title)),Oo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},S(()=>!!e.customClass));const n=M(),o=M(),r=ce("drawer"),{t:a}=gt(),s=S(()=>e.direction==="rtl"||e.direction==="ltr"),i=S(()=>tn(e.size));return{...Lp(e,n),drawerRef:n,focusStartRef:o,isHorizontal:s,drawerSize:i,ns:r,t:a}}}),pG=["aria-label","aria-labelledby","aria-describedby"],vG=["id"],hG=["aria-label"],mG=["id"];function gG(e,t,n,o,r,a){const s=Ke("close"),i=Ke("el-icon"),u=Ke("el-focus-trap"),c=Ke("el-overlay");return _(),ne(Ta,{to:"body",disabled:!e.appendToBody},[j(ln,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Y(()=>[je(j(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Y(()=>[j(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Y(()=>[z("div",ot({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=Le(()=>{},["stop"]))}),[z("span",{ref:"focusStartRef",class:E(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(_(),x("header",{key:0,class:E(e.ns.e("header"))},[e.$slots.title?le(e.$slots,"title",{key:1},()=>[ee(" DEPRECATED SLOT ")]):le(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ee("v-if",!0):(_(),x("span",{key:0,id:e.titleId,role:"heading",class:E(e.ns.e("title"))},me(e.title),11,vG))]),e.showClose?(_(),x("button",{key:2,"aria-label":e.t("el.drawer.close"),class:E(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[j(i,{class:E(e.ns.e("close"))},{default:Y(()=>[j(s)]),_:1},8,["class"])],10,hG)):ee("v-if",!0)],2)):ee("v-if",!0),e.rendered?(_(),x("div",{key:1,id:e.bodyId,class:E(e.ns.e("body"))},[le(e.$slots,"default")],10,mG)):ee("v-if",!0),e.$slots.footer?(_(),x("div",{key:2,class:E(e.ns.e("footer"))},[le(e.$slots,"footer")],2)):ee("v-if",!0)],16,pG)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[St,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var yG=ge(fG,[["render",gG],["__file","drawer.vue"]]);const RC=Je(yG),bG=G({inheritAttrs:!1});function wG(e,t,n,o,r,a){return le(e.$slots,"default")}var CG=ge(bG,[["render",wG],["__file","collection.vue"]]);const SG=G({name:"ElCollectionItem",inheritAttrs:!1});function _G(e,t,n,o,r,a){return le(e.$slots,"default")}var $G=ge(SG,[["render",_G],["__file","collection-item.vue"]]);const PC="data-el-collection-item",xC=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),a={...CG,name:t,setup(){const i=M(null),u=new Map;ut(o,{itemMap:u,getItems:()=>{const f=l(i);if(!f)return[];const d=Array.from(f.querySelectorAll(`[${PC}]`));return[...u.values()].sort((h,m)=>d.indexOf(h.ref)-d.indexOf(m.ref))},collectionRef:i})}},s={...$G,name:n,setup(i,{attrs:u}){const c=M(null),f=Oe(o,void 0);ut(r,{collectionItemRef:c}),Ze(()=>{const d=l(c);d&&f.itemMap.set(d,{ref:d,...u})}),qt(()=>{const d=l(c);f.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:a,ElCollectionItem:s}},kG=be({style:{type:te([String,Array,Object])},currentTabId:{type:te(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:te(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:EG,ElCollectionItem:TG,COLLECTION_INJECTION_KEY:Bp,COLLECTION_ITEM_INJECTION_KEY:OG}=xC("RovingFocusGroup"),Fp=Symbol("elRovingFocusGroup"),LC=Symbol("elRovingFocusGroupItem"),MG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},AG=(e,t)=>{if(t!=="rtl")return e;switch(e){case Ae.right:return Ae.left;case Ae.left:return Ae.right;default:return e}},IG=(e,t,n)=>{const o=AG(e.key,n);if(!(t==="vertical"&&[Ae.left,Ae.right].includes(o))&&!(t==="horizontal"&&[Ae.up,Ae.down].includes(o)))return MG[o]},NG=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),Vp=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},DC="currentTabIdChange",BC="rovingFocusGroup.entryFocus",RG={bubbles:!1,cancelable:!0},PG=G({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:kG,emits:[DC,"entryFocus"],setup(e,{emit:t}){var n;const o=M((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=M(!1),a=M(!1),s=M(null),{getItems:i}=Oe(Bp,void 0),u=S(()=>[{outline:"none"},e.style]),c=v=>{t(DC,v)},f=()=>{r.value=!0},d=Gt(v=>{var g;(g=e.onMousedown)==null||g.call(e,v)},()=>{a.value=!0}),p=Gt(v=>{var g;(g=e.onFocus)==null||g.call(e,v)},v=>{const g=!l(a),{target:y,currentTarget:C}=v;if(y===C&&g&&!l(r)){const b=new Event(BC,RG);if(C==null||C.dispatchEvent(b),!b.defaultPrevented){const w=i().filter(P=>P.focusable),k=w.find(P=>P.active),$=w.find(P=>P.id===l(o)),I=[k,$,...w].filter(Boolean).map(P=>P.ref);Vp(I)}}a.value=!1}),h=Gt(v=>{var g;(g=e.onBlur)==null||g.call(e,v)},()=>{r.value=!1}),m=(...v)=>{t("entryFocus",...v)};ut(Fp,{currentTabbedId:ac(o),loop:Kt(e,"loop"),tabIndex:S(()=>l(r)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:Kt(e,"orientation"),dir:Kt(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:h,onFocus:p,onMousedown:d}),ue(()=>e.currentTabId,v=>{o.value=v!=null?v:null}),xt(s,BC,m)}});function xG(e,t,n,o,r,a){return le(e.$slots,"default")}var LG=ge(PG,[["render",xG],["__file","roving-focus-group-impl.vue"]]);const DG=G({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:EG,ElRovingFocusGroupImpl:LG}});function BG(e,t,n,o,r,a){const s=Ke("el-roving-focus-group-impl"),i=Ke("el-focus-group-collection");return _(),ne(i,null,{default:Y(()=>[j(s,wo(uc(e.$attrs)),{default:Y(()=>[le(e.$slots,"default")]),_:3},16)]),_:3})}var FG=ge(DG,[["render",BG],["__file","roving-focus-group.vue"]]);const VG=G({components:{ElRovingFocusCollectionItem:TG},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:r,onItemShiftTab:a}=Oe(Fp,void 0),{getItems:s}=Oe(Bp,void 0),i=no(),u=M(null),c=Gt(h=>{t("mousedown",h)},h=>{e.focusable?r(l(i)):h.preventDefault()}),f=Gt(h=>{t("focus",h)},()=>{r(l(i))}),d=Gt(h=>{t("keydown",h)},h=>{const{key:m,shiftKey:v,target:g,currentTarget:y}=h;if(m===Ae.tab&&v){a();return}if(g!==y)return;const C=IG(h);if(C){h.preventDefault();let w=s().filter(k=>k.focusable).map(k=>k.ref);switch(C){case"last":{w.reverse();break}case"prev":case"next":{C==="prev"&&w.reverse();const k=w.indexOf(y);w=o.value?NG(w,k+1):w.slice(k+1);break}}Ee(()=>{Vp(w)})}}),p=S(()=>n.value===l(i));return ut(LC,{rovingFocusGroupItemRef:u,tabIndex:S(()=>l(p)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:f,handleMousedown:c}}});function zG(e,t,n,o,r,a){const s=Ke("el-roving-focus-collection-item");return _(),ne(s,{id:e.id,focusable:e.focusable,active:e.active},{default:Y(()=>[le(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var HG=ge(VG,[["render",zG],["__file","roving-focus-item.vue"]]);const bs=be({trigger:ol.trigger,effect:{...mn.effect,default:"light"},type:{type:te(String)},placement:{type:te(String),default:"bottom"},popperOptions:{type:te(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:te([Number,String]),default:0},maxHeight:{type:te([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:te(Object)},teleported:mn.teleported}),zp=be({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Dt}}),FC=be({onKeydown:{type:te(Function)}}),VC=[Ae.down,Ae.pageDown,Ae.home],Hp=[Ae.up,Ae.pageUp,Ae.end],zC=[...VC,...Hp],{ElCollection:HC,ElCollectionItem:WC,COLLECTION_INJECTION_KEY:KC,COLLECTION_ITEM_INJECTION_KEY:jC}=xC("Dropdown"),ws=Symbol("elDropdown"),{ButtonGroup:WG}=wn,KG=G({name:"ElDropdown",components:{ElButton:wn,ElButtonGroup:WG,ElScrollbar:Zo,ElDropdownCollection:HC,ElTooltip:Nn,ElRovingFocusGroup:FG,ElOnlyChild:M1,ElIcon:ke,ArrowDown:Ir},props:bs,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=nt(),o=ce("dropdown"),{t:r}=gt(),a=M(),s=M(),i=M(null),u=M(null),c=M(null),f=M(null),d=M(!1),p=[Ae.enter,Ae.space,Ae.down],h=S(()=>({maxHeight:tn(e.maxHeight)})),m=S(()=>[o.m(w.value)]),v=no().value,g=S(()=>e.id||v);ue([a,Kt(e,"trigger")],([F,T],[B])=>{var A,W,Z;const K=et(T)?T:[T];(A=B==null?void 0:B.$el)!=null&&A.removeEventListener&&B.$el.removeEventListener("pointerenter",$),(W=F==null?void 0:F.$el)!=null&&W.removeEventListener&&F.$el.removeEventListener("pointerenter",$),((Z=F==null?void 0:F.$el)==null?void 0:Z.addEventListener)&&K.includes("hover")&&F.$el.addEventListener("pointerenter",$)},{immediate:!0}),qt(()=>{var F,T;(T=(F=a.value)==null?void 0:F.$el)!=null&&T.removeEventListener&&a.value.$el.removeEventListener("pointerenter",$)});function y(){C()}function C(){var F;(F=i.value)==null||F.onClose()}function b(){var F;(F=i.value)==null||F.onOpen()}const w=on();function k(...F){t("command",...F)}function $(){var F,T;(T=(F=a.value)==null?void 0:F.$el)==null||T.focus()}function O(){}function I(){const F=l(u);F==null||F.focus(),f.value=null}function P(F){f.value=F}function N(F){d.value||(F.preventDefault(),F.stopImmediatePropagation())}function L(){t("visible-change",!0)}function D(F){(F==null?void 0:F.type)==="keydown"&&u.value.focus()}function R(){t("visible-change",!1)}return ut(ws,{contentRef:u,role:S(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:O,onItemLeave:I}),ut("elDropdown",{instance:n,dropdownSize:w,handleClick:y,commandHandler:k,trigger:Kt(e,"trigger"),hideOnClick:Kt(e,"hideOnClick")}),{t:r,ns:o,scrollbar:c,wrapStyle:h,dropdownTriggerKls:m,dropdownSize:w,triggerId:g,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:P,handlerMainButtonClick:F=>{t("click",F)},handleEntryFocus:N,handleClose:C,handleOpen:b,handleBeforeShowTooltip:L,handleShowTooltip:D,handleBeforeHideTooltip:R,onFocusAfterTrapped:F=>{var T,B;F.preventDefault(),(B=(T=u.value)==null?void 0:T.focus)==null||B.call(T,{preventScroll:!0})},popperRef:i,contentRef:u,triggeringElementRef:a,referenceElementRef:s}}});function jG(e,t,n,o,r,a){var s;const i=Ke("el-dropdown-collection"),u=Ke("el-roving-focus-group"),c=Ke("el-scrollbar"),f=Ke("el-only-child"),d=Ke("el-tooltip"),p=Ke("el-button"),h=Ke("arrow-down"),m=Ke("el-icon"),v=Ke("el-button-group");return _(),x("div",{class:E([e.ns.b(),e.ns.is("disabled",e.disabled)])},[j(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},er({content:Y(()=>[j(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Y(()=>[j(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Y(()=>[j(i,null,{default:Y(()=>[le(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Y(()=>[j(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Y(()=>[le(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ne(v,{key:0},{default:Y(()=>[j(p,ot({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Y(()=>[le(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),j(p,ot({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Y(()=>[j(m,{class:E(e.ns.e("icon"))},{default:Y(()=>[j(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ee("v-if",!0)],2)}var UG=ge(KG,[["render",jG],["__file","dropdown.vue"]]);const qG=G({name:"DropdownItemImpl",components:{ElIcon:ke},props:zp,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ce("dropdown"),{role:o}=Oe(ws,void 0),{collectionItemRef:r}=Oe(jC,void 0),{collectionItemRef:a}=Oe(OG,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:f}=Oe(LC,void 0),d=ki(r,a,s),p=S(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),h=Gt(m=>{const{code:v}=m;if(v===Ae.enter||v===Ae.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},c);return{ns:n,itemRef:d,dataset:{[PC]:""},role:p,tabIndex:i,handleFocus:u,handleKeydown:h,handleMousedown:f}}}),GG=["aria-disabled","tabindex","role"];function YG(e,t,n,o,r,a){const s=Ke("el-icon");return _(),x(xe,null,[e.divided?(_(),x("li",ot({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ee("v-if",!0),z("li",ot({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=Le((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(_(),ne(s,{key:0},{default:Y(()=>[(_(),ne(rt(e.icon)))]),_:1})):ee("v-if",!0),le(e.$slots,"default")],16,GG)],64)}var XG=ge(qG,[["render",YG],["__file","dropdown-item-impl.vue"]]);const UC=()=>{const e=Oe("elDropdown",{}),t=S(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},ZG=G({name:"ElDropdownItem",components:{ElDropdownCollectionItem:WC,ElRovingFocusItem:HG,ElDropdownItemImpl:XG},inheritAttrs:!1,props:zp,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=UC(),r=nt(),a=M(null),s=S(()=>{var h,m;return(m=(h=l(a))==null?void 0:h.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:u}=Oe(ws,void 0),c=Gt(h=>(t("pointermove",h),h.defaultPrevented),Sh(h=>{if(e.disabled){u(h);return}const m=h.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(h),h.defaultPrevented||m==null||m.focus())})),f=Gt(h=>(t("pointerleave",h),h.defaultPrevented),Sh(h=>{u(h)})),d=Gt(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var m,v,g;if(e.disabled){h.stopImmediatePropagation();return}(m=o==null?void 0:o.hideOnClick)!=null&&m.value&&((v=o.handleClick)==null||v.call(o)),(g=o.commandHandler)==null||g.call(o,e.command,r,h)}),p=S(()=>({...e,...n}));return{handleClick:d,handlePointerMove:c,handlePointerLeave:f,textContent:s,propsAndAttrs:p}}});function JG(e,t,n,o,r,a){var s;const i=Ke("el-dropdown-item-impl"),u=Ke("el-roving-focus-item"),c=Ke("el-dropdown-collection-item");return _(),ne(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:Y(()=>[j(u,{focusable:!e.disabled},{default:Y(()=>[j(i,ot(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Y(()=>[le(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var qC=ge(ZG,[["render",JG],["__file","dropdown-item.vue"]]);const QG=G({name:"ElDropdownMenu",props:FC,setup(e){const t=ce("dropdown"),{_elDropdownSize:n}=UC(),o=n.value,{focusTrapRef:r,onKeydown:a}=Oe(If,void 0),{contentRef:s,role:i,triggerId:u}=Oe(ws,void 0),{collectionRef:c,getItems:f}=Oe(KC,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:m,onFocus:v,onMousedown:g}=Oe(Fp,void 0),{collectionRef:y}=Oe(Bp,void 0),C=S(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),b=ki(s,c,r,d,y),w=Gt($=>{var O;(O=e.onKeydown)==null||O.call(e,$)},$=>{const{currentTarget:O,code:I,target:P}=$;if(O.contains(P),Ae.tab===I&&$.stopImmediatePropagation(),$.preventDefault(),P!==l(s)||!zC.includes(I))return;const L=f().filter(D=>!D.disabled).map(D=>D.ref);Hp.includes(I)&&L.reverse(),Vp(L)});return{size:o,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:C,role:i,triggerId:u,dropdownListWrapperRef:b,handleKeydown:$=>{w($),a($)},onBlur:m,onFocus:v,onMousedown:g}}}),eY=["role","aria-labelledby"];function tY(e,t,n,o,r,a){return _(),x("ul",{ref:e.dropdownListWrapperRef,class:E(e.dropdownKls),style:Ie(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=Le((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Le((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[le(e.$slots,"default")],46,eY)}var GC=ge(QG,[["render",tY],["__file","dropdown-menu.vue"]]);const YC=Je(UG,{DropdownItem:qC,DropdownMenu:GC}),XC=Xt(qC),ZC=Xt(GC),nY={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},oY=["id"],rY=["stop-color"],aY=["stop-color"],lY=["id"],sY=["stop-color"],iY=["stop-color"],uY=["id"],cY={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},dY={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},fY={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},pY=["fill"],vY=["fill"],hY={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},mY=["fill"],gY=["fill"],yY=["fill"],bY=["fill"],wY=["fill"],CY={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},SY=["fill","xlink:href"],_Y=["fill","mask"],$Y=["fill"],kY=G({name:"ImgEmpty"}),EY=G({...kY,setup(e){const t=ce("empty"),n=no();return(o,r)=>(_(),x("svg",nY,[z("defs",null,[z("linearGradient",{id:`linearGradient-1-${l(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[z("stop",{"stop-color":`var(${l(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,rY),z("stop",{"stop-color":`var(${l(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,aY)],8,oY),z("linearGradient",{id:`linearGradient-2-${l(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[z("stop",{"stop-color":`var(${l(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,sY),z("stop",{"stop-color":`var(${l(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,iY)],8,lY),z("rect",{id:`path-3-${l(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,uY)]),z("g",cY,[z("g",dY,[z("g",fY,[z("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${l(t).cssVarBlockName("fill-color-3")})`},null,8,pY),z("polygon",{id:"Rectangle-Copy-14",fill:`var(${l(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,vY),z("g",hY,[z("polygon",{id:"Rectangle-Copy-10",fill:`var(${l(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,mY),z("polygon",{id:"Rectangle-Copy-11",fill:`var(${l(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,gY),z("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${l(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,yY),z("polygon",{id:"Rectangle-Copy-13",fill:`var(${l(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,bY)]),z("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${l(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,wY),z("g",CY,[z("use",{id:"Mask",fill:`var(${l(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${l(n)}`},null,8,SY),z("polygon",{id:"Rectangle-Copy",fill:`var(${l(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${l(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_Y)]),z("polygon",{id:"Rectangle-Copy-18",fill:`var(${l(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,$Y)])])])]))}});var TY=ge(EY,[["__file","img-empty.vue"]]);const JC=be({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),OY=["src"],MY={key:1},AY=G({name:"ElEmpty"}),IY=G({...AY,props:JC,setup(e){const t=e,{t:n}=gt(),o=ce("empty"),r=S(()=>t.description||n("el.table.emptyText")),a=S(()=>({width:tn(t.imageSize)}));return(s,i)=>(_(),x("div",{class:E(l(o).b())},[z("div",{class:E(l(o).e("image")),style:Ie(l(a))},[s.image?(_(),x("img",{key:0,src:s.image,ondragstart:"return false"},null,8,OY)):le(s.$slots,"image",{key:1},()=>[j(TY)])],6),z("div",{class:E(l(o).e("description"))},[s.$slots.description?le(s.$slots,"description",{key:0}):(_(),x("p",MY,me(l(r)),1))],2),s.$slots.default?(_(),x("div",{key:0,class:E(l(o).e("bottom"))},[le(s.$slots,"default")],2)):ee("v-if",!0)],2))}});var NY=ge(IY,[["__file","empty.vue"]]);const Wp=Je(NY),QC=be({urlList:{type:te(Array),default:()=>Ut([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),eS={close:()=>!0,switch:e=>De(e)},RY=["src"],PY=G({name:"ElImageViewer"}),xY=G({...PY,props:QC,emits:eS,setup(e,{expose:t,emit:n}){const o=e,r={CONTAIN:{name:"contain",icon:_l(JB)},ORIGINAL:{name:"original",icon:_l(p5)}},{t:a}=gt(),s=ce("image-viewer"),{nextZIndex:i}=da(),u=M(),c=M([]),f=Fk(),d=M(!0),p=M(o.initialIndex),h=Pt(r.CONTAIN),m=M({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=S(()=>{const{urlList:T}=o;return T.length<=1}),g=S(()=>p.value===0),y=S(()=>p.value===o.urlList.length-1),C=S(()=>o.urlList[p.value]),b=S(()=>{const{scale:T,deg:B,offsetX:A,offsetY:W,enableTransition:Z}=m.value;let K=A/T,X=W/T;switch(B%360){case 90:case-270:[K,X]=[X,-K];break;case 180:case-180:[K,X]=[-K,-X];break;case 270:case-90:[K,X]=[-X,K];break}const se={transform:`scale(${T}) rotate(${B}deg) translate(${K}px, ${X}px)`,transition:Z?"transform .3s":""};return h.value.name===r.CONTAIN.name&&(se.maxWidth=se.maxHeight="100%"),se}),w=S(()=>De(o.zIndex)?o.zIndex:i());function k(){O(),n("close")}function $(){const T=Mr(A=>{switch(A.code){case Ae.esc:o.closeOnPressEscape&&k();break;case Ae.space:D();break;case Ae.left:V();break;case Ae.up:F("zoomIn");break;case Ae.right:U();break;case Ae.down:F("zoomOut");break}}),B=Mr(A=>{const W=A.deltaY||A.deltaX;F(W<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});f.run(()=>{xt(document,"keydown",T),xt(document,"wheel",B)})}function O(){f.stop()}function I(){d.value=!1}function P(T){d.value=!1,T.target.alt=a("el.image.error")}function N(T){if(d.value||T.button!==0||!u.value)return;m.value.enableTransition=!1;const{offsetX:B,offsetY:A}=m.value,W=T.pageX,Z=T.pageY,K=Mr(se=>{m.value={...m.value,offsetX:B+se.pageX-W,offsetY:A+se.pageY-Z}}),X=xt(document,"mousemove",K);xt(document,"mouseup",()=>{X()}),T.preventDefault()}function L(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function D(){if(d.value)return;const T=ql(r),B=Object.values(r),A=h.value.name,Z=(B.findIndex(K=>K.name===A)+1)%T.length;h.value=r[T[Z]],L()}function R(T){const B=o.urlList.length;p.value=(T+B)%B}function V(){g.value&&!o.infinite||R(p.value-1)}function U(){y.value&&!o.infinite||R(p.value+1)}function F(T,B={}){if(d.value)return;const{zoomRate:A,rotateDeg:W,enableTransition:Z}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...B};switch(T){case"zoomOut":m.value.scale>.2&&(m.value.scale=Number.parseFloat((m.value.scale/A).toFixed(3)));break;case"zoomIn":m.value.scale<7&&(m.value.scale=Number.parseFloat((m.value.scale*A).toFixed(3)));break;case"clockwise":m.value.deg+=W;break;case"anticlockwise":m.value.deg-=W;break}m.value.enableTransition=Z}return ue(C,()=>{Ee(()=>{const T=c.value[0];T!=null&&T.complete||(d.value=!0)})}),ue(p,T=>{L(),n("switch",T)}),Ze(()=>{var T,B;$(),(B=(T=u.value)==null?void 0:T.focus)==null||B.call(T)}),t({setActiveItem:R}),(T,B)=>(_(),ne(Ta,{to:"body",disabled:!T.teleported},[j(ln,{name:"viewer-fade",appear:""},{default:Y(()=>[z("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:E(l(s).e("wrapper")),style:Ie({zIndex:l(w)})},[z("div",{class:E(l(s).e("mask")),onClick:B[0]||(B[0]=Le(A=>T.hideOnClickModal&&k(),["self"]))},null,2),ee(" CLOSE "),z("span",{class:E([l(s).e("btn"),l(s).e("close")]),onClick:k},[j(l(ke),null,{default:Y(()=>[j(l(ko))]),_:1})],2),ee(" ARROW "),l(v)?ee("v-if",!0):(_(),x(xe,{key:0},[z("span",{class:E([l(s).e("btn"),l(s).e("prev"),l(s).is("disabled",!T.infinite&&l(g))]),onClick:V},[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1})],2),z("span",{class:E([l(s).e("btn"),l(s).e("next"),l(s).is("disabled",!T.infinite&&l(y))]),onClick:U},[j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})],2)],64)),ee(" ACTIONS "),z("div",{class:E([l(s).e("btn"),l(s).e("actions")])},[z("div",{class:E(l(s).e("actions__inner"))},[j(l(ke),{onClick:B[1]||(B[1]=A=>F("zoomOut"))},{default:Y(()=>[j(l(hV))]),_:1}),j(l(ke),{onClick:B[2]||(B[2]=A=>F("zoomIn"))},{default:Y(()=>[j(l(_y))]),_:1}),z("i",{class:E(l(s).e("actions__divider"))},null,2),j(l(ke),{onClick:D},{default:Y(()=>[(_(),ne(rt(l(h).icon)))]),_:1}),z("i",{class:E(l(s).e("actions__divider"))},null,2),j(l(ke),{onClick:B[3]||(B[3]=A=>F("anticlockwise"))},{default:Y(()=>[j(l(t5))]),_:1}),j(l(ke),{onClick:B[4]||(B[4]=A=>F("clockwise"))},{default:Y(()=>[j(l(s5))]),_:1})],2)],2),ee(" CANVAS "),z("div",{class:E(l(s).e("canvas"))},[(_(!0),x(xe,null,ct(T.urlList,(A,W)=>je((_(),x("img",{ref_for:!0,ref:Z=>c.value[W]=Z,key:A,src:A,style:Ie(l(b)),class:E(l(s).e("img")),onLoad:I,onError:P,onMousedown:N},null,46,RY)),[[St,W===p.value]])),128))],2),le(T.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var LY=ge(xY,[["__file","image-viewer.vue"]]);const Kp=Je(LY),tS=be({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:te([String,Object])},previewSrcList:{type:te(Array),default:()=>Ut([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),nS={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>De(e),close:()=>!0,show:()=>!0},DY=["src","loading"],BY={key:0},FY=G({name:"ElImage",inheritAttrs:!1}),VY=G({...FY,props:tS,emits:nS,setup(e,{emit:t}){const n=e;let o="";const{t:r}=gt(),a=ce("image"),s=Oa(),i=Ii(),u=M(),c=M(!1),f=M(!0),d=M(!1),p=M(),h=M(),m=pt&&"loading"in HTMLImageElement.prototype;let v,g;const y=S(()=>s.style),C=S(()=>{const{fit:T}=n;return pt&&T?{objectFit:T}:{}}),b=S(()=>{const{previewSrcList:T}=n;return Array.isArray(T)&&T.length>0}),w=S(()=>{const{previewSrcList:T,initialIndex:B}=n;let A=B;return B>T.length-1&&(A=0),A}),k=S(()=>n.loading==="eager"?!1:!m&&n.loading==="lazy"||n.lazy),$=()=>{!pt||(f.value=!0,c.value=!1,u.value=n.src)};function O(T){f.value=!1,c.value=!1,t("load",T)}function I(T){f.value=!1,c.value=!0,t("error",T)}function P(){CE(p.value,h.value)&&($(),D())}const N=Oh(P,200,!0);async function L(){var T;if(!pt)return;await Ee();const{scrollContainer:B}=n;vo(B)?h.value=B:it(B)&&B!==""?h.value=(T=document.querySelector(B))!=null?T:void 0:p.value&&(h.value=Dd(p.value)),h.value&&(v=xt(h,"scroll",N),setTimeout(()=>P(),100))}function D(){!pt||!h.value||!N||(v==null||v(),h.value=void 0)}function R(T){if(!!T.ctrlKey){if(T.deltaY<0)return T.preventDefault(),!1;if(T.deltaY>0)return T.preventDefault(),!1}}function V(){!b.value||(g=xt("wheel",R,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function U(){g==null||g(),document.body.style.overflow=o,d.value=!1,t("close")}function F(T){t("switch",T)}return ue(()=>n.src,()=>{k.value?(f.value=!0,c.value=!1,D(),L()):$()}),Ze(()=>{k.value?L():$()}),(T,B)=>(_(),x("div",{ref_key:"container",ref:p,class:E([l(a).b(),T.$attrs.class]),style:Ie(l(y))},[c.value?le(T.$slots,"error",{key:0},()=>[z("div",{class:E(l(a).e("error"))},me(l(r)("el.image.error")),3)]):(_(),x(xe,{key:1},[u.value!==void 0?(_(),x("img",ot({key:0},l(i),{src:u.value,loading:T.loading,style:l(C),class:[l(a).e("inner"),l(b)&&l(a).e("preview"),f.value&&l(a).is("loading")],onClick:V,onLoad:O,onError:I}),null,16,DY)):ee("v-if",!0),f.value?(_(),x("div",{key:1,class:E(l(a).e("wrapper"))},[le(T.$slots,"placeholder",{},()=>[z("div",{class:E(l(a).e("placeholder"))},null,2)])],2)):ee("v-if",!0)],64)),l(b)?(_(),x(xe,{key:2},[d.value?(_(),ne(l(Kp),{key:0,"z-index":T.zIndex,"initial-index":l(w),infinite:T.infinite,"zoom-rate":T.zoomRate,"url-list":T.previewSrcList,"hide-on-click-modal":T.hideOnClickModal,teleported:T.previewTeleported,"close-on-press-escape":T.closeOnPressEscape,onClose:U,onSwitch:F},{default:Y(()=>[T.$slots.viewer?(_(),x("div",BY,[le(T.$slots,"viewer")])):ee("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ee("v-if",!0)],64)):ee("v-if",!0)],6))}});var zY=ge(VY,[["__file","image.vue"]]);const oS=Je(zY),rS=be({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:vn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||De(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),aS={[Bt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Mn]:e=>De(e)||nn(e),[tt]:e=>De(e)||nn(e)},HY=["aria-label","onKeydown"],WY=["aria-label","onKeydown"],KY=G({name:"ElInputNumber"}),jY=G({...KY,props:rS,emits:aS,setup(e,{expose:t,emit:n}){const o=e,{t:r}=gt(),a=ce("input-number"),s=M(),i=At({currentValue:o.modelValue,userInput:null}),{formItem:u}=In(),c=S(()=>De(o.modelValue)&&o.modelValue<=o.min),f=S(()=>De(o.modelValue)&&o.modelValue>=o.max),d=S(()=>{const R=y(o.step);return bn(o.precision)?Math.max(y(o.modelValue),R):(R>o.precision,o.precision)}),p=S(()=>o.controls&&o.controlsPosition==="right"),h=on(),m=An(),v=S(()=>{if(i.userInput!==null)return i.userInput;let R=i.currentValue;if(nn(R))return"";if(De(R)){if(Number.isNaN(R))return"";bn(o.precision)||(R=R.toFixed(o.precision))}return R}),g=(R,V)=>{if(bn(V)&&(V=d.value),V===0)return Math.round(R);let U=String(R);const F=U.indexOf(".");if(F===-1||!U.replace(".","").split("")[F+V])return R;const A=U.length;return U.charAt(A-1)==="5"&&(U=`${U.slice(0,Math.max(0,A-1))}6`),Number.parseFloat(Number(U).toFixed(V))},y=R=>{if(nn(R))return 0;const V=R.toString(),U=V.indexOf(".");let F=0;return U!==-1&&(F=V.length-U-1),F},C=(R,V=1)=>De(R)?g(R+o.step*V):i.currentValue,b=()=>{if(o.readonly||m.value||f.value)return;const R=Number(v.value)||0,V=C(R);$(V),n(Mn,i.currentValue)},w=()=>{if(o.readonly||m.value||c.value)return;const R=Number(v.value)||0,V=C(R,-1);$(V),n(Mn,i.currentValue)},k=(R,V)=>{const{max:U,min:F,step:T,precision:B,stepStrictly:A,valueOnClear:W}=o;UU||ZU?U:F,V&&n(tt,Z)),Z},$=(R,V=!0)=>{var U;const F=i.currentValue,T=k(R);if(!V){n(tt,T);return}F!==T&&(i.userInput=null,n(tt,T),n(Bt,T,F),o.validateEvent&&((U=u==null?void 0:u.validate)==null||U.call(u,"change").catch(B=>void 0)),i.currentValue=T)},O=R=>{i.userInput=R;const V=R===""?null:Number(R);n(Mn,V),$(V,!1)},I=R=>{const V=R!==""?Number(R):"";(De(V)&&!Number.isNaN(V)||R==="")&&$(V),i.userInput=null},P=()=>{var R,V;(V=(R=s.value)==null?void 0:R.focus)==null||V.call(R)},N=()=>{var R,V;(V=(R=s.value)==null?void 0:R.blur)==null||V.call(R)},L=R=>{n("focus",R)},D=R=>{var V;n("blur",R),o.validateEvent&&((V=u==null?void 0:u.validate)==null||V.call(u,"blur").catch(U=>void 0))};return ue(()=>o.modelValue,R=>{const V=k(i.userInput),U=k(R,!0);!De(V)&&(!V||V!==U)&&(i.currentValue=U,i.userInput=null)},{immediate:!0}),Ze(()=>{var R;const{min:V,max:U,modelValue:F}=o,T=(R=s.value)==null?void 0:R.input;if(T.setAttribute("role","spinbutton"),Number.isFinite(U)?T.setAttribute("aria-valuemax",String(U)):T.removeAttribute("aria-valuemax"),Number.isFinite(V)?T.setAttribute("aria-valuemin",String(V)):T.removeAttribute("aria-valuemin"),T.setAttribute("aria-valuenow",String(i.currentValue)),T.setAttribute("aria-disabled",String(m.value)),!De(F)&&F!=null){let B=Number(F);Number.isNaN(B)&&(B=null),n(tt,B)}}),Xr(()=>{var R;const V=(R=s.value)==null?void 0:R.input;V==null||V.setAttribute("aria-valuenow",`${i.currentValue}`)}),t({focus:P,blur:N}),(R,V)=>(_(),x("div",{class:E([l(a).b(),l(a).m(l(h)),l(a).is("disabled",l(m)),l(a).is("without-controls",!R.controls),l(a).is("controls-right",l(p))]),onDragstart:V[1]||(V[1]=Le(()=>{},["prevent"]))},[R.controls?je((_(),x("span",{key:0,role:"button","aria-label":l(r)("el.inputNumber.decrease"),class:E([l(a).e("decrease"),l(a).is("disabled",l(c))]),onKeydown:mt(w,["enter"])},[j(l(ke),null,{default:Y(()=>[l(p)?(_(),ne(l(Ir),{key:0})):(_(),ne(l(CF),{key:1}))]),_:1})],42,HY)),[[l(ps),w]]):ee("v-if",!0),R.controls?je((_(),x("span",{key:1,role:"button","aria-label":l(r)("el.inputNumber.increase"),class:E([l(a).e("increase"),l(a).is("disabled",l(f))]),onKeydown:mt(b,["enter"])},[j(l(ke),null,{default:Y(()=>[l(p)?(_(),ne(l(Si),{key:0})):(_(),ne(l(Cy),{key:1}))]),_:1})],42,WY)),[[l(ps),b]]):ee("v-if",!0),j(l(_n),{id:R.id,ref_key:"input",ref:s,type:"number",step:R.step,"model-value":l(v),placeholder:R.placeholder,readonly:R.readonly,disabled:l(m),size:l(h),max:R.max,min:R.min,name:R.name,label:R.label,"validate-event":!1,onWheel:V[0]||(V[0]=Le(()=>{},["prevent"])),onKeydown:[mt(Le(b,["prevent"]),["up"]),mt(Le(w,["prevent"]),["down"])],onBlur:D,onFocus:L,onInput:O,onChange:I},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var UY=ge(jY,[["__file","input-number.vue"]]);const jp=Je(UY),lS=be({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Dt}}),sS={click:e=>e instanceof MouseEvent},qY=["href"],GY=G({name:"ElLink"}),YY=G({...GY,props:lS,emits:sS,setup(e,{emit:t}){const n=e,o=ce("link"),r=S(()=>[o.b(),o.m(n.type),o.is("disabled",n.disabled),o.is("underline",n.underline&&!n.disabled)]);function a(s){n.disabled||t("click",s)}return(s,i)=>(_(),x("a",{class:E(l(r)),href:s.disabled||!s.href?void 0:s.href,onClick:a},[s.icon?(_(),ne(l(ke),{key:0},{default:Y(()=>[(_(),ne(rt(s.icon)))]),_:1})):ee("v-if",!0),s.$slots.default?(_(),x("span",{key:1,class:E(l(o).e("inner"))},[le(s.$slots,"default")],2)):ee("v-if",!0),s.$slots.icon?le(s.$slots,"icon",{key:2}):ee("v-if",!0)],10,qY))}});var XY=ge(YY,[["__file","link.vue"]]);const iS=Je(XY);class ZY{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let r=!1;switch(o.code){case Ae.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case Ae.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case Ae.tab:{Bs(t,"mouseleave");break}case Ae.enter:case Ae.space:{r=!0,o.currentTarget.click();break}}return r&&(o.preventDefault(),o.stopPropagation()),!1})})}}var JY=ZY;class QY{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new JY(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ae.down:{Bs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ae.up:{Bs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ae.tab:{Bs(t.currentTarget,"mouseleave");break}case Ae.enter:case Ae.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}var eX=QY;class tX{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new eX(o,t)})}}var nX=tX;const oX=G({name:"ElMenuCollapseTransition",setup(){const e=ce("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){jo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){jn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),$o(n,e.m("collapse"))?(jn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),jo(n,e.m("collapse"))):(jo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),jn(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){jo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function rX(e,t,n,o,r,a){return _(),ne(ln,ot({mode:"out-in"},e.listeners),{default:Y(()=>[le(e.$slots,"default")]),_:3},16)}var aX=ge(oX,[["render",rX],["__file","menu-collapse-transition.vue"]]);function uS(e,t){const n=S(()=>{let r=e.parent;const a=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&a.unshift(r.props.index),r=r.parent;return a});return{parentMenu:S(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function lX(e){return S(()=>{const n=e.backgroundColor;return n?new gw(n).shade(20).toString():""})}const cS=(e,t)=>{const n=ce("menu");return S(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":lX(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},dS=be({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Dt},expandOpenIcon:{type:Dt},collapseCloseIcon:{type:Dt},collapseOpenIcon:{type:Dt}}),Iu="ElSubMenu";var Up=G({name:Iu,props:dS,setup(e,{slots:t,expose:n}){Oo({from:"popper-append-to-body",replacement:"teleported",scope:Iu,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},S(()=>e.popperAppendToBody!==void 0));const o=nt(),{indexPath:r,parentMenu:a}=uS(o,S(()=>e.index)),s=ce("menu"),i=ce("sub-menu"),u=Oe("rootMenu");u||cn(Iu,"can not inject root menu");const c=Oe(`subMenu:${a.value.uid}`);c||cn(Iu,"can not inject sub menu");const f=M({}),d=M({});let p;const h=M(!1),m=M(),v=M(null),g=S(()=>L.value==="horizontal"&&C.value?"bottom-start":"right-start"),y=S(()=>L.value==="horizontal"&&C.value||L.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?$.value?e.expandOpenIcon:e.expandCloseIcon:Ir:e.collapseCloseIcon&&e.collapseOpenIcon?$.value?e.collapseOpenIcon:e.collapseCloseIcon:Fn),C=S(()=>c.level===0),b=S(()=>{var W;const Z=(W=e.teleported)!=null?W:e.popperAppendToBody;return Z===void 0?C.value:Z}),w=S(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),k=S(()=>L.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),$=S(()=>u.openedMenus.includes(e.index)),O=S(()=>{let W=!1;return Object.values(f.value).forEach(Z=>{Z.active&&(W=!0)}),Object.values(d.value).forEach(Z=>{Z.active&&(W=!0)}),W}),I=S(()=>u.props.backgroundColor||""),P=S(()=>u.props.activeTextColor||""),N=S(()=>u.props.textColor||""),L=S(()=>u.props.mode),D=At({index:e.index,indexPath:r,active:O}),R=cS(u.props,c.level+1),V=S(()=>L.value!=="horizontal"?{color:N.value}:{borderBottomColor:O.value?u.props.activeTextColor?P.value:"":"transparent",color:O.value?P.value:N.value}),U=()=>{var W,Z,K;return(K=(Z=(W=v.value)==null?void 0:W.popperRef)==null?void 0:Z.popperInstanceRef)==null?void 0:K.destroy()},F=W=>{W||U()},T=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:r.value,active:O.value})},B=(W,Z=e.showTimeout)=>{var K;W.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,p==null||p(),{stop:p}=Jr(()=>{u.openMenu(e.index,r.value)},Z),b.value&&((K=a.value.vnode.el)==null||K.dispatchEvent(new MouseEvent("mouseenter")))))},A=(W=!1)=>{var Z,K;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(p==null||p(),c.mouseInChild.value=!1,{stop:p}=Jr(()=>!h.value&&u.closeMenu(e.index,r.value),e.hideTimeout),b.value&&W&&((Z=o.parent)==null?void 0:Z.type.name)==="ElSubMenu"&&((K=c.handleMouseleave)==null||K.call(c,!0)))};ue(()=>u.props.collapse,W=>F(Boolean(W)));{const W=K=>{d.value[K.index]=K},Z=K=>{delete d.value[K.index]};ut(`subMenu:${o.uid}`,{addSubMenu:W,removeSubMenu:Z,handleMouseleave:A,mouseInChild:h,level:c.level+1})}return n({opened:$}),Ze(()=>{u.addSubMenu(D),c.addSubMenu(D)}),qt(()=>{c.removeSubMenu(D),u.removeSubMenu(D)}),()=>{var W;const Z=[(W=t.title)==null?void 0:W.call(t),Ne(ke,{class:i.e("icon-arrow"),style:{transform:$.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>it(y.value)?Ne(o.appContext.components[y.value]):Ne(y.value)})],K=u.isMenuPopup?Ne(Nn,{ref:v,visible:$.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:b.value,fallbackPlacements:k.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var X;return Ne("div",{class:[s.m(L.value),s.m("popup-container"),e.popperClass],onMouseenter:se=>B(se,100),onMouseleave:()=>A(!0),onFocus:se=>B(se,100)},[Ne("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${g.value}`)],style:R.value},[(X=t.default)==null?void 0:X.call(t)])])},default:()=>Ne("div",{class:i.e("title"),style:[V.value,{backgroundColor:I.value}],onClick:T},Z)}):Ne(xe,{},[Ne("div",{class:i.e("title"),style:[V.value,{backgroundColor:I.value}],ref:m,onClick:T},Z),Ne($u,{},{default:()=>{var X;return je(Ne("ul",{role:"menu",class:[s.b(),s.m("inline")],style:R.value},[(X=t.default)==null?void 0:X.call(t)]),[[St,$.value]])}})]);return Ne("li",{class:[i.b(),i.is("active",O.value),i.is("opened",$.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$.value,onMouseenter:B,onMouseleave:()=>A(!0),onFocus:B},[K])}}});const fS=be({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:te(Array),default:()=>Ut([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),qp=e=>Array.isArray(e)&&e.every(t=>it(t)),pS={close:(e,t)=>it(e)&&qp(t),open:(e,t)=>it(e)&&qp(t),select:(e,t,n,o)=>it(e)&&qp(t)&&Rt(n)&&(o===void 0||o instanceof Promise)};var sX=G({name:"ElMenu",props:fS,emits:pS,setup(e,{emit:t,slots:n,expose:o}){const r=nt(),a=r.appContext.config.globalProperties.$router,s=M(),i=ce("menu"),u=ce("sub-menu"),c=M(-1),f=M(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=M(e.defaultActive),p=M({}),h=M({}),m=S(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const L=d.value&&p.value[d.value];if(!L||e.mode==="horizontal"||e.collapse)return;L.indexPath.forEach(R=>{const V=h.value[R];V&&g(R,V.indexPath)})},g=(L,D)=>{f.value.includes(L)||(e.uniqueOpened&&(f.value=f.value.filter(R=>D.includes(R))),f.value.push(L),t("open",L,D))},y=L=>{const D=f.value.indexOf(L);D!==-1&&f.value.splice(D,1)},C=(L,D)=>{y(L),t("close",L,D)},b=({index:L,indexPath:D})=>{f.value.includes(L)?C(L,D):g(L,D)},w=L=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:D,indexPath:R}=L;if(!(nn(D)||nn(R)))if(e.router&&a){const V=L.route||D,U=a.push(V).then(F=>(F||(d.value=D),F));t("select",D,R,{index:D,indexPath:R,route:V},U)}else d.value=D,t("select",D,R,{index:D,indexPath:R})},k=L=>{const D=p.value,R=D[L]||d.value&&D[d.value]||D[e.defaultActive];R?d.value=R.index:d.value=L},$=()=>{var L,D;if(!s.value)return-1;const R=Array.from((D=(L=s.value)==null?void 0:L.childNodes)!=null?D:[]).filter(W=>W.nodeName!=="#comment"&&(W.nodeName!=="#text"||W.nodeValue)),V=64,U=Number.parseInt(getComputedStyle(s.value).paddingLeft,10),F=Number.parseInt(getComputedStyle(s.value).paddingRight,10),T=s.value.clientWidth-U-F;let B=0,A=0;return R.forEach((W,Z)=>{B+=W.offsetWidth||0,B<=T-V&&(A=Z+1)}),A===R.length?-1:A},O=(L,D=33.34)=>{let R;return()=>{R&&clearTimeout(R),R=setTimeout(()=>{L()},D)}};let I=!0;const P=()=>{const L=()=>{c.value=-1,Ee(()=>{c.value=$()})};I?L():O(L)(),I=!1};ue(()=>e.defaultActive,L=>{p.value[L]||(d.value=""),k(L)}),ue(()=>e.collapse,L=>{L&&(f.value=[])}),ue(p.value,v);let N;Yn(()=>{e.mode==="horizontal"&&e.ellipsis?N=En(s,P).stop:N==null||N()});{const L=U=>{h.value[U.index]=U},D=U=>{delete h.value[U.index]};ut("rootMenu",At({props:e,openedMenus:f,items:p,subMenus:h,activeIndex:d,isMenuPopup:m,addMenuItem:U=>{p.value[U.index]=U},removeMenuItem:U=>{delete p.value[U.index]},addSubMenu:L,removeSubMenu:D,openMenu:g,closeMenu:C,handleMenuItemClick:w,handleSubMenuClick:b})),ut(`subMenu:${r.uid}`,{addSubMenu:L,removeSubMenu:D,mouseInChild:M(!1),level:0})}return Ze(()=>{e.mode==="horizontal"&&new nX(r.vnode.el,i.namespace.value)}),o({open:D=>{const{indexPath:R}=h.value[D];R.forEach(V=>g(V,R))},close:y,handleResize:P}),()=>{var L,D;let R=(D=(L=n.default)==null?void 0:L.call(n))!=null?D:[];const V=[];if(e.mode==="horizontal"&&s.value){const T=Ua(R),B=c.value===-1?T:T.slice(0,c.value),A=c.value===-1?[]:T.slice(c.value);(A==null?void 0:A.length)&&e.ellipsis&&(R=B,V.push(Ne(Up,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Ne(ke,{class:u.e("icon-more")},{default:()=>Ne(NF)}),default:()=>A})))}const U=cS(e,0),F=Ne("ul",{key:String(e.collapse),role:"menubar",ref:s,style:U.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...R,...V]);return e.collapseTransition&&e.mode==="vertical"?Ne(aX,()=>F):F}}});const vS=be({index:{type:te([String,null]),default:null},route:{type:te([String,Object])},disabled:Boolean}),hS={click:e=>it(e.index)&&Array.isArray(e.indexPath)},Gp="ElMenuItem",iX=G({name:Gp,components:{ElTooltip:Nn},props:vS,emits:hS,setup(e,{emit:t}){const n=nt(),o=Oe("rootMenu"),r=ce("menu"),a=ce("menu-item");o||cn(Gp,"can not inject root menu");const{parentMenu:s,indexPath:i}=uS(n,Kt(e,"index")),u=Oe(`subMenu:${s.value.uid}`);u||cn(Gp,"can not inject sub menu");const c=S(()=>e.index===o.activeIndex),f=At({index:e.index,indexPath:i,active:c}),d=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",f))};return Ze(()=>{u.addSubMenu(f),o.addMenuItem(f)}),qt(()=>{u.removeSubMenu(f),o.removeMenuItem(f)}),{parentMenu:s,rootMenu:o,active:c,nsMenu:r,nsMenuItem:a,handleClick:d}}});function uX(e,t,n,o,r,a){const s=Ke("el-tooltip");return _(),x("li",{class:E([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(_(),ne(s,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Y(()=>[le(e.$slots,"title")]),default:Y(()=>[z("div",{class:E(e.nsMenu.be("tooltip","trigger"))},[le(e.$slots,"default")],2)]),_:3},8,["effect"])):(_(),x(xe,{key:1},[le(e.$slots,"default"),le(e.$slots,"title")],64))],2)}var mS=ge(iX,[["render",uX],["__file","menu-item.vue"]]);const gS={title:String},cX="ElMenuItemGroup",dX=G({name:cX,props:gS,setup(){return{ns:ce("menu-item-group")}}});function fX(e,t,n,o,r,a){return _(),x("li",{class:E(e.ns.b())},[z("div",{class:E(e.ns.e("title"))},[e.$slots.title?le(e.$slots,"title",{key:1}):(_(),x(xe,{key:0},[Ct(me(e.title),1)],64))],2),z("ul",null,[le(e.$slots,"default")])],2)}var yS=ge(dX,[["render",fX],["__file","menu-item-group.vue"]]);const bS=Je(sX,{MenuItem:mS,MenuItemGroup:yS,SubMenu:Up}),wS=Xt(mS),CS=Xt(yS),SS=Xt(Up),_S=be({icon:{type:Dt,default:()=>CD},title:String,content:{type:String,default:""}}),$S={back:()=>!0},pX=["aria-label"],vX=G({name:"ElPageHeader"}),hX=G({...vX,props:_S,emits:$S,setup(e,{emit:t}){const n=gn(),{t:o}=gt(),r=ce("page-header"),a=S(()=>[r.b(),{[r.m("has-breadcrumb")]:!!n.breadcrumb,[r.m("has-extra")]:!!n.extra,[r.is("contentful")]:!!n.default}]);function s(){t("back")}return(i,u)=>(_(),x("div",{class:E(l(a))},[i.$slots.breadcrumb?(_(),x("div",{key:0,class:E(l(r).e("breadcrumb"))},[le(i.$slots,"breadcrumb")],2)):ee("v-if",!0),z("div",{class:E(l(r).e("header"))},[z("div",{class:E(l(r).e("left"))},[z("div",{class:E(l(r).e("back")),role:"button",tabindex:"0",onClick:s},[i.icon||i.$slots.icon?(_(),x("div",{key:0,"aria-label":i.title||l(o)("el.pageHeader.title"),class:E(l(r).e("icon"))},[le(i.$slots,"icon",{},()=>[i.icon?(_(),ne(l(ke),{key:0},{default:Y(()=>[(_(),ne(rt(i.icon)))]),_:1})):ee("v-if",!0)])],10,pX)):ee("v-if",!0),z("div",{class:E(l(r).e("title"))},[le(i.$slots,"title",{},()=>[Ct(me(i.title||l(o)("el.pageHeader.title")),1)])],2)],2),j(l(Dp),{direction:"vertical"}),z("div",{class:E(l(r).e("content"))},[le(i.$slots,"content",{},()=>[Ct(me(i.content),1)])],2)],2),i.$slots.extra?(_(),x("div",{key:0,class:E(l(r).e("extra"))},[le(i.$slots,"extra")],2)):ee("v-if",!0)],2),i.$slots.default?(_(),x("div",{key:1,class:E(l(r).e("main"))},[le(i.$slots,"default")],2)):ee("v-if",!0)],2))}});var mX=ge(hX,[["__file","page-header.vue"]]);const kS=Je(mX),Yp=Symbol("elPaginationKey"),gX=be({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Dt}}),yX={click:e=>e instanceof MouseEvent},bX=["disabled","aria-label","aria-disabled"],wX={key:0},CX=G({name:"ElPaginationPrev"}),SX=G({...CX,props:gX,emits:yX,setup(e){const t=e,{t:n}=gt(),o=S(()=>t.disabled||t.currentPage<=1);return(r,a)=>(_(),x("button",{type:"button",class:"btn-prev",disabled:l(o),"aria-label":r.prevText||l(n)("el.pagination.prev"),"aria-disabled":l(o),onClick:a[0]||(a[0]=s=>r.$emit("click",s))},[r.prevText?(_(),x("span",wX,me(r.prevText),1)):(_(),ne(l(ke),{key:1},{default:Y(()=>[(_(),ne(rt(r.prevIcon)))]),_:1}))],8,bX))}});var _X=ge(SX,[["__file","prev.vue"]]);const $X=be({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Dt}}),kX=["disabled","aria-label","aria-disabled"],EX={key:0},TX=G({name:"ElPaginationNext"}),OX=G({...TX,props:$X,emits:["click"],setup(e){const t=e,{t:n}=gt(),o=S(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,a)=>(_(),x("button",{type:"button",class:"btn-next",disabled:l(o),"aria-label":r.nextText||l(n)("el.pagination.next"),"aria-disabled":l(o),onClick:a[0]||(a[0]=s=>r.$emit("click",s))},[r.nextText?(_(),x("span",EX,me(r.nextText),1)):(_(),ne(l(ke),{key:1},{default:Y(()=>[(_(),ne(rt(r.nextIcon)))]),_:1}))],8,kX))}});var MX=ge(OX,[["__file","next.vue"]]);const Xp=Symbol("ElSelectGroup"),sl=Symbol("ElSelect");function AX(e,t){const n=Oe(sl),o=Oe(Xp,{disabled:!1}),r=S(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),a=S(()=>n.props.multiple?d(n.props.modelValue,e.value):p(e.value,n.props.modelValue)),s=S(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!a.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),i=S(()=>e.label||(r.value?"":e.value)),u=S(()=>e.value||e.label||""),c=S(()=>e.disabled||t.groupDisabled||s.value),f=nt(),d=(v=[],g)=>{if(r.value){const y=n.props.valueKey;return v&&v.some(C=>Ma(zt(C,y))===zt(g,y))}else return v&&v.includes(g)},p=(v,g)=>{if(r.value){const{valueKey:y}=n.props;return zt(v,y)===zt(g,y)}else return v===g},h=()=>{!e.disabled&&!o.disabled&&(n.hoverIndex=n.optionsArray.indexOf(f.proxy))};ue(()=>i.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ue(()=>e.value,(v,g)=>{const{remote:y,valueKey:C}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,f.proxy),n.onOptionCreate(f.proxy)),!e.created&&!y){if(C&&typeof v=="object"&&typeof g=="object"&&v[C]===g[C])return;n.setSelected()}}),ue(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:m}=Ma(n);return ue(m,v=>{const{query:g}=l(v),y=new RegExp(vy(g),"i");t.visible=y.test(i.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:i,currentValue:u,itemSelected:a,isDisabled:c,hoverItem:h}}const IX=G({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=ce("select"),n=At({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:r,isDisabled:a,select:s,hoverItem:i}=AX(e,n),{visible:u,hover:c}=dn(n),f=nt().proxy;s.onOptionCreate(f),qt(()=>{const p=f.value,{selected:h}=s,v=(s.props.multiple?h:[h]).some(g=>g.value===f.value);Ee(()=>{s.cachedOptions.get(p)===f&&!v&&s.cachedOptions.delete(p)}),s.onOptionDestroy(p,f)});function d(){e.disabled!==!0&&n.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:t,currentLabel:o,itemSelected:r,isDisabled:a,select:s,hoverItem:i,visible:u,hover:c,selectOptionClick:d,states:n}}});function NX(e,t,n,o,r,a){return je((_(),x("li",{class:E([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Le((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[le(e.$slots,"default",{},()=>[z("span",null,me(e.currentLabel),1)])],34)),[[St,e.visible]])}var Zp=ge(IX,[["render",NX],["__file","option.vue"]]);const RX=G({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Oe(sl),t=ce("select"),n=S(()=>e.props.popperClass),o=S(()=>e.props.multiple),r=S(()=>e.props.fitInputWidth),a=M("");function s(){var i;a.value=`${(i=e.selectWrapper)==null?void 0:i.offsetWidth}px`}return Ze(()=>{s(),En(e.selectWrapper,s)}),{ns:t,minWidth:a,popperClass:n,isMultiple:o,isFitInputWidth:r}}});function PX(e,t,n,o,r,a){return _(),x("div",{class:E([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ie({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[le(e.$slots,"default")],6)}var xX=ge(RX,[["render",PX],["__file","select-dropdown.vue"]]);function LX(e){const{t}=gt();return At({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}let Jp=!1;const DX=(e,t,n)=>{const{t:o}=gt(),r=ce("select");Oo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},S(()=>e.suffixTransition===!1));const a=M(null),s=M(null),i=M(null),u=M(null),c=M(null),f=M(null),d=M(null),p=M(-1),h=Pt({query:""}),m=Pt(""),v=M([]);let g=0;const{form:y,formItem:C}=In(),b=S(()=>!e.filterable||e.multiple||!t.visible),w=S(()=>e.disabled||(y==null?void 0:y.disabled)),k=S(()=>{const fe=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!w.value&&t.inputHovering&&fe}),$=S(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),O=S(()=>r.is("reverse",$.value&&t.visible&&e.suffixTransition)),I=S(()=>e.remote?300:0),P=S(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),N=S(()=>{const fe=Array.from(t.options.values()),_e=[];return v.value.forEach(Ue=>{const at=fe.findIndex(vt=>vt.currentLabel===Ue);at>-1&&_e.push(fe[at])}),_e.length?_e:fe}),L=S(()=>Array.from(t.cachedOptions.values())),D=S(()=>{const fe=N.value.filter(_e=>!_e.created).some(_e=>_e.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!fe}),R=on(),V=S(()=>["small"].includes(R.value)?"small":"default"),U=S({get(){return t.visible&&P.value!==!1},set(fe){t.visible=fe}});ue([()=>w.value,()=>R.value,()=>y==null?void 0:y.size],()=>{Ee(()=>{F()})}),ue(()=>e.placeholder,fe=>{t.cachedPlaceHolder=t.currentPlaceholder=fe,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),ue(()=>e.modelValue,(fe,_e)=>{e.multiple&&(F(),fe&&fe.length>0||s.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",T(t.query))),W(),e.filterable&&!e.multiple&&(t.inputLength=20),!Dn(fe,_e)&&e.validateEvent&&(C==null||C.validate("change").catch(Ue=>void 0))},{flush:"post",deep:!0}),ue(()=>t.visible,fe=>{var _e,Ue,at,vt,Mt;fe?((Ue=(_e=u.value)==null?void 0:_e.updatePopper)==null||Ue.call(_e),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(vt=(at=i.value)==null?void 0:at.focus)==null||vt.call(at),e.multiple?(Mt=s.value)==null||Mt.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),T(t.query),!e.multiple&&!e.remote&&(h.value.query="",$l(h),$l(m)))):(e.filterable&&($t(e.filterMethod)&&e.filterMethod(""),$t(e.remoteMethod)&&e.remoteMethod("")),s.value&&s.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,K(),Ee(()=>{s.value&&s.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",fe)}),ue(()=>t.options.entries(),()=>{var fe,_e,Ue;if(!pt)return;(_e=(fe=u.value)==null?void 0:fe.updatePopper)==null||_e.call(fe),e.multiple&&F();const at=((Ue=f.value)==null?void 0:Ue.querySelectorAll("input"))||[];Array.from(at).includes(document.activeElement)||W(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&A()},{flush:"post"}),ue(()=>t.hoverIndex,fe=>{De(fe)&&fe>-1?p.value=N.value[fe]||{}:p.value={},N.value.forEach(_e=>{_e.hover=p.value===_e})});const F=()=>{Ee(()=>{var fe,_e;if(!a.value)return;const Ue=a.value.$el.querySelector("input");g=g||(Ue.clientHeight>0?Ue.clientHeight+2:0);const at=c.value,vt=yV(R.value||(y==null?void 0:y.size)),Mt=R.value||vt===g||g<=0?vt:g;!(Ue.offsetParent===null)&&(Ue.style.height=`${(t.selected.length===0?Mt:Math.max(at?at.clientHeight+(at.clientHeight>Mt?6:0):0,Mt))-2}px`),t.tagInMultiLine=Number.parseFloat(Ue.style.height)>=Mt,t.visible&&P.value!==!1&&((_e=(fe=u.value)==null?void 0:fe.updatePopper)==null||_e.call(fe))})},T=async fe=>{if(!(t.previousQuery===fe||t.isOnComposition)){if(t.previousQuery===null&&($t(e.filterMethod)||$t(e.remoteMethod))){t.previousQuery=fe;return}t.previousQuery=fe,Ee(()=>{var _e,Ue;t.visible&&((Ue=(_e=u.value)==null?void 0:_e.updatePopper)==null||Ue.call(_e))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ee(()=>{const _e=s.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,_e):_e,B(),F()}),e.remote&&$t(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(fe)):$t(e.filterMethod)?(e.filterMethod(fe),$l(m)):(t.filteredOptionsCount=t.optionsCount,h.value.query=fe,$l(h),$l(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ee(),A())}},B=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=s.value.value?"":t.cachedPlaceHolder)},A=()=>{const fe=N.value.filter(at=>at.visible&&!at.disabled&&!at.states.groupDisabled),_e=fe.find(at=>at.created),Ue=fe[0];t.hoverIndex=Ve(N.value,_e||Ue)},W=()=>{var fe;if(e.multiple)t.selectedLabel="";else{const Ue=Z(e.modelValue);(fe=Ue.props)!=null&&fe.created?(t.createdLabel=Ue.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ue.currentLabel,t.selected=Ue,e.filterable&&(t.query=t.selectedLabel);return}const _e=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ue=>{_e.push(Z(Ue))}),t.selected=_e,Ee(()=>{F()})},Z=fe=>{let _e;const Ue=gc(fe).toLowerCase()==="object",at=gc(fe).toLowerCase()==="null",vt=gc(fe).toLowerCase()==="undefined";for(let he=t.cachedOptions.size-1;he>=0;he--){const Me=L.value[he];if(Ue?zt(Me.value,e.valueKey)===zt(fe,e.valueKey):Me.value===fe){_e={value:fe,currentLabel:Me.currentLabel,isDisabled:Me.isDisabled};break}}if(_e)return _e;const Mt=Ue?fe.label:!at&&!vt?fe:"",fn={value:fe,currentLabel:Mt};return e.multiple&&(fn.hitState=!1),fn},K=()=>{setTimeout(()=>{const fe=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(_e=>N.value.findIndex(Ue=>zt(Ue,fe)===zt(_e,fe)))):t.hoverIndex=-1:t.hoverIndex=N.value.findIndex(_e=>ye(_e)===ye(t.selected))},300)},X=()=>{var fe,_e;se(),(_e=(fe=u.value)==null?void 0:fe.updatePopper)==null||_e.call(fe),e.multiple&&F()},se=()=>{var fe;t.inputWidth=(fe=a.value)==null?void 0:fe.$el.offsetWidth},ve=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,T(t.query))},re=On(()=>{ve()},I.value),ie=On(fe=>{T(fe.target.value)},I.value),J=fe=>{Dn(e.modelValue,fe)||n.emit(Bt,fe)},oe=fe=>{if(fe.code!==Ae.delete){if(fe.target.value.length<=0&&!Pe()){const _e=e.modelValue.slice();_e.pop(),n.emit(tt,_e),J(_e)}fe.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},de=(fe,_e)=>{const Ue=t.selected.indexOf(_e);if(Ue>-1&&!w.value){const at=e.modelValue.slice();at.splice(Ue,1),n.emit(tt,at),J(at),n.emit("remove-tag",_e.value)}fe.stopPropagation()},Te=fe=>{fe.stopPropagation();const _e=e.multiple?[]:"";if(!it(_e))for(const Ue of t.selected)Ue.isDisabled&&_e.push(Ue.value);n.emit(tt,_e),J(_e),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},Re=fe=>{var _e;if(e.multiple){const Ue=(e.modelValue||[]).slice(),at=Ve(Ue,fe.value);at>-1?Ue.splice(at,1):(e.multipleLimit<=0||Ue.length{Ge(fe)})},Ve=(fe=[],_e)=>{if(!Rt(_e))return fe.indexOf(_e);const Ue=e.valueKey;let at=-1;return fe.some((vt,Mt)=>Ma(zt(vt,Ue))===zt(_e,Ue)?(at=Mt,!0):!1),at},We=()=>{const fe=s.value||a.value;fe&&(fe==null||fe.focus())},Ge=fe=>{var _e,Ue,at,vt,Mt;const fn=Array.isArray(fe)?fe[0]:fe;let he=null;if(fn!=null&&fn.value){const Me=N.value.filter(ft=>ft.value===fn.value);Me.length>0&&(he=Me[0].$el)}if(u.value&&he){const Me=(vt=(at=(Ue=(_e=u.value)==null?void 0:_e.popperRef)==null?void 0:Ue.contentRef)==null?void 0:at.querySelector)==null?void 0:vt.call(at,`.${r.be("dropdown","wrap")}`);Me&&gy(Me,he)}(Mt=d.value)==null||Mt.handleScroll()},yt=fe=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(fe.value,fe),t.cachedOptions.set(fe.value,fe)},Se=(fe,_e)=>{t.options.get(fe)===_e&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(fe))},Fe=fe=>{fe.code!==Ae.backspace&&Pe(!1),t.inputLength=s.value.value.length*15+20,F()},Pe=fe=>{if(!Array.isArray(t.selected))return;const _e=t.selected[t.selected.length-1];if(!!_e)return fe===!0||fe===!1?(_e.hitState=fe,fe):(_e.hitState=!_e.hitState,_e.hitState)},He=fe=>{const _e=fe.target.value;if(fe.type==="compositionend")t.isOnComposition=!1,Ee(()=>T(_e));else{const Ue=_e[_e.length-1]||"";t.isOnComposition=!Oi(Ue)}},Be=()=>{Ee(()=>Ge(t.selected))},Xe=fe=>{Jp?Jp=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",fe))},Qe=()=>{var fe,_e,Ue;t.visible=!1,(fe=a.value)==null||fe.blur(),(Ue=(_e=i.value)==null?void 0:_e.blur)==null||Ue.call(_e)},Ce=fe=>{setTimeout(()=>{var _e;if((_e=u.value)!=null&&_e.isFocusInsideContent()){Jp=!0;return}t.visible&&ht(),n.emit("blur",fe)})},ze=fe=>{Te(fe)},ht=()=>{t.visible=!1},Ot=fe=>{t.visible&&(fe.preventDefault(),fe.stopPropagation(),t.visible=!1)},lt=fe=>{var _e;fe&&!t.mouseEnter||w.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((_e=s.value||a.value)==null||_e.focus()))},we=()=>{t.visible?N.value[t.hoverIndex]&&Re(N.value[t.hoverIndex]):lt()},ye=fe=>Rt(fe.value)?zt(fe.value,e.valueKey):fe.value,ae=S(()=>N.value.filter(fe=>fe.visible).every(fe=>fe.disabled)),q=S(()=>t.selected.slice(0,e.maxCollapseTags)),Q=S(()=>t.selected.slice(e.maxCollapseTags)),pe=fe=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ae.value){fe==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):fe==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const _e=N.value[t.hoverIndex];(_e.disabled===!0||_e.states.groupDisabled===!0||!_e.visible)&&pe(fe),Ee(()=>Ge(p.value))}};return{optionList:v,optionsArray:N,selectSize:R,handleResize:X,debouncedOnInputChange:re,debouncedQueryChange:ie,deletePrevTag:oe,deleteTag:de,deleteSelected:Te,handleOptionSelect:Re,scrollToOption:Ge,readonly:b,resetInputHeight:F,showClose:k,iconComponent:$,iconReverse:O,showNewOption:D,collapseTagSize:V,setSelected:W,managePlaceholder:B,selectDisabled:w,emptyText:P,toggleLastOptionHitState:Pe,resetInputState:Fe,handleComposition:He,onOptionCreate:yt,onOptionDestroy:Se,handleMenuEnter:Be,handleFocus:Xe,blur:Qe,handleBlur:Ce,handleClearClick:ze,handleClose:ht,handleKeydownEscape:Ot,toggleMenu:lt,selectOption:we,getValueKey:ye,navigateOptions:pe,dropMenuVisible:U,queryChange:h,groupQueryChange:m,showTagList:q,collapseTagList:Q,reference:a,input:s,iOSInput:i,tooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var BX=G({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let o=[];function r(a,s){if(a.length!==s.length)return!1;for(const[i]of a.entries())if(a[i]!=s[i])return!1;return!0}return()=>{var a,s;const i=(a=t.default)==null?void 0:a.call(t),u=[];function c(f){!Array.isArray(f)||f.forEach(d=>{var p,h,m,v;const g=(p=(d==null?void 0:d.type)||{})==null?void 0:p.name;g==="ElOptionGroup"?c(!it(d.children)&&!Array.isArray(d.children)&&$t((h=d.children)==null?void 0:h.default)?(m=d.children)==null?void 0:m.default():d.children):g==="ElOption"?u.push((v=d.props)==null?void 0:v.label):Array.isArray(d.children)&&c(d.children)})}return i.length&&c((s=i[0])==null?void 0:s.children),r(u,o)||(o=u,n("update-options",u)),i}}});const ES="ElSelect",FX=G({name:ES,componentName:ES,components:{ElInput:_n,ElSelectMenu:xX,ElOption:Zp,ElOptions:BX,ElTag:al,ElScrollbar:Zo,ElTooltip:Nn,ElIcon:ke},directives:{ClickOutside:yr},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Ti},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:mn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Dt,default:Rr},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Dt,default:Ir},tagType:{...Cu.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:ua,default:"bottom-start"}},emits:[tt,Bt,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=ce("select"),o=ce("input"),{t:r}=gt(),a=LX(e),{optionList:s,optionsArray:i,selectSize:u,readonly:c,handleResize:f,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:v,deleteSelected:g,handleOptionSelect:y,scrollToOption:C,setSelected:b,resetInputHeight:w,managePlaceholder:k,showClose:$,selectDisabled:O,iconComponent:I,iconReverse:P,showNewOption:N,emptyText:L,toggleLastOptionHitState:D,resetInputState:R,handleComposition:V,onOptionCreate:U,onOptionDestroy:F,handleMenuEnter:T,handleFocus:B,blur:A,handleBlur:W,handleClearClick:Z,handleClose:K,handleKeydownEscape:X,toggleMenu:se,selectOption:ve,getValueKey:re,navigateOptions:ie,dropMenuVisible:J,reference:oe,input:de,iOSInput:Te,tooltipRef:Re,tags:Ve,selectWrapper:We,scrollbar:Ge,queryChange:yt,groupQueryChange:Se,handleMouseEnter:Fe,handleMouseLeave:Pe,showTagList:He,collapseTagList:Be}=DX(e,a,t),{focus:Xe}=Iy(oe),{inputWidth:Qe,selected:Ce,inputLength:ze,filteredOptionsCount:ht,visible:Ot,selectedLabel:lt,hoverIndex:we,query:ye,inputHovering:ae,currentPlaceholder:q,menuVisibleOnFocus:Q,isOnComposition:pe,options:$e,cachedOptions:st,optionsCount:fe,prefixWidth:_e,tagInMultiLine:Ue}=dn(a),at=S(()=>{const Me=[n.b()],ft=l(u);return ft&&Me.push(n.m(ft)),e.disabled&&Me.push(n.m("disabled")),Me}),vt=S(()=>({maxWidth:`${l(Qe)-32}px`,width:"100%"})),Mt=S(()=>({maxWidth:`${l(Qe)>123?l(Qe)-123:l(Qe)-75}px`}));ut(sl,At({props:e,options:$e,optionsArray:i,cachedOptions:st,optionsCount:fe,filteredOptionsCount:ht,hoverIndex:we,handleOptionSelect:y,onOptionCreate:U,onOptionDestroy:F,selectWrapper:We,selected:Ce,setSelected:b,queryChange:yt,groupQueryChange:Se})),Ze(()=>{a.cachedPlaceHolder=q.value=e.placeholder||(()=>r("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(q.value=""),En(We,f),e.remote&&e.multiple&&w(),Ee(()=>{const Me=oe.value&&oe.value.$el;if(!!Me&&(Qe.value=Me.getBoundingClientRect().width,t.slots.prefix)){const ft=Me.querySelector(`.${o.e("prefix")}`);_e.value=Math.max(ft.getBoundingClientRect().width+5,30)}}),b()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(tt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(tt,"");const fn=S(()=>{var Me,ft;return(ft=(Me=Re.value)==null?void 0:Me.popperRef)==null?void 0:ft.contentRef});return{isIOS:eE,onOptionsRendered:Me=>{s.value=Me},tagInMultiLine:Ue,prefixWidth:_e,selectSize:u,readonly:c,handleResize:f,collapseTagSize:d,debouncedOnInputChange:p,debouncedQueryChange:h,deletePrevTag:m,deleteTag:v,deleteSelected:g,handleOptionSelect:y,scrollToOption:C,inputWidth:Qe,selected:Ce,inputLength:ze,filteredOptionsCount:ht,visible:Ot,selectedLabel:lt,hoverIndex:we,query:ye,inputHovering:ae,currentPlaceholder:q,menuVisibleOnFocus:Q,isOnComposition:pe,options:$e,resetInputHeight:w,managePlaceholder:k,showClose:$,selectDisabled:O,iconComponent:I,iconReverse:P,showNewOption:N,emptyText:L,toggleLastOptionHitState:D,resetInputState:R,handleComposition:V,handleMenuEnter:T,handleFocus:B,blur:A,handleBlur:W,handleClearClick:Z,handleClose:K,handleKeydownEscape:X,toggleMenu:se,selectOption:ve,getValueKey:re,navigateOptions:ie,dropMenuVisible:J,focus:Xe,reference:oe,input:de,iOSInput:Te,tooltipRef:Re,popperPaneRef:fn,tags:Ve,selectWrapper:We,scrollbar:Ge,wrapperKls:at,selectTagsStyle:vt,nsSelect:n,tagTextStyle:Mt,handleMouseEnter:Fe,handleMouseLeave:Pe,showTagList:He,collapseTagList:Be}}}),VX=["disabled","autocomplete"],zX=["disabled"],HX={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function WX(e,t,n,o,r,a){const s=Ke("el-tag"),i=Ke("el-tooltip"),u=Ke("el-icon"),c=Ke("el-input"),f=Ke("el-option"),d=Ke("el-options"),p=Ke("el-scrollbar"),h=Ke("el-select-menu"),m=kl("click-outside");return je((_(),x("div",{ref:"selectWrapper",class:E(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=Le((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[j(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:Y(()=>[z("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(_(),x("div",{key:0,ref:"tags",class:E([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Ie(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(_(),ne(ln,{key:0,onAfterLeave:e.resetInputHeight},{default:Y(()=>[z("span",{class:E([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(_(!0),x(xe,null,ct(e.showTagList,v=>(_(),ne(s,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:Y(()=>[z("span",{class:E(e.nsSelect.e("tags-text")),style:Ie(e.tagTextStyle)},me(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(_(),ne(s,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:Y(()=>[e.collapseTagsTooltip?(_(),ne(i,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Y(()=>[z("span",{class:E(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3)]),content:Y(()=>[z("div",{class:E(e.nsSelect.e("collapse-tags"))},[(_(!0),x(xe,null,ct(e.collapseTagList,v=>(_(),x("div",{key:e.getValueKey(v),class:E(e.nsSelect.e("collapse-tag"))},[j(s,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.deleteTag(g,v)},{default:Y(()=>[z("span",{class:E(e.nsSelect.e("tags-text")),style:Ie({maxWidth:e.inputWidth-75+"px"})},me(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(_(),x("span",{key:1,class:E(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ee("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ee("v-if",!0),e.collapseTags?ee("v-if",!0):(_(),ne(ln,{key:1,onAfterLeave:e.resetInputHeight},{default:Y(()=>[z("span",{class:E([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(_(!0),x(xe,null,ct(e.selected,v=>(_(),ne(s,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:Y(()=>[z("span",{class:E(e.nsSelect.e("tags-text")),style:Ie({maxWidth:e.inputWidth-75+"px"})},me(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?je((_(),x("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:E([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ie({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=mt(Le(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=mt(Le(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=mt((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=mt(Le((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=mt((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=mt(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,VX)),[[ic,e.query]]):ee("v-if",!0)],6)):ee("v-if",!0),ee(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(_(),x("input",{key:1,ref:"iOSInput",class:E([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,zX)):ee("v-if",!0),j(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:E([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=mt(Le(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=mt(Le(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),mt(Le(e.selectOption,["stop","prevent"]),["enter"]),mt(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=mt(v=>e.visible=!1,["tab"]))]},er({suffix:Y(()=>[e.iconComponent&&!e.showClose?(_(),ne(u,{key:0,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Y(()=>[(_(),ne(rt(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.showClose&&e.clearIcon?(_(),ne(u,{key:1,class:E([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Y(()=>[(_(),ne(rt(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:Y(()=>[z("div",HX,[le(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Y(()=>[j(h,null,{default:Y(()=>[je(j(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:E([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:Y(()=>[e.showNewOption?(_(),ne(f,{key:0,value:e.query,created:!0},null,8,["value"])):ee("v-if",!0),j(d,{onUpdateOptions:e.onOptionsRendered},{default:Y(()=>[le(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[St,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(_(),x(xe,{key:0},[e.$slots.empty?le(e.$slots,"empty",{key:0}):(_(),x("p",{key:1,class:E(e.nsSelect.be("dropdown","empty"))},me(e.emptyText),3))],64)):ee("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var KX=ge(FX,[["render",WX],["__file","select.vue"]]);const jX=G({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=ce("select"),n=M(!0),o=nt(),r=M([]);ut(Xp,At({...dn(e)}));const a=Oe(sl);Ze(()=>{r.value=s(o.subTree)});const s=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(f=>{var d;f.type&&f.type.name==="ElOption"&&f.component&&f.component.proxy?c.push(f.component.proxy):(d=f.children)!=null&&d.length&&c.push(...s(f))}),c},{groupQueryChange:i}=Ma(a);return ue(i,()=>{n.value=r.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function UX(e,t,n,o,r,a){return je((_(),x("ul",{class:E(e.ns.be("group","wrap"))},[z("li",{class:E(e.ns.be("group","title"))},me(e.label),3),z("li",null,[z("ul",{class:E(e.ns.b("group"))},[le(e.$slots,"default")],2)])],2)),[[St,e.visible]])}var TS=ge(jX,[["render",UX],["__file","option-group.vue"]]);const Kr=Je(KX,{Option:Zp,OptionGroup:TS}),Cs=Xt(Zp),OS=Xt(TS),Qp=()=>Oe(Yp,{}),qX=be({pageSize:{type:Number,required:!0},pageSizes:{type:te(Array),default:()=>Ut([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:To}}),GX=G({name:"ElPaginationSizes"}),YX=G({...GX,props:qX,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=gt(),r=ce("pagination"),a=Qp(),s=M(n.pageSize);ue(()=>n.pageSizes,(c,f)=>{if(!Dn(c,f)&&Array.isArray(c)){const d=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),ue(()=>n.pageSize,c=>{s.value=c});const i=S(()=>n.pageSizes);function u(c){var f;c!==s.value&&(s.value=c,(f=a.handleSizeChange)==null||f.call(a,Number(c)))}return(c,f)=>(_(),x("span",{class:E(l(r).e("sizes"))},[j(l(Kr),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,"validate-event":!1,onChange:u},{default:Y(()=>[(_(!0),x(xe,null,ct(l(i),d=>(_(),ne(l(Cs),{key:d,value:d,label:d+l(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var XX=ge(YX,[["__file","sizes.vue"]]);const ZX=be({size:{type:String,values:To}}),JX=["disabled"],QX=G({name:"ElPaginationJumper"}),eZ=G({...QX,props:ZX,setup(e){const{t}=gt(),n=ce("pagination"),{pageCount:o,disabled:r,currentPage:a,changeEvent:s}=Qp(),i=M(),u=S(()=>{var d;return(d=i.value)!=null?d:a==null?void 0:a.value});function c(d){i.value=d?+d:""}function f(d){d=Math.trunc(+d),s==null||s(d),i.value=void 0}return(d,p)=>(_(),x("span",{class:E(l(n).e("jump")),disabled:l(r)},[z("span",{class:E([l(n).e("goto")])},me(l(t)("el.pagination.goto")),3),j(l(_n),{size:d.size,class:E([l(n).e("editor"),l(n).is("in-pagination")]),min:1,max:l(o),disabled:l(r),"model-value":l(u),"validate-event":!1,label:l(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:f},null,8,["size","class","max","disabled","model-value","label"]),z("span",{class:E([l(n).e("classifier")])},me(l(t)("el.pagination.pageClassifier")),3)],10,JX))}});var tZ=ge(eZ,[["__file","jumper.vue"]]);const nZ=be({total:{type:Number,default:1e3}}),oZ=["disabled"],rZ=G({name:"ElPaginationTotal"}),aZ=G({...rZ,props:nZ,setup(e){const{t}=gt(),n=ce("pagination"),{disabled:o}=Qp();return(r,a)=>(_(),x("span",{class:E(l(n).e("total")),disabled:l(o)},me(l(t)("el.pagination.total",{total:r.total})),11,oZ))}});var lZ=ge(aZ,[["__file","total.vue"]]);const sZ=be({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iZ=["onKeyup"],uZ=["aria-current","aria-label","tabindex"],cZ=["tabindex","aria-label"],dZ=["aria-current","aria-label","tabindex"],fZ=["tabindex","aria-label"],pZ=["aria-current","aria-label","tabindex"],vZ=G({name:"ElPaginationPager"}),hZ=G({...vZ,props:sZ,emits:["change"],setup(e,{emit:t}){const n=e,o=ce("pager"),r=ce("icon"),{t:a}=gt(),s=M(!1),i=M(!1),u=M(!1),c=M(!1),f=M(!1),d=M(!1),p=S(()=>{const w=n.pagerCount,k=(w-1)/2,$=Number(n.currentPage),O=Number(n.pageCount);let I=!1,P=!1;O>w&&($>w-k&&(I=!0),$["more","btn-quickprev",r.b(),o.is("disabled",n.disabled)]),m=S(()=>["more","btn-quicknext",r.b(),o.is("disabled",n.disabled)]),v=S(()=>n.disabled?-1:0);Yn(()=>{const w=(n.pagerCount-1)/2;s.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(s.value=!0),n.currentPageO&&($=O)),$!==I&&t("change",$)}return(w,k)=>(_(),x("ul",{class:E(l(o).b()),onClick:b,onKeyup:mt(C,["enter"])},[w.pageCount>0?(_(),x("li",{key:0,class:E([[l(o).is("active",w.currentPage===1),l(o).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":l(a)("el.pagination.currentPage",{pager:1}),tabindex:l(v)}," 1 ",10,uZ)):ee("v-if",!0),s.value?(_(),x("li",{key:1,class:E(l(h)),tabindex:l(v),"aria-label":l(a)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:k[0]||(k[0]=$=>g(!0)),onMouseleave:k[1]||(k[1]=$=>u.value=!1),onFocus:k[2]||(k[2]=$=>y(!0)),onBlur:k[3]||(k[3]=$=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(_(),ne(l(Ka),{key:0})):(_(),ne(l(wy),{key:1}))],42,cZ)):ee("v-if",!0),(_(!0),x(xe,null,ct(l(p),$=>(_(),x("li",{key:$,class:E([[l(o).is("active",w.currentPage===$),l(o).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===$,"aria-label":l(a)("el.pagination.currentPage",{pager:$}),tabindex:l(v)},me($),11,dZ))),128)),i.value?(_(),x("li",{key:2,class:E(l(m)),tabindex:l(v),"aria-label":l(a)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:k[4]||(k[4]=$=>g()),onMouseleave:k[5]||(k[5]=$=>c.value=!1),onFocus:k[6]||(k[6]=$=>y()),onBlur:k[7]||(k[7]=$=>d.value=!1)},[(c.value||d.value)&&!w.disabled?(_(),ne(l(ja),{key:0})):(_(),ne(l(wy),{key:1}))],42,fZ)):ee("v-if",!0),w.pageCount>1?(_(),x("li",{key:3,class:E([[l(o).is("active",w.currentPage===w.pageCount),l(o).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":l(a)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:l(v)},me(w.pageCount),11,pZ)):ee("v-if",!0)],42,iZ))}});var mZ=ge(hZ,[["__file","pager.vue"]]);const Vn=e=>typeof e!="number",MS=be({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>De(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:te(Array),default:()=>Ut([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Dt,default:()=>Nr},nextText:{type:String,default:""},nextIcon:{type:Dt,default:()=>Fn},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),AS={"update:current-page":e=>De(e),"update:page-size":e=>De(e),"size-change":e=>De(e),"current-change":e=>De(e),"prev-click":e=>De(e),"next-click":e=>De(e)},IS="ElPagination";var gZ=G({name:IS,props:MS,emits:AS,setup(e,{emit:t,slots:n}){const{t:o}=gt(),r=ce("pagination"),a=nt().vnode.props||{},s="onUpdate:currentPage"in a||"onUpdate:current-page"in a||"onCurrentChange"in a,i="onUpdate:pageSize"in a||"onUpdate:page-size"in a||"onSizeChange"in a,u=S(()=>{if(Vn(e.total)&&Vn(e.pageCount)||!Vn(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(Vn(e.pageCount)){if(!Vn(e.total)&&!Vn(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),c=M(Vn(e.defaultPageSize)?10:e.defaultPageSize),f=M(Vn(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=S({get(){return Vn(e.pageSize)?c.value:e.pageSize},set(b){Vn(e.pageSize)&&(c.value=b),i&&(t("update:page-size",b),t("size-change",b))}}),p=S(()=>{let b=0;return Vn(e.pageCount)?Vn(e.total)||(b=Math.max(1,Math.ceil(e.total/d.value))):b=e.pageCount,b}),h=S({get(){return Vn(e.currentPage)?f.value:e.currentPage},set(b){let w=b;b<1?w=1:b>p.value&&(w=p.value),Vn(e.currentPage)&&(f.value=w),s&&(t("update:current-page",w),t("current-change",w))}});ue(p,b=>{h.value>b&&(h.value=b)});function m(b){h.value=b}function v(b){d.value=b;const w=p.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function y(){e.disabled||(h.value+=1,t("next-click",h.value))}function C(b,w){b&&(b.props||(b.props={}),b.props.class=[b.props.class,w].join(" "))}return ut(Yp,{pageCount:p,disabled:S(()=>e.disabled),currentPage:h,changeEvent:m,handleSizeChange:v}),()=>{var b,w;if(!u.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const k=[],$=[],O=Ne("div",{class:r.e("rightwrapper")},$),I={prev:Ne(_X,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:Ne(tZ,{size:e.small?"small":"default"}),pager:Ne(mZ,{currentPage:h.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Ne(MX,{disabled:e.disabled,currentPage:h.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:Ne(XX,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?w:null,total:Ne(lZ,{total:Vn(e.total)?0:e.total})},P=e.layout.split(",").map(L=>L.trim());let N=!1;return P.forEach(L=>{if(L==="->"){N=!0;return}N?$.push(I[L]):k.push(I[L])}),C(k[0],r.is("first")),C(k[k.length-1],r.is("last")),N&&$.length>0&&(C($[0],r.is("first")),C($[$.length-1],r.is("last")),k.push(O)),Ne("div",{class:[r.b(),r.is("background",e.background),{[r.m("small")]:e.small}]},k)}}});const NS=Je(gZ),RS=be({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:lu,default:"primary"},cancelButtonType:{type:String,values:lu,default:"text"},icon:{type:Dt,default:()=>YF},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:mn.teleported,persistent:mn.persistent,width:{type:[String,Number],default:150}}),PS={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},yZ=G({name:"ElPopconfirm"}),bZ=G({...yZ,props:RS,emits:PS,setup(e,{emit:t}){const n=e,{t:o}=gt(),r=ce("popconfirm"),a=M(),s=()=>{var p,h;(h=(p=a.value)==null?void 0:p.onClose)==null||h.call(p)},i=S(()=>({width:tn(n.width)})),u=p=>{t("confirm",p),s()},c=p=>{t("cancel",p),s()},f=S(()=>n.confirmButtonText||o("el.popconfirm.confirmButtonText")),d=S(()=>n.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(p,h)=>(_(),ne(l(Nn),ot({ref_key:"tooltipRef",ref:a,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${l(r).namespace.value}-popover`,"popper-style":l(i),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:Y(()=>[z("div",{class:E(l(r).b())},[z("div",{class:E(l(r).e("main"))},[!p.hideIcon&&p.icon?(_(),ne(l(ke),{key:0,class:E(l(r).e("icon")),style:Ie({color:p.iconColor})},{default:Y(()=>[(_(),ne(rt(p.icon)))]),_:1},8,["class","style"])):ee("v-if",!0),Ct(" "+me(p.title),1)],2),z("div",{class:E(l(r).e("action"))},[j(l(wn),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:c},{default:Y(()=>[Ct(me(l(d)),1)]),_:1},8,["type","text"]),j(l(wn),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:u},{default:Y(()=>[Ct(me(l(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:Y(()=>[p.$slots.reference?le(p.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var wZ=ge(bZ,[["__file","popconfirm.vue"]]);const xS=Je(wZ),LS=be({trigger:ol.trigger,placement:bs.placement,disabled:ol.disabled,visible:mn.visible,transition:mn.transition,popperOptions:bs.popperOptions,tabindex:bs.tabindex,content:mn.content,popperStyle:mn.popperStyle,popperClass:mn.popperClass,enterable:{...mn.enterable,default:!0},effect:{...mn.effect,default:"light"},teleported:mn.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),DS={"update:visible":e=>un(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},CZ="onUpdate:visible",SZ=G({name:"ElPopover"}),_Z=G({...SZ,props:LS,emits:DS,setup(e,{expose:t,emit:n}){const o=e,r=S(()=>o[CZ]),a=ce("popover"),s=M(),i=S(()=>{var g;return(g=l(s))==null?void 0:g.popperRef}),u=S(()=>[{width:tn(o.width)},o.popperStyle]),c=S(()=>[a.b(),o.popperClass,{[a.m("plain")]:!!o.content}]),f=S(()=>o.transition===`${a.namespace.value}-fade-in-linear`),d=()=>{var g;(g=s.value)==null||g.hide()},p=()=>{n("before-enter")},h=()=>{n("before-leave")},m=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:d}),(g,y)=>(_(),ne(l(Nn),ot({ref_key:"tooltipRef",ref:s},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":l(c),"popper-style":l(u),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":l(f),"onUpdate:visible":l(r),onBeforeShow:p,onBeforeHide:h,onShow:m,onHide:v}),{content:Y(()=>[g.title?(_(),x("div",{key:0,class:E(l(a).e("title")),role:"title"},me(g.title),3)):ee("v-if",!0),le(g.$slots,"default",{},()=>[Ct(me(g.content),1)])]),default:Y(()=>[g.$slots.reference?le(g.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var $Z=ge(_Z,[["__file","popover.vue"]]);const BS=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var kZ={mounted(e,t){BS(e,t)},updated(e,t){BS(e,t)}};const EZ="popover",ev=gV(kZ,EZ),FS=Je($Z,{directive:ev}),VS=be({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:te(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:te([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:te(Function),default:e=>`${e}%`}}),TZ=["aria-valuenow"],OZ={viewBox:"0 0 100 100"},MZ=["d","stroke","stroke-width"],AZ=["d","stroke","opacity","stroke-linecap","stroke-width"],IZ={key:0},NZ=G({name:"ElProgress"}),RZ=G({...NZ,props:VS,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=ce("progress"),r=S(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:C(t.percentage)})),a=S(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=S(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(a.value)/2}`,10):0),i=S(()=>{const b=s.value,w=t.type==="dashboard";return` + M 50 50 + m 0 ${w?"":"-"}${b} + a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2} + a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2} + `}),u=S(()=>2*Math.PI*s.value),c=S(()=>t.type==="dashboard"?.75:1),f=S(()=>`${-1*u.value*(1-c.value)/2}px`),d=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:f.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=S(()=>{let b;return t.color?b=C(t.percentage):b=n[t.status]||n.default,b}),m=S(()=>t.status==="warning"?$i:t.type==="line"?t.status==="success"?Bd:Rr:t.status==="success"?Gl:ko),v=S(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=S(()=>t.format(t.percentage));function y(b){const w=100/b.length;return b.map(($,O)=>it($)?{color:$,percentage:(O+1)*w}:$).sort(($,O)=>$.percentage-O.percentage)}const C=b=>{var w;const{color:k}=t;if($t(k))return k(b);if(it(k))return k;{const $=y(k);for(const O of $)if(O.percentage>b)return O.color;return(w=$[$.length-1])==null?void 0:w.color}};return(b,w)=>(_(),x("div",{class:E([l(o).b(),l(o).m(b.type),l(o).is(b.status),{[l(o).m("without-text")]:!b.showText,[l(o).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(_(),x("div",{key:0,class:E(l(o).b("bar"))},[z("div",{class:E(l(o).be("bar","outer")),style:Ie({height:`${b.strokeWidth}px`})},[z("div",{class:E([l(o).be("bar","inner"),{[l(o).bem("bar","inner","indeterminate")]:b.indeterminate},{[l(o).bem("bar","inner","striped")]:b.striped},{[l(o).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:Ie(l(r))},[(b.showText||b.$slots.default)&&b.textInside?(_(),x("div",{key:0,class:E(l(o).be("bar","innerText"))},[le(b.$slots,"default",{percentage:b.percentage},()=>[z("span",null,me(l(g)),1)])],2)):ee("v-if",!0)],6)],6)],2)):(_(),x("div",{key:1,class:E(l(o).b("circle")),style:Ie({height:`${b.width}px`,width:`${b.width}px`})},[(_(),x("svg",OZ,[z("path",{class:E(l(o).be("circle","track")),d:l(i),stroke:`var(${l(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":l(a),fill:"none",style:Ie(l(d))},null,14,MZ),z("path",{class:E(l(o).be("circle","path")),d:l(i),stroke:l(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":l(a),style:Ie(l(p))},null,14,AZ)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(_(),x("div",{key:2,class:E(l(o).e("text")),style:Ie({fontSize:`${l(v)}px`})},[le(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(_(),ne(l(ke),{key:1},{default:Y(()=>[(_(),ne(rt(l(m))))]),_:1})):(_(),x("span",IZ,me(l(g)),1))])],6)):ee("v-if",!0)],10,TZ))}});var PZ=ge(RZ,[["__file","progress.vue"]]);const tv=Je(PZ),zS=be({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:te([Array,Object]),default:()=>Ut(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:te([Array,Object]),default:()=>[_i,_i,_i]},voidIcon:{type:Dt,default:()=>H5},disabledVoidIcon:{type:Dt,default:()=>_i},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:te(Array),default:()=>Ut(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:vn,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),HS={[Bt]:e=>De(e),[tt]:e=>De(e)},xZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],LZ=["onMousemove","onClick"],DZ=G({name:"ElRate"}),BZ=G({...DZ,props:zS,emits:HS,setup(e,{expose:t,emit:n}){const o=e;function r(F,T){const B=Z=>Rt(Z),A=Object.keys(T).map(Z=>+Z).filter(Z=>{const K=T[Z];return(B(K)?K.excluded:!1)?FZ-K),W=T[A[0]];return B(W)&&W.value||W}const a=Oe(Fr,void 0),s=Oe(Ao,void 0),i=on(),u=ce("rate"),{inputId:c,isLabeledByFormItem:f}=vr(o,{formItemContext:s}),d=M(o.modelValue),p=M(-1),h=M(!0),m=S(()=>[u.b(),u.m(i.value)]),v=S(()=>o.disabled||(a==null?void 0:a.disabled)),g=S(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":w.value})),y=S(()=>{let F="";return o.showScore?F=o.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${o.modelValue}`:`${d.value}`):o.showText&&(F=o.texts[Math.ceil(d.value)-1]),F}),C=S(()=>o.modelValue*100-Math.floor(o.modelValue)*100),b=S(()=>et(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),w=S(()=>{const F=r(d.value,b.value);return Rt(F)?"":F}),k=S(()=>{let F="";return v.value?F=`${C.value}%`:o.allowHalf&&(F="50%"),{color:w.value,width:F}}),$=S(()=>{let F=et(o.icons)?[...o.icons]:{...o.icons};return F=_l(F),et(F)?{[o.lowThreshold]:F[0],[o.highThreshold]:{value:F[1],excluded:!0},[o.max]:F[2]}:F}),O=S(()=>r(o.modelValue,$.value)),I=S(()=>v.value?it(o.disabledVoidIcon)?o.disabledVoidIcon:_l(o.disabledVoidIcon):it(o.voidIcon)?o.voidIcon:_l(o.voidIcon)),P=S(()=>r(d.value,$.value));function N(F){const T=v.value&&C.value>0&&F-1o.modelValue,B=o.allowHalf&&h.value&&F-.5<=d.value&&F>d.value;return T||B}function L(F){o.clearable&&F===o.modelValue&&(F=0),n(tt,F),o.modelValue!==F&&n("change",F)}function D(F){v.value||(o.allowHalf&&h.value?L(d.value):L(F))}function R(F){if(v.value)return;let T=d.value;const B=F.code;return B===Ae.up||B===Ae.right?(o.allowHalf?T+=.5:T+=1,F.stopPropagation(),F.preventDefault()):(B===Ae.left||B===Ae.down)&&(o.allowHalf?T-=.5:T-=1,F.stopPropagation(),F.preventDefault()),T=T<0?0:T,T=T>o.max?o.max:T,n(tt,T),n("change",T),T}function V(F,T){if(!v.value){if(o.allowHalf&&T){let B=T.target;$o(B,u.e("item"))&&(B=B.querySelector(`.${u.e("icon")}`)),(B.clientWidth===0||$o(B,u.e("decimal")))&&(B=B.parentNode),h.value=T.offsetX*2<=B.clientWidth,d.value=h.value?F-.5:F}else d.value=F;p.value=F}}function U(){v.value||(o.allowHalf&&(h.value=o.modelValue!==Math.floor(o.modelValue)),d.value=o.modelValue,p.value=-1)}return ue(()=>o.modelValue,F=>{d.value=F,h.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||n(tt,0),t({setCurrentValue:V,resetCurrentValue:U}),(F,T)=>{var B;return _(),x("div",{id:l(c),class:E([l(m),l(u).is("disabled",l(v))]),role:"slider","aria-label":l(f)?void 0:F.label||"rating","aria-labelledby":l(f)?(B=l(s))==null?void 0:B.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":l(y)||void 0,"aria-valuemin":"0","aria-valuemax":F.max,tabindex:"0",style:Ie(l(g)),onKeydown:R},[(_(!0),x(xe,null,ct(F.max,(A,W)=>(_(),x("span",{key:W,class:E(l(u).e("item")),onMousemove:Z=>V(A,Z),onMouseleave:U,onClick:Z=>D(A)},[j(l(ke),{class:E([l(u).e("icon"),{hover:p.value===A},l(u).is("active",A<=d.value)])},{default:Y(()=>[N(A)?ee("v-if",!0):(_(),x(xe,{key:0},[je((_(),ne(rt(l(P)),null,null,512)),[[St,A<=d.value]]),je((_(),ne(rt(l(I)),null,null,512)),[[St,!(A<=d.value)]])],64)),N(A)?(_(),ne(l(ke),{key:1,style:Ie(l(k)),class:E([l(u).e("icon"),l(u).e("decimal")])},{default:Y(()=>[(_(),ne(rt(l(O))))]),_:1},8,["style","class"])):ee("v-if",!0)]),_:2},1032,["class"])],42,LZ))),128)),F.showText||F.showScore?(_(),x("span",{key:0,class:E(l(u).e("text"))},me(l(y)),3)):ee("v-if",!0)],46,xZ)}}});var FZ=ge(BZ,[["__file","rate.vue"]]);const WS=Je(FZ),Ca={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},nv={[Ca.success]:YD,[Ca.warning]:$i,[Ca.error]:Fd,[Ca.info]:Vd},KS=be({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),VZ=G({name:"ElResult"}),zZ=G({...VZ,props:KS,setup(e){const t=e,n=ce("result"),o=S(()=>{const r=t.icon,a=r&&Ca[r]?Ca[r]:"icon-info",s=nv[a]||nv["icon-info"];return{class:a,component:s}});return(r,a)=>(_(),x("div",{class:E(l(n).b())},[z("div",{class:E(l(n).e("icon"))},[le(r.$slots,"icon",{},()=>[l(o).component?(_(),ne(rt(l(o).component),{key:0,class:E(l(o).class)},null,8,["class"])):ee("v-if",!0)])],2),r.title||r.$slots.title?(_(),x("div",{key:0,class:E(l(n).e("title"))},[le(r.$slots,"title",{},()=>[z("p",null,me(r.title),1)])],2)):ee("v-if",!0),r.subTitle||r.$slots["sub-title"]?(_(),x("div",{key:1,class:E(l(n).e("subtitle"))},[le(r.$slots,"sub-title",{},()=>[z("p",null,me(r.subTitle),1)])],2)):ee("v-if",!0),r.$slots.extra?(_(),x("div",{key:2,class:E(l(n).e("extra"))},[le(r.$slots,"extra")],2)):ee("v-if",!0)],2))}});var HZ=ge(zZ,[["__file","result.vue"]]);const jS=Je(HZ);var US=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function WZ(e,t){return!!(e===t||US(e)&&US(t))}function KZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=nt().proxy.$props;return S(()=>{const n=(o,r,a)=>({});return t.perfMode?Ll(n):jZ(n)})},ov=50,Nu="itemRendered",Ru="scroll",il="forward",Pu="backward",bo="auto",xu="smart",Ss="start",Jo="center",_s="end",ul="horizontal",rv="vertical",UZ="ltr",cl="rtl",$s="negative",av="positive-ascending",lv="positive-descending",qZ={[ul]:"left",[rv]:"top"},GZ=20,YZ={[ul]:"deltaX",[rv]:"deltaY"},XZ=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let r,a=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{Mi(r);const c=u[YZ[n.value]];s(a)&&s(a+c)||(a+=c,Ph()||u.preventDefault(),r=Yl(()=>{o(a),a=0}))}}};var ZZ=XZ;const sv=Eo({type:te([Number,Function]),required:!0}),iv=Eo({type:Number}),uv=Eo({type:Number,default:2}),JZ=Eo({type:String,values:["ltr","rtl"],default:"ltr"}),cv=Eo({type:Number,default:0}),Lu=Eo({type:Number,required:!0}),GS=Eo({type:String,values:["horizontal","vertical"],default:rv}),dv=be({className:{type:String,default:""},containerElement:{type:te([String,Object]),default:"div"},data:{type:te(Array),default:()=>Ut([])},direction:JZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:te([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),fv=be({cache:uv,estimatedItemSize:iv,layout:GS,initScrollOffset:cv,total:Lu,itemSize:sv,...dv}),pv={type:Number,default:6},YS={type:Number,default:0},XS={type:Number,default:2},jr=be({columnCache:uv,columnWidth:sv,estimatedColumnWidth:iv,estimatedRowHeight:iv,initScrollLeft:cv,initScrollTop:cv,itemKey:{type:te(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:uv,rowHeight:sv,totalColumn:Lu,totalRow:Lu,hScrollbarSize:pv,vScrollbarSize:pv,scrollbarStartGap:YS,scrollbarEndGap:XS,role:String,...dv}),vv=be({alwaysOn:Boolean,class:String,layout:GS,total:Lu,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:pv,startGap:YS,endGap:XS,visible:Boolean}),Sa=(e,t)=>ee===UZ||e===cl||e===ul,ZS=e=>e===cl;let dl=null;function Du(e=!1){if(dl===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?dl=lv:(t.scrollLeft=1,t.scrollLeft===0?dl=$s:dl=av),document.body.removeChild(t),dl}return dl}function QZ({move:e,size:t,bar:n},o){const r={},a=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=a,r.msTransform=a,r.webkitTransform=a,o==="horizontal"?r.height="100%":r.width="100%",r}const eJ=G({name:"ElVirtualScrollBar",props:vv,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=S(()=>e.startGap+e.endGap),o=ce("virtual-scrollbar"),r=ce("scrollbar"),a=M(),s=M();let i=null,u=null;const c=At({isDragging:!1,traveled:0}),f=S(()=>Ef[e.layout]),d=S(()=>e.clientSize-l(n)),p=S(()=>({position:"absolute",width:`${ul===e.layout?d.value:e.scrollbarSize}px`,height:`${ul===e.layout?e.scrollbarSize:d.value}px`,[qZ[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=S(()=>{const $=e.ratio,O=e.clientSize;if($>=100)return Number.POSITIVE_INFINITY;if($>=50)return $*O/100;const I=O/3;return Math.floor(Math.min(Math.max($*O,GZ),I))}),m=S(()=>{if(!Number.isFinite(h.value))return{display:"none"};const $=`${h.value}px`;return QZ({bar:f.value,size:$,move:c.traveled},e.layout)}),v=S(()=>Math.floor(e.clientSize-h.value-l(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const $=l(s);!$||(u=document.onselectstart,document.onselectstart=()=>!1,$.addEventListener("touchmove",w),$.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=u,u=null;const $=l(s);!$||($.removeEventListener("touchmove",w),$.removeEventListener("touchend",b))},C=$=>{$.stopImmediatePropagation(),!($.ctrlKey||[1,2].includes($.button))&&(c.isDragging=!0,c[f.value.axis]=$.currentTarget[f.value.offset]-($[f.value.client]-$.currentTarget.getBoundingClientRect()[f.value.direction]),t("start-move"),g())},b=()=>{c.isDragging=!1,c[f.value.axis]=0,t("stop-move"),y()},w=$=>{const{isDragging:O}=c;if(!O||!s.value||!a.value)return;const I=c[f.value.axis];if(!I)return;Mi(i);const P=(a.value.getBoundingClientRect()[f.value.direction]-$[f.value.client])*-1,N=s.value[f.value.offset]-I,L=P-N;i=Yl(()=>{c.traveled=Math.max(e.startGap,Math.min(L,v.value)),t("scroll",L,v.value)})},k=$=>{const O=Math.abs($.target.getBoundingClientRect()[f.value.direction]-$[f.value.client]),I=s.value[f.value.offset]/2,P=O-I;c.traveled=Math.max(0,Math.min(P,v.value)),t("scroll",P,v.value)};return ue(()=>e.scrollFrom,$=>{c.isDragging||(c.traveled=Math.ceil($*v.value))}),qt(()=>{y()}),()=>Ne("div",{role:"presentation",ref:a,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:p.value,onMousedown:Le(k,["stop","prevent"]),onTouchstartPrevent:C},Ne("div",{ref:s,class:r.e("thumb"),style:m.value,onMousedown:C},[]))}});var hv=eJ;const tJ=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:r,getStartIndexForOffset:a,getStopIndexForStartIndex:s,initCache:i,clearCache:u,validateProps:c})=>G({name:e!=null?e:"ElVirtualList",props:fv,emits:[Nu,Ru],setup(f,{emit:d,expose:p}){c(f);const h=nt(),m=ce("vl"),v=M(i(f,h)),g=qS(),y=M(),C=M(),b=M(),w=M({isScrolling:!1,scrollDir:"forward",scrollOffset:De(f.initScrollOffset)?f.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:f.scrollbarAlwaysOn}),k=S(()=>{const{total:X,cache:se}=f,{isScrolling:ve,scrollDir:re,scrollOffset:ie}=l(w);if(X===0)return[0,0,0,0];const J=a(f,ie,l(v)),oe=s(f,J,ie,l(v)),de=!ve||re===Pu?Math.max(1,se):1,Te=!ve||re===il?Math.max(1,se):1;return[Math.max(0,J-de),Math.max(0,Math.min(X-1,oe+Te)),J,oe]}),$=S(()=>r(f,l(v))),O=S(()=>ks(f.layout)),I=S(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:f.direction,height:De(f.height)?`${f.height}px`:f.height,width:De(f.width)?`${f.width}px`:f.width},f.style]),P=S(()=>{const X=l($),se=l(O);return{height:se?"100%":`${X}px`,pointerEvents:l(w).isScrolling?"none":void 0,width:se?`${X}px`:"100%"}}),N=S(()=>O.value?f.width:f.height),{onWheel:L}=ZZ({atStartEdge:S(()=>w.value.scrollOffset<=0),atEndEdge:S(()=>w.value.scrollOffset>=$.value),layout:S(()=>f.layout)},X=>{var se,ve;(ve=(se=b.value).onMouseUp)==null||ve.call(se),T(Math.min(w.value.scrollOffset+X,$.value-N.value))}),D=()=>{const{total:X}=f;if(X>0){const[ie,J,oe,de]=l(k);d(Nu,ie,J,oe,de)}const{scrollDir:se,scrollOffset:ve,updateRequested:re}=l(w);d(Ru,se,ve,re)},R=X=>{const{clientHeight:se,scrollHeight:ve,scrollTop:re}=X.currentTarget,ie=l(w);if(ie.scrollOffset===re)return;const J=Math.max(0,Math.min(re,ve-se));w.value={...ie,isScrolling:!0,scrollDir:Sa(ie.scrollOffset,J),scrollOffset:J,updateRequested:!1},Ee(W)},V=X=>{const{clientWidth:se,scrollLeft:ve,scrollWidth:re}=X.currentTarget,ie=l(w);if(ie.scrollOffset===ve)return;const{direction:J}=f;let oe=ve;if(J===cl)switch(Du()){case $s:{oe=-ve;break}case lv:{oe=re-se-ve;break}}oe=Math.max(0,Math.min(oe,re-se)),w.value={...ie,isScrolling:!0,scrollDir:Sa(ie.scrollOffset,oe),scrollOffset:oe,updateRequested:!1},Ee(W)},U=X=>{l(O)?V(X):R(X),D()},F=(X,se)=>{const ve=($.value-N.value)/se*X;T(Math.min($.value-N.value,ve))},T=X=>{X=Math.max(X,0),X!==l(w).scrollOffset&&(w.value={...l(w),scrollOffset:X,scrollDir:Sa(l(w).scrollOffset,X),updateRequested:!0},Ee(W))},B=(X,se=bo)=>{const{scrollOffset:ve}=l(w);X=Math.max(0,Math.min(X,f.total-1)),T(t(f,X,se,ve,l(v)))},A=X=>{const{direction:se,itemSize:ve,layout:re}=f,ie=g.value(u&&ve,u&&re,u&&se);let J;if(Cn(ie,String(X)))J=ie[X];else{const oe=o(f,X,l(v)),de=n(f,X,l(v)),Te=l(O),Re=se===cl,Ve=Te?oe:0;ie[X]=J={position:"absolute",left:Re?void 0:`${Ve}px`,right:Re?`${Ve}px`:void 0,top:Te?0:`${oe}px`,height:Te?"100%":`${de}px`,width:Te?`${de}px`:"100%"}}return J},W=()=>{w.value.isScrolling=!1,Ee(()=>{g.value(-1,null,null)})},Z=()=>{const X=y.value;X&&(X.scrollTop=0)};Ze(()=>{if(!pt)return;const{initScrollOffset:X}=f,se=l(y);De(X)&&se&&(l(O)?se.scrollLeft=X:se.scrollTop=X),D()}),Xr(()=>{const{direction:X,layout:se}=f,{scrollOffset:ve,updateRequested:re}=l(w),ie=l(y);if(re&&ie)if(se===ul)if(X===cl)switch(Du()){case $s:{ie.scrollLeft=-ve;break}case av:{ie.scrollLeft=ve;break}default:{const{clientWidth:J,scrollWidth:oe}=ie;ie.scrollLeft=oe-J-ve;break}}else ie.scrollLeft=ve;else ie.scrollTop=ve});const K={ns:m,clientSize:N,estimatedTotalSize:$,windowStyle:I,windowRef:y,innerRef:C,innerStyle:P,itemsToRender:k,scrollbarRef:b,states:w,getItemStyle:A,onScroll:U,onScrollbarScroll:F,onWheel:L,scrollTo:T,scrollToItem:B,resetScrollTop:Z};return p({windowRef:y,innerRef:C,getItemStyleCache:g,scrollTo:T,scrollToItem:B,resetScrollTop:Z,states:w}),K},render(f){var d;const{$slots:p,className:h,clientSize:m,containerElement:v,data:g,getItemStyle:y,innerElement:C,itemsToRender:b,innerStyle:w,layout:k,total:$,onScroll:O,onScrollbarScroll:I,onWheel:P,states:N,useIsScrolling:L,windowStyle:D,ns:R}=f,[V,U]=b,F=rt(v),T=rt(C),B=[];if($>0)for(let K=V;K<=U;K++)B.push((d=p.default)==null?void 0:d.call(p,{data:g,key:K,index:K,isScrolling:L?N.isScrolling:void 0,style:y(K)}));const A=[Ne(T,{style:w,ref:"innerRef"},it(T)?B:{default:()=>B})],W=Ne(hv,{ref:"scrollbarRef",clientSize:m,layout:k,onScroll:I,ratio:m*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-m),total:$}),Z=Ne(F,{class:[R.e("window"),h],style:D,onScroll:O,onWheel:P,ref:"windowRef",key:0},it(F)?[A]:{default:()=>[A]});return Ne("div",{key:0,class:[R.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[Z,W])}});var JS=tJ;const nJ=JS({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:r},a,s,i)=>{const u=ks(o)?r:e,c=Math.max(0,t*n-u),f=Math.min(c,a*n),d=Math.max(0,(a+1)*n-u);switch(s===xu&&(i>=d-u&&i<=f+u?s=bo:s=Jo),s){case Ss:return f;case _s:return d;case Jo:{const p=Math.round(d+(f-d)/2);return pc+Math.floor(u/2)?c:p}case bo:default:return i>=d&&i<=f?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:r},a,s)=>{const i=a*n,u=ks(o)?r:e,c=Math.ceil((u+s-i)/n);return Math.max(0,Math.min(t-1,a+c-1))},initCache(){},clearCache:!0,validateProps(){}});var mv=nJ;const fl=(e,t,n)=>{const{itemSize:o}=e,{items:r,lastVisitedIndex:a}=n;if(t>a){let s=0;if(a>=0){const i=r[a];s=i.offset+i.size}for(let i=a+1;i<=t;i++){const u=o(i);r[i]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return r[t]},oJ=(e,t,n)=>{const{items:o,lastVisitedIndex:r}=t;return(r>0?o[r].offset:0)>=n?QS(e,t,0,r,n):rJ(e,t,Math.max(0,r),n)},QS=(e,t,n,o,r)=>{for(;n<=o;){const a=n+Math.floor((o-n)/2),s=fl(e,a,t).offset;if(s===r)return a;sr&&(o=a-1)}return Math.max(0,n-1)},rJ=(e,t,n,o)=>{const{total:r}=e;let a=1;for(;n{let r=0;if(o>=e&&(o=e-1),o>=0){const i=t[o];r=i.offset+i.size}const s=(e-o-1)*n;return r+s},aJ=JS({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>fl(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:e_,getOffset:(e,t,n,o,r)=>{const{height:a,layout:s,width:i}=e,u=ks(s)?i:a,c=fl(e,t,r),f=e_(e,r),d=Math.max(0,Math.min(f-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n===xu&&(o>=p-u&&o<=d+u?n=bo:n=Jo),n){case Ss:return d;case _s:return p;case Jo:return Math.round(p+(d-p)/2);case bo:default:return o>=p&&o<=d?o:ooJ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:r,total:a,layout:s,width:i}=e,u=ks(s)?i:r,c=fl(e,t,o),f=n+u;let d=c.offset+c.size,p=t;for(;p{var a,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(a=t.exposed)==null||a.getItemStyleCache(-1),r&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var t_=aJ;const lJ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},r)=>{let a=null,s=0,i=0;const u=(f,d)=>{const p=f<=0&&t.value||f>=0&&e.value,h=d<=0&&o.value||d>=0&&n.value;return p&&h};return{hasReachedEdge:u,onWheel:f=>{Mi(a);let d=f.deltaX,p=f.deltaY;Math.abs(d)>Math.abs(p)?p=0:d=0,f.shiftKey&&p!==0&&(d=p,p=0),!(u(s,i)&&u(s+d,i+p))&&(s+=d,i+=p,f.preventDefault(),a=Yl(()=>{r(s,i),s=0,i=0}))}}},sJ=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:a,getEstimatedTotalWidth:s,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:d,initCache:p,injectToInstance:h,validateProps:m})=>G({name:e!=null?e:"ElVirtualList",props:jr,emits:[Nu,Ru],setup(v,{emit:g,expose:y,slots:C}){const b=ce("vl");m(v);const w=nt(),k=M(p(v,w));h==null||h(w,k);const $=M(),O=M(),I=M(),P=M(null),N=M({isScrolling:!1,scrollLeft:De(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:De(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:il,yAxisScrollDir:il}),L=qS(),D=S(()=>Number.parseInt(`${v.height}`,10)),R=S(()=>Number.parseInt(`${v.width}`,10)),V=S(()=>{const{totalColumn:Se,totalRow:Fe,columnCache:Pe}=v,{isScrolling:He,xAxisScrollDir:Be,scrollLeft:Xe}=l(N);if(Se===0||Fe===0)return[0,0,0,0];const Qe=o(v,Xe,l(k)),Ce=r(v,Qe,Xe,l(k)),ze=!He||Be===Pu?Math.max(1,Pe):1,ht=!He||Be===il?Math.max(1,Pe):1;return[Math.max(0,Qe-ze),Math.max(0,Math.min(Se-1,Ce+ht)),Qe,Ce]}),U=S(()=>{const{totalColumn:Se,totalRow:Fe,rowCache:Pe}=v,{isScrolling:He,yAxisScrollDir:Be,scrollTop:Xe}=l(N);if(Se===0||Fe===0)return[0,0,0,0];const Qe=f(v,Xe,l(k)),Ce=d(v,Qe,Xe,l(k)),ze=!He||Be===Pu?Math.max(1,Pe):1,ht=!He||Be===il?Math.max(1,Pe):1;return[Math.max(0,Qe-ze),Math.max(0,Math.min(Fe-1,Ce+ht)),Qe,Ce]}),F=S(()=>a(v,l(k))),T=S(()=>s(v,l(k))),B=S(()=>{var Se;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:De(v.height)?`${v.height}px`:v.height,width:De(v.width)?`${v.width}px`:v.width},(Se=v.style)!=null?Se:{}]}),A=S(()=>{const Se=`${l(T)}px`;return{height:`${l(F)}px`,pointerEvents:l(N).isScrolling?"none":void 0,width:Se}}),W=()=>{const{totalColumn:Se,totalRow:Fe}=v;if(Se>0&&Fe>0){const[Ce,ze,ht,Ot]=l(V),[lt,we,ye,ae]=l(U);g(Nu,{columnCacheStart:Ce,columnCacheEnd:ze,rowCacheStart:lt,rowCacheEnd:we,columnVisibleStart:ht,columnVisibleEnd:Ot,rowVisibleStart:ye,rowVisibleEnd:ae})}const{scrollLeft:Pe,scrollTop:He,updateRequested:Be,xAxisScrollDir:Xe,yAxisScrollDir:Qe}=l(N);g(Ru,{xAxisScrollDir:Xe,scrollLeft:Pe,yAxisScrollDir:Qe,scrollTop:He,updateRequested:Be})},Z=Se=>{const{clientHeight:Fe,clientWidth:Pe,scrollHeight:He,scrollLeft:Be,scrollTop:Xe,scrollWidth:Qe}=Se.currentTarget,Ce=l(N);if(Ce.scrollTop===Xe&&Ce.scrollLeft===Be)return;let ze=Be;if(ZS(v.direction))switch(Du()){case $s:ze=-Be;break;case lv:ze=Qe-Pe-Be;break}N.value={...Ce,isScrolling:!0,scrollLeft:ze,scrollTop:Math.max(0,Math.min(Xe,He-Fe)),updateRequested:!0,xAxisScrollDir:Sa(Ce.scrollLeft,ze),yAxisScrollDir:Sa(Ce.scrollTop,Xe)},Ee(()=>J()),oe(),W()},K=(Se,Fe)=>{const Pe=l(D),He=(F.value-Pe)/Fe*Se;ve({scrollTop:Math.min(F.value-Pe,He)})},X=(Se,Fe)=>{const Pe=l(R),He=(T.value-Pe)/Fe*Se;ve({scrollLeft:Math.min(T.value-Pe,He)})},{onWheel:se}=lJ({atXStartEdge:S(()=>N.value.scrollLeft<=0),atXEndEdge:S(()=>N.value.scrollLeft>=T.value-l(R)),atYStartEdge:S(()=>N.value.scrollTop<=0),atYEndEdge:S(()=>N.value.scrollTop>=F.value-l(D))},(Se,Fe)=>{var Pe,He,Be,Xe;(He=(Pe=O.value)==null?void 0:Pe.onMouseUp)==null||He.call(Pe),(Xe=(Be=O.value)==null?void 0:Be.onMouseUp)==null||Xe.call(Be);const Qe=l(R),Ce=l(D);ve({scrollLeft:Math.min(N.value.scrollLeft+Se,T.value-Qe),scrollTop:Math.min(N.value.scrollTop+Fe,F.value-Ce)})}),ve=({scrollLeft:Se=N.value.scrollLeft,scrollTop:Fe=N.value.scrollTop})=>{Se=Math.max(Se,0),Fe=Math.max(Fe,0);const Pe=l(N);Fe===Pe.scrollTop&&Se===Pe.scrollLeft||(N.value={...Pe,xAxisScrollDir:Sa(Pe.scrollLeft,Se),yAxisScrollDir:Sa(Pe.scrollTop,Fe),scrollLeft:Se,scrollTop:Fe,updateRequested:!0},Ee(()=>J()),oe(),W())},re=(Se=0,Fe=0,Pe=bo)=>{const He=l(N);Fe=Math.max(0,Math.min(Fe,v.totalColumn-1)),Se=Math.max(0,Math.min(Se,v.totalRow-1));const Be=my(b.namespace.value),Xe=l(k),Qe=a(v,Xe),Ce=s(v,Xe);ve({scrollLeft:i(v,Fe,Pe,He.scrollLeft,Xe,Ce>v.width?Be:0),scrollTop:u(v,Se,Pe,He.scrollTop,Xe,Qe>v.height?Be:0)})},ie=(Se,Fe)=>{const{columnWidth:Pe,direction:He,rowHeight:Be}=v,Xe=L.value(t&&Pe,t&&Be,t&&He),Qe=`${Se},${Fe}`;if(Cn(Xe,Qe))return Xe[Qe];{const[,Ce]=n(v,Fe,l(k)),ze=l(k),ht=ZS(He),[Ot,lt]=c(v,Se,ze),[we]=n(v,Fe,ze);return Xe[Qe]={position:"absolute",left:ht?void 0:`${Ce}px`,right:ht?`${Ce}px`:void 0,top:`${lt}px`,height:`${Ot}px`,width:`${we}px`},Xe[Qe]}},J=()=>{N.value.isScrolling=!1,Ee(()=>{L.value(-1,null,null)})};Ze(()=>{if(!pt)return;const{initScrollLeft:Se,initScrollTop:Fe}=v,Pe=l($);Pe&&(De(Se)&&(Pe.scrollLeft=Se),De(Fe)&&(Pe.scrollTop=Fe)),W()});const oe=()=>{const{direction:Se}=v,{scrollLeft:Fe,scrollTop:Pe,updateRequested:He}=l(N),Be=l($);if(He&&Be){if(Se===cl)switch(Du()){case $s:{Be.scrollLeft=-Fe;break}case av:{Be.scrollLeft=Fe;break}default:{const{clientWidth:Xe,scrollWidth:Qe}=Be;Be.scrollLeft=Qe-Xe-Fe;break}}else Be.scrollLeft=Math.max(0,Fe);Be.scrollTop=Math.max(0,Pe)}},{resetAfterColumnIndex:de,resetAfterRowIndex:Te,resetAfter:Re}=w.proxy;y({windowRef:$,innerRef:P,getItemStyleCache:L,scrollTo:ve,scrollToItem:re,states:N,resetAfterColumnIndex:de,resetAfterRowIndex:Te,resetAfter:Re});const Ve=()=>{const{scrollbarAlwaysOn:Se,scrollbarStartGap:Fe,scrollbarEndGap:Pe,totalColumn:He,totalRow:Be}=v,Xe=l(R),Qe=l(D),Ce=l(T),ze=l(F),{scrollLeft:ht,scrollTop:Ot}=l(N),lt=Ne(hv,{ref:O,alwaysOn:Se,startGap:Fe,endGap:Pe,class:b.e("horizontal"),clientSize:Xe,layout:"horizontal",onScroll:X,ratio:Xe*100/Ce,scrollFrom:ht/(Ce-Xe),total:Be,visible:!0}),we=Ne(hv,{ref:I,alwaysOn:Se,startGap:Fe,endGap:Pe,class:b.e("vertical"),clientSize:Qe,layout:"vertical",onScroll:K,ratio:Qe*100/ze,scrollFrom:Ot/(ze-Qe),total:He,visible:!0});return{horizontalScrollbar:lt,verticalScrollbar:we}},We=()=>{var Se;const[Fe,Pe]=l(V),[He,Be]=l(U),{data:Xe,totalColumn:Qe,totalRow:Ce,useIsScrolling:ze,itemKey:ht}=v,Ot=[];if(Ce>0&&Qe>0)for(let lt=He;lt<=Be;lt++)for(let we=Fe;we<=Pe;we++)Ot.push((Se=C.default)==null?void 0:Se.call(C,{columnIndex:we,data:Xe,key:ht({columnIndex:we,data:Xe,rowIndex:lt}),isScrolling:ze?l(N).isScrolling:void 0,style:ie(lt,we),rowIndex:lt}));return Ot},Ge=()=>{const Se=rt(v.innerElement),Fe=We();return[Ne(Se,{style:l(A),ref:P},it(Se)?Fe:{default:()=>Fe})]};return()=>{const Se=rt(v.containerElement),{horizontalScrollbar:Fe,verticalScrollbar:Pe}=Ve(),He=Ge();return Ne("div",{key:0,class:b.e("wrapper"),role:v.role},[Ne(Se,{class:v.className,style:l(B),onScroll:Z,onWheel:se,ref:$},it(Se)?He:{default:()=>He}),Fe,Pe])}}});var n_=sJ;const iJ=n_({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,r,a,s,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,o*t),f=Math.max(0,o*t-n+i+t);switch(r==="smart"&&(a>=f-n&&a<=c+n?r=bo:r=Jo),r){case Ss:return c;case _s:return f;case Jo:{const d=Math.round(f+(c-f)/2);return du+Math.floor(n/2)?u:d}case bo:default:return a>=f&&a<=c?a:f>c||a{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,o*e),f=Math.max(0,o*e-t+i+e);switch(r===xu&&(a>=f-t&&a<=c+t?r=bo:r=Jo),r){case Ss:return c;case _s:return f;case Jo:{const d=Math.round(f+(c-f)/2);return du+Math.floor(t/2)?u:d}case bo:default:return a>=f&&a<=c?a:f>c||aMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,r)=>{const a=o*e,s=Math.ceil((n+r-a)/e);return Math.max(0,Math.min(t-1,o+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,r)=>{const a=o*e,s=Math.ceil((n+r-a)/e);return Math.max(0,Math.min(t-1,o+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});var o_=iJ;const{max:Bu,min:r_,floor:a_}=Math,uJ={column:"columnWidth",row:"rowHeight"},gv={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},br=(e,t,n,o)=>{const[r,a,s]=[n[o],e[uJ[o]],n[gv[o]]];if(t>s){let i=0;if(s>=0){const u=r[s];i=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=a(u);r[u]={offset:i,size:c},i+=c}n[gv[o]]=t}return r[t]},l_=(e,t,n,o,r,a)=>{for(;n<=o;){const s=n+a_((o-n)/2),i=br(e,s,t,a).offset;if(i===r)return s;i{const a=r==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[r,a]=[t[o],t[gv[o]]];return(a>0?r[a].offset:0)>=n?l_(e,t,0,a,n,o):cJ(e,t,Bu(0,a),n,o)},i_=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let r=0;if(n>=e&&(n=e-1),n>=0){const i=o[n];r=i.offset+i.size}const s=(e-n-1)*t;return r+s},u_=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let r=0;if(o>e&&(o=e-1),o>=0){const i=t[o];r=i.offset+i.size}const s=(e-o-1)*n;return r+s},dJ={column:u_,row:i_},c_=(e,t,n,o,r,a,s)=>{const[i,u]=[a==="row"?e.height:e.width,dJ[a]],c=br(e,t,r,a),f=u(e,r),d=Bu(0,r_(f-i,c.offset)),p=Bu(0,c.offset-i+s+c.size);switch(n===xu&&(o>=p-i&&o<=d+i?n=bo:n=Jo),n){case Ss:return d;case _s:return p;case Jo:return Math.round(p+(d-p)/2);case bo:default:return o>=p&&o<=d?o:p>d||o{const o=br(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=br(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,r,a)=>c_(e,t,n,o,r,"column",a),getRowOffset:(e,t,n,o,r,a)=>c_(e,t,n,o,r,"row",a),getColumnStartIndexForOffset:(e,t,n)=>s_(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const r=br(e,t,o,"column"),a=n+e.width;let s=r.offset+r.size,i=t;for(;is_(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:r,height:a}=e,s=br(e,t,o,"row"),i=n+a;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:a,rowIndex:s},i)=>{var u,c;i=bn(i)?!0:i,De(a)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,a-1)),De(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},o=(a,s)=>{n({columnIndex:a},s)},r=(a,s)=>{n({rowIndex:a},s)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:r,resetAfter:n})},initCache:({estimatedColumnWidth:e=ov,estimatedRowHeight:t=ov})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var d_=fJ;const pJ=G({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:ce("select")}}});function vJ(e,t,n,o,r,a){return e.item.isTitle?(_(),x("div",{key:0,class:E(e.ns.be("group","title")),style:Ie([e.style,{lineHeight:`${e.height}px`}])},me(e.item.label),7)):(_(),x("div",{key:1,class:E(e.ns.be("group","split")),style:Ie(e.style)},[z("span",{class:E(e.ns.be("group","split-dash")),style:Ie({top:`${e.height/2}px`})},null,6)],6))}var hJ=ge(pJ,[["render",vJ],["__file","group-item.vue"]]);function mJ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const gJ={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Rr},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:mn.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Ti},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:te(String),values:ua,default:"bottom-start"}},yJ={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},bJ=G({props:yJ,emits:["select","hover"],setup(e,{emit:t}){const n=ce("select"),{hoverItem:o,selectOptionClick:r}=mJ(e,{emit:t});return{ns:n,hoverItem:o,selectOptionClick:r}}}),wJ=["aria-selected"];function CJ(e,t,n,o,r,a){return _(),x("li",{"aria-selected":e.selected,style:Ie(e.style),class:E([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Le((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[le(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[z("span",null,me(e.item.label),1)])],46,wJ)}var SJ=ge(bJ,[["render",CJ],["__file","option-item.vue"]]);const yv=Symbol("ElSelectV2Injection");var _J=G({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const o=Oe(yv),r=ce("select"),a=M([]),s=M(),i=S(()=>e.data.length);ue(()=>i.value,()=>{var I,P;(P=(I=o.popper.value).updatePopper)==null||P.call(I)});const u=S(()=>bn(o.props.estimatedOptionHeight)),c=S(()=>u.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:I=>a.value[I]}),f=(I=[],P)=>{const{props:{valueKey:N}}=o;return Rt(P)?I&&I.some(L=>zt(L,N)===zt(P,N)):I.includes(P)},d=(I,P)=>{if(Rt(P)){const{valueKey:N}=o.props;return zt(I,N)===zt(P,N)}else return I===P},p=(I,P)=>{const{valueKey:N}=o.props;return o.props.multiple?f(I,zt(P,N)):d(I,zt(P,N))},h=(I,P)=>{const{disabled:N,multiple:L,multipleLimit:D}=o.props;return N||!P&&(L?D>0&&I.length>=D:!1)},m=I=>e.hoveringIndex===I;n({listRef:s,isSized:u,isItemDisabled:h,isItemHovering:m,isItemSelected:p,scrollToItem:I=>{const P=s.value;P&&P.scrollToItem(I)},resetScrollTop:()=>{const I=s.value;I&&I.resetScrollTop()}});const y=I=>{const{index:P,data:N,style:L}=I,D=l(u),{itemSize:R,estimatedSize:V}=l(c),{modelValue:U}=o.props,{onSelect:F,onHover:T}=o,B=N[P];if(B.type==="Group")return j(hJ,{item:B,style:L,height:D?R:V},null);const A=p(U,B),W=h(U,A),Z=m(P);return j(SJ,ot(I,{selected:A,disabled:B.disabled||W,created:!!B.created,hovering:Z,item:B,onSelect:F,onHover:T}),{default:K=>{var X;return((X=t.default)==null?void 0:X.call(t,K))||j("span",null,[B.label])}})},{onKeyboardNavigate:C,onKeyboardSelect:b}=o,w=()=>{C("forward")},k=()=>{C("backward")},$=()=>{o.expanded=!1},O=I=>{const{code:P}=I,{tab:N,esc:L,down:D,up:R,enter:V}=Ae;switch(P!==N&&(I.preventDefault(),I.stopPropagation()),P){case N:case L:{$();break}case D:{w();break}case R:{k();break}case V:{b();break}}};return()=>{var I;const{data:P,width:N}=e,{height:L,multiple:D,scrollbarAlwaysOn:R}=o.props;if(P.length===0)return j("div",{class:r.b("dropdown"),style:{width:`${N}px`}},[(I=t.empty)==null?void 0:I.call(t)]);const V=l(u)?mv:t_;return j("div",{class:[r.b("dropdown"),r.is("multiple",D)]},[j(V,ot({ref:s},l(c),{className:r.be("dropdown","list"),scrollbarAlwaysOn:R,data:P,height:L,width:N,total:P.length,onKeydown:O}),{default:U=>j(y,U,null)})])}}});function $J(e,t){const n=M(0),o=M(null),r=S(()=>e.allowCreate&&e.filterable);function a(f){const d=p=>p.value===f;return e.options&&e.options.some(d)||t.createdOptions.some(d)}function s(f){!r.value||(e.multiple&&f.created?n.value++:o.value=f)}function i(f){if(r.value)if(f&&f.length>0&&!a(f)){const d={value:f,label:f,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=d:t.createdOptions.push(d)}else if(e.multiple)t.createdOptions.length=n.value;else{const d=o.value;t.createdOptions.length=0,d&&d.created&&t.createdOptions.push(d)}}function u(f){if(!r.value||!f||!f.created||f.created&&e.reserveKeyword&&t.inputValue===f.label)return;const d=t.createdOptions.findIndex(p=>p.value===f.value);~d&&(t.createdOptions.splice(d,1),n.value--)}function c(){r.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:i,removeNewOption:u,selectNewOption:s,clearAllNewOption:c}}const kJ=e=>{const t=[];return e.forEach(n=>{et(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(o=>{t.push(o)}),t.push({type:"Group"})):t.push(n)}),t};function EJ(e){const t=M(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:a=>{const s=a.target.value,i=s[s.length-1]||"";t.value=!Oi(i)},handleCompositionEnd:a=>{t.value&&(t.value=!1,$t(e)&&e(a))}}}const f_="",p_=11,TJ={larget:51,default:42,small:33},OJ=(e,t)=>{const{t:n}=gt(),o=ce("select-v2"),r=ce("input"),{form:a,formItem:s}=In(),i=At({inputValue:f_,displayInputValue:f_,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),u=M(-1),c=M(-1),f=M(null),d=M(null),p=M(null),h=M(null),m=M(null),v=M(null),g=M(null),y=M(!1),C=S(()=>e.disabled||(a==null?void 0:a.disabled)),b=S(()=>{const he=D.value.length*34;return he>e.height?e.height:he}),w=S(()=>!nn(e.modelValue)),k=S(()=>{const he=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value;return e.clearable&&!C.value&&i.comboBoxHovering&&he}),$=S(()=>e.remote&&e.filterable?"":Si),O=S(()=>$.value&&o.is("reverse",y.value)),I=S(()=>(s==null?void 0:s.validateState)||""),P=S(()=>Ey[I.value]),N=S(()=>e.remote?300:0),L=S(()=>{const he=D.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&i.inputValue===""&&he.length===0?!1:e.filterable&&i.inputValue&&he.length>0?e.noMatchText||n("el.select.noMatch"):he.length===0?e.noDataText||n("el.select.noData"):null}),D=S(()=>{const he=Me=>{const ft=i.inputValue,Wt=new RegExp(vy(ft),"i");return ft?Wt.test(Me.label||""):!0};return e.loading?[]:kJ(e.options.concat(i.createdOptions).map(Me=>{if(et(Me.options)){const ft=Me.options.filter(he);if(ft.length>0)return{...Me,options:ft}}else if(e.remote||he(Me))return Me;return null}).filter(Me=>Me!==null))}),R=S(()=>D.value.every(he=>he.disabled)),V=on(),U=S(()=>V.value==="small"?"small":"default"),F=S(()=>{const he=v.value,Me=U.value||"default",ft=he?Number.parseInt(getComputedStyle(he).paddingLeft):0,Wt=he?Number.parseInt(getComputedStyle(he).paddingRight):0;return i.selectWidth-Wt-ft-TJ[Me]}),T=()=>{var he;c.value=((he=m.value)==null?void 0:he.offsetWidth)||200},B=S(()=>({width:`${i.calculatedWidth===0?p_:Math.ceil(i.calculatedWidth)+p_}px`})),A=S(()=>et(e.modelValue)?e.modelValue.length===0&&!i.displayInputValue:e.filterable?i.displayInputValue.length===0:!0),W=S(()=>{const he=e.placeholder||n("el.select.placeholder");return e.multiple||nn(e.modelValue)?he:i.selectedLabel}),Z=S(()=>{var he,Me;return(Me=(he=h.value)==null?void 0:he.popperRef)==null?void 0:Me.contentRef}),K=S(()=>{if(e.multiple){const he=e.modelValue.length;if(e.modelValue.length>0)return D.value.findIndex(Me=>Me.value===e.modelValue[he-1])}else if(e.modelValue)return D.value.findIndex(he=>he.value===e.modelValue);return-1}),X=S({get(){return y.value&&L.value!==!1},set(he){y.value=he}}),se=S(()=>i.cachedOptions.slice(0,e.maxCollapseTags)),ve=S(()=>i.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:re,removeNewOption:ie,selectNewOption:J,clearAllNewOption:oe}=$J(e,i),{handleCompositionStart:de,handleCompositionUpdate:Te,handleCompositionEnd:Re}=EJ(he=>Ue(he)),Ve=()=>{var he,Me,ft;(Me=(he=d.value)==null?void 0:he.focus)==null||Me.call(he),(ft=h.value)==null||ft.updatePopper()},We=()=>{if(!e.automaticDropdown&&!C.value)return i.isComposing&&(i.softFocus=!0),Ee(()=>{var he,Me;y.value=!y.value,(Me=(he=d.value)==null?void 0:he.focus)==null||Me.call(he)})},Ge=()=>(e.filterable&&i.inputValue!==i.selectedLabel&&(i.query=i.selectedLabel),Se(i.inputValue),Ee(()=>{re(i.inputValue)})),yt=On(Ge,N.value),Se=he=>{i.previousQuery!==he&&(i.previousQuery=he,e.filterable&&$t(e.filterMethod)?e.filterMethod(he):e.filterable&&e.remote&&$t(e.remoteMethod)&&e.remoteMethod(he))},Fe=he=>{Dn(e.modelValue,he)||t(Bt,he)},Pe=he=>{t(tt,he),Fe(he),i.previousValue=he==null?void 0:he.toString()},He=(he=[],Me)=>{if(!Rt(Me))return he.indexOf(Me);const ft=e.valueKey;let Wt=-1;return he.some((xo,Lo)=>zt(xo,ft)===zt(Me,ft)?(Wt=Lo,!0):!1),Wt},Be=he=>Rt(he)?zt(he,e.valueKey):he,Xe=he=>Rt(he)?he.label:he,Qe=()=>Ee(()=>{var he,Me;if(!d.value)return;const ft=v.value;m.value.height=ft.offsetHeight,y.value&&L.value!==!1&&((Me=(he=h.value)==null?void 0:he.updatePopper)==null||Me.call(he))}),Ce=()=>{var he,Me;if(ze(),T(),(Me=(he=h.value)==null?void 0:he.updatePopper)==null||Me.call(he),e.multiple)return Qe()},ze=()=>{const he=v.value;he&&(i.selectWidth=he.getBoundingClientRect().width)},ht=(he,Me,ft=!0)=>{var Wt,xo;if(e.multiple){let Lo=e.modelValue.slice();const Ls=He(Lo,Be(he));Ls>-1?(Lo=[...Lo.slice(0,Ls),...Lo.slice(Ls+1)],i.cachedOptions.splice(Ls,1),ie(he)):(e.multipleLimit<=0||Lo.length{const{valueKey:ft}=e,Wt=e.modelValue.indexOf(zt(Me,ft));if(Wt>-1&&!C.value){const xo=[...e.modelValue.slice(0,Wt),...e.modelValue.slice(Wt+1)];return i.cachedOptions.splice(Wt,1),Pe(xo),t("remove-tag",zt(Me,ft)),i.softFocus=!0,ie(Me),Ee(Ve)}he.stopPropagation()},lt=he=>{const Me=i.isComposing;i.isComposing=!0,i.softFocus?i.softFocus=!1:Me||t("focus",he)},we=he=>(i.softFocus=!1,Ee(()=>{var Me,ft;(ft=(Me=d.value)==null?void 0:Me.blur)==null||ft.call(Me),g.value&&(i.calculatedWidth=g.value.getBoundingClientRect().width),i.isSilentBlur?i.isSilentBlur=!1:i.isComposing&&t("blur",he),i.isComposing=!1})),ye=()=>{i.displayInputValue.length>0?Q(""):y.value=!1},ae=he=>{if(i.displayInputValue.length===0){he.preventDefault();const Me=e.modelValue.slice();Me.pop(),ie(i.cachedOptions.pop()),Pe(Me)}},q=()=>{let he;return et(e.modelValue)?he=[]:he=void 0,i.softFocus=!0,e.multiple?i.cachedOptions=[]:i.selectedLabel="",y.value=!1,Pe(he),t("clear"),oe(),Ee(Ve)},Q=he=>{i.displayInputValue=he,i.inputValue=he},pe=(he,Me=void 0)=>{const ft=D.value;if(!["forward","backward"].includes(he)||C.value||ft.length<=0||R.value)return;if(!y.value)return We();Me===void 0&&(Me=i.hoveringIndex);let Wt=-1;he==="forward"?(Wt=Me+1,Wt>=ft.length&&(Wt=0)):he==="backward"&&(Wt=Me-1,(Wt<0||Wt>=ft.length)&&(Wt=ft.length-1));const xo=ft[Wt];if(xo.disabled||xo.type==="Group")return pe(he,Wt);st(Wt),Mt(Wt)},$e=()=>{if(y.value)~i.hoveringIndex&&D.value[i.hoveringIndex]&&ht(D.value[i.hoveringIndex],i.hoveringIndex,!1);else return We()},st=he=>{i.hoveringIndex=he},fe=()=>{i.hoveringIndex=-1},_e=()=>{var he;const Me=d.value;Me&&((he=Me.focus)==null||he.call(Me))},Ue=he=>{const Me=he.target.value;if(Q(Me),i.displayInputValue.length>0&&!y.value&&(y.value=!0),i.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&Qe(),e.remote)yt();else return Ge()},at=()=>(y.value=!1,we()),vt=()=>(i.inputValue=i.displayInputValue,Ee(()=>{~K.value&&(st(K.value),Mt(i.hoveringIndex))})),Mt=he=>{p.value.scrollToItem(he)},fn=()=>{if(fe(),e.multiple)if(e.modelValue.length>0){let he=!1;i.cachedOptions.length=0,i.previousValue=e.modelValue.toString(),e.modelValue.forEach(Me=>{const ft=D.value.findIndex(Wt=>Be(Wt)===Me);~ft&&(i.cachedOptions.push(D.value[ft]),he||st(ft),he=!0)})}else i.cachedOptions=[],i.previousValue=void 0;else if(w.value){i.previousValue=e.modelValue;const he=D.value,Me=he.findIndex(ft=>Be(ft)===Be(e.modelValue));~Me?(i.selectedLabel=he[Me].label,st(Me)):i.selectedLabel=`${e.modelValue}`}else i.selectedLabel="",i.previousValue=void 0;oe(),T()};return ue(y,he=>{var Me,ft;t("visible-change",he),he?(ft=(Me=h.value).update)==null||ft.call(Me):(i.displayInputValue="",i.previousQuery=null,re(""))}),ue(()=>e.modelValue,(he,Me)=>{var ft;(!he||he.toString()!==i.previousValue)&&fn(),!Dn(he,Me)&&e.validateEvent&&((ft=s==null?void 0:s.validate)==null||ft.call(s,"change").catch(Wt=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const he=d.value;(!he||he&&document.activeElement!==he)&&fn()},{deep:!0}),ue(D,()=>Ee(p.value.resetScrollTop)),ue(()=>X.value,he=>{he||fe()}),Ze(()=>{fn()}),En(m,Ce),{collapseTagSize:U,currentPlaceholder:W,expanded:y,emptyText:L,popupHeight:b,debounce:N,filteredOptions:D,iconComponent:$,iconReverse:O,inputWrapperStyle:B,popperSize:c,dropdownMenuVisible:X,hasModelValue:w,shouldShowPlaceholder:A,selectDisabled:C,selectSize:V,showClearBtn:k,states:i,tagMaxWidth:F,nsSelectV2:o,nsInput:r,calculatorRef:g,controlRef:f,inputRef:d,menuRef:p,popper:h,selectRef:m,selectionRef:v,popperRef:Z,validateState:I,validateIcon:P,showTagList:se,collapseTagList:ve,debouncedOnInputChange:yt,deleteTag:Ot,getLabel:Xe,getValueKey:Be,handleBlur:we,handleClear:q,handleClickOutside:at,handleDel:ae,handleEsc:ye,handleFocus:lt,handleMenuEnter:vt,handleResize:Ce,toggleMenu:We,scrollTo:Mt,onInput:Ue,onKeyboardNavigate:pe,onKeyboardSelect:$e,onSelect:ht,onHover:st,onUpdateInputValue:Q,handleCompositionStart:de,handleCompositionEnd:Re,handleCompositionUpdate:Te}};var MJ=OJ;const AJ=G({name:"ElSelectV2",components:{ElSelectMenu:_J,ElTag:al,ElTooltip:Nn,ElIcon:ke},directives:{ClickOutside:yr,ModelText:ic},props:gJ,emits:[tt,Bt,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=S(()=>{const{modelValue:r,multiple:a}=e,s=a?[]:void 0;return et(r)?a?r:s:a?s:r}),o=MJ(At({...dn(e),modelValue:n}),t);return ut(yv,{props:At({...dn(e),height:o.popupHeight,modelValue:n}),popper:o.popper,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect}),{...o,modelValue:n}}}),IJ={key:0},NJ=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],RJ=["textContent"],PJ=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],xJ=["textContent"];function LJ(e,t,n,o,r,a){const s=Ke("el-tag"),i=Ke("el-tooltip"),u=Ke("el-icon"),c=Ke("el-select-menu"),f=kl("model-text"),d=kl("click-outside");return je((_(),x("div",{ref:"selectRef",class:E([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=Le((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"])),onMouseenter:t[25]||(t[25]=p=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=p=>e.states.comboBoxHovering=!1)},[j(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=p=>e.states.inputValue=e.states.displayInputValue)},{default:Y(()=>[z("div",{ref:"selectionRef",class:E([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(_(),x("div",IJ,[le(e.$slots,"prefix")])):ee("v-if",!0),e.multiple?(_(),x("div",{key:1,class:E(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(_(),x(xe,{key:0},[(_(!0),x(xe,null,ct(e.showTagList,p=>(_(),x("div",{key:e.getValueKey(p),class:E(e.nsSelectV2.e("selected-item"))},[j(s,{closable:!e.selectDisabled&&!(p!=null&&p.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,p)},{default:Y(()=>[z("span",{class:E(e.nsSelectV2.e("tags-text")),style:Ie({maxWidth:`${e.tagMaxWidth}px`})},me(p==null?void 0:p.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),z("div",{class:E(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(_(),ne(s,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:Y(()=>[e.collapseTagsTooltip?(_(),ne(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:Y(()=>[z("span",{class:E(e.nsSelectV2.e("tags-text")),style:Ie({maxWidth:`${e.tagMaxWidth}px`})},"+ "+me(e.modelValue.length-e.maxCollapseTags),7)]),content:Y(()=>[z("div",{class:E(e.nsSelectV2.e("selection"))},[(_(!0),x(xe,null,ct(e.collapseTagList,p=>(_(),x("div",{key:e.getValueKey(p),class:E(e.nsSelectV2.e("selected-item"))},[j(s,{closable:!e.selectDisabled&&!p.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,p)},{default:Y(()=>[z("span",{class:E(e.nsSelectV2.e("tags-text")),style:Ie({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(p)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(_(),x("span",{key:1,class:E(e.nsSelectV2.e("tags-text")),style:Ie({maxWidth:`${e.tagMaxWidth}px`})},"+ "+me(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):ee("v-if",!0)],2)],64)):(_(!0),x(xe,{key:1},ct(e.states.cachedOptions,p=>(_(),x("div",{key:e.getValueKey(p),class:E(e.nsSelectV2.e("selected-item"))},[j(s,{closable:!e.selectDisabled&&!p.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,p)},{default:Y(()=>[z("span",{class:E(e.nsSelectV2.e("tags-text")),style:Ie({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(p)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),z("div",{class:E([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Ie(e.inputWrapperStyle)},[je(z("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:E([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...p)=>e.onUpdateInputValue&&e.onUpdateInputValue(...p)),onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onInput:t[3]||(t[3]=(...p)=>e.onInput&&e.onInput(...p)),onCompositionstart:t[4]||(t[4]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[5]||(t[5]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[6]||(t[6]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onKeydown:[t[7]||(t[7]=mt(Le(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=mt(Le(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=mt(Le((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[10]||(t[10]=mt(Le((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"])),t[11]||(t[11]=mt(Le((...p)=>e.handleDel&&e.handleDel(...p),["stop"]),["delete"]))]},null,42,NJ),[[f,e.states.displayInputValue]]),e.filterable?(_(),x("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:E(e.nsSelectV2.e("input-calculator")),textContent:me(e.states.displayInputValue)},null,10,RJ)):ee("v-if",!0)],6)],2)):(_(),x(xe,{key:2},[z("div",{class:E([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[je(z("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:E(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...p)=>e.handleCompositionStart&&e.handleCompositionStart(...p)),onCompositionupdate:t[13]||(t[13]=(...p)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...p)),onCompositionend:t[14]||(t[14]=(...p)=>e.handleCompositionEnd&&e.handleCompositionEnd(...p)),onFocus:t[15]||(t[15]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[16]||(t[16]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onInput:t[17]||(t[17]=(...p)=>e.onInput&&e.onInput(...p)),onKeydown:[t[18]||(t[18]=mt(Le(p=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=mt(Le(p=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=mt(Le((...p)=>e.onKeyboardSelect&&e.onKeyboardSelect(...p),["stop","prevent"]),["enter"])),t[21]||(t[21]=mt(Le((...p)=>e.handleEsc&&e.handleEsc(...p),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...p)=>e.onUpdateInputValue&&e.onUpdateInputValue(...p))},null,42,PJ),[[f,e.states.displayInputValue]])],2),e.filterable?(_(),x("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:E([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:me(e.states.displayInputValue)},null,10,xJ)):ee("v-if",!0)],64)),e.shouldShowPlaceholder?(_(),x("span",{key:3,class:E([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},me(e.currentPlaceholder),3)):ee("v-if",!0),z("span",{class:E(e.nsSelectV2.e("suffix"))},[e.iconComponent?je((_(),ne(u,{key:0,class:E([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Y(()=>[(_(),ne(rt(e.iconComponent)))]),_:1},8,["class"])),[[St,!e.showClearBtn]]):ee("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ne(u,{key:1,class:E([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:Le(e.handleClear,["prevent","stop"])},{default:Y(()=>[(_(),ne(rt(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.validateState&&e.validateIcon?(_(),ne(u,{key:2,class:E([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Y(()=>[(_(),ne(rt(e.validateIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)]),content:Y(()=>[j(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Y(p=>[le(e.$slots,"default",wo(uc(p)))]),empty:Y(()=>[le(e.$slots,"empty",{},()=>[z("p",{class:E(e.nsSelectV2.e("empty"))},me(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var Fu=ge(AJ,[["render",LJ],["__file","select.vue"]]);Fu.install=e=>{e.component(Fu.name,Fu)};const DJ=Fu,v_=DJ,h_=be({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),m_=be({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),BJ=G({name:"ElSkeletonItem"}),FJ=G({...BJ,props:m_,setup(e){const t=ce("skeleton");return(n,o)=>(_(),x("div",{class:E([l(t).e("item"),l(t).e(n.variant)])},[n.variant==="image"?(_(),ne(l(BF),{key:0})):ee("v-if",!0)],2))}});var Vu=ge(FJ,[["__file","skeleton-item.vue"]]);const VJ=G({name:"ElSkeleton"}),zJ=G({...VJ,props:h_,setup(e,{expose:t}){const n=e,o=ce("skeleton"),r=sb(Kt(n,"loading"),n.throttle);return t({uiLoading:r}),(a,s)=>l(r)?(_(),x("div",ot({key:0,class:[l(o).b(),l(o).is("animated",a.animated)]},a.$attrs),[(_(!0),x(xe,null,ct(a.count,i=>(_(),x(xe,{key:i},[a.loading?le(a.$slots,"template",{key:i},()=>[j(Vu,{class:E(l(o).is("first")),variant:"p"},null,8,["class"]),(_(!0),x(xe,null,ct(a.rows,u=>(_(),ne(Vu,{key:u,class:E([l(o).e("paragraph"),l(o).is("last",u===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ee("v-if",!0)],64))),128))],16)):le(a.$slots,"default",wo(ot({key:1},a.$attrs)))}});var HJ=ge(zJ,[["__file","skeleton.vue"]]);const g_=Je(HJ,{SkeletonItem:Vu}),y_=Xt(Vu),bv=Symbol("sliderContextKey"),b_=be({modelValue:{type:te([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:vn,inputSize:vn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:te(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:te(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ua,default:"top"},marks:{type:te(Object)},validateEvent:{type:Boolean,default:!0}}),wv=e=>De(e)||et(e)&&e.every(De),w_={[tt]:wv,[Mn]:wv,[Bt]:wv},WJ=(e,t,n)=>{const o=M();return Ze(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),xt(window,"resize",n),await Ee(),n()}),{sliderWrapper:o}},KJ=e=>S(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),jJ=(e,t,n)=>{const{form:o,formItem:r}=In(),a=Pt(),s=M(),i=M(),u={firstButton:s,secondButton:i},c=S(()=>e.disabled||(o==null?void 0:o.disabled)||!1),f=S(()=>Math.min(t.firstValue,t.secondValue)),d=S(()=>Math.max(t.firstValue,t.secondValue)),p=S(()=>e.range?`${100*(d.value-f.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=S(()=>e.range?`${100*(f.value-e.min)/(e.max-e.min)}%`:"0%"),m=S(()=>e.vertical?{height:e.height}:{}),v=S(()=>e.vertical?{height:p.value,bottom:h.value}:{width:p.value,left:h.value}),g=()=>{a.value&&(t.sliderSize=a.value[`client${e.vertical?"Height":"Width"}`])},y=L=>{const D=e.min+L*(e.max-e.min)/100;if(!e.range)return s;let R;return Math.abs(f.value-D)t.secondValue?"firstButton":"secondButton",u[R]},C=L=>{const D=y(L);return D.value.setPosition(L),D},b=L=>{t.firstValue=L,k(e.range?[f.value,d.value]:L)},w=L=>{t.secondValue=L,e.range&&k([f.value,d.value])},k=L=>{n(tt,L),n(Mn,L)},$=async()=>{await Ee(),n(Bt,e.range?[f.value,d.value]:e.modelValue)},O=L=>{var D,R,V,U,F,T;if(c.value||t.dragging)return;g();let B=0;if(e.vertical){const A=(V=(R=(D=L.touches)==null?void 0:D.item(0))==null?void 0:R.clientY)!=null?V:L.clientY;B=(a.value.getBoundingClientRect().bottom-A)/t.sliderSize*100}else{const A=(T=(F=(U=L.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)!=null?T:L.clientX,W=a.value.getBoundingClientRect().left;B=(A-W)/t.sliderSize*100}if(!(B<0||B>100))return C(B)};return{elFormItem:r,slider:a,firstButton:s,secondButton:i,sliderDisabled:c,minValue:f,maxValue:d,runwayStyle:m,barStyle:v,resetSize:g,setPosition:C,emitChange:$,onSliderWrapperPrevent:L=>{var D,R;(((D=u.firstButton.value)==null?void 0:D.dragging)||((R=u.secondButton.value)==null?void 0:R.dragging))&&L.preventDefault()},onSliderClick:L=>{O(L)&&$()},onSliderDown:async L=>{const D=O(L);D&&(await Ee(),D.value.onButtonDown(L))},setFirstValue:b,setSecondValue:w}},{left:UJ,down:qJ,right:GJ,up:YJ,home:XJ,end:ZJ,pageUp:JJ,pageDown:QJ}=Ae,eQ=(e,t,n)=>{const o=M(),r=M(!1),a=S(()=>t.value instanceof Function),s=S(()=>a.value&&t.value(e.modelValue)||e.modelValue),i=On(()=>{n.value&&(r.value=!0)},50),u=On(()=>{n.value&&(r.value=!1)},50);return{tooltip:o,tooltipVisible:r,formatValue:s,displayTooltip:i,hideTooltip:u}},tQ=(e,t,n)=>{const{disabled:o,min:r,max:a,step:s,showTooltip:i,precision:u,sliderSize:c,formatTooltip:f,emitChange:d,resetSize:p,updateDragging:h}=Oe(bv),{tooltip:m,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:C}=eQ(e,f,i),b=M(),w=S(()=>`${(e.modelValue-r.value)/(a.value-r.value)*100}%`),k=S(()=>e.vertical?{bottom:w.value}:{left:w.value}),$=()=>{t.hovering=!0,y()},O=()=>{t.hovering=!1,t.dragging||C()},I=K=>{o.value||(K.preventDefault(),B(K),window.addEventListener("mousemove",A),window.addEventListener("touchmove",A),window.addEventListener("mouseup",W),window.addEventListener("touchend",W),window.addEventListener("contextmenu",W),b.value.focus())},P=K=>{o.value||(t.newPosition=Number.parseFloat(w.value)+K/(a.value-r.value)*100,Z(t.newPosition),d())},N=()=>{P(-s.value)},L=()=>{P(s.value)},D=()=>{P(-s.value*4)},R=()=>{P(s.value*4)},V=()=>{o.value||(Z(0),d())},U=()=>{o.value||(Z(100),d())},F=K=>{let X=!0;[UJ,qJ].includes(K.key)?N():[GJ,YJ].includes(K.key)?L():K.key===XJ?V():K.key===ZJ?U():K.key===QJ?D():K.key===JJ?R():X=!1,X&&K.preventDefault()},T=K=>{let X,se;return K.type.startsWith("touch")?(se=K.touches[0].clientY,X=K.touches[0].clientX):(se=K.clientY,X=K.clientX),{clientX:X,clientY:se}},B=K=>{t.dragging=!0,t.isClick=!0;const{clientX:X,clientY:se}=T(K);e.vertical?t.startY=se:t.startX=X,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},A=K=>{if(t.dragging){t.isClick=!1,y(),p();let X;const{clientX:se,clientY:ve}=T(K);e.vertical?(t.currentY=ve,X=(t.startY-t.currentY)/c.value*100):(t.currentX=se,X=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+X,Z(t.newPosition)}},W=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||Z(t.newPosition),d()},0),window.removeEventListener("mousemove",A),window.removeEventListener("touchmove",A),window.removeEventListener("mouseup",W),window.removeEventListener("touchend",W),window.removeEventListener("contextmenu",W))},Z=async K=>{if(K===null||Number.isNaN(+K))return;K<0?K=0:K>100&&(K=100);const X=100/((a.value-r.value)/s.value);let ve=Math.round(K/X)*X*(a.value-r.value)*.01+r.value;ve=Number.parseFloat(ve.toFixed(u.value)),ve!==e.modelValue&&n(tt,ve),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ee(),t.dragging&&y(),m.value.updatePopper()};return ue(()=>t.dragging,K=>{h(K)}),{disabled:o,button:b,tooltip:m,tooltipVisible:v,showTooltip:i,wrapperStyle:k,formatValue:g,handleMouseEnter:$,handleMouseLeave:O,onButtonDown:I,onKeyDown:F,setPosition:Z}},nQ=(e,t,n,o)=>({stops:S(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,f)=>(f+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(o.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),oQ=(e,t,n,o,r,a)=>{const s=c=>{r(tt,c),r(Mn,c)},i=()=>e.range?![n.value,o.value].every((c,f)=>c===t.oldValue[f]):e.modelValue!==t.oldValue,u=()=>{var c,f;e.min>e.max&&cn("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Array.isArray(d)?d[1]e.max?s([e.max,e.max]):d[0]e.max?s([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((c=a==null?void 0:a.validate)==null||c.call(a,"change").catch(p=>void 0)),t.oldValue=d.slice())):!e.range&&typeof d=="number"&&!Number.isNaN(d)&&(de.max?s(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((f=a==null?void 0:a.validate)==null||f.call(a,"change").catch(p=>void 0)),t.oldValue=d)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,f)=>{t.dragging||Array.isArray(c)&&Array.isArray(f)&&c.every((d,p)=>d===f[p])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},rQ=be({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ua,default:"top"}}),aQ={[tt]:e=>De(e)},lQ=["tabindex"],sQ=G({name:"ElSliderButton"}),iQ=G({...sQ,props:rQ,emits:aQ,setup(e,{expose:t,emit:n}){const o=e,r=ce("slider"),a=At({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),{disabled:s,button:i,tooltip:u,showTooltip:c,tooltipVisible:f,wrapperStyle:d,formatValue:p,handleMouseEnter:h,handleMouseLeave:m,onButtonDown:v,onKeyDown:g,setPosition:y}=tQ(o,a,n),{hovering:C,dragging:b}=dn(a);return t({onButtonDown:v,onKeyDown:g,setPosition:y,hovering:C,dragging:b}),(w,k)=>(_(),x("div",{ref_key:"button",ref:i,class:E([l(r).e("button-wrapper"),{hover:l(C),dragging:l(b)}]),style:Ie(l(d)),tabindex:l(s)?-1:0,onMouseenter:k[0]||(k[0]=(...$)=>l(h)&&l(h)(...$)),onMouseleave:k[1]||(k[1]=(...$)=>l(m)&&l(m)(...$)),onMousedown:k[2]||(k[2]=(...$)=>l(v)&&l(v)(...$)),onTouchstart:k[3]||(k[3]=(...$)=>l(v)&&l(v)(...$)),onFocus:k[4]||(k[4]=(...$)=>l(h)&&l(h)(...$)),onBlur:k[5]||(k[5]=(...$)=>l(m)&&l(m)(...$)),onKeydown:k[6]||(k[6]=(...$)=>l(g)&&l(g)(...$))},[j(l(Nn),{ref_key:"tooltip",ref:u,visible:l(f),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!l(c),persistent:""},{content:Y(()=>[z("span",null,me(l(p)),1)]),default:Y(()=>[z("div",{class:E([l(r).e("button"),{hover:l(C),dragging:l(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,lQ))}});var C_=ge(iQ,[["__file","button.vue"]]);const uQ=be({mark:{type:te([String,Object]),default:void 0}});var cQ=G({name:"ElSliderMarker",props:uQ,setup(e){const t=ce("slider"),n=S(()=>it(e.mark)?e.mark:e.mark.label),o=S(()=>it(e.mark)?void 0:e.mark.style);return()=>Ne("div",{class:t.e("marks-text"),style:o.value},n.value)}});const dQ=["id","role","aria-label","aria-labelledby"],fQ={key:1},pQ=G({name:"ElSlider"}),vQ=G({...pQ,props:b_,emits:w_,setup(e,{expose:t,emit:n}){const o=e,r=ce("slider"),{t:a}=gt(),s=At({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:u,firstButton:c,secondButton:f,sliderDisabled:d,minValue:p,maxValue:h,runwayStyle:m,barStyle:v,resetSize:g,emitChange:y,onSliderWrapperPrevent:C,onSliderClick:b,onSliderDown:w,setFirstValue:k,setSecondValue:$}=jJ(o,s,n),{stops:O,getStopStyle:I}=nQ(o,s,p,h),{inputId:P,isLabeledByFormItem:N}=vr(o,{formItemContext:i}),L=on(),D=S(()=>o.inputSize||L.value),R=S(()=>o.label||a("el.slider.defaultLabel",{min:o.min,max:o.max})),V=S(()=>o.range?o.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):R.value),U=S(()=>o.formatValueText?o.formatValueText(K.value):`${K.value}`),F=S(()=>o.rangeEndLabel||a("el.slider.defaultRangeEndLabel")),T=S(()=>o.formatValueText?o.formatValueText(X.value):`${X.value}`),B=S(()=>[r.b(),r.m(L.value),r.is("vertical",o.vertical),{[r.m("with-input")]:o.showInput}]),A=KJ(o);oQ(o,s,p,h,n,i);const W=S(()=>{const re=[o.min,o.max,o.step].map(ie=>{const J=`${ie}`.split(".")[1];return J?J.length:0});return Math.max.apply(null,re)}),{sliderWrapper:Z}=WJ(o,s,g),{firstValue:K,secondValue:X,sliderSize:se}=dn(s),ve=re=>{s.dragging=re};return ut(bv,{...dn(o),sliderSize:se,disabled:d,precision:W,emitChange:y,resetSize:g,updateDragging:ve}),t({onSliderClick:b}),(re,ie)=>{var J,oe;return _(),x("div",{id:re.range?l(P):void 0,ref_key:"sliderWrapper",ref:Z,class:E(l(B)),role:re.range?"group":void 0,"aria-label":re.range&&!l(N)?l(R):void 0,"aria-labelledby":re.range&&l(N)?(J=l(i))==null?void 0:J.labelId:void 0,onTouchstart:ie[2]||(ie[2]=(...de)=>l(C)&&l(C)(...de)),onTouchmove:ie[3]||(ie[3]=(...de)=>l(C)&&l(C)(...de))},[z("div",{ref_key:"slider",ref:u,class:E([l(r).e("runway"),{"show-input":re.showInput&&!re.range},l(r).is("disabled",l(d))]),style:Ie(l(m)),onMousedown:ie[0]||(ie[0]=(...de)=>l(w)&&l(w)(...de)),onTouchstart:ie[1]||(ie[1]=(...de)=>l(w)&&l(w)(...de))},[z("div",{class:E(l(r).e("bar")),style:Ie(l(v))},null,6),j(C_,{id:re.range?void 0:l(P),ref_key:"firstButton",ref:c,"model-value":l(K),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":re.range||!l(N)?l(V):void 0,"aria-labelledby":!re.range&&l(N)?(oe=l(i))==null?void 0:oe.labelId:void 0,"aria-valuemin":re.min,"aria-valuemax":re.range?l(X):re.max,"aria-valuenow":l(K),"aria-valuetext":l(U),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":l(d),"onUpdate:modelValue":l(k)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),re.range?(_(),ne(C_,{key:0,ref_key:"secondButton",ref:f,"model-value":l(X),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":l(F),"aria-valuemin":l(K),"aria-valuemax":re.max,"aria-valuenow":l(X),"aria-valuetext":l(T),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":l(d),"onUpdate:modelValue":l($)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ee("v-if",!0),re.showStops?(_(),x("div",fQ,[(_(!0),x(xe,null,ct(l(O),(de,Te)=>(_(),x("div",{key:Te,class:E(l(r).e("stop")),style:Ie(l(I)(de))},null,6))),128))])):ee("v-if",!0),l(A).length>0?(_(),x(xe,{key:2},[z("div",null,[(_(!0),x(xe,null,ct(l(A),(de,Te)=>(_(),x("div",{key:Te,style:Ie(l(I)(de.position)),class:E([l(r).e("stop"),l(r).e("marks-stop")])},null,6))),128))]),z("div",{class:E(l(r).e("marks"))},[(_(!0),x(xe,null,ct(l(A),(de,Te)=>(_(),ne(l(cQ),{key:Te,mark:de.mark,style:Ie(l(I)(de.position))},null,8,["mark","style"]))),128))],2)],64)):ee("v-if",!0)],38),re.showInput&&!re.range?(_(),ne(l(jp),{key:0,ref:"input","model-value":l(K),class:E(l(r).e("input")),step:re.step,disabled:l(d),controls:re.showInputControls,min:re.min,max:re.max,debounce:re.debounce,size:l(D),"onUpdate:modelValue":l(k),onChange:l(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ee("v-if",!0)],42,dQ)}}});var hQ=ge(vQ,[["__file","slider.vue"]]);const S_=Je(hQ),mQ=be({prefixCls:{type:String}}),gQ=G({name:"ElSpaceItem",props:mQ,setup(e,{slots:t}){const n=ce("space"),o=S(()=>`${e.prefixCls||n.b()}__item`);return()=>Ne("div",{class:o.value},le(t,"default"))}});var __=gQ;const $_={small:8,default:12,large:16};function k_(e){const t=ce("space"),n=S(()=>[t.b(),t.m(e.direction),e.class]),o=M(0),r=M(0),a=S(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${r.value}px`}:{},u={alignItems:e.alignment};return[i,u,e.style]}),s=S(()=>{const i={paddingBottom:`${r.value}px`,marginRight:`${o.value}px`},u=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[i,u]});return Yn(()=>{const{size:i="small",wrap:u,direction:c,fill:f}=e;if(et(i)){const[d=0,p=0]=i;o.value=d,r.value=p}else{let d;De(i)?d=i:d=$_[i||"small"]||$_.small,(u||f)&&c==="horizontal"?o.value=r.value=d:c==="horizontal"?(o.value=d,r.value=0):(r.value=d,o.value=0)}}),{classes:n,containerStyle:a,itemStyle:s}}const E_=be({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:te([String,Object,Array]),default:""},style:{type:te([String,Array,Object]),default:""},alignment:{type:te(String),default:"center"},prefixCls:{type:String},spacer:{type:te([Object,String,Number,Array]),default:null,validator:e=>Jt(e)||De(e)||it(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:To,validator:e=>De(e)||et(e)&&e.length===2&&e.every(De)}}),yQ=G({name:"ElSpace",props:E_,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:r}=k_(e);function a(s,i="",u=[]){const{prefixCls:c}=e;return s.forEach((f,d)=>{Wd(f)?et(f.children)&&f.children.forEach((p,h)=>{Wd(p)&&et(p.children)?a(p.children,`${i+h}-`,u):u.push(j(__,{style:r.value,prefixCls:c,key:`nested-${i+h}`},{default:()=>[p]},ho.PROPS|ho.STYLE,["style","prefixCls"]))}):wV(f)&&u.push(j(__,{style:r.value,prefixCls:c,key:`LoopKey${i+d}`},{default:()=>[f]},ho.PROPS|ho.STYLE,["style","prefixCls"]))}),u}return()=>{var s;const{spacer:i,direction:u}=e,c=le(t,"default",{key:0},()=>[]);if(((s=c.children)!=null?s:[]).length===0)return null;if(et(c.children)){let f=a(c.children);if(i){const d=f.length-1;f=f.reduce((p,h,m)=>{const v=[...p,h];return m!==d&&v.push(j("span",{style:[r.value,u==="vertical"?"width: 100%":null],key:m},[Jt(i)?i:Ct(i,ho.TEXT)],ho.STYLE)),v},[])}return j("div",{class:n.value,style:o.value},f,ho.STYLE|ho.CLASS)}return c.children}}}),T_=Je(yQ),O_=be({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:te([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:te([String,Object,Array])}}),bQ=G({name:"ElStatistic"}),wQ=G({...bQ,props:O_,setup(e,{expose:t}){const n=e,o=ce("statistic"),r=S(()=>{const{value:a,formatter:s,precision:i,decimalSeparator:u,groupSeparator:c}=n;if($t(s))return s(a);if(!De(a))return a;let[f,d=""]=String(a).split(".");return d=d.padEnd(i,"0").slice(0,i>0?i:0),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,c),[f,d].join(d?u:"")});return t({displayValue:r}),(a,s)=>(_(),x("div",{class:E(l(o).b())},[a.$slots.title||a.title?(_(),x("div",{key:0,class:E(l(o).e("head"))},[le(a.$slots,"title",{},()=>[Ct(me(a.title),1)])],2)):ee("v-if",!0),z("div",{class:E(l(o).e("content"))},[a.$slots.prefix||a.prefix?(_(),x("div",{key:0,class:E(l(o).e("prefix"))},[le(a.$slots,"prefix",{},()=>[z("span",null,me(a.prefix),1)])],2)):ee("v-if",!0),z("span",{class:E(l(o).e("number")),style:Ie(a.valueStyle)},me(l(r)),7),a.$slots.suffix||a.suffix?(_(),x("div",{key:1,class:E(l(o).e("suffix"))},[le(a.$slots,"suffix",{},()=>[z("span",null,me(a.suffix),1)])],2)):ee("v-if",!0)],2)],2))}});var CQ=ge(wQ,[["__file","statistic.vue"]]);const Cv=Je(CQ),M_=be({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:te([Number,Object]),default:0},valueStyle:{type:te([String,Object,Array])}}),A_={finish:()=>!0,[Bt]:e=>De(e)},SQ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],I_=e=>De(e)?new Date(e).getTime():e.valueOf(),N_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return SQ.reduce((a,[s,i])=>{const u=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(u.test(a)){const c=Math.floor(n/i);return n-=c*i,a.replace(u,f=>String(c).padStart(f.length,"0"))}return a},t).replace(o,"$1")},_Q=G({name:"ElCountdown"}),$Q=G({..._Q,props:M_,emits:A_,setup(e,{expose:t,emit:n}){const o=e;let r;const a=M(I_(o.value)-Date.now()),s=S(()=>N_(a.value,o.format)),i=f=>N_(f,o.format),u=()=>{r&&(Mi(r),r=void 0)},c=()=>{const f=I_(o.value),d=()=>{let p=f-Date.now();n("change",p),p<=0?(p=0,u(),n("finish")):r=Yl(d),a.value=p};r=Yl(d)};return ue(()=>[o.value,o.format],()=>{u(),c()},{immediate:!0}),qt(()=>{u()}),t({displayValue:s}),(f,d)=>(_(),ne(l(Cv),{value:a.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:i},er({_:2},[ct(f.$slots,(p,h)=>({name:h,fn:Y(()=>[le(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var kQ=ge($Q,[["__file","countdown.vue"]]);const R_=Je(kQ),P_=be({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),x_={[Bt]:(e,t)=>[e,t].every(De)},EQ=G({name:"ElSteps"}),TQ=G({...EQ,props:P_,emits:x_,setup(e,{emit:t}){const n=e,o=ce("steps"),{children:r,addChild:a,removeChild:s}=Wi(nt(),"ElStep");return ue(r,()=>{r.value.forEach((i,u)=>{i.setIndex(u)})}),ut("ElSteps",{props:n,steps:r,addStep:a,removeStep:s}),ue(()=>n.active,(i,u)=>{t(Bt,i,u)}),(i,u)=>(_(),x("div",{class:E([l(o).b(),l(o).m(i.simple?"simple":i.direction)])},[le(i.$slots,"default")],2))}});var OQ=ge(TQ,[["__file","steps.vue"]]);const L_=be({title:{type:String,default:""},icon:{type:Dt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),MQ=G({name:"ElStep"}),AQ=G({...MQ,props:L_,setup(e){const t=e,n=ce("step"),o=M(-1),r=M({}),a=M(""),s=Oe("ElSteps"),i=nt();Ze(()=>{ue([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([$])=>{w($)},{immediate:!0})}),qt(()=>{s.removeStep(k.uid)});const u=S(()=>t.status||a.value),c=S(()=>{const $=s.steps.value[o.value-1];return $?$.currentStatus:"wait"}),f=S(()=>s.props.alignCenter),d=S(()=>s.props.direction==="vertical"),p=S(()=>s.props.simple),h=S(()=>s.steps.value.length),m=S(()=>{var $;return(($=s.steps.value[h.value-1])==null?void 0:$.uid)===(i==null?void 0:i.uid)}),v=S(()=>p.value?"":s.props.space),g=S(()=>[n.b(),n.is(p.value?"simple":s.props.direction),n.is("flex",m.value&&!v.value&&!f.value),n.is("center",f.value&&!d.value&&!p.value)]),y=S(()=>{const $={flexBasis:De(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(f.value?0:1))}%`};return d.value||m.value&&($.maxWidth=`${100/h.value}%`),$}),C=$=>{o.value=$},b=$=>{const O=$==="wait",I={transitionDelay:`${O?"-":""}${150*o.value}ms`},P=$===s.props.processStatus||O?0:100;I.borderWidth=P&&!p.value?"1px":0,I[s.props.direction==="vertical"?"height":"width"]=`${P}%`,r.value=I},w=$=>{$>o.value?a.value=s.props.finishStatus:$===o.value&&c.value!=="error"?a.value=s.props.processStatus:a.value="wait";const O=s.steps.value[o.value-1];O&&O.calcProgress(a.value)},k=At({uid:i.uid,currentStatus:u,setIndex:C,calcProgress:b});return s.addStep(k),($,O)=>(_(),x("div",{style:Ie(l(y)),class:E(l(g))},[ee(" icon & line "),z("div",{class:E([l(n).e("head"),l(n).is(l(u))])},[l(p)?ee("v-if",!0):(_(),x("div",{key:0,class:E(l(n).e("line"))},[z("i",{class:E(l(n).e("line-inner")),style:Ie(r.value)},null,6)],2)),z("div",{class:E([l(n).e("icon"),l(n).is($.icon||$.$slots.icon?"icon":"text")])},[le($.$slots,"icon",{},()=>[$.icon?(_(),ne(l(ke),{key:0,class:E(l(n).e("icon-inner"))},{default:Y(()=>[(_(),ne(rt($.icon)))]),_:1},8,["class"])):l(u)==="success"?(_(),ne(l(ke),{key:1,class:E([l(n).e("icon-inner"),l(n).is("status")])},{default:Y(()=>[j(l(Gl))]),_:1},8,["class"])):l(u)==="error"?(_(),ne(l(ke),{key:2,class:E([l(n).e("icon-inner"),l(n).is("status")])},{default:Y(()=>[j(l(ko))]),_:1},8,["class"])):l(p)?ee("v-if",!0):(_(),x("div",{key:3,class:E(l(n).e("icon-inner"))},me(o.value+1),3))])],2)],2),ee(" title & description "),z("div",{class:E(l(n).e("main"))},[z("div",{class:E([l(n).e("title"),l(n).is(l(u))])},[le($.$slots,"title",{},()=>[Ct(me($.title),1)])],2),l(p)?(_(),x("div",{key:0,class:E(l(n).e("arrow"))},null,2)):(_(),x("div",{key:1,class:E([l(n).e("description"),l(n).is(l(u))])},[le($.$slots,"description",{},()=>[Ct(me($.description),1)])],2))],2)],6))}});var D_=ge(AQ,[["__file","item.vue"]]);const B_=Je(OQ,{Step:D_}),F_=Xt(D_),V_=be({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Dt},inactiveIcon:{type:Dt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:te(Function)},size:{type:String,validator:Ti},tabindex:{type:[String,Number]}}),z_={[tt]:e=>un(e)||it(e)||De(e),[Bt]:e=>un(e)||it(e)||De(e),[Mn]:e=>un(e)||it(e)||De(e)},IQ=["onClick"],NQ=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],RQ=["aria-hidden"],PQ=["aria-hidden"],xQ=["aria-hidden"],Sv="ElSwitch",LQ=G({name:Sv}),DQ=G({...LQ,props:V_,emits:z_,setup(e,{expose:t,emit:n}){const o=e,r=nt(),{formItem:a}=In(),s=on(),i=ce("switch");Oo({from:'"value"',replacement:'"model-value" or "v-model"',scope:Sv,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},S(()=>{var k;return!!((k=r.vnode.props)!=null&&k.value)}));const{inputId:u}=vr(o,{formItemContext:a}),c=An(S(()=>o.loading)),f=M(o.modelValue!==!1),d=M(),p=M(),h=S(()=>[i.b(),i.m(s.value),i.is("disabled",c.value),i.is("checked",g.value)]),m=S(()=>({width:tn(o.width)}));ue(()=>o.modelValue,()=>{f.value=!0}),ue(()=>o.value,()=>{f.value=!1});const v=S(()=>f.value?o.modelValue:o.value),g=S(()=>v.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(v.value)||(n(tt,o.inactiveValue),n(Bt,o.inactiveValue),n(Mn,o.inactiveValue)),ue(g,k=>{var $;d.value.checked=k,o.validateEvent&&(($=a==null?void 0:a.validate)==null||$.call(a,"change").catch(O=>void 0))});const y=()=>{const k=g.value?o.inactiveValue:o.activeValue;n(tt,k),n(Bt,k),n(Mn,k),Ee(()=>{d.value.checked=g.value})},C=()=>{if(c.value)return;const{beforeChange:k}=o;if(!k){y();return}const $=k();[mc($),un($)].includes(!0)||cn(Sv,"beforeChange must return type `Promise` or `boolean`"),mc($)?$.then(I=>{I&&y()}).catch(I=>{}):$&&y()},b=S(()=>i.cssVarBlock({...o.activeColor?{"on-color":o.activeColor}:null,...o.inactiveColor?{"off-color":o.inactiveColor}:null,...o.borderColor?{"border-color":o.borderColor}:null})),w=()=>{var k,$;($=(k=d.value)==null?void 0:k.focus)==null||$.call(k)};return Ze(()=>{d.value.checked=g.value}),t({focus:w,checked:g}),(k,$)=>(_(),x("div",{class:E(l(h)),style:Ie(l(b)),onClick:Le(C,["prevent"])},[z("input",{id:l(u),ref_key:"input",ref:d,class:E(l(i).e("input")),type:"checkbox",role:"switch","aria-checked":l(g),"aria-disabled":l(c),name:k.name,"true-value":k.activeValue,"false-value":k.inactiveValue,disabled:l(c),tabindex:k.tabindex,onChange:y,onKeydown:mt(C,["enter"])},null,42,NQ),!k.inlinePrompt&&(k.inactiveIcon||k.inactiveText)?(_(),x("span",{key:0,class:E([l(i).e("label"),l(i).em("label","left"),l(i).is("active",!l(g))])},[k.inactiveIcon?(_(),ne(l(ke),{key:0},{default:Y(()=>[(_(),ne(rt(k.inactiveIcon)))]),_:1})):ee("v-if",!0),!k.inactiveIcon&&k.inactiveText?(_(),x("span",{key:1,"aria-hidden":l(g)},me(k.inactiveText),9,RQ)):ee("v-if",!0)],2)):ee("v-if",!0),z("span",{ref_key:"core",ref:p,class:E(l(i).e("core")),style:Ie(l(m))},[k.inlinePrompt?(_(),x("div",{key:0,class:E(l(i).e("inner"))},[k.activeIcon||k.inactiveIcon?(_(),ne(l(ke),{key:0,class:E(l(i).is("icon"))},{default:Y(()=>[(_(),ne(rt(l(g)?k.activeIcon:k.inactiveIcon)))]),_:1},8,["class"])):k.activeText||k.inactiveText?(_(),x("span",{key:1,class:E(l(i).is("text")),"aria-hidden":!l(g)},me(l(g)?k.activeText:k.inactiveText),11,PQ)):ee("v-if",!0)],2)):ee("v-if",!0),z("div",{class:E(l(i).e("action"))},[k.loading?(_(),ne(l(ke),{key:0,class:E(l(i).is("loading"))},{default:Y(()=>[j(l(Pr))]),_:1},8,["class"])):ee("v-if",!0)],2)],6),!k.inlinePrompt&&(k.activeIcon||k.activeText)?(_(),x("span",{key:1,class:E([l(i).e("label"),l(i).em("label","right"),l(i).is("active",l(g))])},[k.activeIcon?(_(),ne(l(ke),{key:0},{default:Y(()=>[(_(),ne(rt(k.activeIcon)))]),_:1})):ee("v-if",!0),!k.activeIcon&&k.activeText?(_(),x("span",{key:1,"aria-hidden":!l(g)},me(k.activeText),9,xQ)):ee("v-if",!0)],2)):ee("v-if",!0)],14,IQ))}});var BQ=ge(DQ,[["__file","switch.vue"]]);const H_=Je(BQ);var FQ=/["'&<>]/,VQ=zQ;function zQ(e){var t=""+e,n=FQ.exec(t);if(!n)return t;var o,r="",a=0,s=0;for(a=n.index;atypeof c=="string"?zt(i,c):c(i,u,e))):(t!=="$key"&&Rt(i)&&"$value"in i&&(i=i.$value),[Rt(i)?zt(i,t):i])},s=function(i,u){if(o)return o(i.value,u.value);for(let c=0,f=i.key.length;cu.key[c])return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:a?a(i,u):null})).sort((i,u)=>{let c=s(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},W_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},WQ=function(e,t){let n=null;for(let o=0;o{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const r of n)o=o[r];return`${o}`}else if(typeof t=="function")return t.call(null,e)},_a=function(e,t){const n={};return(e||[]).forEach((o,r)=>{n[kn(o,t)]={row:o,index:r}}),n};function KQ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Cn(t,o)){const r=t[o];typeof r!="undefined"&&(n[o]=r)}return n}function $v(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function j_(e){return e===""||e!==void 0&&(e=$v(e),Number.isNaN(e)&&(e=80)),e}function jQ(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function UQ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Es(e,t,n){let o=!1;const r=e.indexOf(t),a=r!==-1,s=i=>{i==="add"?e.push(t):e.splice(r,1),o=!0,et(t.children)&&t.children.forEach(u=>{Es(e,u,n!=null?n:!a)})};return un(n)?n&&!a?s("add"):!n&&a&&s("remove"):s(a?"remove":"add"),o}function qQ(e,t,n="children",o="hasChildren"){const r=s=>!(Array.isArray(s)&&s.length);function a(s,i,u){t(s,i,u),i.forEach(c=>{if(c[o]){t(c,null,u+1);return}const f=c[n];r(f)||a(c,f,u+1)})}e.forEach(s=>{if(s[o]){t(s,null,0);return}const i=s[n];r(i)||a(s,i,0)})}let wr;function GQ(e,t,n,o,r){r=yd({enterable:!0,showArrow:!0},r);const a=e==null?void 0:e.dataset.prefix,s=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function i(){const g=r.effect==="light",y=document.createElement("div");return y.className=[`${a}-popper`,g?"is-light":"is-dark",r.popperClass||""].join(" "),n=VQ(n),y.innerHTML=n,y.style.zIndex=String(o()),e==null||e.appendChild(y),y}function u(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function c(){f&&f.update()}wr==null||wr(),wr=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",p),s==null||s.removeEventListener("scroll",wr),wr=void 0}catch(g){}};let f=null,d=c,p=wr;r.enterable&&({onOpen:d,onClose:p}=cf({showAfter:r.showAfter,hideAfter:r.hideAfter,open:c,close:wr}));const h=i();h.onmouseenter=d,h.onmouseleave=p;const m=[];if(r.offset&&m.push({name:"offset",options:{offset:[0,r.offset]}}),r.showArrow){const g=h.appendChild(u());m.push({name:"arrow",options:{element:g,padding:10}})}const v=r.popperOptions||{};return f=ab(t,h,{placement:r.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?m.concat(v.modifiers):m}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",p),s==null||s.addEventListener("scroll",wr),f}function U_(e){return e.children?m0(e.children,U_):[e]}function q_(e,t){return e+t.colSpan}const G_=(e,t,n,o)=>{let r=0,a=e;const s=n.states.columns.value;if(o){const u=U_(o[e]);r=s.slice(0,s.indexOf(u[0])).reduce(q_,0),a=r+u.reduce(q_,0)-1}else r=e;let i;switch(t){case"left":a=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:a=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:r,after:a}:{}},kv=(e,t,n,o,r,a=0)=>{const s=[],{direction:i,start:u,after:c}=G_(t,n,o,r);if(i){const f=i==="left";s.push(`${e}-fixed-column--${i}`),f&&c+a===o.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!f&&u-a===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function Y_(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ev=(e,t,n,o)=>{const{direction:r,start:a=0,after:s=0}=G_(e,t,n,o);if(!r)return;const i={},u=r==="left",c=n.states.columns.value;return u?i.left=c.slice(0,a).reduce(Y_,0):i.right=c.slice(s+1).reverse().reduce(Y_,0),i},pl=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function YQ(e){const t=nt(),n=M(!1),o=M([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=u.slice();else if(c){const f=_a(o.value,c);o.value=u.reduce((d,p)=>{const h=kn(p,c);return f[h]&&d.push(p),d},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{Es(o.value,u,c)&&t.emit("expand-change",u,o.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,d=_a(c,f);o.value=u.reduce((p,h)=>{const m=d[h];return m&&p.push(m.row),p},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!_a(o.value,c)[kn(u,c)]:o.value.includes(u)},states:{expandRows:o,defaultExpandAll:n}}}function XQ(e){const t=nt(),n=M(null),o=M(null),r=c=>{t.store.assertRowKey(),n.value=c,s(c)},a=()=>{n.value=null},s=c=>{const{data:f,rowKey:d}=e;let p=null;d.value&&(p=(l(f)||[]).find(h=>kn(h,d.value)===c)),o.value=p,t.emit("current-change",o.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:a,setCurrentRowByKey:s,updateCurrentRow:c=>{const f=o.value;if(c&&c!==f){o.value=c,t.emit("current-change",o.value,f);return}!c&&f&&(o.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],d=o.value;if(!f.includes(d)&&d){if(c){const p=kn(d,c);s(p)}else o.value=null;o.value===null&&t.emit("current-change",null,d)}else n.value&&(s(n.value),a())},states:{_currentRowKey:n,currentRow:o}}}function ZQ(e){const t=M([]),n=M({}),o=M(16),r=M(!1),a=M({}),s=M("hasChildren"),i=M("children"),u=nt(),c=S(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return d(y)}),f=S(()=>{const y=e.rowKey.value,C=Object.keys(a.value),b={};return C.length&&C.forEach(w=>{if(a.value[w].length){const k={children:[]};a.value[w].forEach($=>{const O=kn($,y);k.children.push(O),$[s.value]&&!b[O]&&(b[O]={children:[]})}),b[w]=k}}),b}),d=y=>{const C=e.rowKey.value,b={};return qQ(y,(w,k,$)=>{const O=kn(w,C);Array.isArray(k)?b[O]={children:k.map(I=>kn(I,C)),level:$}:r.value&&(b[O]={children:[],lazy:!0,level:$})},i.value,s.value),b},p=(y=!1,C=(b=>(b=u.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const w=c.value,k=f.value,$=Object.keys(w),O={};if($.length){const I=l(n),P=[],N=(D,R)=>{if(y)return t.value?C||t.value.includes(R):!!(C||(D==null?void 0:D.expanded));{const V=C||t.value&&t.value.includes(R);return!!((D==null?void 0:D.expanded)||V)}};$.forEach(D=>{const R=I[D],V={...w[D]};if(V.expanded=N(R,D),V.lazy){const{loaded:U=!1,loading:F=!1}=R||{};V.loaded=!!U,V.loading=!!F,P.push(D)}O[D]=V});const L=Object.keys(k);r.value&&L.length&&P.length&&L.forEach(D=>{const R=I[D],V=k[D].children;if(P.includes(D)){if(O[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[D].children=V}else{const{loaded:U=!1,loading:F=!1}=R||{};O[D]={lazy:!0,loaded:!!U,loading:!!F,expanded:N(R,D),children:V,level:""}}})}n.value=O,(b=u.store)==null||b.updateTableScrollY()};ue(()=>t.value,()=>{p(!0)}),ue(()=>c.value,()=>{p()}),ue(()=>f.value,()=>{p()});const h=y=>{t.value=y,p()},m=(y,C)=>{u.store.assertRowKey();const b=e.rowKey.value,w=kn(y,b),k=w&&n.value[w];if(w&&k&&"expanded"in k){const $=k.expanded;C=typeof C=="undefined"?!k.expanded:C,n.value[w].expanded=C,$!==C&&u.emit("expand-change",y,C),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const C=e.rowKey.value,b=kn(y,C),w=n.value[b];r.value&&w&&"loaded"in w&&!w.loaded?g(y,b,w):m(y,void 0)},g=(y,C,b)=>{const{load:w}=u.props;w&&!n.value[C].loaded&&(n.value[C].loading=!0,w(y,b,k=>{if(!Array.isArray(k))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,k.length&&(a.value[C]=k),u.emit("expand-change",y,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:m,updateTreeExpandKeys:h,updateTreeData:p,normalize:d,states:{expandRowKeys:t,treeData:n,indent:o,lazy:r,lazyTreeNodeMap:a,lazyColumnIdentifier:s,childrenColumnName:i}}}const JQ=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:HQ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},zu=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,zu(n.children)):t.push(n)}),t};function QQ(){var e;const t=nt(),{size:n}=dn((e=t.proxy)==null?void 0:e.$props),o=M(null),r=M([]),a=M([]),s=M(!1),i=M([]),u=M([]),c=M([]),f=M([]),d=M([]),p=M([]),h=M([]),m=M([]),v=[],g=M(0),y=M(0),C=M(0),b=M(!1),w=M([]),k=M(!1),$=M(!1),O=M(null),I=M({}),P=M(null),N=M(null),L=M(null),D=M(null),R=M(null);ue(r,()=>t.state&&T(!1),{deep:!0});const V=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},U=ye=>{var ae;(ae=ye.children)==null||ae.forEach(q=>{q.fixed=ye.fixed,U(q)})},F=()=>{i.value.forEach(pe=>{U(pe)}),f.value=i.value.filter(pe=>pe.fixed===!0||pe.fixed==="left"),d.value=i.value.filter(pe=>pe.fixed==="right"),f.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&!i.value[0].fixed&&(i.value[0].fixed=!0,f.value.unshift(i.value[0]));const ye=i.value.filter(pe=>!pe.fixed);u.value=[].concat(f.value).concat(ye).concat(d.value);const ae=zu(ye),q=zu(f.value),Q=zu(d.value);g.value=ae.length,y.value=q.length,C.value=Q.length,c.value=[].concat(q).concat(ae).concat(Q),s.value=f.value.length>0||d.value.length>0},T=(ye,ae=!1)=>{ye&&F(),ae?t.state.doLayout():t.state.debouncedUpdateLayout()},B=ye=>w.value.includes(ye),A=()=>{b.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},W=()=>{let ye;if(o.value){ye=[];const ae=_a(w.value,o.value),q=_a(r.value,o.value);for(const Q in ae)Cn(ae,Q)&&!q[Q]&&ye.push(ae[Q].row)}else ye=w.value.filter(ae=>!r.value.includes(ae));if(ye.length){const ae=w.value.filter(q=>!ye.includes(q));w.value=ae,t.emit("selection-change",ae.slice())}},Z=()=>(w.value||[]).slice(),K=(ye,ae=void 0,q=!0)=>{if(Es(w.value,ye,ae)){const pe=(w.value||[]).slice();q&&t.emit("select",pe,ye),t.emit("selection-change",pe)}},X=()=>{var ye,ae;const q=$.value?!b.value:!(b.value||w.value.length);b.value=q;let Q=!1,pe=0;const $e=(ae=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:ae.rowKey.value;r.value.forEach((st,fe)=>{const _e=fe+pe;O.value?O.value.call(null,st,_e)&&Es(w.value,st,q)&&(Q=!0):Es(w.value,st,q)&&(Q=!0),pe+=re(kn(st,$e))}),Q&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},se=()=>{const ye=_a(w.value,o.value);r.value.forEach(ae=>{const q=kn(ae,o.value),Q=ye[q];Q&&(w.value[Q.index]=ae)})},ve=()=>{var ye,ae,q;if(((ye=r.value)==null?void 0:ye.length)===0){b.value=!1;return}let Q;o.value&&(Q=_a(w.value,o.value));const pe=function(_e){return Q?!!Q[kn(_e,o.value)]:w.value.includes(_e)};let $e=!0,st=0,fe=0;for(let _e=0,Ue=(r.value||[]).length;_e{var ae;if(!t||!t.store)return 0;const{treeData:q}=t.store.states;let Q=0;const pe=(ae=q.value[ye])==null?void 0:ae.children;return pe&&(Q+=pe.length,pe.forEach($e=>{Q+=re($e)})),Q},ie=(ye,ae)=>{Array.isArray(ye)||(ye=[ye]);const q={};return ye.forEach(Q=>{I.value[Q.id]=ae,q[Q.columnKey||Q.id]=ae}),q},J=(ye,ae,q)=>{N.value&&N.value!==ye&&(N.value.order=null),N.value=ye,L.value=ae,D.value=q},oe=()=>{let ye=l(a);Object.keys(I.value).forEach(ae=>{const q=I.value[ae];if(!q||q.length===0)return;const Q=W_({columns:c.value},ae);Q&&Q.filterMethod&&(ye=ye.filter(pe=>q.some($e=>Q.filterMethod.call(null,$e,pe,Q))))}),P.value=ye},de=()=>{r.value=JQ(P.value,{sortingColumn:N.value,sortProp:L.value,sortOrder:D.value})},Te=(ye=void 0)=>{ye&&ye.filter||oe(),de()},Re=ye=>{const{tableHeaderRef:ae}=t.refs;if(!ae)return;const q=Object.assign({},ae.filterPanels),Q=Object.keys(q);if(!!Q.length)if(typeof ye=="string"&&(ye=[ye]),Array.isArray(ye)){const pe=ye.map($e=>WQ({columns:c.value},$e));Q.forEach($e=>{const st=pe.find(fe=>fe.id===$e);st&&(st.filteredValue=[])}),t.store.commit("filterChange",{column:pe,values:[],silent:!0,multi:!0})}else Q.forEach(pe=>{const $e=c.value.find(st=>st.id===pe);$e&&($e.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Ve=()=>{!N.value||(J(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:We,toggleRowExpansion:Ge,updateExpandRows:yt,states:Se,isRowExpanded:Fe}=YQ({data:r,rowKey:o}),{updateTreeExpandKeys:Pe,toggleTreeExpansion:He,updateTreeData:Be,loadOrToggle:Xe,states:Qe}=ZQ({data:r,rowKey:o}),{updateCurrentRowData:Ce,updateCurrentRow:ze,setCurrentRowKey:ht,states:Ot}=XQ({data:r,rowKey:o});return{assertRowKey:V,updateColumns:F,scheduleLayout:T,isSelected:B,clearSelection:A,cleanSelection:W,getSelectionRows:Z,toggleRowSelection:K,_toggleAllSelection:X,toggleAllSelection:null,updateSelectionByRowKey:se,updateAllSelected:ve,updateFilters:ie,updateCurrentRow:ze,updateSort:J,execFilter:oe,execSort:de,execQuery:Te,clearFilter:Re,clearSort:Ve,toggleRowExpansion:Ge,setExpandRowKeysAdapter:ye=>{We(ye),Pe(ye)},setCurrentRowKey:ht,toggleRowExpansionAdapter:(ye,ae)=>{c.value.some(({type:Q})=>Q==="expand")?Ge(ye,ae):He(ye,ae)},isRowExpanded:Fe,updateExpandRows:yt,updateCurrentRowData:Ce,loadOrToggle:Xe,updateTreeData:Be,states:{tableSize:n,rowKey:o,data:r,_data:a,isComplex:s,_columns:i,originColumns:u,columns:c,fixedColumns:f,rightFixedColumns:d,leafColumns:p,fixedLeafColumns:h,rightFixedLeafColumns:m,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:C,isAllSelected:b,selection:w,reserveSelection:k,selectOnIndeterminate:$,selectable:O,filters:I,filteredData:P,sortingColumn:N,sortProp:L,sortOrder:D,hoverRow:R,...Se,...Qe,...Ot}}}function Tv(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Tv(n.children,t)),n)})}function Ov(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Ov(t.children)}),e.sort((t,n)=>t.no-n.no)}function eee(){const e=nt(),t=QQ();return{ns:ce("table"),...t,mutations:{setData(s,i){const u=l(s._data)!==i;s.data.value=i,s._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),l(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,i,u,c){const f=l(s._columns);let d=[];u?(u&&!u.children&&(u.children=[]),u.children.push(i),d=Tv(f,u)):(f.push(i),d=f),Ov(d),s._columns.value=d,s.updateOrderFns.push(c),i.type==="selection"&&(s.selectable.value=i.selectable,s.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,i){var u;((u=i.getColumnIndex)==null?void 0:u.call(i))!==i.no&&(Ov(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,i,u,c){const f=l(s._columns)||[];if(u)u.children.splice(u.children.findIndex(p=>p.id===i.id),1),Ee(()=>{var p;((p=u.children)==null?void 0:p.length)===0&&delete u.children}),s._columns.value=Tv(f,u);else{const p=f.indexOf(i);p>-1&&(f.splice(p,1),s._columns.value=f)}const d=s.updateOrderFns.indexOf(c);d>-1&&s.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,i){const{prop:u,order:c,init:f}=i;if(u){const d=l(s.columns).find(p=>p.property===u);d&&(d.order=c,e.store.updateSort(d,u,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,i){const{sortingColumn:u,sortProp:c,sortOrder:f}=s,d=l(u),p=l(c),h=l(f);h===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:d,prop:p,order:h}),e.store.updateTableScrollY()},filterChange(s,i){const{column:u,values:c,silent:f}=i,d=e.store.updateFilters(u,c);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(s,i){s.hoverRow.value=i},setCurrentRow(s,i){e.store.updateCurrentRow(i)}},commit:function(s,...i){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ee(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ts={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function tee(e,t){if(!e)throw new Error("Table is required.");const n=eee();return n.toggleAllSelection=On(n._toggleAllSelection,10),Object.keys(Ts).forEach(o=>{X_(Z_(t,o),o,n)}),nee(n,t),n}function nee(e,t){Object.keys(Ts).forEach(n=>{ue(()=>Z_(t,n),o=>{X_(o,n,e)})})}function X_(e,t,n){let o=e,r=Ts[t];typeof Ts[t]=="object"&&(r=r.key,o=o||Ts[t].default),n.states[r].value=o}function Z_(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(r=>{o=o[r]}),o}else return e[t]}class oee{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=M(null),this.scrollX=M(!1),this.scrollY=M(!1),this.bodyWidth=M(null),this.fixedWidth=M(null),this.rightFixedWidth=M(null),this.gutterWidth=0;for(const n in t)Cn(t,n)&&(Rn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const r=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,r!==o}return!1}setHeight(t,n="height"){if(!pt)return;const o=this.table.vnode.el;if(t=jQ(t),this.height.value=Number(t),!o&&(t||t===0))return Ee(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!pt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const r=this.getFlattenColumns(),a=r.filter(u=>typeof u.width!="number");if(r.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),a.length>0&&t){if(r.forEach(u=>{o+=Number(u.width||u.minWidth||80)}),o<=n){this.scrollX.value=!1;const u=n-o;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+u;else{const c=a.reduce((p,h)=>p+Number(h.minWidth||80),0),f=u/c;let d=0;a.forEach((p,h)=>{if(h===0)return;const m=Math.floor(Number(p.minWidth||80)*f);d+=m,p.realWidth=Number(p.minWidth||80)+m}),a[0].realWidth=Number(a[0].minWidth||80)+u-d}}else this.scrollX.value=!0,a.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),o+=u.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let u=0;i.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var r,a;switch(t){case"columns":(r=o.state)==null||r.onColumnsChange(this);break;case"scrollable":(a=o.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var ree=oee;const{CheckboxGroup:aee}=ao,lee=G({name:"ElTableFilterPanel",components:{ElCheckbox:ao,ElCheckboxGroup:aee,ElScrollbar:Zo,ElTooltip:Nn,ElIcon:ke,ArrowDown:Ir,ArrowUp:Si},directives:{ClickOutside:yr},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=nt(),{t:n}=gt(),o=ce("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const a=M(!1),s=M(null),i=S(()=>e.column&&e.column.filters),u=S({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{c.value&&(typeof w!="undefined"&&w!==null?c.value.splice(0,1,w):c.value.splice(0,1))}}),c=S({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=S(()=>e.column?e.column.filterMultiple:!0),d=w=>w.value===u.value,p=()=>{a.value=!1},h=w=>{w.stopPropagation(),a.value=!a.value},m=()=>{a.value=!1},v=()=>{C(c.value),p()},g=()=>{c.value=[],C(c.value),p()},y=w=>{u.value=w,C(typeof w!="undefined"&&w!==null?c.value:[]),p()},C=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};ue(a,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const b=S(()=>{var w,k;return(k=(w=s.value)==null?void 0:w.popperRef)==null?void 0:k.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:c,filterValue:u,filters:i,handleConfirm:v,handleReset:g,handleSelect:y,isActive:d,t:n,ns:o,showFilterPanel:h,hideFilterPanel:m,popperPaneRef:b,tooltip:s}}}),see={key:0},iee=["disabled"],uee=["label","onClick"];function cee(e,t,n,o,r,a){const s=Ke("el-checkbox"),i=Ke("el-checkbox-group"),u=Ke("el-scrollbar"),c=Ke("arrow-up"),f=Ke("arrow-down"),d=Ke("el-icon"),p=Ke("el-tooltip"),h=kl("click-outside");return _(),ne(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Y(()=>[e.multiple?(_(),x("div",see,[z("div",{class:E(e.ns.e("content"))},[j(u,{"wrap-class":e.ns.e("wrap")},{default:Y(()=>[j(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:E(e.ns.e("checkbox-group"))},{default:Y(()=>[(_(!0),x(xe,null,ct(e.filters,m=>(_(),ne(s,{key:m.value,label:m.value},{default:Y(()=>[Ct(me(m.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),z("div",{class:E(e.ns.e("bottom"))},[z("button",{class:E({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},me(e.t("el.table.confirmFilter")),11,iee),z("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},me(e.t("el.table.resetFilter")),1)],2)])):(_(),x("ul",{key:1,class:E(e.ns.e("list"))},[z("li",{class:E([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},me(e.t("el.table.clearFilter")),3),(_(!0),x(xe,null,ct(e.filters,m=>(_(),x("li",{key:m.value,class:E([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:v=>e.handleSelect(m.value)},me(m.text),11,uee))),128))],2))]),default:Y(()=>[je((_(),x("span",{class:E([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[j(d,null,{default:Y(()=>[e.column.filterOpened?(_(),ne(c,{key:0})):(_(),ne(f,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var dee=ge(lee,[["render",cee],["__file","filter-panel.vue"]]);function J_(e){const t=nt();sc(()=>{n.value.addObserver(t)}),Ze(()=>{o(n.value),r(n.value)}),Xr(()=>{o(n.value),r(n.value)}),Yr(()=>{n.value.removeObserver(t)});const n=S(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),o=a=>{var s;const i=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=a.getFlattenColumns(),c={};u.forEach(f=>{c[f.id]=f});for(let f=0,d=i.length;f{var s,i;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,d=u.length;f{v.stopPropagation()},a=(v,g)=>{!g.filters&&g.sortable?m(v,g,!1):g.filterable&&!g.sortable&&r(v),o==null||o.emit("header-click",g,v)},s=(v,g)=>{o==null||o.emit("header-contextmenu",g,v)},i=M(null),u=M(!1),c=M({}),f=(v,g)=>{if(!!pt&&!(g.children&&g.children.length>0)&&i.value&&e.border){u.value=!0;const y=o;t("set-drag-visible",!0);const b=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),k=w.getBoundingClientRect(),$=k.left-b+30;jo(w,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:k.right-b,startColumnLeft:k.left-b,tableLeft:b};const O=y==null?void 0:y.refs.resizeProxy;O.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=N=>{const L=N.clientX-c.value.startMouseLeft,D=c.value.startLeft+L;O.style.left=`${Math.max($,D)}px`},P=()=>{if(u.value){const{startColumnLeft:N,startLeft:L}=c.value,R=Number.parseInt(O.style.left,10)-N;g.width=g.realWidth=R,y==null||y.emit("header-dragend",g.width,L-N,g,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",P),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{jn(w,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",P)}},d=(v,g)=>{if(g.children&&g.children.length>0)return;const y=v.target;if(!vo(y))return;const C=y==null?void 0:y.closest("th");if(!(!g||!g.resizable)&&!u.value&&e.border){const b=C.getBoundingClientRect(),w=document.body.style;b.width>12&&b.right-v.pageX<8?(w.cursor="col-resize",$o(C,"is-sortable")&&(C.style.cursor="col-resize"),i.value=g):u.value||(w.cursor="",$o(C,"is-sortable")&&(C.style.cursor="pointer"),i.value=null)}},p=()=>{!pt||(document.body.style.cursor="")},h=({order:v,sortOrders:g})=>{if(v==="")return g[0];const y=g.indexOf(v||null);return g[y>g.length-2?0:y+1]},m=(v,g,y)=>{var C;v.stopPropagation();const b=g.order===y?null:y||h(g),w=(C=v.target)==null?void 0:C.closest("th");if(w&&$o(w,"noclick")){jn(w,"noclick");return}if(!g.sortable)return;const k=e.store.states;let $=k.sortProp.value,O;const I=k.sortingColumn.value;(I!==g||I===g&&I.order===null)&&(I&&(I.order=null),k.sortingColumn.value=g,$=g.property),b?O=g.order=b:O=g.order=null,k.sortProp.value=$,k.sortOrder.value=O,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:s,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:m,handleFilterClick:r}}function pee(e){const t=Oe(Qo),n=ce("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,f)=>{var d;let p=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof p=="function"&&(p=p.call(null,{rowIndex:i,columnIndex:u,row:c,column:f}));const h=Ev(u,f.fixed,e.store,c);return pl(h,"left"),pl(h,"right"),Object.assign({},p,h)},getHeaderCellClass:(i,u,c,f)=>{const d=kv(n.b(),u,f.fixed,e.store,c),p=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...d];f.children||p.push("is-leaf"),f.sortable&&p.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?p.push(h):typeof h=="function"&&p.push(h.call(null,{rowIndex:i,columnIndex:u,row:c,column:f})),p.push(n.e("cell")),p.filter(m=>Boolean(m)).join(" ")}}}const Q_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Q_(n.children))):t.push(n)}),t},vee=e=>{let t=1;const n=(a,s)=>{if(s&&(a.level=s.level+1,t{n(u,a),i+=u.colSpan}),a.colSpan=i}else a.colSpan=1};e.forEach(a=>{a.level=1,n(a,void 0)});const o=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(s=>s.isSubColumn=!0)):a.rowSpan=t-a.level+1,o[a.level-1].push(a)}),o};function hee(e){const t=Oe(Qo),n=S(()=>vee(e.store.states.originColumns.value));return{isGroup:S(()=>{const a=n.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var mee=G({name:"ElTableHeader",components:{ElCheckbox:ao},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=nt(),o=Oe(Qo),r=ce("table"),a=M({}),{onColumnsChange:s,onScrollableChange:i}=J_(o);Ze(async()=>{await Ee(),await Ee();const{prop:$,order:O}=e.defaultSort;o==null||o.store.commit("sort",{prop:$,order:O,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:h,handleFilterClick:m}=fee(e,t),{getHeaderRowStyle:v,getHeaderRowClass:g,getHeaderCellStyle:y,getHeaderCellClass:C}=pee(e),{isGroup:b,toggleAllSelection:w,columnRows:k}=hee(e);return n.state={onColumnsChange:s,onScrollableChange:i},n.filterPanels=a,{ns:r,filterPanels:a,onColumnsChange:s,onScrollableChange:i,columnRows:k,getHeaderRowClass:g,getHeaderRowStyle:v,getHeaderCellClass:C,getHeaderCellStyle:y,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:h,handleFilterClick:m,isGroup:b,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:a,getHeaderRowStyle:s,handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleSortClick:d,handleMouseOut:p,store:h,$parent:m}=this;let v=1;return Ne("thead",{class:{[e.is("group")]:t}},n.map((g,y)=>Ne("tr",{class:a(y),key:y,style:s(y)},g.map((C,b)=>(C.rowSpan>v&&(v=C.rowSpan),Ne("th",{class:r(y,b,g,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:o(y,b,g,C),onClick:w=>i(w,C),onContextmenu:w=>u(w,C),onMousedown:w=>c(w,C),onMousemove:w=>f(w,C),onMouseout:p},[Ne("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:b,store:h,_self:m}):C.label,C.sortable&&Ne("span",{onClick:w=>d(w,C),class:"caret-wrapper"},[Ne("i",{onClick:w=>d(w,C,"ascending"),class:"sort-caret ascending"}),Ne("i",{onClick:w=>d(w,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Ne(dee,{store:h,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(w,k)=>{C[w]=k}})])]))))))}});function gee(e){const t=Oe(Qo),n=M(""),o=M(Ne("div")),{nextZIndex:r}=da(),a=(h,m,v)=>{var g;const y=t,C=_v(h);let b;const w=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;C&&(b=K_({columns:e.store.states.columns.value},C,w),b&&(y==null||y.emit(`cell-${v}`,m,b,C,h))),y==null||y.emit(`row-${v}`,m,b,h)},s=(h,m)=>{a(h,m,"dblclick")},i=(h,m)=>{e.store.commit("setCurrentRow",m),a(h,m,"click")},u=(h,m)=>{a(h,m,"contextmenu")},c=On(h=>{e.store.commit("setHoverRow",h)},30),f=On(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:s,handleClick:i,handleContextMenu:u,handleMouseEnter:c,handleMouseLeave:f,handleCellMouseEnter:(h,m,v)=>{var g;const y=t,C=_v(h),b=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;if(C){const I=K_({columns:e.store.states.columns.value},C,b),P=y.hoverState={cell:C,column:I,row:m};y==null||y.emit("cell-mouse-enter",P.row,P.column,P.cell,h)}if(!v)return;const w=h.target.querySelector(".cell");if(!($o(w,`${b}-tooltip`)&&w.childNodes.length))return;const k=document.createRange();k.setStart(w,0),k.setEnd(w,w.childNodes.length);const $=Math.round(k.getBoundingClientRect().width),O=(Number.parseInt(ur(w,"paddingLeft"),10)||0)+(Number.parseInt(ur(w,"paddingRight"),10)||0);($+O>w.offsetWidth||w.scrollWidth>w.offsetWidth)&&GQ(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,r,v)},handleCellMouseLeave:h=>{if(!_v(h))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,h)},tooltipContent:n,tooltipTrigger:o}}function yee(e){const t=Oe(Qo),n=ce("table");return{getRowStyle:(c,f)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:f}):d||null},getRowClass:(c,f)=>{const d=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&f%2===1&&d.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return typeof p=="string"?d.push(p):typeof p=="function"&&d.push(p.call(null,{row:c,rowIndex:f})),d},getCellStyle:(c,f,d,p)=>{const h=t==null?void 0:t.props.cellStyle;let m=h!=null?h:{};typeof h=="function"&&(m=h.call(null,{rowIndex:c,columnIndex:f,row:d,column:p}));const v=Ev(f,e==null?void 0:e.fixed,e.store);return pl(v,"left"),pl(v,"right"),Object.assign({},m,v)},getCellClass:(c,f,d,p,h)=>{const m=kv(n.b(),f,e==null?void 0:e.fixed,e.store,void 0,h),v=[p.id,p.align,p.className,...m],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?v.push(g):typeof g=="function"&&v.push(g.call(null,{rowIndex:c,columnIndex:f,row:d,column:p})),v.push(n.e("cell")),v.filter(y=>Boolean(y)).join(" ")},getSpan:(c,f,d,p)=>{let h=1,m=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const g=v({row:c,column:f,rowIndex:d,columnIndex:p});Array.isArray(g)?(h=g[0],m=g[1]):typeof g=="object"&&(h=g.rowspan,m=g.colspan)}return{rowspan:h,colspan:m}},getColspanRealWidth:(c,f,d)=>{if(f<1)return c[d].realWidth;const p=c.map(({realWidth:h,width:m})=>h||m).slice(d,d+f);return Number(p.reduce((h,m)=>Number(h)+Number(m),-1))}}}function bee(e){const t=Oe(Qo),n=ce("table"),{handleDoubleClick:o,handleClick:r,handleContextMenu:a,handleMouseEnter:s,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:d}=gee(e),{getRowStyle:p,getRowClass:h,getCellStyle:m,getCellClass:v,getSpan:g,getColspanRealWidth:y}=yee(e),C=S(()=>e.store.states.columns.value.findIndex(({type:O})=>O==="default")),b=(O,I)=>{const P=t.props.rowKey;return P?kn(O,P):I},w=(O,I,P,N=!1)=>{const{tooltipEffect:L,tooltipOptions:D,store:R}=e,{indent:V,columns:U}=R.states,F=h(O,I);let T=!0;return P&&(F.push(n.em("row",`level-${P.level}`)),T=P.display),Ne("tr",{style:[T?null:{display:"none"},p(O,I)],class:F,key:b(O,I),onDblclick:A=>o(A,O),onClick:A=>r(A,O),onContextmenu:A=>a(A,O),onMouseenter:()=>s(I),onMouseleave:i},U.value.map((A,W)=>{const{rowspan:Z,colspan:K}=g(O,A,I,W);if(!Z||!K)return null;const X={...A};X.realWidth=y(U.value,K,W);const se={store:e.store,_self:e.context||t,column:X,row:O,$index:I,cellIndex:W,expanded:N};W===C.value&&P&&(se.treeNode={indent:P.level*V.value,level:P.level},typeof P.expanded=="boolean"&&(se.treeNode.expanded=P.expanded,"loading"in P&&(se.treeNode.loading=P.loading),"noLazyChildren"in P&&(se.treeNode.noLazyChildren=P.noLazyChildren)));const ve=`${I},${W}`,re=X.columnKey||X.rawColumnKey||"",ie=k(W,A,se),J=A.showOverflowTooltip&&yd({effect:L},D,A.showOverflowTooltip);return Ne("td",{style:m(I,W,O,A),class:v(I,W,O,A,K-1),key:`${re}${ve}`,rowspan:Z,colspan:K,onMouseenter:oe=>u(oe,O,J),onMouseleave:c},[ie])}))},k=(O,I,P)=>I.renderCell(P);return{wrappedRowRender:(O,I)=>{const P=e.store,{isRowExpanded:N,assertRowKey:L}=P,{treeData:D,lazyTreeNodeMap:R,childrenColumnName:V,rowKey:U}=P.states,F=P.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=N(O),A=w(O,I,void 0,B),W=t.renderExpanded;return B?W?[[A,Ne("tr",{key:`expanded-row__${A.key}`},[Ne("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[W({row:O,$index:I,store:P,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),A):[[A]]}else if(Object.keys(D.value).length){L();const B=kn(O,U.value);let A=D.value[B],W=null;A&&(W={expanded:A.expanded,level:A.level,display:!0},typeof A.lazy=="boolean"&&(typeof A.loaded=="boolean"&&A.loaded&&(W.noLazyChildren=!(A.children&&A.children.length)),W.loading=A.loading));const Z=[w(O,I,W)];if(A){let K=0;const X=(ve,re)=>{!(ve&&ve.length&&re)||ve.forEach(ie=>{const J={display:re.display&&re.expanded,level:re.level+1,expanded:!1,noLazyChildren:!1,loading:!1},oe=kn(ie,U.value);if(oe==null)throw new Error("For nested data item, row-key is required.");if(A={...D.value[oe]},A&&(J.expanded=A.expanded,A.level=A.level||J.level,A.display=!!(A.expanded&&J.display),typeof A.lazy=="boolean"&&(typeof A.loaded=="boolean"&&A.loaded&&(J.noLazyChildren=!(A.children&&A.children.length)),J.loading=A.loading)),K++,Z.push(w(ie,I+K,J)),A){const de=R.value[oe]||ie[V.value];X(de,A)}})};A.display=!0;const se=R.value[B]||O[V.value];X(se,A)}return Z}else return w(O,I,void 0)},tooltipContent:f,tooltipTrigger:d}}const wee={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Cee=wee,See=G({name:"ElTableBody",props:Cee,setup(e){const t=nt(),n=Oe(Qo),o=ce("table"),{wrappedRowRender:r,tooltipContent:a,tooltipTrigger:s}=bee(e),{onColumnsChange:i,onScrollableChange:u}=J_(n);return ue(e.store.states.hoverRow,(c,f)=>{if(!e.store.states.isComplex.value||!pt)return;let d=window.requestAnimationFrame;d||(d=p=>window.setTimeout(p,16)),d(()=>{const p=t==null?void 0:t.vnode.el,h=Array.from((p==null?void 0:p.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${o.e("row")}`)),m=h[f],v=h[c];m&&jn(m,"hover-row"),v&&jo(v,"hover-row")})}),Yr(()=>{var c;(c=wr)==null||c()}),{ns:o,onColumnsChange:i,onScrollableChange:u,wrappedRowRender:r,tooltipContent:a,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ne("tbody",{},[n.reduce((o,r)=>o.concat(e(r,o.length)),[])])}});function Mv(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(r=>r.width===void 0)&&(n=[]);const o=r=>{const a={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?a.style={width:`${r.width}px`}:a.name=r.id,a};return Ne("colgroup",{},n.map(r=>Ne("col",o(r))))}Mv.props=["columns","tableLayout"];function _ee(){const e=Oe(Qo),t=e==null?void 0:e.store,n=S(()=>t.states.fixedLeafColumnsLength.value),o=S(()=>t.states.rightFixedColumns.value.length),r=S(()=>t.states.columns.value.length),a=S(()=>t.states.fixedColumns.value.length),s=S(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:r,leftFixedCount:a,rightFixedCount:s,columns:t.states.columns}}function $ee(e){const{columns:t}=_ee(),n=ce("table");return{getCellClasses:(a,s)=>{const i=a[s],u=[n.e("cell"),i.id,i.align,i.labelClassName,...kv(n.b(),s,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(a,s)=>{const i=Ev(s,a.fixed,e.store);return pl(i,"left"),pl(i,"right"),i},columns:t}}var kee=G({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=$ee(e);return{ns:ce("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:r,ns:a}=this,s=this.store.states.data.value;let i=[];return o?i=o({columns:e,data:s}):e.forEach((u,c)=>{if(c===0){i[c]=r;return}const f=s.map(m=>Number(m[u.property])),d=[];let p=!0;f.forEach(m=>{if(!Number.isNaN(+m)){p=!1;const v=`${m}`.split(".")[1];d.push(v?v.length:0)}});const h=Math.max.apply(null,d);p?i[c]="":i[c]=f.reduce((m,v)=>{const g=Number(v);return Number.isNaN(+g)?m:Number.parseFloat((m+v).toFixed(Math.min(h,20)))},0)}),Ne("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Mv({columns:e}),Ne("tbody",[Ne("tr",{},[...e.map((u,c)=>Ne("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:n(e,c),style:t(u,c)},[Ne("div",{class:["cell",u.labelClassName]},[i[c]])]))])])])}});function Eee(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,d)=>{e.toggleRowSelection(f,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,d)=>{e.toggleRowExpansionAdapter(f,d)},clearSort:()=>{e.clearSort()},sort:(f,d)=>{e.commit("sort",{prop:f,order:d})}}}function Tee(e,t,n,o){const r=M(!1),a=M(null),s=M(!1),i=B=>{s.value=B},u=M({width:null,height:null,headerHeight:null}),c=M(!1),f={display:"inline-block",verticalAlign:"middle"},d=M(),p=M(0),h=M(0),m=M(0),v=M(0);Yn(()=>{t.setHeight(e.height)}),Yn(()=>{t.setMaxHeight(e.maxHeight)}),ue(()=>[e.currentRowKey,n.states.rowKey],([B,A])=>{!l(A)||!l(B)||n.setCurrentRowKey(`${B}`)},{immediate:!0}),ue(()=>e.data,B=>{o.store.commit("setData",B)},{immediate:!0,deep:!0}),Yn(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},y=(B,A)=>{const{pixelX:W,pixelY:Z}=A;Math.abs(W)>=Math.abs(Z)&&(o.refs.bodyWrapper.scrollLeft+=A.pixelX/5)},C=S(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=S(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(I)};Ze(async()=>{await Ee(),n.updateColumns(),P(),requestAnimationFrame(w);const B=o.vnode.el,A=o.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),u.value={width:d.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&A?A.offsetHeight:null},n.states.columns.value.forEach(W=>{W.filteredValue&&W.filteredValue.length&&o.store.commit("filterChange",{column:W,values:W.filteredValue,silent:!0})}),o.$ready=!0});const k=(B,A)=>{if(!B)return;const W=Array.from(B.classList).filter(Z=>!Z.startsWith("is-scrolling-"));W.push(t.scrollX.value?A:"is-scrolling-none"),B.className=W.join(" ")},$=B=>{const{tableWrapper:A}=o.refs;k(A,B)},O=B=>{const{tableWrapper:A}=o.refs;return!!(A&&A.classList.contains(B))},I=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const ve="is-scrolling-none";O(ve)||$(ve);return}const B=o.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:A,offsetWidth:W,scrollWidth:Z}=B,{headerWrapper:K,footerWrapper:X}=o.refs;K&&(K.scrollLeft=A),X&&(X.scrollLeft=A);const se=Z-W-1;A>=se?$("is-scrolling-right"):$(A===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&xt(o.refs.scrollBarRef.wrapRef,"scroll",I,{passive:!0}),e.fit?En(o.vnode.el,N):xt(window,"resize",N),En(o.refs.bodyWrapper,()=>{var B,A;N(),(A=(B=o.refs)==null?void 0:B.scrollBarRef)==null||A.update()}))},N=()=>{var B,A,W;const Z=o.vnode.el;if(!o.$ready||!Z)return;let K=!1;const{width:X,height:se,headerHeight:ve}=u.value,re=d.value=Z.offsetWidth;X!==re&&(K=!0);const ie=Z.offsetHeight;(e.height||C.value)&&se!==ie&&(K=!0);const J=e.tableLayout==="fixed"?o.refs.headerWrapper:(B=o.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(J==null?void 0:J.offsetHeight)!==ve&&(K=!0),p.value=((A=o.refs.tableWrapper)==null?void 0:A.scrollHeight)||0,m.value=(J==null?void 0:J.scrollHeight)||0,v.value=((W=o.refs.footerWrapper)==null?void 0:W.offsetHeight)||0,h.value=p.value-m.value-v.value,K&&(u.value={width:re,height:ie,headerHeight:e.showHeader&&(J==null?void 0:J.offsetHeight)||0},w())},L=on(),D=S(()=>{const{bodyWidth:B,scrollY:A,gutterWidth:W}=t;return B.value?`${B.value-(A.value?W:0)}px`:""}),R=S(()=>e.maxHeight?"fixed":e.tableLayout),V=S(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const A=d.value;return{width:A?`${A}px`:"",height:B}}),U=S(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=S(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+v.value}px)`}:{maxHeight:`${e.maxHeight-m.value-v.value}px`}:{});return{isHidden:r,renderExpanded:a,setDragVisible:i,isGroup:c,handleMouseLeave:g,handleHeaderFooterMousewheel:y,tableSize:L,emptyBlockStyle:V,handleFixedMousewheel:(B,A)=>{const W=o.refs.bodyWrapper;if(Math.abs(A.spinY)>0){const Z=W.scrollTop;A.pixelY<0&&Z!==0&&B.preventDefault(),A.pixelY>0&&W.scrollHeight-W.clientHeight>Z&&B.preventDefault(),W.scrollTop+=Math.ceil(A.pixelY/5)}else W.scrollLeft+=Math.ceil(A.pixelX/5)},resizeProxyVisible:s,bodyWidth:D,resizeState:u,doLayout:w,tableBodyStyles:b,tableLayout:R,scrollbarViewStyle:f,tableInnerStyle:U,scrollbarStyle:F}}function Oee(e){const t=M(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(i=>i())}),t.value.observe(r,a)};Ze(()=>{n()}),Yr(()=>{var o;(o=t.value)==null||o.disconnect()})}var Mee={data:{type:Array,default:()=>[]},size:vn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const Aee=()=>{const e=M(),t=(a,s)=>{const i=e.value;i&&i.scrollTo(a,s)},n=(a,s)=>{const i=e.value;i&&De(s)&&["Top","Left"].includes(a)&&i[`setScroll${a}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>n("Top",a),setScrollLeft:a=>n("Left",a)}};let Iee=1;const Nee=G({name:"ElTable",directives:{Mousewheel:Ww},components:{TableHeader:mee,TableBody:See,TableFooter:kee,ElScrollbar:Zo,hColgroup:Mv},props:Mee,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=gt(),n=ce("table"),o=nt();ut(Qo,o);const r=tee(o,e);o.store=r;const a=new ree({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=a;const s=S(()=>(r.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:m,sort:v}=Eee(r),{isHidden:g,renderExpanded:y,setDragVisible:C,isGroup:b,handleMouseLeave:w,handleHeaderFooterMousewheel:k,tableSize:$,emptyBlockStyle:O,handleFixedMousewheel:I,resizeProxyVisible:P,bodyWidth:N,resizeState:L,doLayout:D,tableBodyStyles:R,tableLayout:V,scrollbarViewStyle:U,tableInnerStyle:F,scrollbarStyle:T}=Tee(e,a,r,o),{scrollBarRef:B,scrollTo:A,setScrollLeft:W,setScrollTop:Z}=Aee(),K=On(D,50),X=`${n.namespace.value}-table_${Iee++}`;o.tableId=X,o.state={isGroup:b,resizeState:L,doLayout:D,debouncedUpdateLayout:K};const se=S(()=>e.sumText||t("el.table.sumText")),ve=S(()=>e.emptyText||t("el.table.emptyText"));return Oee(o),{ns:n,layout:a,store:r,handleHeaderFooterMousewheel:k,handleMouseLeave:w,tableId:X,tableSize:$,isHidden:g,isEmpty:s,renderExpanded:y,resizeProxyVisible:P,resizeState:L,isGroup:b,bodyWidth:N,tableBodyStyles:R,emptyBlockStyle:O,debouncedUpdateLayout:K,handleFixedMousewheel:I,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:h,clearSort:m,doLayout:D,sort:v,t,setDragVisible:C,context:o,computedSumText:se,computedEmptyText:ve,tableLayout:V,scrollbarViewStyle:U,tableInnerStyle:F,scrollbarStyle:T,scrollBarRef:B,scrollTo:A,setScrollLeft:W,setScrollTop:Z}}}),Ree=["data-prefix"],Pee={ref:"hiddenColumns",class:"hidden-columns"};function xee(e,t,n,o,r,a){const s=Ke("hColgroup"),i=Ke("table-header"),u=Ke("table-body"),c=Ke("el-scrollbar"),f=Ke("table-footer"),d=kl("mousewheel");return _(),x("div",{ref:"tableWrapper",class:E([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ie(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[z("div",{class:E(e.ns.e("inner-wrapper")),style:Ie(e.tableInnerStyle)},[z("div",Pee,[le(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?je((_(),x("div",{key:0,ref:"headerWrapper",class:E(e.ns.e("header-wrapper"))},[z("table",{ref:"tableHeader",class:E(e.ns.e("header")),style:Ie(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[j(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),j(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),z("div",{ref:"bodyWrapper",class:E(e.ns.e("body-wrapper"))},[j(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Y(()=>[z("table",{ref:"tableBody",class:E(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ie({width:e.bodyWidth,tableLayout:e.tableLayout})},[j(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ne(i,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ee("v-if",!0),j(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(_(),x("div",{key:0,ref:"emptyBlock",style:Ie(e.emptyBlockStyle),class:E(e.ns.e("empty-block"))},[z("span",{class:E(e.ns.e("empty-text"))},[le(e.$slots,"empty",{},()=>[Ct(me(e.computedEmptyText),1)])],2)],6)):ee("v-if",!0),e.$slots.append?(_(),x("div",{key:1,ref:"appendWrapper",class:E(e.ns.e("append-wrapper"))},[le(e.$slots,"append")],2)):ee("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?je((_(),x("div",{key:1,ref:"footerWrapper",class:E(e.ns.e("footer-wrapper"))},[j(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Ie(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[St,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),e.border||e.isGroup?(_(),x("div",{key:2,class:E(e.ns.e("border-left-patch"))},null,2)):ee("v-if",!0)],6),je(z("div",{ref:"resizeProxy",class:E(e.ns.e("column-resize-proxy"))},null,2),[[St,e.resizeProxyVisible]])],46,Ree)}var Lee=ge(Nee,[["render",xee],["__file","table.vue"]]);const Dee={selection:"table-column--selection",expand:"table__expand-column"},Bee={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Fee=e=>Dee[e]||"",Vee={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ne(ao,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:o}){return Ne(ao,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),Ne("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,r=[o.e("expand-icon")];return n&&r.push(o.em("expand-icon","expanded")),Ne("div",{class:r,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ne(ke,null,{default:()=>[Ne(Fn)]})]})},sortable:!1,resizable:!1}};function zee({row:e,column:t,$index:n}){var o;const r=t.property,a=r&&wi(e,r).value;return t&&t.formatter?t.formatter(e,t,a,n):((o=a==null?void 0:a.toString)==null?void 0:o.call(a))||""}function Hee({row:e,treeNode:t,store:n},o=!1){const{ns:r}=n;if(!t)return o?[Ne("span",{class:r.e("placeholder")})]:null;const a=[],s=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&a.push(Ne("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const i=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let u=Fn;t.loading&&(u=Pr),a.push(Ne("div",{class:i,onClick:s},{default:()=>[Ne(ke,{class:{[r.is("loading")]:t.loading}},{default:()=>[Ne(u)]})]}))}else a.push(Ne("span",{class:r.e("placeholder")}));return a}function e$(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function Wee(e,t){const n=nt();return{registerComplexWatchers:()=>{const a=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},i=e$(a,s);Object.keys(i).forEach(u=>{const c=s[u];Cn(t,c)&&ue(()=>t[c],f=>{let d=f;c==="width"&&u==="realWidth"&&(d=$v(f)),c==="minWidth"&&u==="realMinWidth"&&(d=j_(f)),n.columnConfig.value[c]=d,n.columnConfig.value[u]=d;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=e$(a,s);Object.keys(i).forEach(u=>{const c=s[u];Cn(t,c)&&ue(()=>t[c],f=>{n.columnConfig.value[u]=f})})}}}function Kee(e,t,n){const o=nt(),r=M(""),a=M(!1),s=M(),i=M(),u=ce("table");Yn(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),Yn(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:s.value,i.value});const c=S(()=>{let w=o.vnode.vParent||o.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),f=S(()=>{const{store:w}=o.parent;if(!w)return!1;const{treeData:k}=w.states,$=k.value;return $&&Object.keys($).length>0}),d=M($v(e.width)),p=M(j_(e.minWidth)),h=w=>(d.value&&(w.width=d.value),p.value&&(w.minWidth=p.value),!d.value&&p.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),m=w=>{const k=w.type,$=Vee[k]||{};Object.keys($).forEach(I=>{const P=$[I];I!=="className"&&P!==void 0&&(w[I]=P)});const O=Fee(k);if(O){const I=`${l(u.namespace)}-${O}`;w.className=w.className?`${w.className} ${I}`:I}return w},v=w=>{Array.isArray(w)?w.forEach($=>k($)):k(w);function k($){var O;((O=$==null?void 0:$.type)==null?void 0:O.name)==="ElTableColumn"&&($.vParent=o)}};return{columnId:r,realAlign:s,isSubColumn:a,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:h,setColumnForcedProps:m,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=$=>{o.columnConfig.value.label;const O=t.header;return O?O($):w.label});let k=w.renderCell;return w.type==="expand"?(w.renderCell=$=>Ne("div",{class:"cell"},[k($)]),n.value.renderExpanded=$=>t.default?t.default($):t.default):(k=k||zee,w.renderCell=$=>{let O=null;if(t.default){const R=t.default($);O=R.some(V=>V.type!==lc)?R:k($)}else O=k($);const{columns:I}=n.value.store.states,P=I.value.findIndex(R=>R.type==="default"),N=f.value&&$.cellIndex===P,L=Hee($,N),D={class:"cell",style:{}};return w.showOverflowTooltip&&(D.class=`${D.class} ${l(u.namespace)}-tooltip`,D.style={width:`${($.column.realWidth||Number($.column.width))-1}px`}),v(O),Ne("div",D,[L,O])}),w},getPropsData:(...w)=>w.reduce((k,$)=>(Array.isArray($)&&$.forEach(O=>{k[O]=e[O]}),k),{}),getColumnElIndex:(w,k)=>Array.prototype.indexOf.call(w,k),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var jee={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Uee=1;var t$=G({name:"ElTableColumn",components:{ElCheckbox:ao},props:jee,setup(e,{slots:t}){const n=nt(),o=M({}),r=S(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:a,registerComplexWatchers:s}=Wee(r,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:d,setColumnForcedProps:p,setColumnRenders:h,getPropsData:m,getColumnElIndex:v,realAlign:g,updateColumnOrder:y}=Kee(e,t,r),C=f.value;i.value=`${C.tableId||C.columnId}_column_${Uee++}`,sc(()=>{u.value=r.value!==C;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,k={...Bee[b],id:i.value,type:b,property:e.prop||e.property,align:g,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let N=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);N=KQ(k,N),N=UQ(h,d,p)(N),o.value=N,a(),s()}),Ze(()=>{var b;const w=f.value,k=u.value?w.vnode.el.children:(b=w.refs.hiddenColumns)==null?void 0:b.children,$=()=>v(k||[],n.vnode.el);o.value.getColumnIndex=$,$()>-1&&r.value.store.commit("insertColumn",o.value,u.value?w.columnConfig.value:null,y)}),qt(()=>{r.value.store.commit("removeColumn",o.value,u.value?C.columnConfig.value:null,y)}),n.columnId=i.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(o))for(const s of o)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?r.push(s):s.type===xe&&Array.isArray(s.children)&&s.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!it(i==null?void 0:i.children)&&r.push(i)});return Ne("div",r)}catch(o){return Ne("div",[])}}});const n$=Je(Lee,{TableColumn:t$}),o$=Xt(t$);var vl=(e=>(e.ASC="asc",e.DESC="desc",e))(vl||{}),hl=(e=>(e.CENTER="center",e.RIGHT="right",e))(hl||{}),Av=(e=>(e.LEFT="left",e.RIGHT="right",e))(Av||{});const Iv={asc:"desc",desc:"asc"},ml=Symbol("placeholder"),qee=(e,t,n)=>{var o;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(r.flexShrink=1);const a={...(o=e.style)!=null?o:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(a.maxWidth=e.maxWidth),e.minWidth&&(a.minWidth=e.minWidth)),a};function Gee(e,t,n){const o=S(()=>l(t).filter(v=>!v.hidden)),r=S(()=>l(o).filter(v=>v.fixed==="left"||v.fixed===!0)),a=S(()=>l(o).filter(v=>v.fixed==="right")),s=S(()=>l(o).filter(v=>!v.fixed)),i=S(()=>{const v=[];return l(r).forEach(g=>{v.push({...g,placeholderSign:ml})}),l(s).forEach(g=>{v.push(g)}),l(a).forEach(g=>{v.push({...g,placeholderSign:ml})}),v}),u=S(()=>l(r).length||l(a).length),c=S(()=>l(t).reduce((g,y)=>(g[y.key]=qee(y,l(n),e.fixed),g),{})),f=S(()=>l(o).reduce((v,g)=>v+g.width,0)),d=v=>l(t).find(g=>g.key===v),p=v=>l(c)[v],h=(v,g)=>{v.width=g};function m(v){var g;const{key:y}=v.currentTarget.dataset;if(!y)return;const{sortState:C,sortBy:b}=e;let w=vl.ASC;Rt(C)?w=Iv[C[y]]:w=Iv[b.order],(g=e.onColumnSort)==null||g.call(e,{column:d(y),key:y,order:w})}return{columns:t,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:a,hasFixedColumns:u,mainColumns:i,normalColumns:s,visibleColumns:o,getColumn:d,getColumnStyle:p,updateColumnWidth:h,onColumnSorted:m}}const Yee=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:r})=>{const a=M({scrollLeft:0,scrollTop:0});function s(h){var m,v,g;const{scrollTop:y}=h;(m=t.value)==null||m.scrollTo(h),(v=n.value)==null||v.scrollToTop(y),(g=o.value)==null||g.scrollToTop(y)}function i(h){a.value=h,s(h)}function u(h){a.value.scrollTop=h,s(l(a))}function c(h){var m,v;a.value.scrollLeft=h,(v=(m=t.value)==null?void 0:m.scrollTo)==null||v.call(m,l(a))}function f(h){var m;i(h),(m=e.onScroll)==null||m.call(e,h)}function d({scrollTop:h}){const{scrollTop:m}=l(a);h!==m&&u(h)}function p(h,m="auto"){var v;(v=t.value)==null||v.scrollToRow(h,m)}return ue(()=>l(a).scrollTop,(h,m)=>{h>m&&r()}),{scrollPos:a,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:p,onScroll:f,onVerticalScroll:d}},Xee=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o})=>{const r=nt(),{emit:a}=r,s=Pt(!1),i=Pt(null),u=M(e.defaultExpandedRowKeys||[]),c=M(-1),f=Pt(null),d=M({}),p=M({}),h=Pt({}),m=Pt({}),v=Pt({}),g=S(()=>De(e.estimatedRowHeight));function y(I){var P;(P=e.onRowsRendered)==null||P.call(e,I),I.rowCacheEnd>l(c)&&(c.value=I.rowCacheEnd)}function C({hovered:I,rowKey:P}){i.value=I?P:null}function b({expanded:I,rowData:P,rowIndex:N,rowKey:L}){var D,R;const V=[...l(u)],U=V.indexOf(L);I?U===-1&&V.push(L):U>-1&&V.splice(U,1),u.value=V,a("update:expandedRowKeys",V),(D=e.onRowExpand)==null||D.call(e,{expanded:I,rowData:P,rowIndex:N,rowKey:L}),(R=e.onExpandedRowsChange)==null||R.call(e,V)}const w=On(()=>{var I,P,N,L;s.value=!0,d.value={...l(d),...l(p)},k(l(f),!1),p.value={},f.value=null,(I=t.value)==null||I.forceUpdate(),(P=n.value)==null||P.forceUpdate(),(N=o.value)==null||N.forceUpdate(),(L=r.proxy)==null||L.$forceUpdate(),s.value=!1},0);function k(I,P=!1){!l(g)||[t,n,o].forEach(N=>{const L=l(N);L&&L.resetAfterRowIndex(I,P)})}function $(I,P,N){const L=l(f);(L===null||L>N)&&(f.value=N),p.value[I]=P}function O({rowKey:I,height:P,rowIndex:N},L){L?L===Av.RIGHT?v.value[I]=P:h.value[I]=P:m.value[I]=P;const D=Math.max(...[h,v,m].map(R=>R.value[I]||0));l(d)[I]!==D&&($(I,D,N),w())}return{hoveringRowKey:i,expandedRowKeys:u,lastRenderedRowIndex:c,isDynamic:g,isResetting:s,rowHeights:d,resetAfterIndex:k,onRowExpanded:b,onRowHovered:C,onRowsRendered:y,onRowHeightChange:O}},Zee=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const r=M({}),a=S(()=>{const i={},{data:u,rowKey:c}=e,f=l(t);if(!f||!f.length)return u;const d=[],p=new Set;f.forEach(m=>p.add(m));let h=u.slice();for(h.forEach(m=>i[m[c]]=0);h.length>0;){const m=h.shift();d.push(m),p.has(m[c])&&Array.isArray(m.children)&&m.children.length>0&&(h=[...m.children,...h],m.children.forEach(v=>i[v[c]]=i[m[c]]+1))}return r.value=i,d}),s=S(()=>{const{data:i,expandColumnKey:u}=e;return u?l(a):i});return ue(s,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:s,depthMap:r}},Jee=(e,t)=>e+t,Hu=e=>et(e)?e.reduce(Jee,0):e,$a=(e,t,n={})=>$t(e)?e(t):e!=null?e:n,Ur=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=tn(e[t])}),e),r$=e=>Jt(e)?t=>Ne(e,t):e,Qee=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:r})=>{const a=S(()=>{const{fixed:b,width:w,vScrollbarSize:k}=e,$=w-k;return b?Math.max(Math.round(l(t)),$):$}),s=S(()=>l(a)+(e.fixed?e.vScrollbarSize:0)),i=S(()=>{const{height:b=0,maxHeight:w=0,footerHeight:k,hScrollbarSize:$}=e;if(w>0){const O=l(m),I=l(u),N=l(h)+O+I+$;return Math.min(N,w-k)}return b-k}),u=S(()=>{const{rowHeight:b,estimatedRowHeight:w}=e,k=l(n);return De(w)?k.length*w:k.length*b}),c=S(()=>{const{maxHeight:b}=e,w=l(i);if(De(b)&&b>0)return w;const k=l(u)+l(h)+l(m);return Math.min(w,k)}),f=b=>b.width,d=S(()=>Hu(l(o).map(f))),p=S(()=>Hu(l(r).map(f))),h=S(()=>Hu(e.headerHeight)),m=S(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),v=S(()=>l(i)-l(h)-l(m)),g=S(()=>{const{style:b={},height:w,width:k}=e;return Ur({...b,height:w,width:k})}),y=S(()=>Ur({height:e.footerHeight})),C=S(()=>({top:tn(l(h)),bottom:tn(e.footerHeight),width:tn(e.width)}));return{bodyWidth:a,fixedTableHeight:c,mainTableHeight:i,leftTableWidth:d,rightTableWidth:p,headerWidth:s,rowsHeight:u,windowHeight:v,footerHeight:y,emptyStyle:C,rootStyle:g,headerHeight:h}},ete=e=>{const t=M(),n=M(0),o=M(0);let r;return Ze(()=>{r=En(t,([a])=>{const{width:s,height:i}=a.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:f,paddingBottom:d}=getComputedStyle(a.target),p=Number.parseInt(u)||0,h=Number.parseInt(c)||0,m=Number.parseInt(f)||0,v=Number.parseInt(d)||0;n.value=s-p-h,o.value=i-m-v}).stop}),qt(()=>{r==null||r()}),ue([n,o],([a,s])=>{var i;(i=e.onResize)==null||i.call(e,{width:a,height:s})}),{sizer:t,width:n,height:o}};function tte(e){const t=M(),n=M(),o=M(),{columns:r,columnsStyles:a,columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:f,onColumnSorted:d}=Gee(e,Kt(e,"columns"),Kt(e,"fixed")),{scrollTo:p,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:g,onVerticalScroll:y,scrollPos:C}=Yee(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Re}),{expandedRowKeys:b,hoveringRowKey:w,lastRenderedRowIndex:k,isDynamic:$,isResetting:O,rowHeights:I,resetAfterIndex:P,onRowExpanded:N,onRowHeightChange:L,onRowHovered:D,onRowsRendered:R}=Xee(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o}),{data:V,depthMap:U}=Zee(e,{expandedRowKeys:b,lastRenderedRowIndex:k,resetAfterIndex:P}),{bodyWidth:F,fixedTableHeight:T,mainTableHeight:B,leftTableWidth:A,rightTableWidth:W,headerWidth:Z,rowsHeight:K,windowHeight:X,footerHeight:se,emptyStyle:ve,rootStyle:re,headerHeight:ie}=Qee(e,{columnsTotalWidth:s,data:V,fixedColumnsOnLeft:i,fixedColumnsOnRight:u}),J=Pt(!1),oe=M(),de=S(()=>{const Ve=l(V).length===0;return et(e.fixedData)?e.fixedData.length===0&&Ve:Ve});function Te(Ve){const{estimatedRowHeight:We,rowHeight:Ge,rowKey:yt}=e;return We?l(I)[l(V)[Ve][yt]]||We:Ge}function Re(){const{onEndReached:Ve}=e;if(!Ve)return;const{scrollTop:We}=l(C),Ge=l(K),yt=l(X),Se=Ge-(We+yt)+e.hScrollbarSize;l(k)>=0&&Ge===We+l(B)-l(ie)&&Ve(Se)}return ue(()=>e.expandedRowKeys,Ve=>b.value=Ve,{deep:!0}),{columns:r,containerRef:oe,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:$,isResetting:O,isScrolling:J,hoveringRowKey:w,hasFixedColumns:c,columnsStyles:a,columnsTotalWidth:s,data:V,expandedRowKeys:b,depthMap:U,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:f,bodyWidth:F,emptyStyle:ve,rootStyle:re,headerWidth:Z,footerHeight:se,mainTableHeight:B,fixedTableHeight:T,leftTableWidth:A,rightTableWidth:W,showEmpty:de,getRowHeight:Te,onColumnSorted:d,onRowHovered:D,onRowExpanded:N,onRowsRendered:R,onRowHeightChange:L,scrollTo:p,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:g,onVerticalScroll:y}}const Nv=Symbol("tableV2"),a$=String,Os={type:te(Array),required:!0},Rv={type:te(Array)},l$={...Rv,required:!0},nte=String,s$={type:te(Array),default:()=>Ut([])},ka={type:Number,required:!0},i$={type:te([String,Number,Symbol]),default:"id"},u$={type:te(Object)},qr=be({class:String,columns:Os,columnsStyles:{type:te(Object),required:!0},depth:Number,expandColumnKey:nte,estimatedRowHeight:{...jr.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:te(Function)},onRowHover:{type:te(Function)},onRowHeightChange:{type:te(Function)},rowData:{type:te(Object),required:!0},rowEventHandlers:{type:te(Object)},rowIndex:{type:Number,required:!0},rowKey:i$,style:{type:te(Object)}}),Pv={type:Number,required:!0},xv=be({class:String,columns:Os,fixedHeaderData:{type:te(Array)},headerData:{type:te(Array),required:!0},headerHeight:{type:te([Number,Array]),default:50},rowWidth:Pv,rowHeight:{type:Number,default:50},height:Pv,width:Pv}),Wu=be({columns:Os,data:l$,fixedData:Rv,estimatedRowHeight:qr.estimatedRowHeight,width:ka,height:ka,headerWidth:ka,headerHeight:xv.headerHeight,bodyWidth:ka,rowHeight:ka,cache:fv.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:jr.scrollbarAlwaysOn,scrollbarStartGap:jr.scrollbarStartGap,scrollbarEndGap:jr.scrollbarEndGap,class:a$,style:u$,containerStyle:u$,getRowHeight:{type:te(Function),required:!0},rowKey:qr.rowKey,onRowsRendered:{type:te(Function)},onScroll:{type:te(Function)}}),c$=be({cache:Wu.cache,estimatedRowHeight:qr.estimatedRowHeight,rowKey:i$,headerClass:{type:te([String,Function])},headerProps:{type:te([Object,Function])},headerCellProps:{type:te([Object,Function])},headerHeight:xv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:te([String,Function])},rowProps:{type:te([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:te([Object,Function])},columns:Os,data:l$,dataGetter:{type:te(Function)},fixedData:Rv,expandColumnKey:qr.expandColumnKey,expandedRowKeys:s$,defaultExpandedRowKeys:s$,class:a$,fixed:Boolean,style:{type:te(Object)},width:ka,height:ka,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:jr.hScrollbarSize,vScrollbarSize:jr.vScrollbarSize,scrollbarAlwaysOn:vv.alwaysOn,sortBy:{type:te(Object),default:()=>({})},sortState:{type:te(Object),default:void 0},onColumnSort:{type:te(Function)},onExpandedRowsChange:{type:te(Function)},onEndReached:{type:te(Function)},onRowExpand:qr.onRowExpand,onScroll:Wu.onScroll,onRowsRendered:Wu.onRowsRendered,rowEventHandlers:qr.rowEventHandlers}),Lv=(e,{slots:t})=>{var n;const{cellData:o,style:r}=e,a=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"";return j("div",{class:e.class,title:a,style:r},[t.default?t.default(e):a])};Lv.displayName="ElTableV2Cell",Lv.inheritAttrs=!1;var ote=Lv;const Dv=(e,{slots:t})=>{var n,o;return t.default?t.default(e):j("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])};Dv.displayName="ElTableV2HeaderCell",Dv.inheritAttrs=!1;var rte=Dv;const ate=be({class:String,columns:Os,columnsStyles:{type:te(Object),required:!0},headerIndex:Number,style:{type:te(Object)}}),lte=G({name:"ElTableV2HeaderRow",props:ate,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:r,style:a}=e;let s=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:r,style:o[i.key]}));return t.header&&(s=t.header({cells:s.map(i=>et(i)&&i.length===1?i[0]:i),columns:n,headerIndex:r})),j("div",{class:e.class,style:a,role:"row"},[s])}}});var ste=lte;const ite="ElTableV2Header",ute=G({name:ite,props:xv,setup(e,{slots:t,expose:n}){const o=ce("table-v2"),r=M(),a=S(()=>Ur({width:e.width,height:e.height})),s=S(()=>Ur({width:e.rowWidth,height:e.height})),i=S(()=>ra(l(e.headerHeight))),u=d=>{const p=l(r);Ee(()=>{p!=null&&p.scroll&&p.scroll({left:d})})},c=()=>{const d=o.e("fixed-header-row"),{columns:p,fixedHeaderData:h,rowHeight:m}=e;return h==null?void 0:h.map((v,g)=>{var y;const C=Ur({height:m,width:"100%"});return(y=t.fixed)==null?void 0:y.call(t,{class:d,columns:p,rowData:v,rowIndex:-(g+1),style:C})})},f=()=>{const d=o.e("dynamic-header-row"),{columns:p}=e;return l(i).map((h,m)=>{var v;const g=Ur({width:"100%",height:h});return(v=t.dynamic)==null?void 0:v.call(t,{class:d,columns:p,headerIndex:m,style:g})})};return n({scrollToLeft:u}),()=>{if(!(e.height<=0))return j("div",{ref:r,class:e.class,style:l(a),role:"rowgroup"},[j("div",{style:l(s),class:o.e("header")},[f(),c()])])}}});var cte=ute;const dte=e=>{const{isScrolling:t}=Oe(Nv),n=M(!1),o=M(),r=S(()=>De(e.estimatedRowHeight)&&e.rowIndex>=0),a=(u=!1)=>{const c=l(o);if(!c)return;const{columns:f,onRowHeightChange:d,rowKey:p,rowIndex:h,style:m}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ee(()=>{if(u||v!==Number.parseInt(m.height)){const g=f[0],y=(g==null?void 0:g.placeholderSign)===ml;d==null||d({rowKey:p,height:v,rowIndex:h},g&&!y&&g.fixed)}})},s=S(()=>{const{rowData:u,rowIndex:c,rowKey:f,onRowHover:d}=e,p=e.rowEventHandlers||{},h={};return Object.entries(p).forEach(([m,v])=>{$t(v)&&(h[m]=g=>{v({event:g,rowData:u,rowIndex:c,rowKey:f})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:v})=>{const g=h[m];h[m]=y=>{d({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:f}),g==null||g(y)}}),h}),i=u=>{const{onRowExpand:c,rowData:f,rowIndex:d,rowKey:p}=e;c==null||c({expanded:u,rowData:f,rowIndex:d,rowKey:p})};return Ze(()=>{l(r)&&a(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:o,eventHandlers:s,onExpand:i}},fte="ElTableV2TableRow",pte=G({name:fte,props:qr,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:r,isScrolling:a,measurable:s,measured:i,rowRef:u,onExpand:c}=dte(e);return t({onExpand:c}),()=>{const{columns:f,columnsStyles:d,expandColumnKey:p,depth:h,rowData:m,rowIndex:v,style:g}=e;let y=f.map((C,b)=>{const w=et(m.children)&&m.children.length>0&&C.key===p;return n.cell({column:C,columns:f,columnIndex:b,depth:h,style:d[C.key],rowData:m,rowIndex:v,isScrolling:l(a),expandIconProps:w?{rowData:m,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(C=>et(C)&&C.length===1?C[0]:C),style:g,columns:f,depth:h,rowData:m,rowIndex:v,isScrolling:l(a)})),l(s)){const{height:C,...b}=g||{},w=l(i);return j("div",ot({ref:u,class:e.class,style:w?g:b,role:"row"},o,l(r)),[y])}return j("div",ot(o,{ref:u,class:e.class,style:g,role:"row"},l(r)),[y])}}});var vte=pte;const hte=e=>{const{sortOrder:t}=e;return j(ke,{size:14,class:e.class},{default:()=>[t===vl.ASC?j(I5,null,null):j(k5,null,null)]})};var mte=hte;const gte=e=>{const{expanded:t,expandable:n,onExpand:o,style:r,size:a}=e,s={onClick:n?()=>o(!t):void 0,class:e.class};return j(ke,ot(s,{size:a,style:r}),{default:()=>[j(Fn,null,null)]})};var yte=gte;const bte="ElTableV2Grid",wte=e=>{const t=M(),n=M(),o=S(()=>{const{data:v,rowHeight:g,estimatedRowHeight:y}=e;if(!y)return v.length*g}),r=S(()=>{const{fixedData:v,rowHeight:g}=e;return((v==null?void 0:v.length)||0)*g}),a=S(()=>Hu(e.headerHeight)),s=S(()=>{const{height:v}=e;return Math.max(0,v-l(a)-l(r))}),i=S(()=>l(a)+l(r)>0),u=({data:v,rowIndex:g})=>v[g][e.rowKey];function c({rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:C}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:C})}function f(v,g){var y;(y=n.value)==null||y.resetAfterRowIndex(v,g)}function d(v,g){const y=l(t),C=l(n);!y||!C||(Rt(v)?(y.scrollToLeft(v.scrollLeft),C.scrollTo(v)):(y.scrollToLeft(v),C.scrollTo({scrollLeft:v,scrollTop:g})))}function p(v){var g;(g=l(n))==null||g.scrollTo({scrollTop:v})}function h(v,g){var y;(y=l(n))==null||y.scrollToItem(v,1,g)}function m(){var v,g;(v=l(n))==null||v.$forceUpdate(),(g=l(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:m,fixedRowHeight:r,gridHeight:s,hasHeader:i,headerHeight:a,headerRef:t,totalHeight:o,itemKey:u,onItemRendered:c,resetAfterRowIndex:f,scrollTo:d,scrollToTop:p,scrollToRow:h}},Bv=G({name:bte,props:Wu,setup(e,{slots:t,expose:n}){const{ns:o}=Oe(Nv),{bodyRef:r,fixedRowHeight:a,gridHeight:s,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:f,forceUpdate:d,itemKey:p,onItemRendered:h,resetAfterRowIndex:m,scrollTo:v,scrollToTop:g,scrollToRow:y}=wte(e);n({forceUpdate:d,totalHeight:f,scrollTo:v,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:m});const C=()=>e.bodyWidth;return()=>{const{cache:b,columns:w,data:k,fixedData:$,useIsScrolling:O,scrollbarAlwaysOn:I,scrollbarEndGap:P,scrollbarStartGap:N,style:L,rowHeight:D,bodyWidth:R,estimatedRowHeight:V,headerWidth:U,height:F,width:T,getRowHeight:B,onScroll:A}=e,W=De(V),Z=W?d_:o_,K=l(c);return j("div",{role:"table",class:[o.e("table"),e.class],style:L},[j(Z,{ref:r,data:k,useIsScrolling:O,itemKey:p,columnCache:0,columnWidth:W?C:R,totalColumn:1,totalRow:k.length,rowCache:b,rowHeight:W?B:D,width:T,height:l(s),class:o.e("body"),role:"rowgroup",scrollbarStartGap:N,scrollbarEndGap:P,scrollbarAlwaysOn:I,onScroll:A,onItemRendered:h,perfMode:!1},{default:X=>{var se;const ve=k[X.rowIndex];return(se=t.row)==null?void 0:se.call(t,{...X,columns:w,rowData:ve})}}),l(i)&&j(cte,{ref:u,class:o.e("header-wrapper"),columns:w,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:$,rowWidth:U,rowHeight:D,width:T,height:Math.min(K+l(a),F)},{dynamic:t.header,fixed:t.row})])}}});function Cte(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ste=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return j(Bv,ot({ref:n},o),Cte(t)?t:{default:()=>[t]})};function _te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const $te=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return j(Bv,ot({ref:n},o),_te(t)?t:{default:()=>[t]})};function kte(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ete=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return j(Bv,ot({ref:n},o),kte(t)?t:{default:()=>[t]})};function Tte(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ote=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:r,expandColumnKey:a,expandedRowKeys:s,estimatedRowHeight:i,hasFixedColumns:u,hoveringRowKey:c,rowData:f,rowIndex:d,style:p,isScrolling:h,rowProps:m,rowClass:v,rowKey:g,rowEventHandlers:y,ns:C,onRowHovered:b,onRowExpanded:w}=e,k=$a(v,{columns:n,rowData:f,rowIndex:d},""),$=$a(m,{columns:n,rowData:f,rowIndex:d}),O=f[g],I=r[O]||0,P=Boolean(a),N=d<0,L=[C.e("row"),k,{[C.e(`row-depth-${I}`)]:P&&d>=0,[C.is("expanded")]:P&&s.includes(O),[C.is("hovered")]:!h&&O===c,[C.is("fixed")]:!I&&N,[C.is("customized")]:Boolean(t.row)}],D=u?b:void 0,R={...$,columns:n,columnsStyles:o,class:L,depth:I,expandColumnKey:a,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:f,rowKey:O,rowEventHandlers:y,style:p};return j(vte,ot(R,{onRowHover:D,onRowExpand:w}),Tte(t)?t:{default:()=>[t]})},Fv=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:r,isScrolling:a,rowData:s,rowIndex:i,style:u,expandedRowKeys:c,ns:f,cellProps:d,expandColumnKey:p,indentSize:h,iconSize:m,rowKey:v},{slots:g})=>{const y=Ur(u);if(t.placeholderSign===ml)return j("div",{class:f.em("row-cell","placeholder"),style:y},null);const{cellRenderer:C,dataKey:b,dataGetter:w}=t,$=r$(C)||g.default||(F=>j(ote,F,null)),O=$t(w)?w({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:i}):zt(s,b!=null?b:""),I=$a(d,{cellData:O,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:s}),P={class:f.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:O,isScrolling:a,rowData:s,rowIndex:i},N=$(P),L=[f.e("row-cell"),t.class,t.align===hl.CENTER&&f.is("align-center"),t.align===hl.RIGHT&&f.is("align-right")],D=i>=0&&p&&t.key===p,R=i>=0&&c.includes(s[v]);let V;const U=`margin-inline-start: ${o*h}px;`;return D&&(Rt(r)?V=j(yte,ot(r,{class:[f.e("expand-icon"),f.is("expanded",R)],size:m,expanded:R,style:U,expandable:!0}),null):V=j("div",{style:[U,`width: ${m}px; height: ${m}px;`].join(" ")},null)),j("div",ot({class:L,style:y},I,{role:"cell"}),[V,N])};Fv.inheritAttrs=!1;function Mte(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ate=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:r,headerProps:a,ns:s},{slots:i})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),$a(r,u,""),{[s.is("customized")]:Boolean(i.header)}],f={...$a(a,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:o};return j(ste,f,Mte(i)?i:{default:()=>[i]})},d$=(e,{slots:t})=>{const{column:n,ns:o,style:r,onColumnSorted:a}=e,s=Ur(r);if(n.placeholderSign===ml)return j("div",{class:o.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:i,headerClass:u,sortable:c}=n,f={...e,class:o.e("header-cell-text")},p=(r$(i)||t.default||(w=>j(rte,w,null)))(f),{sortBy:h,sortState:m,headerCellProps:v}=e;let g,y;if(m){const w=m[n.key];g=Boolean(Iv[w]),y=g?w:vl.ASC}else g=n.key===h.key,y=g?h.order:vl.ASC;const C=[o.e("header-cell"),$a(u,e,""),n.align===hl.CENTER&&o.is("align-center"),n.align===hl.RIGHT&&o.is("align-right"),c&&o.is("sortable")],b={...$a(v,e),onClick:n.sortable?a:void 0,class:C,style:s,["data-key"]:n.key};return j("div",ot(b,{role:"columnheader"}),[p,c&&j(mte,{class:[o.e("sort-icon"),g&&o.is("sorting")],sortOrder:y},null)])},f$=(e,{slots:t})=>{var n;return j("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};f$.displayName="ElTableV2Footer";const p$=(e,{slots:t})=>j("div",{class:e.class,style:e.style},[t.default?t.default():j(Wp,null,null)]);p$.displayName="ElTableV2Empty";const v$=(e,{slots:t})=>{var n;return j("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};v$.displayName="ElTableV2Overlay";function Ms(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Ite="ElTableV2",Nte=G({name:Ite,props:c$,setup(e,{slots:t,expose:n}){const o=ce("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:a,fixedColumnsOnRight:s,mainColumns:i,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:f,rightTableWidth:d,data:p,depthMap:h,expandedRowKeys:m,hasFixedColumns:v,hoveringRowKey:g,mainTableRef:y,leftTableRef:C,rightTableRef:b,isDynamic:w,isResetting:k,isScrolling:$,bodyWidth:O,emptyStyle:I,rootStyle:P,headerWidth:N,footerHeight:L,showEmpty:D,scrollTo:R,scrollToLeft:V,scrollToTop:U,scrollToRow:F,getRowHeight:T,onColumnSorted:B,onRowHeightChange:A,onRowHovered:W,onRowExpanded:Z,onRowsRendered:K,onScroll:X,onVerticalScroll:se}=tte(e);return n({scrollTo:R,scrollToLeft:V,scrollToTop:U,scrollToRow:F}),ut(Nv,{ns:o,isResetting:k,hoveringRowKey:g,isScrolling:$}),()=>{const{cache:ve,cellProps:re,estimatedRowHeight:ie,expandColumnKey:J,fixedData:oe,headerHeight:de,headerClass:Te,headerProps:Re,headerCellProps:Ve,sortBy:We,sortState:Ge,rowHeight:yt,rowClass:Se,rowEventHandlers:Fe,rowKey:Pe,rowProps:He,scrollbarAlwaysOn:Be,indentSize:Xe,iconSize:Qe,useIsScrolling:Ce,vScrollbarSize:ze,width:ht}=e,Ot=l(p),lt={cache:ve,class:o.e("main"),columns:l(i),data:Ot,fixedData:oe,estimatedRowHeight:ie,bodyWidth:l(O),headerHeight:de,headerWidth:l(N),height:l(u),mainTableRef:y,rowKey:Pe,rowHeight:yt,scrollbarAlwaysOn:Be,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Ce,width:ht,getRowHeight:T,onRowsRendered:K,onScroll:X},we=l(f),ye=l(c),ae={cache:ve,class:o.e("left"),columns:l(a),data:Ot,estimatedRowHeight:ie,leftTableRef:C,rowHeight:yt,bodyWidth:we,headerWidth:we,headerHeight:de,height:ye,rowKey:Pe,scrollbarAlwaysOn:Be,scrollbarStartGap:2,scrollbarEndGap:ze,useIsScrolling:Ce,width:we,getRowHeight:T,onScroll:se},Q=l(d)+ze,pe={cache:ve,class:o.e("right"),columns:l(s),data:Ot,estimatedRowHeight:ie,rightTableRef:b,rowHeight:yt,bodyWidth:Q,headerWidth:Q,headerHeight:de,height:ye,rowKey:Pe,scrollbarAlwaysOn:Be,scrollbarStartGap:2,scrollbarEndGap:ze,width:Q,style:`--${l(o.namespace)}-table-scrollbar-size: ${ze}px`,useIsScrolling:Ce,getRowHeight:T,onScroll:se},$e=l(r),st={ns:o,depthMap:l(h),columnsStyles:$e,expandColumnKey:J,expandedRowKeys:l(m),estimatedRowHeight:ie,hasFixedColumns:l(v),hoveringRowKey:l(g),rowProps:He,rowClass:Se,rowKey:Pe,rowEventHandlers:Fe,onRowHovered:W,onRowExpanded:Z,onRowHeightChange:A},fe={cellProps:re,expandColumnKey:J,indentSize:Xe,iconSize:Qe,rowKey:Pe,expandedRowKeys:l(m),ns:o},_e={ns:o,headerClass:Te,headerProps:Re,columnsStyles:$e},Ue={ns:o,sortBy:We,sortState:Ge,headerCellProps:Ve,onColumnSorted:B},at={row:fn=>j(Ote,ot(fn,st),{row:t.row,cell:he=>{let Me;return t.cell?j(Fv,ot(he,fe,{style:$e[he.column.key]}),Ms(Me=t.cell(he))?Me:{default:()=>[Me]}):j(Fv,ot(he,fe,{style:$e[he.column.key]}),null)}}),header:fn=>j(Ate,ot(fn,_e),{header:t.header,cell:he=>{let Me;return t["header-cell"]?j(d$,ot(he,Ue,{style:$e[he.column.key]}),Ms(Me=t["header-cell"](he))?Me:{default:()=>[Me]}):j(d$,ot(he,Ue,{style:$e[he.column.key]}),null)}})},vt=[e.class,o.b(),o.e("root"),{[o.is("dynamic")]:l(w)}],Mt={class:o.e("footer"),style:l(L)};return j("div",{class:vt,style:l(P)},[j(Ste,lt,Ms(at)?at:{default:()=>[at]}),j($te,ae,Ms(at)?at:{default:()=>[at]}),j(Ete,pe,Ms(at)?at:{default:()=>[at]}),t.footer&&j(f$,Mt,{default:t.footer}),l(D)&&j(p$,{class:o.e("empty"),style:l(I)},{default:t.empty}),t.overlay&&j(v$,{class:o.e("overlay")},{default:t.overlay})])}}});var h$=Nte;const m$=be({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:te(Function)}}),Rte=G({name:"ElAutoResizer",props:m$,setup(e,{slots:t}){const n=ce("auto-resizer"),{height:o,width:r,sizer:a}=ete(e),s={width:"100%",height:"100%"};return()=>{var i;return j("div",{ref:a,class:n.b(),style:s},[(i=t.default)==null?void 0:i.call(t,{height:o.value,width:r.value})])}}}),g$=Je(h$),y$=Je(Rte),As=Symbol("tabsRootContextKey"),b$=be({tabs:{type:te(Array),default:()=>Ut([])}}),w$="ElTabBar",Pte=G({name:w$}),xte=G({...Pte,props:b$,setup(e,{expose:t}){const n=e,o=nt(),r=Oe(As);r||cn(w$,"");const a=ce("tabs"),s=M(),i=M(),u=()=>{let f=0,d=0;const p=["top","bottom"].includes(r.props.tabPosition)?"width":"height",h=p==="width"?"x":"y",m=h==="x"?"left":"top";return n.tabs.every(v=>{var g,y;const C=(y=(g=o.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${v.uid}`];if(!C)return!1;if(!v.active)return!0;f=C[`offset${Ko(m)}`],d=C[`client${Ko(p)}`];const b=window.getComputedStyle(C);return p==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight)),f+=Number.parseFloat(b.paddingLeft)),!1}),{[p]:`${d}px`,transform:`translate${Ko(h)}(${f}px)`}},c=()=>i.value=u();return ue(()=>n.tabs,async()=>{await Ee(),c()},{immediate:!0}),En(s,()=>c()),t({ref:s,update:c}),(f,d)=>(_(),x("div",{ref_key:"barRef",ref:s,class:E([l(a).e("active-bar"),l(a).is(l(r).props.tabPosition)]),style:Ie(i.value)},null,6))}});var Lte=ge(xte,[["__file","tab-bar.vue"]]);const C$=be({panes:{type:te(Array),default:()=>Ut([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),S$={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},_$="ElTabNav",Dte=G({name:_$,props:C$,emits:S$,setup(e,{expose:t,emit:n}){const o=nt(),r=Oe(As);r||cn(_$,"");const a=ce("tabs"),s=uE(),i=bE(),u=M(),c=M(),f=M(),d=M(),p=M(!1),h=M(0),m=M(!1),v=M(!0),g=S(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),y=S(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),C=()=>{if(!u.value)return;const P=u.value[`offset${Ko(g.value)}`],N=h.value;if(!N)return;const L=N>P?N-P:0;h.value=L},b=()=>{if(!u.value||!c.value)return;const P=c.value[`offset${Ko(g.value)}`],N=u.value[`offset${Ko(g.value)}`],L=h.value;if(P-L<=N)return;const D=P-L>N*2?L+N:P-N;h.value=D},w=async()=>{const P=c.value;if(!p.value||!f.value||!u.value||!P)return;await Ee();const N=f.value.querySelector(".is-active");if(!N)return;const L=u.value,D=["top","bottom"].includes(r.props.tabPosition),R=N.getBoundingClientRect(),V=L.getBoundingClientRect(),U=D?P.offsetWidth-V.width:P.offsetHeight-V.height,F=h.value;let T=F;D?(R.leftV.right&&(T=F+R.right-V.right)):(R.topV.bottom&&(T=F+(R.bottom-V.bottom))),T=Math.max(T,0),h.value=Math.min(T,U)},k=()=>{var P;if(!c.value||!u.value)return;e.stretch&&((P=d.value)==null||P.update());const N=c.value[`offset${Ko(g.value)}`],L=u.value[`offset${Ko(g.value)}`],D=h.value;L0&&(h.value=0))},$=P=>{const N=P.code,{up:L,down:D,left:R,right:V}=Ae;if(![L,D,R,V].includes(N))return;const U=Array.from(P.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),F=U.indexOf(P.target);let T;N===R||N===L?F===0?T=U.length-1:T=F-1:F{v.value&&(m.value=!0)},I=()=>m.value=!1;return ue(s,P=>{P==="hidden"?v.value=!1:P==="visible"&&setTimeout(()=>v.value=!0,50)}),ue(i,P=>{P?setTimeout(()=>v.value=!0,50):v.value=!1}),En(f,k),Ze(()=>setTimeout(()=>w(),0)),Xr(()=>k()),t({scrollToActiveTab:w,removeFocus:I}),ue(()=>e.panes,()=>o.update(),{flush:"post",deep:!0}),()=>{const P=p.value?[j("span",{class:[a.e("nav-prev"),a.is("disabled",!p.value.prev)],onClick:C},[j(ke,null,{default:()=>[j(Nr,null,null)]})]),j("span",{class:[a.e("nav-next"),a.is("disabled",!p.value.next)],onClick:b},[j(ke,null,{default:()=>[j(Fn,null,null)]})])]:null,N=e.panes.map((L,D)=>{var R,V,U,F;const T=L.uid,B=L.props.disabled,A=(V=(R=L.props.name)!=null?R:L.index)!=null?V:`${D}`,W=!B&&(L.isClosable||e.editable);L.index=`${D}`;const Z=W?j(ke,{class:"is-icon-close",onClick:se=>n("tabRemove",L,se)},{default:()=>[j(ko,null,null)]}):null,K=((F=(U=L.slots).label)==null?void 0:F.call(U))||L.props.label,X=!B&&L.active?0:-1;return j("div",{ref:`tab-${T}`,class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",L.active),a.is("disabled",B),a.is("closable",W),a.is("focus",m.value)],id:`tab-${A}`,key:`tab-${T}`,"aria-controls":`pane-${A}`,role:"tab","aria-selected":L.active,tabindex:X,onFocus:()=>O(),onBlur:()=>I(),onClick:se=>{I(),n("tabClick",L,A,se)},onKeydown:se=>{W&&(se.code===Ae.delete||se.code===Ae.backspace)&&n("tabRemove",L,se)}},[K,Z])});return j("div",{ref:f,class:[a.e("nav-wrap"),a.is("scrollable",!!p.value),a.is(r.props.tabPosition)]},[P,j("div",{class:a.e("nav-scroll"),ref:u},[j("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:c,style:y.value,role:"tablist",onKeydown:$},[e.type?null:j(Lte,{ref:d,tabs:[...e.panes]},null),N])])])}}}),$$=be({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:te(Function),default:()=>!0},stretch:Boolean}),Vv=e=>it(e)||De(e),k$={[tt]:e=>Vv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Vv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Vv(e),tabAdd:()=>!0};var Bte=G({name:"ElTabs",props:$$,emits:k$,setup(e,{emit:t,slots:n,expose:o}){var r,a;const s=ce("tabs"),{children:i,addChild:u,removeChild:c}=Wi(nt(),"ElTabPane"),f=M(),d=M((a=(r=e.modelValue)!=null?r:e.activeName)!=null?a:"0"),p=y=>{d.value=y,t(tt,y),t("tabChange",y)},h=async y=>{var C,b,w;if(!(d.value===y||bn(y)))try{await((C=e.beforeLeave)==null?void 0:C.call(e,y,d.value))!==!1&&(p(y),(w=(b=f.value)==null?void 0:b.removeFocus)==null||w.call(b))}catch(k){}},m=(y,C,b)=>{y.props.disabled||(h(C),t("tabClick",y,b))},v=(y,C)=>{y.props.disabled||bn(y.props.name)||(C.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};return Oo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},S(()=>!!e.activeName)),ue(()=>e.activeName,y=>h(y)),ue(()=>e.modelValue,y=>h(y)),ue(d,async()=>{var y;await Ee(),(y=f.value)==null||y.scrollToActiveTab()}),ut(As,{props:e,currentName:d,registerPane:u,unregisterPane:c}),o({currentName:d}),()=>{const y=e.editable||e.addable?j("span",{class:s.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===Ae.enter&&g()}},[j(ke,{class:s.is("icon-plus")},{default:()=>[j(Cy,null,null)]})]):null,C=j("div",{class:[s.e("header"),s.is(e.tabPosition)]},[y,j(Dte,{ref:f,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:m,onTabRemove:v},null)]),b=j("div",{class:s.e("content")},[le(n,"default")]);return j("div",{class:[s.b(),s.m(e.tabPosition),{[s.m("card")]:e.type==="card",[s.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[C,b]:[b,C]])}}});const E$=be({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Fte=["id","aria-hidden","aria-labelledby"],T$="ElTabPane",Vte=G({name:T$}),zte=G({...Vte,props:E$,setup(e){const t=e,n=nt(),o=gn(),r=Oe(As);r||cn(T$,"usage: ");const a=ce("tab-pane"),s=M(),i=S(()=>t.closable||r.props.closable),u=kh(()=>{var h;return r.currentName.value===((h=t.name)!=null?h:s.value)}),c=M(u.value),f=S(()=>{var h;return(h=t.name)!=null?h:s.value}),d=kh(()=>!t.lazy||c.value||u.value);ue(u,h=>{h&&(c.value=!0)});const p=At({uid:n.uid,slots:o,props:t,paneName:f,active:u,index:s,isClosable:i});return Ze(()=>{r.registerPane(p)}),Yr(()=>{r.unregisterPane(p.uid)}),(h,m)=>l(d)?je((_(),x("div",{key:0,id:`pane-${l(f)}`,class:E(l(a).b()),role:"tabpanel","aria-hidden":!l(u),"aria-labelledby":`tab-${l(f)}`},[le(h.$slots,"default")],10,Fte)),[[St,l(u)]]):ee("v-if",!0)}});var O$=ge(zte,[["__file","tab-pane.vue"]]);const M$=Je(Bte,{TabPane:O$}),A$=Xt(O$),I$=be({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:To,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),Hte=G({name:"ElText"}),Wte=G({...Hte,props:I$,setup(e){const t=e,n=on(),o=ce("text"),r=S(()=>[o.b(),o.m(t.type),o.m(n.value),o.is("truncated",t.truncated)]);return(a,s)=>(_(),ne(rt(a.tag),{class:E(l(r))},{default:Y(()=>[le(a.$slots,"default")]),_:3},8,["class"]))}});var Kte=ge(Wte,[["__file","text.vue"]]);const N$=Je(Kte),jte=be({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:vn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:te([String,Object]),default:()=>by},clearIcon:{type:te([String,Object]),default:()=>Rr}}),Cr=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&n===12?n=0:r.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},zv=(e,t)=>{const n=Cr(e);if(!n)return-1;const o=Cr(t);if(!o)return-1;const r=n.minutes+n.hours*60,a=o.minutes+o.hours*60;return r===a?0:r>a?1:-1},R$=e=>`${e}`.padStart(2,"0"),gl=e=>`${R$(e.hours)}:${R$(e.minutes)}`,Ute=(e,t)=>{const n=Cr(e);if(!n)return"";const o=Cr(t);if(!o)return"";const r={hours:n.hours,minutes:n.minutes};return r.minutes+=o.minutes,r.hours+=o.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,gl(r)},qte=G({name:"ElTimeSelect"}),Gte=G({...qte,props:jte,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;qe.extend(jf);const{Option:o}=Kr,r=ce("input"),a=M(),s=An(),i=S(()=>n.modelValue),u=S(()=>{const g=Cr(n.start);return g?gl(g):null}),c=S(()=>{const g=Cr(n.end);return g?gl(g):null}),f=S(()=>{const g=Cr(n.step);return g?gl(g):null}),d=S(()=>{const g=Cr(n.minTime||"");return g?gl(g):null}),p=S(()=>{const g=Cr(n.maxTime||"");return g?gl(g):null}),h=S(()=>{const g=[];if(n.start&&n.end&&n.step){let y=u.value,C;for(;y&&c.value&&zv(y,c.value)<=0;)C=qe(y,"HH:mm").format(n.format),g.push({value:C,disabled:zv(y,d.value||"-1:-1")<=0||zv(y,p.value||"100:100")>=0}),y=Ute(y,f.value)}return g});return t({blur:()=>{var g,y;(y=(g=a.value)==null?void 0:g.blur)==null||y.call(g)},focus:()=>{var g,y;(y=(g=a.value)==null?void 0:g.focus)==null||y.call(g)}}),(g,y)=>(_(),ne(l(Kr),{ref_key:"select",ref:a,"model-value":l(i),disabled:l(s),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=C=>g.$emit("update:modelValue",C)),onChange:y[1]||(y[1]=C=>g.$emit("change",C)),onBlur:y[2]||(y[2]=C=>g.$emit("blur",C)),onFocus:y[3]||(y[3]=C=>g.$emit("focus",C))},{prefix:Y(()=>[g.prefixIcon?(_(),ne(l(ke),{key:0,class:E(l(r).e("prefix-icon"))},{default:Y(()=>[(_(),ne(rt(g.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)]),default:Y(()=>[(_(!0),x(xe,null,ct(l(h),C=>(_(),ne(l(o),{key:C.value,label:C.value,value:C.value,disabled:C.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Ku=ge(Gte,[["__file","time-select.vue"]]);Ku.install=e=>{e.component(Ku.name,Ku)};const Yte=Ku,P$=Yte,Xte=G({name:"ElTimeline",setup(e,{slots:t}){const n=ce("timeline");return ut("timeline",t),()=>Ne("ul",{class:[n.b()]},[le(t,"default")])}});var Zte=Xte;const x$=be({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Dt},hollow:{type:Boolean,default:!1}}),Jte=G({name:"ElTimelineItem"}),Qte=G({...Jte,props:x$,setup(e){const t=e,n=ce("timeline-item"),o=S(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(r,a)=>(_(),x("li",{class:E([l(n).b(),{[l(n).e("center")]:r.center}])},[z("div",{class:E(l(n).e("tail"))},null,2),r.$slots.dot?ee("v-if",!0):(_(),x("div",{key:0,class:E(l(o)),style:Ie({backgroundColor:r.color})},[r.icon?(_(),ne(l(ke),{key:0,class:E(l(n).e("icon"))},{default:Y(()=>[(_(),ne(rt(r.icon)))]),_:1},8,["class"])):ee("v-if",!0)],6)),r.$slots.dot?(_(),x("div",{key:1,class:E(l(n).e("dot"))},[le(r.$slots,"dot")],2)):ee("v-if",!0),z("div",{class:E(l(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(_(),x("div",{key:0,class:E([l(n).e("timestamp"),l(n).is("top")])},me(r.timestamp),3)):ee("v-if",!0),z("div",{class:E(l(n).e("content"))},[le(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(_(),x("div",{key:1,class:E([l(n).e("timestamp"),l(n).is("bottom")])},me(r.timestamp),3)):ee("v-if",!0)],2)],2))}});var L$=ge(Qte,[["__file","timeline-item.vue"]]);const D$=Je(Zte,{TimelineItem:L$}),B$=Xt(L$),F$=be({nowrap:Boolean});var V$=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(V$||{});const ene=Object.values(V$),Hv=be({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:te(Object),default:null}}),tne=be({side:{type:te(String),values:ene,required:!0}}),nne=["absolute","fixed"],one=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Wv=be({ariaLabel:String,arrowPadding:{type:te(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:te(String),values:one,default:"bottom"},reference:{type:te(Object),default:null},offset:{type:Number,default:8},strategy:{type:te(String),values:nne,default:"absolute"},showArrow:{type:Boolean,default:!1}}),Kv=be({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:te(Function)},"onUpdate:open":{type:te(Function)}}),yl={type:te(Function)},jv=be({onBlur:yl,onClick:yl,onFocus:yl,onMouseDown:yl,onMouseEnter:yl,onMouseLeave:yl}),rne=be({...Kv,...Hv,...jv,...Wv,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:te(Object),default:null},teleported:Boolean,to:{type:te(String),default:"body"}}),ju=Symbol("tooltipV2"),z$=Symbol("tooltipV2Content"),Uv="tooltip_v2.open",ane=G({name:"ElTooltipV2Root"}),lne=G({...ane,props:Kv,setup(e,{expose:t}){const n=e,o=M(n.defaultOpen),r=M(null),a=S({get:()=>z6(n.open)?o.value:n.open,set:g=>{var y;o.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),s=S(()=>De(n.delayDuration)&&n.delayDuration>0),{start:i,stop:u}=Jr(()=>{a.value=!0},S(()=>n.delayDuration),{immediate:!1}),c=ce("tooltip-v2"),f=no(),d=()=>{u(),a.value=!0},p=()=>{l(s)?i():d()},h=d,m=()=>{u(),a.value=!1};return ue(a,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(Uv)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),Ze(()=>{document.addEventListener(Uv,m)}),qt(()=>{u(),document.removeEventListener(Uv,m)}),ut(ju,{contentId:f,triggerRef:r,ns:c,onClose:m,onDelayOpen:p,onOpen:h}),t({onOpen:h,onClose:m}),(g,y)=>le(g.$slots,"default",{open:l(a)})}});var sne=ge(lne,[["__file","root.vue"]]);const ine=G({name:"ElTooltipV2Arrow"}),une=G({...ine,props:{...Hv,...tne},setup(e){const t=e,{ns:n}=Oe(ju),{arrowRef:o}=Oe(z$),r=S(()=>{const{style:a,width:s,height:i}=t,u=n.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${s}px`,[`--${u}-tooltip-v2-arrow-height`]:`${i}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:s/2-1,...a||{}}});return(a,s)=>(_(),x("span",{ref_key:"arrowRef",ref:o,style:Ie(l(r)),class:E(l(n).e("arrow"))},null,6))}});var H$=ge(une,[["__file","arrow.vue"]]);const cne=be({style:{type:te([String,Object,Array]),default:()=>({})}}),dne=G({name:"ElVisuallyHidden"}),fne=G({...dne,props:cne,setup(e){const t=e,n=S(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(o,r)=>(_(),x("span",ot(o.$attrs,{style:l(n)}),[le(o.$slots,"default")],16))}});var pne=ge(fne,[["__file","visual-hidden.vue"]]);const vne=["data-side"],hne=G({name:"ElTooltipV2Content"}),mne=G({...hne,props:{...Wv,...F$},setup(e){const t=e,{triggerRef:n,contentId:o}=Oe(ju),r=M(t.placement),a=M(t.strategy),s=M(null),{referenceRef:i,contentRef:u,middlewareData:c,x:f,y:d,update:p}=Wb({placement:r,strategy:a,middleware:S(()=>{const b=[uH(t.offset)];return t.showArrow&&b.push(Kb({arrowRef:s})),b})}),h=da().nextZIndex(),m=ce("tooltip-v2"),v=S(()=>r.value.split("-")[0]),g=S(()=>({position:l(a),top:`${l(d)||0}px`,left:`${l(f)||0}px`,zIndex:h})),y=S(()=>{if(!t.showArrow)return{};const{arrow:b}=l(c);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),C=S(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(l(a)),t.contentClass]);return ue(s,()=>p()),ue(()=>t.placement,b=>r.value=b),Ze(()=>{ue(()=>t.reference||n.value,b=>{i.value=b||void 0},{immediate:!0})}),ut(z$,{arrowRef:s}),(b,w)=>(_(),x("div",{ref_key:"contentRef",ref:u,style:Ie(l(g)),"data-tooltip-v2-root":""},[b.nowrap?ee("v-if",!0):(_(),x("div",{key:0,"data-side":l(v),class:E(l(C))},[le(b.$slots,"default",{contentStyle:l(g),contentClass:l(C)}),j(l(pne),{id:l(o),role:"tooltip"},{default:Y(()=>[b.ariaLabel?(_(),x(xe,{key:0},[Ct(me(b.ariaLabel),1)],64)):le(b.$slots,"default",{key:1})]),_:3},8,["id"]),le(b.$slots,"arrow",{style:Ie(l(y)),side:l(v)})],10,vne))],4))}});var W$=ge(mne,[["__file","content.vue"]]);const gne=be({setRef:{type:te(Function),required:!0},onlyChild:Boolean});var yne=G({props:gne,setup(e,{slots:t}){const n=M(),o=ki(n,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[a]=((r=t.default)==null?void 0:r.call(t))||[],s=e.onlyChild?SV(a.children):a.children;return j(xe,{ref:o},[s])}}});const bne=G({name:"ElTooltipV2Trigger"}),wne=G({...bne,props:{...F$,...jv},setup(e){const t=e,{onClose:n,onOpen:o,onDelayOpen:r,triggerRef:a,contentId:s}=Oe(ju);let i=!1;const u=C=>{a.value=C},c=()=>{i=!1},f=Gt(t.onMouseEnter,r),d=Gt(t.onMouseLeave,n),p=Gt(t.onMouseDown,()=>{n(),i=!0,document.addEventListener("mouseup",c,{once:!0})}),h=Gt(t.onFocus,()=>{i||o()}),m=Gt(t.onBlur,n),v=Gt(t.onClick,C=>{C.detail===0&&n()}),g={blur:m,click:v,focus:h,mousedown:p,mouseenter:f,mouseleave:d},y=(C,b,w)=>{C&&Object.entries(b).forEach(([k,$])=>{C[w](k,$)})};return ue(a,(C,b)=>{y(C,g,"addEventListener"),y(b,g,"removeEventListener"),C&&C.setAttribute("aria-describedby",s.value)}),qt(()=>{y(a.value,g,"removeEventListener"),document.removeEventListener("mouseup",c)}),(C,b)=>C.nowrap?(_(),ne(l(yne),{key:0,"set-ref":u,"only-child":""},{default:Y(()=>[le(C.$slots,"default")]),_:3})):(_(),x("button",ot({key:1,ref_key:"triggerRef",ref:a},C.$attrs),[le(C.$slots,"default")],16))}});var Cne=ge(wne,[["__file","trigger.vue"]]);const Sne=G({name:"ElTooltipV2"}),_ne=G({...Sne,props:rne,setup(e){const n=dn(e),o=At(Ho(n,Object.keys(Hv))),r=At(Ho(n,Object.keys(Wv))),a=At(Ho(n,Object.keys(Kv))),s=At(Ho(n,Object.keys(jv)));return(i,u)=>(_(),ne(sne,wo(uc(a)),{default:Y(({open:c})=>[j(Cne,ot(s,{nowrap:""}),{default:Y(()=>[le(i.$slots,"trigger")]),_:3},16),(_(),ne(Ta,{to:i.to,disabled:!i.teleported},[i.fullTransition?(_(),ne(ln,wo(ot({key:0},i.transitionProps)),{default:Y(()=>[i.alwaysOn||c?(_(),ne(W$,wo(ot({key:0},r)),{arrow:Y(({style:f,side:d})=>[i.showArrow?(_(),ne(H$,ot({key:0},o,{style:f,side:d}),null,16,["style","side"])):ee("v-if",!0)]),default:Y(()=>[le(i.$slots,"default")]),_:3},16)):ee("v-if",!0)]),_:2},1040)):(_(),x(xe,{key:1},[i.alwaysOn||c?(_(),ne(W$,wo(ot({key:0},r)),{arrow:Y(({style:f,side:d})=>[i.showArrow?(_(),ne(H$,ot({key:0},o,{style:f,side:d}),null,16,["style","side"])):ee("v-if",!0)]),default:Y(()=>[le(i.$slots,"default")]),_:3},16)):ee("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var $ne=ge(_ne,[["__file","tooltip.vue"]]);const kne=Je($ne),qv="left-check-change",Gv="right-check-change",Ea=be({data:{type:te(Array),default:()=>[]},titles:{type:te(Array),default:()=>[]},buttonTexts:{type:te(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:te(Function)},leftDefaultChecked:{type:te(Array),default:()=>[]},rightDefaultChecked:{type:te(Array),default:()=>[]},renderContent:{type:te(Function)},modelValue:{type:te(Array),default:()=>[]},format:{type:te(Object),default:()=>({})},filterable:Boolean,props:{type:te(Object),default:()=>Ut({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Uu=(e,t)=>[e,t].every(et)||et(e)&&nn(t),K$={[Bt]:(e,t,n)=>[e,n].every(et)&&["left","right"].includes(t),[tt]:e=>et(e),[qv]:Uu,[Gv]:Uu},Yv="checked-change",Ene=be({data:Ea.data,optionRender:{type:te(Function)},placeholder:String,title:String,filterable:Boolean,format:Ea.format,filterMethod:Ea.filterMethod,defaultChecked:Ea.leftDefaultChecked,props:Ea.props}),Tne={[Yv]:Uu},Is=e=>{const t={label:"label",key:"key",disabled:"disabled"};return S(()=>({...t,...e.props}))},One=(e,t,n)=>{const o=Is(e),r=S(()=>e.data.filter(f=>$t(e.filterMethod)?e.filterMethod(t.query,f):String(f[o.value.label]||f[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),a=S(()=>r.value.filter(f=>!f[o.value.disabled])),s=S(()=>{const f=t.checked.length,d=e.data.length,{noChecked:p,hasChecked:h}=e.format;return p&&h?f>0?h.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,d.toString()):p.replace(/\${total}/g,d.toString()):`${f}/${d}`}),i=S(()=>{const f=t.checked.length;return f>0&&f{const f=a.value.map(d=>d[o.value.key]);t.allChecked=f.length>0&&f.every(d=>t.checked.includes(d))},c=f=>{t.checked=f?a.value.map(d=>d[o.value.key]):[]};return ue(()=>t.checked,(f,d)=>{if(u(),t.checkChangeByUser){const p=f.concat(d).filter(h=>!f.includes(h)||!d.includes(h));n(Yv,f,p)}else n(Yv,f),t.checkChangeByUser=!0}),ue(a,()=>{u()}),ue(()=>e.data,()=>{const f=[],d=r.value.map(p=>p[o.value.key]);t.checked.forEach(p=>{d.includes(p)&&f.push(p)}),t.checkChangeByUser=!1,t.checked=f}),ue(()=>e.defaultChecked,(f,d)=>{if(d&&f.length===d.length&&f.every(m=>d.includes(m)))return;const p=[],h=a.value.map(m=>m[o.value.key]);f.forEach(m=>{h.includes(m)&&p.push(m)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:r,checkableData:a,checkedSummary:s,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},Mne=(e,t)=>({onSourceCheckedChange:(r,a)=>{e.leftChecked=r,a&&t(qv,r,a)},onTargetCheckedChange:(r,a)=>{e.rightChecked=r,a&&t(Gv,r,a)}}),Ane=e=>{const t=Is(e),n=S(()=>e.data.reduce((a,s)=>(a[s[t.value.key]]=s)&&a,{})),o=S(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),r=S(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,s)=>{const i=n.value[s];return i&&a.push(i),a},[]));return{sourceData:o,targetData:r}},Ine=(e,t,n)=>{const o=Is(e),r=(i,u,c)=>{n(tt,i),n(Bt,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),r(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const f=c[o.value.key];return t.leftChecked.includes(f)&&!e.modelValue.includes(f)}).map(c=>c[o.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[o.value.key])).map(c=>c[o.value.key])),r(i,"right",t.leftChecked)}}},Nne=G({name:"ElTransferPanel"}),Rne=G({...Nne,props:Ene,emits:Tne,setup(e,{expose:t,emit:n}){const o=e,r=gn(),a=({option:b})=>b,{t:s}=gt(),i=ce("transfer"),u=At({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=Is(o),{filteredData:f,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:h}=One(o,u,n),m=S(()=>!po(u.query)&&po(f.value)),v=S(()=>!po(r.default()[0].children)),{checked:g,allChecked:y,query:C}=dn(u);return t({query:C}),(b,w)=>(_(),x("div",{class:E(l(i).b("panel"))},[z("p",{class:E(l(i).be("panel","header"))},[j(l(ao),{modelValue:l(y),"onUpdate:modelValue":w[0]||(w[0]=k=>Rn(y)?y.value=k:null),indeterminate:l(p),"validate-event":!1,onChange:l(h)},{default:Y(()=>[Ct(me(b.title)+" ",1),z("span",null,me(l(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),z("div",{class:E([l(i).be("panel","body"),l(i).is("with-footer",l(v))])},[b.filterable?(_(),ne(l(_n),{key:0,modelValue:l(C),"onUpdate:modelValue":w[1]||(w[1]=k=>Rn(C)?C.value=k:null),class:E(l(i).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":l(b5),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ee("v-if",!0),je(j(l(vp),{modelValue:l(g),"onUpdate:modelValue":w[2]||(w[2]=k=>Rn(g)?g.value=k:null),"validate-event":!1,class:E([l(i).is("filterable",b.filterable),l(i).be("panel","list")])},{default:Y(()=>[(_(!0),x(xe,null,ct(l(f),k=>(_(),ne(l(ao),{key:k[l(c).key],class:E(l(i).be("panel","item")),label:k[l(c).key],disabled:k[l(c).disabled],"validate-event":!1},{default:Y(()=>{var $;return[j(a,{option:($=b.optionRender)==null?void 0:$.call(b,k)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[St,!l(m)&&!l(po)(b.data)]]),je(z("p",{class:E(l(i).be("panel","empty"))},me(l(m)?l(s)("el.transfer.noMatch"):l(s)("el.transfer.noData")),3),[[St,l(m)||l(po)(b.data)]])],2),l(v)?(_(),x("p",{key:0,class:E(l(i).be("panel","footer"))},[le(b.$slots,"default")],2)):ee("v-if",!0)],2))}});var j$=ge(Rne,[["__file","transfer-panel.vue"]]);const Pne={key:0},xne={key:0},Lne=G({name:"ElTransfer"}),Dne=G({...Lne,props:Ea,emits:K$,setup(e,{expose:t,emit:n}){const o=e,r=gn(),{t:a}=gt(),s=ce("transfer"),{formItem:i}=In(),u=At({leftChecked:[],rightChecked:[]}),c=Is(o),{sourceData:f,targetData:d}=Ane(o),{onSourceCheckedChange:p,onTargetCheckedChange:h}=Mne(u,n),{addToLeft:m,addToRight:v}=Ine(o,u,n),g=M(),y=M(),C=I=>{switch(I){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=S(()=>o.buttonTexts.length===2),w=S(()=>o.titles[0]||a("el.transfer.titles.0")),k=S(()=>o.titles[1]||a("el.transfer.titles.1")),$=S(()=>o.filterPlaceholder||a("el.transfer.filterPlaceholder"));ue(()=>o.modelValue,()=>{var I;o.validateEvent&&((I=i==null?void 0:i.validate)==null||I.call(i,"change").catch(P=>void 0))});const O=S(()=>I=>o.renderContent?o.renderContent(Ne,I):r.default?r.default({option:I}):Ne("span",I[c.value.label]||I[c.value.key]));return t({clearQuery:C,leftPanel:g,rightPanel:y}),(I,P)=>(_(),x("div",{class:E(l(s).b())},[j(j$,{ref_key:"leftPanel",ref:g,data:l(f),"option-render":l(O),placeholder:l($),title:l(w),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:o.props,onCheckedChange:l(p)},{default:Y(()=>[le(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),z("div",{class:E(l(s).e("buttons"))},[j(l(wn),{type:"primary",class:E([l(s).e("button"),l(s).is("with-texts",l(b))]),disabled:l(po)(u.rightChecked),onClick:l(m)},{default:Y(()=>[j(l(ke),null,{default:Y(()=>[j(l(Nr))]),_:1}),l(bn)(I.buttonTexts[0])?ee("v-if",!0):(_(),x("span",Pne,me(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),j(l(wn),{type:"primary",class:E([l(s).e("button"),l(s).is("with-texts",l(b))]),disabled:l(po)(u.leftChecked),onClick:l(v)},{default:Y(()=>[l(bn)(I.buttonTexts[1])?ee("v-if",!0):(_(),x("span",xne,me(I.buttonTexts[1]),1)),j(l(ke),null,{default:Y(()=>[j(l(Fn))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),j(j$,{ref_key:"rightPanel",ref:y,data:l(d),"option-render":l(O),placeholder:l($),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:l(k),"default-checked":I.rightDefaultChecked,props:o.props,onCheckedChange:l(h)},{default:Y(()=>[le(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Bne=ge(Dne,[["__file","transfer.vue"]]);const U$=Je(Bne),bl="$treeNodeId",q$=function(e,t){!t||t[bl]||Object.defineProperty(t,bl,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Xv=function(e,t){return e?t[e]:t[bl]},Zv=(e,t,n)=>{const o=e.value.currentNode;n();const r=e.value.currentNode;o!==r&&t("current-change",r?r.data:null,r)},Jv=e=>{let t=!0,n=!0,o=!0;for(let r=0,a=e.length;r0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||q$(this,this.data),!this.data)return;const o=t.defaultExpandedKeys,r=t.key;r&&o&&o.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||q$(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Gu(this,"children")||[];for(let o=0,r=n.length;o-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof xs)){if(!o){const r=this.getChildren(!0);r.includes(t.data)||(typeof n=="undefined"||n<0?r.push(t.data):r.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=At(new xs(t)),t instanceof xs&&t.initialize()}t.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let o=0;o{if(n){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Array.isArray(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||qu(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,o,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:i}=Jv(this.childNodes);!this.isLeaf&&!s&&i&&(this.checked=!1,t=!1);const u=()=>{if(n){const c=this.childNodes;for(let p=0,h=c.length;p{u(),qu(this)},{checked:t!==!1});return}else u()}const a=this.parent;!a||a.level===0||o||qu(a)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let r="children";return o&&(r=o.children||"children"),n[r]===void 0&&(n[r]=null),t&&!n[r]&&(n[r]=[]),n[r]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(a=>a.data),o={},r=[];t.forEach((a,s)=>{const i=a[bl];!!i&&n.findIndex(c=>c[bl]===i)>=0?o[i]={index:s,data:a}:r.push({index:s,data:a})}),this.store.lazy||n.forEach(a=>{o[a[bl]]||this.removeChildByData(a)}),r.forEach(({index:a,data:s})=>{this.insertChild({data:s},a)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)};this.store.load(this,o)}else t&&t.call(this)}}var Qv=xs;class Vne{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Cn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Qv({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,r=function(a){const s=a.root?a.root.childNodes:a.childNodes;if(s.forEach(i=>{i.visible=n.call(i,t,i.data,i),r(i)}),!a.visible&&s.length){let i=!0;i=!s.some(u=>u.visible),a.root?a.root.visible=i===!1:a.visible=i===!1}!t||a.visible&&!a.isLeaf&&!o&&a.expand()};r(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Qv)return t;const n=Rt(t)?Xv(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const o=this.getNode(n);o.parent.insertBefore({data:t},o)}insertAfter(t,n){const o=this.getNode(n);o.parent.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=n?this.getNode(n):this.root;o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const r=n[o];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],r=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&o.push(i.data),r(i)})};return r(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(a=>{a.indeterminate&&t.push(a.data),n(a)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Cn(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const r=o.childNodes;for(let a=r.length-1;a>=0;a--){const s=r[a];this.remove(s.data)}for(let a=0,s=n.length;au.level-i.level),a=Object.create(null),s=Object.keys(o);r.forEach(i=>i.setChecked(!1,!1));for(let i=0,u=r.length;i0;)a[p.data[t]]=!0,p=p.parent;if(c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const h=function(m){m.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(c)}}}setCheckedNodes(t,n=!1){const o=this.key,r={};t.forEach(a=>{r[(a||{})[o]]=!0}),this._setCheckedKeys(o,n,r)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,r={};t.forEach(a=>{r[a]=!0}),this._setCheckedKeys(o,n,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const r=this.getNode(t);r&&r.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],r=this.nodesMap[o];this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const zne=G({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ce("tree"),n=Oe("NodeInstance"),o=Oe("RootTree");return()=>{const r=e.node,{data:a,store:s}=r;return e.renderContent?e.renderContent(Ne,{_self:n,node:r,data:a,store:s}):o.ctx.slots.default?o.ctx.slots.default({node:r,data:a}):Ne("span",{class:t.be("node","label")},[r.label])}}});var Hne=ge(zne,[["__file","tree-node-content.vue"]]);function G$(e){const t=Oe("TreeNodeMap",null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),ut("TreeNodeMap",n),{broadcastExpanded:o=>{if(!!e.accordion)for(const r of n.children)r.treeNodeExpand(o)}}}const Y$=Symbol("dragEvents");function Wne({props:e,ctx:t,el$:n,dropIndicator$:o,store:r}){const a=ce("tree"),s=M({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return ut(Y$,{treeNodeDragStart:({event:f,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch(p){}s.value.draggingNode=d,t.emit("node-drag-start",d.node,f)},treeNodeDragOver:({event:f,treeNode:d})=>{const p=d,h=s.value.dropNode;h&&h.node.id!==p.node.id&&jn(h.$el,a.is("drop-inner"));const m=s.value.draggingNode;if(!m||!p)return;let v=!0,g=!0,y=!0,C=!0;typeof e.allowDrop=="function"&&(v=e.allowDrop(m.node,p.node,"prev"),C=g=e.allowDrop(m.node,p.node,"inner"),y=e.allowDrop(m.node,p.node,"next")),f.dataTransfer.dropEffect=g||v||y?"move":"none",(v||g||y)&&(h==null?void 0:h.node.id)!==p.node.id&&(h&&t.emit("node-drag-leave",m.node,h.node,f),t.emit("node-drag-enter",m.node,p.node,f)),(v||g||y)&&(s.value.dropNode=p),p.node.nextSibling===m.node&&(y=!1),p.node.previousSibling===m.node&&(v=!1),p.node.contains(m.node,!1)&&(g=!1),(m.node===p.node||m.node.contains(p.node))&&(v=!1,g=!1,y=!1);const b=p.$el.getBoundingClientRect(),w=n.value.getBoundingClientRect();let k;const $=v?g?.25:y?.45:1:-1,O=y?g?.75:v?.55:0:1;let I=-9999;const P=f.clientY-b.top;Pb.height*O?k="after":g?k="inner":k="none";const N=p.$el.querySelector(`.${a.be("node","expand-icon")}`).getBoundingClientRect(),L=o.value;k==="before"?I=N.top-w.top:k==="after"&&(I=N.bottom-w.top),L.style.top=`${I}px`,L.style.left=`${N.right-w.left}px`,k==="inner"?jo(p.$el,a.is("drop-inner")):jn(p.$el,a.is("drop-inner")),s.value.showDropIndicator=k==="before"||k==="after",s.value.allowDrop=s.value.showDropIndicator||C,s.value.dropType=k,t.emit("node-drag-over",m.node,p.node,f)},treeNodeDragEnd:f=>{const{draggingNode:d,dropType:p,dropNode:h}=s.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",d&&h){const m={data:d.node.data};p!=="none"&&d.node.remove(),p==="before"?h.node.parent.insertBefore(m,h.node):p==="after"?h.node.parent.insertAfter(m,h.node):p==="inner"&&h.node.insertChild(m),p!=="none"&&r.value.registerNode(m),jn(h.$el,a.is("drop-inner")),t.emit("node-drag-end",d.node,h.node,p,f),p!=="none"&&t.emit("node-drop",d.node,h.node,p,f)}d&&!h&&t.emit("node-drag-end",d.node,null,p,f),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const Kne=G({name:"ElTreeNode",components:{ElCollapseTransition:$u,ElCheckbox:ao,NodeContent:Hne,ElIcon:ke,Loading:Pr},props:{node:{type:Qv,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=ce("tree"),{broadcastExpanded:o}=G$(e),r=Oe("RootTree"),a=M(!1),s=M(!1),i=M(null),u=M(null),c=M(null),f=Oe(Y$),d=nt();ut("NodeInstance",d),e.node.expanded&&(a.value=!0,s.value=!0);const p=r.props.children||"children";ue(()=>{const P=e.node.data[p];return P&&[...P]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,P=>{v(e.node.checked,P)}),ue(()=>e.node.checked,P=>{v(P,e.node.indeterminate)}),ue(()=>e.node.expanded,P=>{Ee(()=>a.value=P),P&&(s.value=!0)});const h=P=>Xv(r.props.nodeKey,P.data),m=P=>{const N=e.props.class;if(!N)return{};let L;if($t(N)){const{data:D}=P;L=N(D,P)}else L=N;return it(L)?{[L]:!0}:L},v=(P,N)=>{(i.value!==P||u.value!==N)&&r.ctx.emit("check-change",e.node.data,P,N),i.value=P,u.value=N},g=P=>{Zv(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&C(),r.props.checkOnClickNode&&!e.node.disabled&&b(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,d,P)},y=P=>{r.instance.vnode.props.onNodeContextmenu&&(P.stopPropagation(),P.preventDefault()),r.ctx.emit("node-contextmenu",P,e.node.data,e.node,d)},C=()=>{e.node.isLeaf||(a.value?(r.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,d)))},b=(P,N)=>{e.node.setChecked(N.target.checked,!r.props.checkStrictly),Ee(()=>{const L=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:r,expanded:a,childNodeRendered:s,oldChecked:i,oldIndeterminate:u,getNodeKey:h,getNodeClass:m,handleSelectChange:v,handleClick:g,handleContextMenu:y,handleExpandIconClick:C,handleCheckChange:b,handleChildNodeExpand:(P,N,L)=>{o(N),r.ctx.emit("node-expand",P,N,L)},handleDragStart:P=>{!r.props.draggable||f.treeNodeDragStart({event:P,treeNode:e})},handleDragOver:P=>{P.preventDefault(),r.props.draggable&&f.treeNodeDragOver({event:P,treeNode:{$el:c.value,node:e.node}})},handleDrop:P=>{P.preventDefault()},handleDragEnd:P=>{!r.props.draggable||f.treeNodeDragEnd(P)},CaretRight:yy}}}),jne=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Une=["aria-expanded"];function qne(e,t,n,o,r,a){const s=Ke("el-icon"),i=Ke("el-checkbox"),u=Ke("loading"),c=Ke("node-content"),f=Ke("el-tree-node"),d=Ke("el-collapse-transition");return je((_(),x("div",{ref:"node$",class:E([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Le((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[2]||(t[2]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[3]||(t[3]=Le((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[4]||(t[4]=Le((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[5]||(t[5]=Le((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[6]||(t[6]=Le((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[z("div",{class:E(e.ns.be("node","content")),style:Ie({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ne(s,{key:0,class:E([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Le(e.handleExpandIconClick,["stop"])},{default:Y(()=>[(_(),ne(rt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.showCheckbox?(_(),ne(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Le(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ee("v-if",!0),e.node.loading?(_(),ne(s,{key:2,class:E([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Y(()=>[j(u)]),_:1},8,["class"])):ee("v-if",!0),j(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),j(d,null,{default:Y(()=>[!e.renderAfterExpand||e.childNodeRendered?je((_(),x("div",{key:0,class:E(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(_(!0),x(xe,null,ct(e.node.childNodes,p=>(_(),ne(f,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Une)),[[St,e.expanded]]):ee("v-if",!0)]),_:1})],42,jne)),[[St,e.node.visible]])}var Gne=ge(Kne,[["render",qne],["__file","tree-node.vue"]]);function Yne({el$:e},t){const n=ce("tree"),o=Pt([]),r=Pt([]);Ze(()=>{s()}),Xr(()=>{o.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ue(r,i=>{i.forEach(u=>{u.setAttribute("tabindex","-1")})}),xt(e,"keydown",i=>{const u=i.target;if(!u.className.includes(n.b("node")))return;const c=i.code;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=o.value.indexOf(u);let d;if([Ae.up,Ae.down].includes(c)){if(i.preventDefault(),c===Ae.up){d=f===-1?0:f!==0?f-1:o.value.length-1;const h=d;for(;!t.value.getNode(o.value[d].dataset.key).canFocus;){if(d--,d===h){d=-1;break}d<0&&(d=o.value.length-1)}}else{d=f===-1?0:f=o.value.length&&(d=0)}}d!==-1&&o.value[d].focus()}[Ae.left,Ae.right].includes(c)&&(i.preventDefault(),u.click());const p=u.querySelector('[type="checkbox"]');[Ae.enter,Ae.space].includes(c)&&p&&(i.preventDefault(),p.click())});const s=()=>{var i;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=o.value[0])==null||i.setAttribute("tabindex","0")}}const Xne=G({name:"ElTree",components:{ElTreeNode:Gne},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Dt}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=gt(),o=ce("tree"),r=M(new Vne({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));r.value.initialize();const a=M(r.value.root),s=M(null),i=M(null),u=M(null),{broadcastExpanded:c}=G$(e),{dragState:f}=Wne({props:e,ctx:t,el$:i,dropIndicator$:u,store:r});Yne({el$:i},r);const d=S(()=>{const{childNodes:T}=a.value;return!T||T.length===0||T.every(({visible:B})=>!B)});ue(()=>e.currentNodeKey,T=>{r.value.setCurrentNodeKey(T)}),ue(()=>e.defaultCheckedKeys,T=>{r.value.setDefaultCheckedKey(T)}),ue(()=>e.defaultExpandedKeys,T=>{r.value.setDefaultExpandedKeys(T)}),ue(()=>e.data,T=>{r.value.setData(T)},{deep:!0}),ue(()=>e.checkStrictly,T=>{r.value.checkStrictly=T});const p=T=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(T)},h=T=>Xv(e.nodeKey,T.data),m=T=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const B=r.value.getNode(T);if(!B)return[];const A=[B.data];let W=B.parent;for(;W&&W!==a.value;)A.push(W.data),W=W.parent;return A.reverse()},v=(T,B)=>r.value.getCheckedNodes(T,B),g=T=>r.value.getCheckedKeys(T),y=()=>{const T=r.value.getCurrentNode();return T?T.data:null},C=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const T=y();return T?T[e.nodeKey]:null},b=(T,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(T,B)},w=(T,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(T,B)},k=(T,B,A)=>{r.value.setChecked(T,B,A)},$=()=>r.value.getHalfCheckedNodes(),O=()=>r.value.getHalfCheckedKeys(),I=(T,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Zv(r,t.emit,()=>r.value.setUserCurrentNode(T,B))},P=(T,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Zv(r,t.emit,()=>r.value.setCurrentNodeKey(T,B))},N=T=>r.value.getNode(T),L=T=>{r.value.remove(T)},D=(T,B)=>{r.value.append(T,B)},R=(T,B)=>{r.value.insertBefore(T,B)},V=(T,B)=>{r.value.insertAfter(T,B)},U=(T,B,A)=>{c(B),t.emit("node-expand",T,B,A)},F=(T,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(T,B)};return ut("RootTree",{ctx:t,props:e,store:r,root:a,currentNode:s,instance:nt()}),ut(Ao,void 0),{ns:o,store:r,root:a,currentNode:s,dragState:f,el$:i,dropIndicator$:u,isEmpty:d,filter:p,getNodeKey:h,getNodePath:m,getCheckedNodes:v,getCheckedKeys:g,getCurrentNode:y,getCurrentKey:C,setCheckedNodes:b,setCheckedKeys:w,setChecked:k,getHalfCheckedNodes:$,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:P,t:n,getNode:N,remove:L,append:D,insertBefore:R,insertAfter:V,handleNodeExpand:U,updateKeyChildren:F}}});function Zne(e,t,n,o,r,a){const s=Ke("el-tree-node");return _(),x("div",{ref:"el$",class:E([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),x(xe,null,ct(e.root.childNodes,i=>(_(),ne(s,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),x("div",{key:0,class:E(e.ns.e("empty-block"))},[le(e.$slots,"empty",{},()=>{var i;return[z("span",{class:E(e.ns.e("empty-text"))},me((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ee("v-if",!0),je(z("div",{ref:"dropIndicator$",class:E(e.ns.e("drop-indicator"))},null,2),[[St,e.dragState.showDropIndicator]])],2)}var Yu=ge(Xne,[["render",Zne],["__file","tree.vue"]]);Yu.install=e=>{e.component(Yu.name,Yu)};const Xu=Yu,X$=Xu,Jne=(e,{attrs:t},{tree:n,key:o})=>{const r=ce("tree-select"),a={...Ho(dn(e),Object.keys(Kr.props)),...t,valueKey:o,popperClass:S(()=>{const s=[r.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),Ee(()=>{var i;(i=n.value)==null||i.filter(s)})},onVisibleChange:s=>{var i;(i=t.onVisibleChange)==null||i.call(t,s),e.filterable&&s&&a.filterMethod()}};return a},Qne=G({extends:Cs,setup(e,t){const n=Cs.setup(e,t);delete n.selectOptionClick;const o=nt().proxy;return Ee(()=>{n.select.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var eoe=Qne;function eh(e){return e||e===0}function th(e){return Array.isArray(e)&&e.length}function Ns(e){return Array.isArray(e)?e:eh(e)?[e]:[]}function Zu(e,t,n,o,r){for(let a=0;a{ue(()=>e.modelValue,()=>{e.showCheckbox&&Ee(()=>{const p=a.value;p&&!Dn(p.getCheckedKeys(),Ns(e.modelValue))&&p.setCheckedKeys(Ns(e.modelValue))})},{immediate:!0,deep:!0});const i=S(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,h)=>{var m;const v=i.value[p];return $t(v)?v(h,(m=a.value)==null?void 0:m.getNode(u("value",h))):h[v]},c=Ns(e.modelValue).map(p=>Zu(e.data||[],h=>u("value",h)===p,h=>u("children",h),(h,m,v,g)=>g&&u("value",g))).filter(p=>eh(p)),f=S(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return Z$(e.data.concat(e.cacheData),h=>{const m=u("value",h);p.push({value:m,currentLabel:u("label",h),isDisabled:u("disabled",h)})},h=>u("children",h)),p}),d=S(()=>f.value.reduce((p,h)=>({...p,[h.value]:h}),{}));return{...Ho(dn(e),Object.keys(Xu.props)),...t,nodeKey:s,expandOnClickNode:S(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:S(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:h,data:m,store:v})=>p(eoe,{value:u("value",m),label:u("label",m),disabled:u("disabled",m)},e.renderContent?()=>e.renderContent(p,{node:h,data:m,store:v}):n.default?()=>n.default({node:h,data:m,store:v}):void 0),filterNodeMethod:(p,h,m)=>{var v;return e.filterNodeMethod?e.filterNodeMethod(p,h,m):p?(v=u("label",h))==null?void 0:v.includes(p):!0},onNodeClick:(p,h,m)=>{var v,g,y;if((v=t.onNodeClick)==null||v.call(t,p,h,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!u("disabled",p)){const C=(g=r.value)==null?void 0:g.options.get(u("value",p));(y=r.value)==null||y.handleOptionSelect(C)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,h)=>{if(!e.showCheckbox)return;const m=u("value",p),v=h.checkedKeys,g=e.multiple?Ns(e.modelValue).filter(C=>C in d.value&&!a.value.getNode(C)&&!v.includes(C)):[],y=v.concat(g);if(e.checkStrictly)o(tt,e.multiple?y:y.includes(m)?m:void 0);else if(e.multiple)o(tt,a.value.getCheckedKeys(!0));else{const C=Zu([p],k=>!th(u("children",k))&&!u("disabled",k),k=>u("children",k)),b=C?u("value",C):void 0,w=eh(e.modelValue)&&!!Zu([p],k=>u("value",k)===e.modelValue,k=>u("children",k));o(tt,b===e.modelValue||w?void 0:b)}Ee(()=>{var C;const b=Ns(e.modelValue);a.value.setCheckedKeys(b),(C=t.onCheck)==null||C.call(t,p,{checkedKeys:a.value.getCheckedKeys(),checkedNodes:a.value.getCheckedNodes(),halfCheckedKeys:a.value.getHalfCheckedKeys(),halfCheckedNodes:a.value.getHalfCheckedNodes()})})},cacheOptions:f}};var noe=G({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Oe(sl);return ue(()=>e.data,()=>{var n;e.data.forEach(r=>{t.cachedOptions.has(r.value)||t.cachedOptions.set(r.value,r)});const o=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(o).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const ooe=G({name:"ElTreeSelect",inheritAttrs:!1,props:{...Kr.props,...Xu.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,r=M(),a=M(),s=S(()=>e.nodeKey||e.valueKey||"value"),i=Jne(e,t,{select:r,tree:a,key:s}),{cacheOptions:u,...c}=toe(e,t,{select:r,tree:a,key:s}),f=At({});return o(f),Ze(()=>{Object.assign(f,{...Ho(a.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Ho(r.value,["focus","blur"])})}),()=>Ne(Kr,At({...i,ref:d=>r.value=d}),{...n,default:()=>[Ne(noe,{data:u.value}),Ne(Xu,At({...c,ref:d=>a.value=d}))]})}});var Ju=ge(ooe,[["__file","tree-select.vue"]]);Ju.install=e=>{e.component(Ju.name,Ju)};const roe=Ju,J$=roe,nh=Symbol(),aoe={key:-1,level:-1,data:{}};var Rs=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Rs||{}),oh=(e=>(e.ADD="add",e.DELETE="delete",e))(oh||{});const Q$={type:Number,default:26},loe=be({data:{type:te(Array),default:()=>Ut([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:te(Object),default:()=>Ut({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:te(Array),default:()=>Ut([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:te(Array),default:()=>Ut([])},indent:{type:Number,default:16},itemSize:Q$,icon:{type:Dt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:te([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:te(Function)},perfMode:{type:Boolean,default:!0}}),soe=be({node:{type:te(Object),default:()=>Ut(aoe)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:Q$}),ioe=be({node:{type:te(Object),required:!0}}),ek="node-click",tk="node-expand",nk="node-collapse",ok="current-change",rk="check",ak="check-change",lk="node-contextmenu",uoe={[ek]:(e,t,n)=>e&&t&&n,[tk]:(e,t)=>e&&t,[nk]:(e,t)=>e&&t,[ok]:(e,t)=>e&&t,[rk]:(e,t)=>e&&t,[ak]:(e,t)=>e&&typeof t=="boolean",[lk]:(e,t,n)=>e&&t&&n},coe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function doe(e,t){const n=M(new Set),o=M(new Set),{emit:r}=nt();ue([()=>t.value,()=>e.defaultCheckedKeys],()=>Ee(()=>{C(e.defaultCheckedKeys)}),{immediate:!0});const a=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=t.value,k=n.value,$=new Set;for(let O=w-1;O>=1;--O){const I=b.get(O);!I||I.forEach(P=>{const N=P.children;if(N){let L=!0,D=!1;for(const R of N){const V=R.key;if(k.has(V))D=!0;else if($.has(V)){L=!1,D=!0;break}else L=!1}L?k.add(P.key):D?($.add(P.key),k.delete(P.key)):(k.delete(P.key),$.delete(P.key))}})}o.value=$},s=b=>n.value.has(b.key),i=b=>o.value.has(b.key),u=(b,w,k=!0)=>{const $=n.value,O=(I,P)=>{$[P?oh.ADD:oh.DELETE](I.key);const N=I.children;!e.checkStrictly&&N&&N.forEach(L=>{L.disabled||O(L,P)})};O(b,w),a(),k&&c(b,w)},c=(b,w)=>{const{checkedNodes:k,checkedKeys:$}=m(),{halfCheckedNodes:O,halfCheckedKeys:I}=v();r(rk,b.data,{checkedKeys:$,checkedNodes:k,halfCheckedKeys:I,halfCheckedNodes:O}),r(ak,b.data,w)};function f(b=!1){return m(b).checkedKeys}function d(b=!1){return m(b).checkedNodes}function p(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function m(b=!1){const w=[],k=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:$}=t.value;n.value.forEach(O=>{const I=$.get(O);I&&(!b||b&&I.isLeaf)&&(k.push(O),w.push(I.data))})}return{checkedKeys:k,checkedNodes:w}}function v(){const b=[],w=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:k}=t.value;o.value.forEach($=>{const O=k.get($);O&&(w.push($),b.push(O.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),o.value.clear(),C(b)}function y(b,w){if((t==null?void 0:t.value)&&e.showCheckbox){const k=t.value.treeNodeMap.get(b);k&&u(k,w,!1)}}function C(b){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&b)for(const k of b){const $=w.get(k);$&&!s($)&&u($,!0,!1)}}}return{updateCheckedKeys:a,toggleCheckbox:u,isChecked:s,isIndeterminate:i,getCheckedKeys:f,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function foe(e,t){const n=M(new Set([])),o=M(new Set([])),r=S(()=>$t(e.filterMethod));function a(i){var u;if(!r.value)return;const c=new Set,f=o.value,d=n.value,p=[],h=((u=t.value)==null?void 0:u.treeNodes)||[],m=e.filterMethod;d.clear();function v(g){g.forEach(y=>{p.push(y),m!=null&&m(i,y.data)?p.forEach(b=>{c.add(b.key)}):y.isLeaf&&d.add(y.key);const C=y.children;if(C&&v(C),!y.isLeaf){if(!c.has(y.key))d.add(y.key);else if(C){let b=!0;for(const w of C)if(!d.has(w.key)){b=!1;break}b?f.add(y.key):f.delete(y.key)}}p.pop()})}return v(h),c}function s(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:a,isForceHiddenExpandIcon:s}}function poe(e,t){const n=M(new Set(e.defaultExpandedKeys)),o=M(),r=Pt();ue(()=>e.currentNodeKey,J=>{o.value=J},{immediate:!0}),ue(()=>e.data,J=>{re(J)},{immediate:!0});const{isIndeterminate:a,isChecked:s,toggleCheckbox:i,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:h}=doe(e,r),{doFilter:m,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=foe(e,r),y=S(()=>{var J;return((J=e.props)==null?void 0:J.value)||Rs.KEY}),C=S(()=>{var J;return((J=e.props)==null?void 0:J.children)||Rs.CHILDREN}),b=S(()=>{var J;return((J=e.props)==null?void 0:J.disabled)||Rs.DISABLED}),w=S(()=>{var J;return((J=e.props)==null?void 0:J.label)||Rs.LABEL}),k=S(()=>{const J=n.value,oe=v.value,de=[],Te=r.value&&r.value.treeNodes||[];function Re(){const Ve=[];for(let We=Te.length-1;We>=0;--We)Ve.push(Te[We]);for(;Ve.length;){const We=Ve.pop();if(!!We&&(oe.has(We.key)||de.push(We),J.has(We.key))){const Ge=We.children;if(Ge){const yt=Ge.length;for(let Se=yt-1;Se>=0;--Se)Ve.push(Ge[Se])}}}}return Re(),de}),$=S(()=>k.value.length>0);function O(J){const oe=new Map,de=new Map;let Te=1;function Re(We,Ge=1,yt=void 0){var Se;const Fe=[];for(const Pe of We){const He=N(Pe),Be={level:Ge,key:He,data:Pe};Be.label=D(Pe),Be.parent=yt;const Xe=P(Pe);Be.disabled=L(Pe),Be.isLeaf=!Xe||Xe.length===0,Xe&&Xe.length&&(Be.children=Re(Xe,Ge+1,Be)),Fe.push(Be),oe.set(He,Be),de.has(Ge)||de.set(Ge,[]),(Se=de.get(Ge))==null||Se.push(Be)}return Ge>Te&&(Te=Ge),Fe}const Ve=Re(J);return{treeNodeMap:oe,levelTreeNodeMap:de,maxLevel:Te,treeNodes:Ve}}function I(J){const oe=m(J);oe&&(n.value=oe)}function P(J){return J[C.value]}function N(J){return J?J[y.value]:""}function L(J){return J[b.value]}function D(J){return J[w.value]}function R(J){n.value.has(J.key)?A(J):B(J)}function V(J){n.value=new Set(J)}function U(J,oe){t(ek,J.data,J,oe),F(J),e.expandOnClickNode&&R(J),e.showCheckbox&&e.checkOnClickNode&&!J.disabled&&i(J,!s(J),!0)}function F(J){K(J)||(o.value=J.key,t(ok,J.data,J))}function T(J,oe){i(J,oe)}function B(J){const oe=n.value;if(r.value&&e.accordion){const{treeNodeMap:de}=r.value;oe.forEach(Te=>{const Re=de.get(Te);J&&J.level===(Re==null?void 0:Re.level)&&oe.delete(Te)})}oe.add(J.key),t(tk,J.data,J)}function A(J){n.value.delete(J.key),t(nk,J.data,J)}function W(J){return n.value.has(J.key)}function Z(J){return!!J.disabled}function K(J){const oe=o.value;return!!oe&&oe===J.key}function X(){var J,oe;if(!!o.value)return(oe=(J=r.value)==null?void 0:J.treeNodeMap.get(o.value))==null?void 0:oe.data}function se(){return o.value}function ve(J){o.value=J}function re(J){Ee(()=>r.value=O(J))}function ie(J){var oe;const de=Rt(J)?N(J):J;return(oe=r.value)==null?void 0:oe.treeNodeMap.get(de)}return{tree:r,flattenTree:k,isNotEmpty:$,getKey:N,getChildren:P,toggleExpand:R,toggleCheckbox:i,isExpanded:W,isChecked:s,isIndeterminate:a,isDisabled:Z,isCurrent:K,isForceHiddenExpandIcon:g,handleNodeClick:U,handleNodeCheck:T,getCurrentNode:X,getCurrentKey:se,setCurrentKey:ve,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:h,filter:I,setData:re,getNode:ie,expandNode:B,collapseNode:A,setExpandedKeys:V}}var voe=G({name:"ElTreeNodeContent",props:ioe,setup(e){const t=Oe(nh),n=ce("tree");return()=>{const o=e.node,{data:r}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:r}):Ne("span",{class:n.be("node","label")},[o==null?void 0:o.label])}}});const hoe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],moe=G({name:"ElTreeNode"}),goe=G({...moe,props:soe,emits:coe,setup(e,{emit:t}){const n=e,o=Oe(nh),r=ce("tree"),a=S(()=>{var d;return(d=o==null?void 0:o.props.indent)!=null?d:16}),s=S(()=>{var d;return(d=o==null?void 0:o.props.icon)!=null?d:yy}),i=d=>{t("click",n.node,d)},u=()=>{t("toggle",n.node)},c=d=>{t("check",n.node,d)},f=d=>{var p,h,m,v;(m=(h=(p=o==null?void 0:o.instance)==null?void 0:p.vnode)==null?void 0:h.props)!=null&&m.onNodeContextmenu&&(d.stopPropagation(),d.preventDefault()),o==null||o.ctx.emit(lk,d,(v=n.node)==null?void 0:v.data,n.node)};return(d,p)=>{var h,m,v;return _(),x("div",{ref:"node$",class:E([l(r).b("node"),l(r).is("expanded",d.expanded),l(r).is("current",d.current),l(r).is("focusable",!d.disabled),l(r).is("checked",!d.disabled&&d.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":d.expanded,"aria-disabled":d.disabled,"aria-checked":d.checked,"data-key":(h=d.node)==null?void 0:h.key,onClick:Le(i,["stop"]),onContextmenu:f},[z("div",{class:E(l(r).be("node","content")),style:Ie({paddingLeft:`${(d.node.level-1)*l(a)}px`,height:d.itemSize+"px"})},[l(s)?(_(),ne(l(ke),{key:0,class:E([l(r).is("leaf",!!((m=d.node)!=null&&m.isLeaf)),l(r).is("hidden",d.hiddenExpandIcon),{expanded:!((v=d.node)!=null&&v.isLeaf)&&d.expanded},l(r).be("node","expand-icon")]),onClick:Le(u,["stop"])},{default:Y(()=>[(_(),ne(rt(l(s))))]),_:1},8,["class","onClick"])):ee("v-if",!0),d.showCheckbox?(_(),ne(l(ao),{key:1,"model-value":d.checked,indeterminate:d.indeterminate,disabled:d.disabled,onChange:c,onClick:p[0]||(p[0]=Le(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ee("v-if",!0),j(l(voe),{node:d.node},null,8,["node"])],6)],42,hoe)}}});var yoe=ge(goe,[["__file","tree-node.vue"]]);const boe=G({name:"ElTreeV2"}),woe=G({...boe,props:loe,emits:uoe,setup(e,{expose:t,emit:n}){const o=e,r=gn(),a=S(()=>o.itemSize);ut(nh,{ctx:{emit:n,slots:r},props:o,instance:nt()}),ut(Ao,void 0);const{t:s}=gt(),i=ce("tree"),{flattenTree:u,isNotEmpty:c,toggleExpand:f,isExpanded:d,isIndeterminate:p,isChecked:h,isDisabled:m,isCurrent:v,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeCheck:C,toggleCheckbox:b,getCurrentNode:w,getCurrentKey:k,setCurrentKey:$,getCheckedKeys:O,getCheckedNodes:I,getHalfCheckedKeys:P,getHalfCheckedNodes:N,setChecked:L,setCheckedKeys:D,filter:R,setData:V,getNode:U,expandNode:F,collapseNode:T,setExpandedKeys:B}=poe(o,n);return t({toggleCheckbox:b,getCurrentNode:w,getCurrentKey:k,setCurrentKey:$,getCheckedKeys:O,getCheckedNodes:I,getHalfCheckedKeys:P,getHalfCheckedNodes:N,setChecked:L,setCheckedKeys:D,filter:R,setData:V,getNode:U,expandNode:F,collapseNode:T,setExpandedKeys:B}),(A,W)=>{var Z;return _(),x("div",{class:E([l(i).b(),{[l(i).m("highlight-current")]:A.highlightCurrent}]),role:"tree"},[l(c)?(_(),ne(l(mv),{key:0,"class-name":l(i).b("virtual-list"),data:l(u),total:l(u).length,height:A.height,"item-size":l(a),"perf-mode":A.perfMode},{default:Y(({data:K,index:X,style:se})=>[(_(),ne(yoe,{key:K[X].key,style:Ie(se),node:K[X],expanded:l(d)(K[X]),"show-checkbox":A.showCheckbox,checked:l(h)(K[X]),indeterminate:l(p)(K[X]),"item-size":l(a),disabled:l(m)(K[X]),current:l(v)(K[X]),"hidden-expand-icon":l(g)(K[X]),onClick:l(y),onToggle:l(f),onCheck:l(C)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(_(),x("div",{key:1,class:E(l(i).e("empty-block"))},[z("span",{class:E(l(i).e("empty-text"))},me((Z=A.emptyText)!=null?Z:l(s)("el.tree.emptyText")),3)],2))],2)}}});var Coe=ge(woe,[["__file","tree.vue"]]);const sk=Je(Coe),rh=Symbol("uploadContextKey"),Soe="ElUpload";class _oe extends Error{constructor(t,n,o,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=r}}function ik(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new _oe(o,n.status,t.method,e)}function $oe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const koe=e=>{typeof XMLHttpRequest=="undefined"&&cn(Soe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",a=>{const s=a;s.percent=a.total>0?a.loaded/a.total*100:0,e.onProgress(s)});const o=new FormData;if(e.data)for(const[a,s]of Object.entries(e.data))Array.isArray(s)?o.append(a,...s):o.append(a,s);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(ik(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(ik(n,e,t));e.onSuccess($oe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((a,s)=>t.setRequestHeader(s,a));else for(const[a,s]of Object.entries(r))nn(s)||t.setRequestHeader(a,String(s));return t.send(o),t},ah=["text","picture","picture-card"];let Eoe=1;const Qu=()=>Date.now()+Eoe++,lh=be({action:{type:String,default:"#"},headers:{type:te(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Ut({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:te(Array),default:()=>Ut([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ah,default:"text"},httpRequest:{type:te(Function),default:koe},disabled:Boolean,limit:Number}),uk=be({...lh,beforeUpload:{type:te(Function),default:Ft},beforeRemove:{type:te(Function)},onRemove:{type:te(Function),default:Ft},onChange:{type:te(Function),default:Ft},onPreview:{type:te(Function),default:Ft},onSuccess:{type:te(Function),default:Ft},onProgress:{type:te(Function),default:Ft},onError:{type:te(Function),default:Ft},onExceed:{type:te(Function),default:Ft}}),ck=be({files:{type:te(Array),default:()=>Ut([])},disabled:{type:Boolean,default:!1},handlePreview:{type:te(Function),default:Ft},listType:{type:String,values:ah,default:"text"}}),dk={remove:e=>!!e},Toe=["onKeydown"],Ooe=["src"],Moe=["onClick"],Aoe=["onClick"],Ioe=["onClick"],Noe=G({name:"ElUploadList"}),Roe=G({...Noe,props:ck,emits:dk,setup(e,{emit:t}){const{t:n}=gt(),o=ce("upload"),r=ce("icon"),a=ce("list"),s=An(),i=M(!1),u=c=>{t("remove",c)};return(c,f)=>(_(),ne(mh,{tag:"ul",class:E([l(o).b("list"),l(o).bm("list",c.listType),l(o).is("disabled",l(s))]),name:l(a).b()},{default:Y(()=>[(_(!0),x(xe,null,ct(c.files,d=>(_(),x("li",{key:d.uid||d.name,class:E([l(o).be("list","item"),l(o).is(d.status),{focusing:i.value}]),tabindex:"0",onKeydown:mt(p=>!l(s)&&u(d),["delete"]),onFocus:f[0]||(f[0]=p=>i.value=!0),onBlur:f[1]||(f[1]=p=>i.value=!1),onClick:f[2]||(f[2]=p=>i.value=!1)},[le(c.$slots,"default",{file:d},()=>[c.listType==="picture"||d.status!=="uploading"&&c.listType==="picture-card"?(_(),x("img",{key:0,class:E(l(o).be("list","item-thumbnail")),src:d.url,alt:""},null,10,Ooe)):ee("v-if",!0),d.status==="uploading"||c.listType!=="picture-card"?(_(),x("div",{key:1,class:E(l(o).be("list","item-info"))},[z("a",{class:E(l(o).be("list","item-name")),onClick:Le(p=>c.handlePreview(d),["prevent"])},[j(l(ke),{class:E(l(r).m("document"))},{default:Y(()=>[j(l(UB))]),_:1},8,["class"]),z("span",{class:E(l(o).be("list","item-file-name"))},me(d.name),3)],10,Moe),d.status==="uploading"?(_(),ne(l(tv),{key:0,type:c.listType==="picture-card"?"circle":"line","stroke-width":c.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:Ie(c.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ee("v-if",!0)],2)):ee("v-if",!0),z("label",{class:E(l(o).be("list","item-status-label"))},[c.listType==="text"?(_(),ne(l(ke),{key:0,class:E([l(r).m("upload-success"),l(r).m("circle-check")])},{default:Y(()=>[j(l(Bd))]),_:1},8,["class"])):["picture-card","picture"].includes(c.listType)?(_(),ne(l(ke),{key:1,class:E([l(r).m("upload-success"),l(r).m("check")])},{default:Y(()=>[j(l(Gl))]),_:1},8,["class"])):ee("v-if",!0)],2),l(s)?ee("v-if",!0):(_(),ne(l(ke),{key:2,class:E(l(r).m("close")),onClick:p=>u(d)},{default:Y(()=>[j(l(ko))]),_:2},1032,["class","onClick"])),ee(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ee(" This is a bug which needs to be fixed "),ee(" TODO: Fix the incorrect navigation interaction "),l(s)?ee("v-if",!0):(_(),x("i",{key:3,class:E(l(r).m("close-tip"))},me(l(n)("el.upload.deleteTip")),3)),c.listType==="picture-card"?(_(),x("span",{key:4,class:E(l(o).be("list","item-actions"))},[z("span",{class:E(l(o).be("list","item-preview")),onClick:p=>c.handlePreview(d)},[j(l(ke),{class:E(l(r).m("zoom-in"))},{default:Y(()=>[j(l(_y))]),_:1},8,["class"])],10,Aoe),l(s)?ee("v-if",!0):(_(),x("span",{key:0,class:E(l(o).be("list","item-delete")),onClick:p=>u(d)},[j(l(ke),{class:E(l(r).m("delete"))},{default:Y(()=>[j(l(VB))]),_:1},8,["class"])],10,Ioe))],2)):ee("v-if",!0)])],42,Toe))),128)),le(c.$slots,"append")]),_:3},8,["class","name"]))}});var fk=ge(Roe,[["__file","upload-list.vue"]]);const pk=be({disabled:{type:Boolean,default:!1}}),vk={file:e=>et(e)},Poe=["onDrop","onDragover"],hk="ElUploadDrag",xoe=G({name:hk}),Loe=G({...xoe,props:pk,emits:vk,setup(e,{emit:t}){const n=Oe(rh);n||cn(hk,"usage: ");const o=ce("upload"),r=M(!1),a=An(),s=u=>{if(a.value)return;r.value=!1,u.stopPropagation();const c=Array.from(u.dataTransfer.files),f=n.accept.value;if(!f){t("file",c);return}const d=c.filter(p=>{const{type:h,name:m}=p,v=m.includes(".")?`.${m.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return f.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?v===y:/\/\*$/.test(y)?g===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});t("file",d)},i=()=>{a.value||(r.value=!0)};return(u,c)=>(_(),x("div",{class:E([l(o).b("dragger"),l(o).is("dragover",r.value)]),onDrop:Le(s,["prevent"]),onDragover:Le(i,["prevent"]),onDragleave:c[0]||(c[0]=Le(f=>r.value=!1,["prevent"]))},[le(u.$slots,"default")],42,Poe))}});var Doe=ge(Loe,[["__file","upload-dragger.vue"]]);const mk=be({...lh,beforeUpload:{type:te(Function),default:Ft},onRemove:{type:te(Function),default:Ft},onStart:{type:te(Function),default:Ft},onSuccess:{type:te(Function),default:Ft},onProgress:{type:te(Function),default:Ft},onError:{type:te(Function),default:Ft},onExceed:{type:te(Function),default:Ft}}),Boe=["onKeydown"],Foe=["name","multiple","accept"],Voe=G({name:"ElUploadContent",inheritAttrs:!1}),zoe=G({...Voe,props:mk,setup(e,{expose:t}){const n=e,o=ce("upload"),r=An(),a=Pt({}),s=Pt(),i=m=>{if(m.length===0)return;const{autoUpload:v,limit:g,fileList:y,multiple:C,onStart:b,onExceed:w}=n;if(g&&y.length+m.length>g){w(m,y);return}C||(m=m.slice(0,1));for(const k of m){const $=k;$.uid=Qu(),b($),v&&u($)}},u=async m=>{if(s.value.value="",!n.beforeUpload)return c(m);let v,g={};try{const C=n.data,b=n.beforeUpload(m);g=Rt(n.data)?Bl(n.data):n.data,v=await b,Rt(n.data)&&Dn(C,g)&&(g=Bl(n.data))}catch(C){v=!1}if(v===!1){n.onRemove(m);return}let y=m;v instanceof Blob&&(v instanceof File?y=v:y=new File([v],m.name,{type:m.type})),c(Object.assign(y,{uid:m.uid}),g)},c=(m,v)=>{const{headers:g,data:y,method:C,withCredentials:b,name:w,action:k,onProgress:$,onSuccess:O,onError:I,httpRequest:P}=n,{uid:N}=m,L={headers:g||{},withCredentials:b,file:m,data:v!=null?v:y,method:C,filename:w,action:k,onProgress:R=>{$(R,m)},onSuccess:R=>{O(R,m),delete a.value[N]},onError:R=>{I(R,m),delete a.value[N]}},D=P(L);a.value[N]=D,D instanceof Promise&&D.then(L.onSuccess,L.onError)},f=m=>{const v=m.target.files;!v||i(Array.from(v))},d=()=>{r.value||(s.value.value="",s.value.click())},p=()=>{d()};return t({abort:m=>{W6(a.value).filter(m?([g])=>String(m.uid)===g:()=>!0).forEach(([g,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete a.value[g]})},upload:u}),(m,v)=>(_(),x("div",{class:E([l(o).b(),l(o).m(m.listType),l(o).is("drag",m.drag)]),tabindex:"0",onClick:d,onKeydown:mt(Le(p,["self"]),["enter","space"])},[m.drag?(_(),ne(Doe,{key:0,disabled:l(r),onFile:i},{default:Y(()=>[le(m.$slots,"default")]),_:3},8,["disabled"])):le(m.$slots,"default",{key:1}),z("input",{ref_key:"inputRef",ref:s,class:E(l(o).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:f,onClick:v[0]||(v[0]=Le(()=>{},["stop"]))},null,42,Foe)],42,Boe))}});var gk=ge(zoe,[["__file","upload-content.vue"]]);const yk="ElUpload",Hoe=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Woe=(e,t)=>{const n=yE(e,"fileList",void 0,{passive:!0}),o=p=>n.value.find(h=>h.uid===p.uid);function r(p){var h;(h=t.value)==null||h.abort(p)}function a(p=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!p.includes(h.status))}const s=(p,h)=>{const m=o(h);!m||(console.error(p),m.status="fail",n.value.splice(n.value.indexOf(m),1),e.onError(p,m,n.value),e.onChange(m,n.value))},i=(p,h)=>{const m=o(h);!m||(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},u=(p,h)=>{const m=o(h);!m||(m.status="success",m.response=p,e.onSuccess(p,m,n.value),e.onChange(m,n.value))},c=p=>{nn(p.uid)&&(p.uid=Qu());const h={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(p)}catch(m){m.message,e.onError(m,h,n.value)}n.value=[...n.value,h],e.onChange(h,n.value)},f=async p=>{const h=p instanceof File?o(p):p;h||cn(yk,"file to be removed not found");const m=v=>{r(v);const g=n.value;g.splice(g.indexOf(v),1),e.onRemove(v,g),Hoe(v)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&m(h):m(h)};function d(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var h;return p&&((h=t.value)==null?void 0:h.upload(p))})}return ue(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(h=>{const{raw:m,url:v}=h;if(!v&&m)try{h.url=URL.createObjectURL(m)}catch(g){e.onError(g,h,n.value)}return h}))}),ue(n,p=>{for(const h of p)h.uid||(h.uid=Qu()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:a,handleError:s,handleProgress:i,handleStart:c,handleSuccess:u,handleRemove:f,submit:d}},Koe=G({name:"ElUpload"}),joe=G({...Koe,props:uk,setup(e,{expose:t}){const n=e,o=gn(),r=An(),a=Pt(),{abort:s,submit:i,clearFiles:u,uploadFiles:c,handleStart:f,handleError:d,handleRemove:p,handleSuccess:h,handleProgress:m}=Woe(n,a),v=S(()=>n.listType==="picture-card"),g=S(()=>({...n,fileList:c.value,onStart:f,onProgress:m,onSuccess:h,onError:d,onRemove:p}));return qt(()=>{c.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),ut(rh,{accept:Kt(n,"accept")}),t({abort:s,submit:i,clearFiles:u,handleStart:f,handleRemove:p}),(y,C)=>(_(),x("div",null,[l(v)&&y.showFileList?(_(),ne(fk,{key:0,disabled:l(r),"list-type":y.listType,files:l(c),"handle-preview":y.onPreview,onRemove:l(p)},er({append:Y(()=>[j(gk,ot({ref_key:"uploadRef",ref:a},l(g)),{default:Y(()=>[l(o).trigger?le(y.$slots,"trigger",{key:0}):ee("v-if",!0),!l(o).trigger&&l(o).default?le(y.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:Y(({file:b})=>[le(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ee("v-if",!0),!l(v)||l(v)&&!y.showFileList?(_(),ne(gk,ot({key:1,ref_key:"uploadRef",ref:a},l(g)),{default:Y(()=>[l(o).trigger?le(y.$slots,"trigger",{key:0}):ee("v-if",!0),!l(o).trigger&&l(o).default?le(y.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)):ee("v-if",!0),y.$slots.trigger?le(y.$slots,"default",{key:2}):ee("v-if",!0),le(y.$slots,"tip"),!l(v)&&y.showFileList?(_(),ne(fk,{key:3,disabled:l(r),"list-type":y.listType,files:l(c),"handle-preview":y.onPreview,onRemove:l(p)},er({_:2},[y.$slots.file?{name:"default",fn:Y(({file:b})=>[le(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ee("v-if",!0)]))}});var Uoe=ge(joe,[["__file","upload.vue"]]);const bk=Je(Uoe);var qoe=[Qb,r1,X1,y$,Q1,ow,Df,iw,uw,wn,Kf,Xw,Jw,r2,a2,A2,E2,R2,ao,d2,vp,F2,j2,U2,H2,Q2,Gb,rC,aC,lC,sC,iC,CC,$C,kC,MC,Dp,RC,YC,XC,ZC,Wp,g1,y1,ke,oS,Kp,_n,jp,iS,bS,wS,CS,SS,kS,NS,xS,FS,Lf,tv,yp,w2,b2,WS,jS,D2,Zo,Kr,Cs,OS,v_,g_,y_,S_,T_,Cv,R_,B_,F_,H_,n$,o$,g$,M$,A$,al,N$,Kw,P$,D$,B$,Nn,kne,U$,X$,J$,sk,bk];const Ro="ElInfiniteScroll",Goe=50,Yoe=200,Xoe=0,Zoe={delay:{type:Number,default:Yoe},distance:{type:Number,default:Xoe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},sh=(e,t)=>Object.entries(Zoe).reduce((n,[o,r])=>{var a,s;const{type:i,default:u}=r,c=e.getAttribute(`infinite-scroll-${o}`);let f=(s=(a=t[c])!=null?a:c)!=null?s:u;return f=f==="false"?!1:f,f=i(f),n[o]=Number.isNaN(f)?u:f,n},{}),wk=e=>{const{observer:t}=e[Ro];t&&(t.disconnect(),delete e[Ro].observer)},Joe=(e,t)=>{const{container:n,containerEl:o,instance:r,observer:a,lastScrollTop:s}=e[Ro],{disabled:i,distance:u}=sh(e,r),{clientHeight:c,scrollHeight:f,scrollTop:d}=o,p=d-s;if(e[Ro].lastScrollTop=d,a||i||p<0)return;let h=!1;if(n===e)h=f-(c+d)<=u;else{const{clientTop:m,scrollHeight:v}=e,g=SE(e,o);h=d+c>=g+m+v-u}h&&t.call(r)};function ih(e,t){const{containerEl:n,instance:o}=e[Ro],{disabled:r}=sh(e,o);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):wk(e))}const Qoe={async mounted(e,t){const{instance:n,value:o}=t;$t(o)||cn(Ro,"'v-infinite-scroll' binding value must be a function"),await Ee();const{delay:r,immediate:a}=sh(e,n),s=Dd(e,!0),i=s===window?document.documentElement:s,u=Mr(Joe.bind(null,e,o),r);if(!!s){if(e[Ro]={instance:n,container:s,containerEl:i,delay:r,cb:o,onScroll:u,lastScrollTop:i.scrollTop},a){const c=new MutationObserver(Mr(ih.bind(null,e,o),Goe));e[Ro].observer=c,c.observe(e,{childList:!0,subtree:!0}),ih(e,o)}s.addEventListener("scroll",u)}},unmounted(e){const{container:t,onScroll:n}=e[Ro];t==null||t.removeEventListener("scroll",n),wk(e)},async updated(e){if(!e[Ro])await Ee();else{const{containerEl:t,cb:n,observer:o}=e[Ro];t.clientHeight&&o&&ih(e,n)}}};var ere=Qoe;const uh=ere;uh.install=e=>{e.directive("InfiniteScroll",uh)};const Ck=uh;function tre(e){let t;const n=M(!1),o=At({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){o.text=p}function a(){const p=o.parent,h=d.ns;if(!p.vLoadingAddClassList){let m=p.getAttribute("loading-number");m=Number.parseInt(m)-1,m?p.setAttribute("loading-number",m.toString()):(jn(p,h.bm("parent","relative")),p.removeAttribute("loading-number")),jn(p,h.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,h;(h=(p=d.$el)==null?void 0:p.parentNode)==null||h.removeChild(d.$el)}function i(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),o.visible=!1,(p=e.closed)==null||p.call(e))}function u(){if(!n.value)return;const p=o.parent;n.value=!1,p.vLoadingAddClassList=void 0,a()}const c=G({name:"ElLoading",setup(p,{expose:h}){const{ns:m,zIndex:v}=ss("loading");return h({ns:m,zIndex:v}),()=>{const g=o.spinner||o.svg,y=Ne("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Ne("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=o.text?Ne("p",{class:m.b("text")},[o.text]):void 0;return Ne(ln,{name:m.b("fade"),onAfterLeave:u},{default:Y(()=>[je(j("div",{style:{backgroundColor:o.background||""},class:[m.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[Ne("div",{class:m.b("spinner")},[y,C])]),[[St,o.visible]])])})}}}),f=Vk(c),d=f.mount(document.createElement("div"));return{...dn(o),setText:r,removeElLoadingChild:s,close:i,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let ec;const tc=function(e={}){if(!pt)return;const t=nre(e);if(t.fullscreen&&ec)return ec;const n=tre({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(ec=void 0)}});ore(t,t.parent,n),Sk(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Sk(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),Ee(()=>n.visible.value=t.visible),t.fullscreen&&(ec=n),n},nre=e=>{var t,n,o,r;let a;return it(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,target:a}},ore=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=ur(document.body,"position"),n.originalOverflow.value=ur(document.body,"overflow"),r.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=ur(document.body,"position"),await Ee();for(const a of["top","left"]){const s=a==="top"?"scrollTop":"scrollLeft";r[a]=`${e.target.getBoundingClientRect()[a]+document.body[s]+document.documentElement[s]-Number.parseInt(ur(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])r[a]=`${e.target.getBoundingClientRect()[a]}px`}else n.originalPosition.value=ur(t,"position");for(const[a,s]of Object.entries(r))n.$el.style[a]=s},Sk=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?jn(t,o.bm("parent","relative")):jo(t,o.bm("parent","relative")),e.fullscreen&&e.lock?jo(t,o.bm("parent","hidden")):jn(t,o.bm("parent","hidden"))},ch=Symbol("ElLoading"),_k=(e,t)=>{var n,o,r,a;const s=t.instance,i=p=>Rt(t.value)?t.value[p]:void 0,u=p=>{const h=it(p)&&(s==null?void 0:s[p])||p;return h&&M(h)},c=p=>u(i(p)||e.getAttribute(`element-loading-${TE(p)}`)),f=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:f,target:(o=i("target"))!=null?o:f?void 0:e,body:(r=i("body"))!=null?r:t.modifiers.body,lock:(a=i("lock"))!=null?a:t.modifiers.lock};e[ch]={options:d,instance:tc(d)}},rre=(e,t)=>{for(const n of Object.keys(t))Rn(t[n])&&(t[n].value=e[n])},nc={mounted(e,t){t.value&&_k(e,t)},updated(e,t){const n=e[ch];t.oldValue!==t.value&&(t.value&&!t.oldValue?_k(e,t):t.value&&t.oldValue?Rt(t.value)&&rre(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[ch])==null||t.instance.close()}},$k={install(e){e.directive("loading",nc),e.config.globalProperties.$loading=tc},directive:nc,service:tc},dh=["success","info","warning","error"],zn=Ut({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:pt?document.body:void 0}),kk=be({customClass:{type:String,default:zn.customClass},center:{type:Boolean,default:zn.center},dangerouslyUseHTMLString:{type:Boolean,default:zn.dangerouslyUseHTMLString},duration:{type:Number,default:zn.duration},icon:{type:Dt,default:zn.icon},id:{type:String,default:zn.id},message:{type:te([String,Object,Function]),default:zn.message},onClose:{type:te(Function),required:!1},showClose:{type:Boolean,default:zn.showClose},type:{type:String,values:dh,default:zn.type},offset:{type:Number,default:zn.offset},zIndex:{type:Number,default:zn.zIndex},grouping:{type:Boolean,default:zn.grouping},repeatNum:{type:Number,default:zn.repeatNum}}),Ek={destroy:()=>!0},Po=zk([]),are=e=>{const t=Po.findIndex(r=>r.id===e),n=Po[t];let o;return t>0&&(o=Po[t-1]),{current:n,prev:o}},lre=e=>{const{prev:t}=are(e);return t?t.vm.exposed.bottom.value:0},sre=(e,t)=>Po.findIndex(o=>o.id===e)>0?20:t,ire=["id"],ure=["innerHTML"],cre=G({name:"ElMessage"}),dre=G({...cre,props:kk,emits:Ek,setup(e,{expose:t}){const n=e,{Close:o}=zd,{ns:r,zIndex:a}=ss("message"),{currentZIndex:s,nextZIndex:i}=a,u=M(),c=M(!1),f=M(0);let d;const p=S(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=S(()=>{const O=n.type;return{[r.bm("icon",O)]:O&&xr[O]}}),m=S(()=>n.icon||xr[n.type]||""),v=S(()=>lre(n.id)),g=S(()=>sre(n.id,n.offset)+v.value),y=S(()=>f.value+g.value),C=S(()=>({top:`${g.value}px`,zIndex:s.value}));function b(){n.duration!==0&&({stop:d}=Jr(()=>{k()},n.duration))}function w(){d==null||d()}function k(){c.value=!1}function $({code:O}){O===Ae.esc&&k()}return Ze(()=>{b(),i(),c.value=!0}),ue(()=>n.repeatNum,()=>{w(),b()}),xt(document,"keydown",$),En(u,()=>{f.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:y,close:k}),(O,I)=>(_(),ne(ln,{name:l(r).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:I[0]||(I[0]=P=>O.$emit("destroy")),persisted:""},{default:Y(()=>[je(z("div",{id:O.id,ref_key:"messageRef",ref:u,class:E([l(r).b(),{[l(r).m(O.type)]:O.type&&!O.icon},l(r).is("center",O.center),l(r).is("closable",O.showClose),O.customClass]),style:Ie(l(C)),role:"alert",onMouseenter:w,onMouseleave:b},[O.repeatNum>1?(_(),ne(l(Df),{key:0,value:O.repeatNum,type:l(p),class:E(l(r).e("badge"))},null,8,["value","type","class"])):ee("v-if",!0),l(m)?(_(),ne(l(ke),{key:1,class:E([l(r).e("icon"),l(h)])},{default:Y(()=>[(_(),ne(rt(l(m))))]),_:1},8,["class"])):ee("v-if",!0),le(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),x(xe,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),z("p",{class:E(l(r).e("content")),innerHTML:O.message},null,10,ure)],2112)):(_(),x("p",{key:0,class:E(l(r).e("content"))},me(O.message),3))]),O.showClose?(_(),ne(l(ke),{key:2,class:E(l(r).e("closeBtn")),onClick:Le(k,["stop"])},{default:Y(()=>[j(l(o))]),_:1},8,["class","onClick"])):ee("v-if",!0)],46,ire),[[St,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var fre=ge(dre,[["__file","message.vue"]]);let pre=1;const Tk=e=>{const t=!e||it(e)||Jt(e)||$t(e)?{message:e}:e,n={...zn,...t};if(!n.appendTo)n.appendTo=document.body;else if(it(n.appendTo)){let o=document.querySelector(n.appendTo);vo(o)||(o=document.body),n.appendTo=o}return n},vre=e=>{const t=Po.indexOf(e);if(t===-1)return;Po.splice(t,1);const{handler:n}=e;n.close()},hre=({appendTo:e,...t},n)=>{const o=`message_${pre++}`,r=t.onClose,a=document.createElement("div"),s={...t,id:o,onClose:()=>{r==null||r(),vre(f)},onDestroy:()=>{Aa(null,a)}},i=j(fre,s,$t(s.message)||Jt(s.message)?{default:$t(s.message)?s.message:()=>s.message}:null);i.appContext=n||wl._context,Aa(i,a),e.appendChild(a.firstElementChild);const u=i.component,f={id:o,vnode:i,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:i.component.props};return f},wl=(e={},t)=>{if(!pt)return{close:()=>{}};if(De(Ui.max)&&Po.length>=Ui.max)return{close:()=>{}};const n=Tk(e);if(n.grouping&&Po.length){const r=Po.find(({vnode:a})=>{var s;return((s=a.props)==null?void 0:s.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}const o=hre(n,t);return Po.push(o),o.handler};dh.forEach(e=>{wl[e]=(t={},n)=>{const o=Tk(t);return wl({...o,type:e},n)}});function mre(e){for(const t of Po)(!e||e===t.props.type)&&t.handler.close()}wl.closeAll=mre,wl._context=null;var gre=wl;const Ok=Ty(gre,"$message"),yre=G({name:"ElMessageBox",directives:{TrapFocus:Iw},components:{ElButton:wn,ElFocusTrap:ru,ElInput:_n,ElOverlay:Au,ElIcon:ke,...zd},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Ti},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:r,size:a}=ss("message-box",S(()=>e.buttonSize)),{t:s}=n,{nextZIndex:i}=o,u=M(!1),c=At({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),f=S(()=>{const U=c.type;return{[r.bm("icon",U)]:U&&xr[U]}}),d=no(),p=no(),h=S(()=>c.icon||xr[c.type]||""),m=S(()=>!!c.message),v=M(),g=M(),y=M(),C=M(),b=M(),w=S(()=>c.confirmButtonClass);ue(()=>c.inputValue,async U=>{await Ee(),e.boxType==="prompt"&&U!==null&&L()},{immediate:!0}),ue(()=>u.value,U=>{var F,T;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=(T=(F=b.value)==null?void 0:F.$el)!=null?T:v.value:y.value=v.value),c.zIndex=i()),e.boxType==="prompt"&&(U?Ee().then(()=>{var B;C.value&&C.value.$el&&(c.autofocus?y.value=(B=D())!=null?B:v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const k=S(()=>e.draggable);Kd(v,g,k),Ze(async()=>{await Ee(),e.closeOnHashChange&&window.addEventListener("hashchange",$)}),qt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",$)});function $(){!u.value||(u.value=!1,Ee(()=>{c.action&&t("action",c.action)}))}const O=()=>{e.closeOnClickModal&&N(c.distinguishCancelAndClose?"close":"cancel")},I=Fi(O),P=U=>{if(c.inputType!=="textarea")return U.preventDefault(),N("confirm")},N=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!L()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,$):$())},L=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(typeof F=="function"){const T=F(c.inputValue);if(T===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(typeof T=="string")return c.editorErrorMessage=T,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},D=()=>{const U=C.value.$refs;return U.input||U.textarea},R=()=>{N("close")},V=()=>{e.closeOnPressEscape&&R()};return e.lockScroll&&Gd(u),{...dn(c),ns:r,overlayEvent:I,visible:u,hasMessage:m,typeClass:f,contentId:d,inputId:p,btnSize:a,iconComponent:h,confirmButtonClasses:w,rootRef:v,focusStartRef:y,headerRef:g,inputRef:C,confirmRef:b,doClose:$,handleClose:R,onCloseRequested:V,handleWrapperClick:O,handleInputEnter:P,handleAction:N,t:s}}}),bre=["aria-label","aria-describedby"],wre=["aria-label"],Cre=["id"];function Sre(e,t,n,o,r,a){const s=Ke("el-icon"),i=Ke("close"),u=Ke("el-input"),c=Ke("el-button"),f=Ke("el-focus-trap"),d=Ke("el-overlay");return _(),ne(ln,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=p=>e.$emit("vanish")),persisted:""},{default:Y(()=>[je(j(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Y(()=>[z("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:E(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...p)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...p)),onMousedown:t[9]||(t[9]=(...p)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...p)),onMouseup:t[10]||(t[10]=(...p)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...p))},[j(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Y(()=>[z("div",{ref:"rootRef",class:E([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ie(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Le(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),x("div",{key:0,ref:"headerRef",class:E(e.ns.e("header"))},[z("div",{class:E(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ne(s,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:Y(()=>[(_(),ne(rt(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),z("span",null,me(e.title),1)],2),e.showClose?(_(),x("button",{key:0,type:"button",class:E(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=mt(Le(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[j(s,{class:E(e.ns.e("close"))},{default:Y(()=>[j(i)]),_:1},8,["class"])],42,wre)):ee("v-if",!0)],2)):ee("v-if",!0),z("div",{id:e.contentId,class:E(e.ns.e("content"))},[z("div",{class:E(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ne(s,{key:0,class:E([e.ns.e("status"),e.typeClass])},{default:Y(()=>[(_(),ne(rt(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.hasMessage?(_(),x("div",{key:1,class:E(e.ns.e("message"))},[le(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ne(rt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ne(rt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Y(()=>[Ct(me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ee("v-if",!0)],2),je(z("div",{class:E(e.ns.e("input"))},[j(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=p=>e.inputValue=p),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:E({invalid:e.validateError}),onKeydown:mt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),z("div",{class:E(e.ns.e("errormsg")),style:Ie({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[St,e.showInput]])],10,Cre),z("div",{class:E(e.ns.e("btns"))},[e.showCancelButton?(_(),ne(c,{key:0,loading:e.cancelButtonLoading,class:E([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=p=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=mt(Le(p=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Y(()=>[Ct(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ee("v-if",!0),je(j(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:E([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=p=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=mt(Le(p=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Y(()=>[Ct(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[St,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,bre)]),_:3},8,["z-index","overlay-class","mask"]),[[St,e.visible]])]),_:3})}var _re=ge(yre,[["render",Sre],["__file","index.vue"]]);const Ps=new Map,$re=e=>{let t=document.body;return e.appendTo&&(it(e.appendTo)&&(t=document.querySelector(e.appendTo)),vo(e.appendTo)&&(t=e.appendTo),vo(t)||(t=document.body)),t},kre=(e,t,n=null)=>{const o=j(_re,e,$t(e.message)||Jt(e.message)?{default:$t(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Aa(o,t),$re(e).appendChild(t.firstElementChild),o.component},Ere=()=>document.createElement("div"),Tre=(e,t)=>{const n=Ere();e.onVanish=()=>{Aa(null,n),Ps.delete(r)},e.onAction=a=>{const s=Ps.get(r);let i;e.showInput?i={value:r.inputValue,action:a}:i=a,e.callback?e.callback(i,o.proxy):a==="cancel"||a==="close"?e.distinguishCancelAndClose&&a!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(i)};const o=kre(e,n,t),r=o.proxy;for(const a in e)Cn(e,a)&&!Cn(r.$props,a)&&(r[a]=e[a]);return r.visible=!0,r};function Cl(e,t=null){if(!pt)return Promise.reject();let n;return it(e)||Jt(e)?e={message:e}:n=e.callback,new Promise((o,r)=>{const a=Tre(e,t!=null?t:Cl._context);Ps.set(a,{options:e,callback:n,resolve:o,reject:r})})}const Ore=["alert","confirm","prompt"],Mre={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Ore.forEach(e=>{Cl[e]=Are(e)});function Are(e){return(t,n,o,r)=>{let a="";return Rt(n)?(o=n,a=""):bn(n)?a="":a=n,Cl(Object.assign({title:a,message:t,type:"",...Mre[e]},o,{boxType:e}),r)}}Cl.close=()=>{Ps.forEach((e,t)=>{t.doClose()}),Ps.clear()},Cl._context=null;const Gr=Cl;Gr.install=e=>{Gr._context=e._context,e.config.globalProperties.$msgbox=Gr,e.config.globalProperties.$messageBox=Gr,e.config.globalProperties.$alert=Gr.alert,e.config.globalProperties.$confirm=Gr.confirm,e.config.globalProperties.$prompt=Gr.prompt};const Mk=Gr,fh=["success","info","warning","error"],Ak=be({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Dt},id:{type:String,default:""},message:{type:te([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:te(Function),default:()=>{}},onClose:{type:te(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...fh,""],default:""},zIndex:Number}),Ik={destroy:()=>!0},Ire=["id"],Nre=["textContent"],Rre={key:0},Pre=["innerHTML"],xre=G({name:"ElNotification"}),Lre=G({...xre,props:Ak,emits:Ik,setup(e,{expose:t}){const n=e,{ns:o,zIndex:r}=ss("notification"),{nextZIndex:a,currentZIndex:s}=r,{Close:i}=ky,u=M(!1);let c;const f=S(()=>{const b=n.type;return b&&xr[n.type]?o.m(b):""}),d=S(()=>n.type&&xr[n.type]||n.icon),p=S(()=>n.position.endsWith("right")?"right":"left"),h=S(()=>n.position.startsWith("top")?"top":"bottom"),m=S(()=>{var b;return{[h.value]:`${n.offset}px`,zIndex:(b=n.zIndex)!=null?b:s.value}});function v(){n.duration>0&&({stop:c}=Jr(()=>{u.value&&y()},n.duration))}function g(){c==null||c()}function y(){u.value=!1}function C({code:b}){b===Ae.delete||b===Ae.backspace?g():b===Ae.esc?u.value&&y():v()}return Ze(()=>{v(),a(),u.value=!0}),xt(document,"keydown",C),t({visible:u,close:y}),(b,w)=>(_(),ne(ln,{name:l(o).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:w[1]||(w[1]=k=>b.$emit("destroy")),persisted:""},{default:Y(()=>[je(z("div",{id:b.id,class:E([l(o).b(),b.customClass,l(p)]),style:Ie(l(m)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:w[0]||(w[0]=(...k)=>b.onClick&&b.onClick(...k))},[l(d)?(_(),ne(l(ke),{key:0,class:E([l(o).e("icon"),l(f)])},{default:Y(()=>[(_(),ne(rt(l(d))))]),_:1},8,["class"])):ee("v-if",!0),z("div",{class:E(l(o).e("group"))},[z("h2",{class:E(l(o).e("title")),textContent:me(b.title)},null,10,Nre),je(z("div",{class:E(l(o).e("content")),style:Ie(b.title?void 0:{margin:0})},[le(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(_(),x(xe,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),z("p",{innerHTML:b.message},null,8,Pre)],2112)):(_(),x("p",Rre,me(b.message),1))])],6),[[St,b.message]]),b.showClose?(_(),ne(l(ke),{key:0,class:E(l(o).e("closeBtn")),onClick:Le(y,["stop"])},{default:Y(()=>[j(l(i))]),_:1},8,["class","onClick"])):ee("v-if",!0)],2)],46,Ire),[[St,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Dre=ge(Lre,[["__file","notification.vue"]]);const oc={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ph=16;let Bre=1;const Sl=function(e={},t=null){if(!pt)return{close:()=>{}};(typeof e=="string"||Jt(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;oc[n].forEach(({vm:f})=>{var d;o+=(((d=f.el)==null?void 0:d.offsetHeight)||0)+ph}),o+=ph;const r=`notification_${Bre++}`,a=e.onClose,s={...e,offset:o,id:r,onClose:()=>{Fre(r,n,a)}};let i=document.body;vo(e.appendTo)?i=e.appendTo:it(e.appendTo)&&(i=document.querySelector(e.appendTo)),vo(i)||(i=document.body);const u=document.createElement("div"),c=j(Dre,s,Jt(s.message)?{default:()=>s.message}:null);return c.appContext=t!=null?t:Sl._context,c.props.onDestroy=()=>{Aa(null,u)},Aa(c,u),oc[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};fh.forEach(e=>{Sl[e]=(t={})=>((typeof t=="string"||Jt(t))&&(t={message:t}),Sl({...t,type:e}))});function Fre(e,t,n){const o=oc[t],r=o.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(r===-1)return;const{vm:a}=o[r];if(!a)return;n==null||n(a);const s=a.el.offsetHeight,i=t.split("-")[0];o.splice(r,1);const u=o.length;if(!(u<1))for(let c=r;c{t.component.exposed.visible.value=!1})}Sl.closeAll=Vre,Sl._context=null;var zre=Sl;const Nk=Ty(zre,"$notify");var Hre=[Ck,$k,Ok,Mk,Nk,ev],vh=Yb([...qoe,...Hre]);const Wre=vh.install,Kre=vh.version;export{Ef as BAR_MAP,bu as CASCADER_PANEL_INJECTION_KEY,Bt as CHANGE_EVENT,yr as ClickOutside,Qf as CommonPicker,Cp as CommonProps,ma as DEFAULT_FORMATS_DATE,Cw as DEFAULT_FORMATS_DATEPICKER,cu as DEFAULT_FORMATS_TIME,KC as DROPDOWN_COLLECTION_INJECTION_KEY,jC as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY,ws as DROPDOWN_INJECTION_KEY,S2 as DefaultProps,d_ as DynamicSizeGrid,t_ as DynamicSizeList,Ae as EVENT_CODE,X9 as Effect,Qb as ElAffix,r1 as ElAlert,aC as ElAside,y$ as ElAutoResizer,X1 as ElAutocomplete,Q1 as ElAvatar,ow as ElBacktop,Df as ElBadge,iw as ElBreadcrumb,uw as ElBreadcrumbItem,wn as ElButton,Kf as ElButtonGroup,Xw as ElCalendar,Jw as ElCard,r2 as ElCarousel,a2 as ElCarouselItem,A2 as ElCascader,E2 as ElCascaderPanel,R2 as ElCheckTag,ao as ElCheckbox,d2 as ElCheckboxButton,vp as ElCheckboxGroup,F2 as ElCol,j2 as ElCollapse,U2 as ElCollapseItem,H2 as ElCollapseTransition,HC as ElCollection,WC as ElCollectionItem,Q2 as ElColorPicker,Gb as ElConfigProvider,rC as ElContainer,R_ as ElCountdown,CC as ElDatePicker,$C as ElDescriptions,kC as ElDescriptionsItem,MC as ElDialog,Dp as ElDivider,RC as ElDrawer,YC as ElDropdown,XC as ElDropdownItem,ZC as ElDropdownMenu,Wp as ElEmpty,lC as ElFooter,g1 as ElForm,y1 as ElFormItem,sC as ElHeader,ke as ElIcon,oS as ElImage,Kp as ElImageViewer,Ck as ElInfiniteScroll,_n as ElInput,jp as ElInputNumber,iS as ElLink,$k as ElLoading,nc as ElLoadingDirective,tc as ElLoadingService,iC as ElMain,bS as ElMenu,wS as ElMenuItem,CS as ElMenuItemGroup,Ok as ElMessage,Mk as ElMessageBox,Nk as ElNotification,Cs as ElOption,OS as ElOptionGroup,Au as ElOverlay,kS as ElPageHeader,NS as ElPagination,xS as ElPopconfirm,FS as ElPopover,ev as ElPopoverDirective,Lf as ElPopper,O1 as ElPopperArrow,z1 as ElPopperContent,N1 as ElPopperTrigger,tv as ElProgress,yp as ElRadio,w2 as ElRadioButton,b2 as ElRadioGroup,WS as ElRate,jS as ElResult,D2 as ElRow,Zo as ElScrollbar,Kr as ElSelect,v_ as ElSelectV2,g_ as ElSkeleton,y_ as ElSkeletonItem,S_ as ElSlider,T_ as ElSpace,Cv as ElStatistic,F_ as ElStep,B_ as ElSteps,SS as ElSubMenu,H_ as ElSwitch,A$ as ElTabPane,n$ as ElTable,o$ as ElTableColumn,g$ as ElTableV2,M$ as ElTabs,al as ElTag,N$ as ElText,Kw as ElTimePicker,P$ as ElTimeSelect,D$ as ElTimeline,B$ as ElTimelineItem,Nn as ElTooltip,U$ as ElTransfer,X$ as ElTree,J$ as ElTreeSelect,sk as ElTreeV2,bk as ElUpload,VC as FIRST_KEYS,zC as FIRST_LAST_KEYS,df as FORWARD_REF_INJECTION_KEY,o_ as FixedSizeGrid,mv as FixedSizeList,va as GAP,bb as ID_INJECTION_KEY,Mn as INPUT_EVENT,Hd as INSTALLED_KEY,nv as IconComponentMap,Ca as IconMap,Hp as LAST_KEYS,qv as LEFT_CHECK_CHANGE_EVENT,Ww as Mousewheel,Of as POPPER_CONTENT_INJECTION_KEY,Xi as POPPER_INJECTION_KEY,Gv as RIGHT_CHECK_CHANGE_EVENT,Eu as ROOT_PICKER_INJECTION_KEY,x2 as RowAlign,P2 as RowJustify,yf as SIZE_INJECTION_KEY,fs as TOOLTIP_INJECTION_KEY,h$ as TableV2,hl as TableV2Alignment,Av as TableV2FixedDir,ml as TableV2Placeholder,vl as TableV2SortOrder,vs as TimePickPanel,Iw as TrapFocus,tt as UPDATE_MODEL_EVENT,Ei as WEEK_DAYS,Zb as affixEmits,Xb as affixProps,t1 as alertEffects,o1 as alertEmits,n1 as alertProps,Kb as arrowMiddleware,m$ as autoResizerProps,G1 as autocompleteEmits,q1 as autocompleteProps,J1 as avatarEmits,Z1 as avatarProps,tw as backtopEmits,ew as backtopProps,rw as badgeProps,lw as breadcrumbItemProps,Bf as breadcrumbKey,aw as breadcrumbProps,Py as buildLocaleContext,du as buildTimeList,Ny as buildTranslator,dw as buttonEmits,Ff as buttonGroupContextKey,cw as buttonNativeTypes,su as buttonProps,lu as buttonTypes,Yw as calendarEmits,Gw as calendarProps,Zw as cardProps,dp as carouselContextKey,e2 as carouselEmits,n2 as carouselItemProps,Qw as carouselProps,M2 as cascaderEmits,O2 as cascaderProps,N2 as checkTagEmits,I2 as checkTagProps,pp as checkboxEmits,ba as checkboxGroupContextKey,u2 as checkboxGroupEmits,i2 as checkboxGroupProps,fp as checkboxProps,B2 as colProps,$p as collapseContextKey,z2 as collapseEmits,W2 as collapseItemProps,V2 as collapseProps,Ep as colorPickerContextKey,G2 as colorPickerEmits,q2 as colorPickerProps,My as componentSizeMap,To as componentSizes,bf as configProviderContextKey,qb as configProviderProps,A_ as countdownEmits,M_ as countdownProps,Yd as createModelToggleComposable,Yf as dateEquals,Oy as datePickTypes,hC as datePickerProps,qe as dayjs,vh as default,ff as defaultInitialZIndex,Zl as defaultNamespace,SC as descriptionProps,xp as dialogEmits,Rp as dialogInjectionKey,Pp as dialogProps,AC as dividerProps,NC as drawerEmits,IC as drawerProps,zp as dropdownItemProps,FC as dropdownMenuProps,bs as dropdownProps,Yp as elPaginationKey,_p as emitChangeFn,JC as emptyProps,qf as extractDateFormat,Gf as extractTimeFormat,Fr as formContextKey,l1 as formEmits,Ao as formItemContextKey,v1 as formItemProps,p1 as formItemValidateStates,a1 as formProps,Jf as formatter,Qu as genFileId,TH as getPositionDataWithUnit,e1 as iconProps,nS as imageEmits,tS as imageProps,eS as imageViewerEmits,QC as imageViewerProps,C1 as inputEmits,aS as inputNumberEmits,rS as inputNumberProps,w1 as inputProps,Wre as install,sS as linkEmits,lS as linkProps,jd as localeContextKey,Yb as makeInstaller,fu as makeList,pS as menuEmits,hS as menuItemEmits,gS as menuItemGroupProps,vS as menuItemProps,fS as menuProps,Ui as messageConfig,zn as messageDefaults,Ek as messageEmits,kk as messageProps,dh as messageTypes,qd as namespaceContextKey,Ik as notificationEmits,Ak as notificationProps,fh as notificationTypes,TC as overlayEmits,EC as overlayProps,$S as pageHeaderEmits,_S as pageHeaderProps,AS as paginationEmits,MS as paginationProps,Zf as parseDate,PS as popconfirmEmits,RS as popconfirmProps,DS as popoverEmits,LS as popoverProps,Ji as popperArrowProps,xf as popperContentEmits,au as popperContentProps,Pf as popperCoreConfigProps,Zi as popperProps,Qi as popperTriggerProps,VS as progressProps,ji as provideGlobalConfig,v2 as radioButtonProps,mp as radioEmits,g2 as radioGroupEmits,gp as radioGroupKey,m2 as radioGroupProps,f2 as radioProps,hp as radioPropsBase,gr as rangeArr,HS as rateEmits,zS as rateProps,S1 as renderThumbStyle,KS as resultProps,T1 as roleTypes,Sp as rowContextKey,L2 as rowProps,Tf as scrollbarContextKey,E1 as scrollbarEmits,k1 as scrollbarProps,Xp as selectGroupKey,sl as selectKey,yv as selectV2InjectionKey,m_ as skeletonItemProps,h_ as skeletonProps,bv as sliderContextKey,w_ as sliderEmits,b_ as sliderProps,E_ as spaceProps,O_ as statisticProps,L_ as stepProps,x_ as stepsEmits,P_ as stepsProps,dS as subMenuProps,z_ as switchEmits,V_ as switchProps,b$ as tabBarProps,S$ as tabNavEmits,C$ as tabNavProps,E$ as tabPaneProps,c$ as tableV2Props,qr as tableV2RowProps,k$ as tabsEmits,$$ as tabsProps,As as tabsRootContextKey,T2 as tagEmits,Cu as tagProps,I$ as textProps,_1 as thumbProps,pu as timePickerDefaultProps,Uf as timeUnits,x$ as timelineItemProps,U1 as tooltipEmits,Uu as transferCheckedChangeFn,K$ as transferEmits,Ea as transferProps,Ry as translate,lh as uploadBaseProps,mk as uploadContentProps,rh as uploadContextKey,vk as uploadDraggerEmits,pk as uploadDraggerProps,dk as uploadListEmits,ck as uploadListProps,ah as uploadListTypes,uk as uploadProps,Ii as useAttrs,_2 as useCascaderConfig,jb as useCursor,eH as useDelayedRender,cf as useDelayedToggle,$b as useDelayedToggleProps,Oo as useDeprecated,Lp as useDialog,WH as useDisabled,Kd as useDraggable,Cb as useEscapeKeydown,Wb as useFloating,kH as useFloatingProps,Iy as useFocus,An as useFormDisabled,In as useFormItem,vr as useFormItemInputId,on as useFormSize,kb as useForwardRef,Eb as useForwardRefDirective,Pi as useGetDerivedNamespace,ss as useGlobalComponentSettings,ls as useGlobalConfig,Ub as useGlobalSize,no as useId,sf as useIdInjection,gt as useLocale,Gd as useLockscreen,VV as useModal,WV as useModelToggle,jV as useModelToggleEmits,KV as useModelToggleProps,ce as useNamespace,Wi as useOrderedChildren,lb as usePopper,tW as usePopperArrowProps,_b as usePopperContainer,uf as usePopperContainerId,SW as usePopperContentEmits,CW as usePopperContentProps,wW as usePopperCoreConfigProps,Z9 as usePopperProps,aW as usePopperTriggerProps,UV as usePreventGlobal,Xd as useProp,Fi as useSameTarget,HH as useSize,vn as useSizeProp,MH as useSizeProps,k_ as useSpace,Yz as useTeleport,sb as useThrottleRender,lf as useTimeout,mn as useTooltipContentProps,K1 as useTooltipModelToggle,W1 as useTooltipModelToggleEmits,H1 as useTooltipModelToggleProps,j1 as useTooltipProps,ol as useTooltipTriggerProps,Jz as useTransitionFallthrough,Zz as useTransitionFallthroughEmits,da as useZIndex,nc as vLoading,ps as vRepeatClick,Xf as valueEquals,Kre as version,jr as virtualizedGridProps,fv as virtualizedListProps,dv as virtualizedProps,vv as virtualizedScrollbarProps,pf as zIndexContextKey}; +//# sourceMappingURL=index.full.min.mjs.map diff --git a/code/WebApp/vanilla/lib/element-plus/locale/en.min.mjs b/code/WebApp/vanilla/lib/element-plus/locale/en.min.mjs new file mode 100644 index 00000000..ee8ceb27 --- /dev/null +++ b/code/WebApp/vanilla/lib/element-plus/locale/en.min.mjs @@ -0,0 +1,2 @@ +/*! Element Plus v2.3.6 */var e={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};export{e as default}; +//# sourceMappingURL=en.min.mjs.map diff --git a/code/WebApp/vanilla/lib/element-plus/locale/zh-cn.min.mjs b/code/WebApp/vanilla/lib/element-plus/locale/zh-cn.min.mjs new file mode 100644 index 00000000..1e3b05c4 --- /dev/null +++ b/code/WebApp/vanilla/lib/element-plus/locale/zh-cn.min.mjs @@ -0,0 +1,2 @@ +/*! Element Plus v2.3.4 */var u={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};export{u as default}; +//# sourceMappingURL=zh-cn.min.mjs.map diff --git a/code/WebApp/vanilla/lib/element-plus/theme-chalk/dark/css-vars.css b/code/WebApp/vanilla/lib/element-plus/theme-chalk/dark/css-vars.css new file mode 100644 index 00000000..b6c8ae05 --- /dev/null +++ b/code/WebApp/vanilla/lib/element-plus/theme-chalk/dark/css-vars.css @@ -0,0 +1 @@ +html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, 0.36),0px 8px 20px rgba(0, 0, 0, 0.72);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, 0.72);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, 0.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, 0.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0, 0, 0, 0.8);--el-mask-color-extra-light:rgba(0, 0, 0, 0.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255, 255, 255, 0.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a} \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/github-markdown-css/github-markdown.min.css b/code/WebApp/vanilla/lib/github-markdown-css/github-markdown.min.css new file mode 100644 index 00000000..3e44f14d --- /dev/null +++ b/code/WebApp/vanilla/lib/github-markdown-css/github-markdown.min.css @@ -0,0 +1,881 @@ +/** + * Minified by jsDelivr using clean-css v5.2.2. + * Original file: /npm/github-markdown-css@5.1.0/github-markdown.css + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +.markdown-body { + color-scheme: light; + --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-constant: #0550ae; + --color-prettylights-syntax-entity: #8250df; + --color-prettylights-syntax-storage-modifier-import: #24292f; + --color-prettylights-syntax-entity-tag: #116329; + --color-prettylights-syntax-keyword: #cf222e; + --color-prettylights-syntax-string: #0a3069; + --color-prettylights-syntax-variable: #953800; + --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; + --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; + --color-prettylights-syntax-invalid-illegal-bg: #82071e; + --color-prettylights-syntax-carriage-return-text: #f6f8fa; + --color-prettylights-syntax-carriage-return-bg: #cf222e; + --color-prettylights-syntax-string-regexp: #116329; + --color-prettylights-syntax-markup-list: #3b2300; + --color-prettylights-syntax-markup-heading: #0550ae; + --color-prettylights-syntax-markup-italic: #24292f; + --color-prettylights-syntax-markup-bold: #24292f; + --color-prettylights-syntax-markup-deleted-text: #82071e; + --color-prettylights-syntax-markup-deleted-bg: #ffebe9; + --color-prettylights-syntax-markup-inserted-text: #116329; + --color-prettylights-syntax-markup-inserted-bg: #dafbe1; + --color-prettylights-syntax-markup-changed-text: #953800; + --color-prettylights-syntax-markup-changed-bg: #ffd8b5; + --color-prettylights-syntax-markup-ignored-text: #eaeef2; + --color-prettylights-syntax-markup-ignored-bg: #0550ae; + --color-prettylights-syntax-meta-diff-range: #8250df; + --color-prettylights-syntax-brackethighlighter-angle: #57606a; + --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; + --color-prettylights-syntax-constant-other-reference-link: #0a3069; + --color-fg-default: #24292f; + --color-fg-muted: #57606a; + --color-fg-subtle: #6e7781; + --color-canvas-default: #ffffff; + --color-canvas-subtle: #f6f8fa; + --color-border-default: #d0d7de; + --color-border-muted: hsla(210, 18%, 87%, 1); + --color-neutral-muted: rgba(175, 184, 193, 0.2); + --color-accent-fg: #0969da; + --color-accent-emphasis: #0969da; + --color-attention-subtle: #fff8c5; + --color-danger-fg: #cf222e; +} + +html.dark .markdown-body { + color-scheme: dark; + --color-prettylights-syntax-comment: #8b949e; + --color-prettylights-syntax-constant: #79c0ff; + --color-prettylights-syntax-entity: #d2a8ff; + --color-prettylights-syntax-storage-modifier-import: #c9d1d9; + --color-prettylights-syntax-entity-tag: #7ee787; + --color-prettylights-syntax-keyword: #ff7b72; + --color-prettylights-syntax-string: #a5d6ff; + --color-prettylights-syntax-variable: #ffa657; + --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; + --color-prettylights-syntax-invalid-illegal-text: #f0f6fc; + --color-prettylights-syntax-invalid-illegal-bg: #8e1519; + --color-prettylights-syntax-carriage-return-text: #f0f6fc; + --color-prettylights-syntax-carriage-return-bg: #b62324; + --color-prettylights-syntax-string-regexp: #7ee787; + --color-prettylights-syntax-markup-list: #f2cc60; + --color-prettylights-syntax-markup-heading: #1f6feb; + --color-prettylights-syntax-markup-italic: #c9d1d9; + --color-prettylights-syntax-markup-bold: #c9d1d9; + --color-prettylights-syntax-markup-deleted-text: #ffdcd7; + --color-prettylights-syntax-markup-deleted-bg: #67060c; + --color-prettylights-syntax-markup-inserted-text: #aff5b4; + --color-prettylights-syntax-markup-inserted-bg: #033a16; + --color-prettylights-syntax-markup-changed-text: #ffdfb6; + --color-prettylights-syntax-markup-changed-bg: #5a1e02; + --color-prettylights-syntax-markup-ignored-text: #c9d1d9; + --color-prettylights-syntax-markup-ignored-bg: #1158c7; + --color-prettylights-syntax-meta-diff-range: #d2a8ff; + --color-prettylights-syntax-brackethighlighter-angle: #8b949e; + --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; + --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; + --color-fg-default: #c9d1d9; + --color-fg-muted: #8b949e; + --color-fg-subtle: #484f58; + --color-canvas-default: #0d1117; + --color-canvas-subtle: #161b22; + --color-border-default: #30363d; + --color-border-muted: #21262d; + --color-neutral-muted: rgba(110, 118, 129, 0.4); + --color-accent-fg: #58a6ff; + --color-accent-emphasis: #1f6feb; + --color-attention-subtle: rgba(187, 128, 9, 0.15); + --color-danger-fg: #f85149; +} + +.markdown-body { + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + color: var(--color-fg-default); + background-color: var(--color-canvas-default); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", + "Segoe UI Emoji"; + font-size: 16px; + line-height: 1.5; + word-wrap: break-word; +} +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: " "; + display: inline-block; + background-color: currentColor; + -webkit-mask-image: url("data:image/svg+xml,"); + mask-image: url("data:image/svg+xml,"); +} +.markdown-body details, +.markdown-body figcaption, +.markdown-body figure { + display: block; +} +.markdown-body summary { + display: list-item; +} +.markdown-body [hidden] { + display: none !important; +} +.markdown-body a { + background-color: transparent; + color: var(--color-accent-fg); + text-decoration: none; +} +.markdown-body a:active, +.markdown-body a:hover { + outline-width: 0; +} +.markdown-body abbr[title] { + border-bottom: none; + text-decoration: underline dotted; +} +.markdown-body b, +.markdown-body strong { + font-weight: 600; +} +.markdown-body dfn { + font-style: italic; +} +.markdown-body h1 { + margin: 0.67em 0; + font-weight: 600; + padding-bottom: 0.3em; + font-size: 2em; + border-bottom: 1px solid var(--color-border-muted); +} +.markdown-body mark { + background-color: var(--color-attention-subtle); + color: var(--color-text-primary); +} +.markdown-body small { + font-size: 90%; +} +.markdown-body sub, +.markdown-body sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +.markdown-body sub { + bottom: -0.25em; +} +.markdown-body sup { + top: -0.5em; +} +.markdown-body img { + border-style: none; + max-width: 100%; + box-sizing: content-box; + background-color: var(--color-canvas-default); +} +.markdown-body code, +.markdown-body kbd, +.markdown-body pre, +.markdown-body samp { + font-family: monospace, monospace; + font-size: 1em; +} +.markdown-body figure { + margin: 1em 40px; +} +.markdown-body hr { + box-sizing: content-box; + overflow: hidden; + background: 0 0; + border-bottom: 1px solid var(--color-border-muted); + height: 0.25em; + padding: 0; + margin: 24px 0; + background-color: var(--color-border-default); + border: 0; +} +.markdown-body input { + font: inherit; + margin: 0; + overflow: visible; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +.markdown-body [type="button"], +.markdown-body [type="reset"], +.markdown-body [type="submit"] { + -webkit-appearance: button; +} +.markdown-body [type="button"]::-moz-focus-inner, +.markdown-body [type="reset"]::-moz-focus-inner, +.markdown-body [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} +.markdown-body [type="button"]:-moz-focusring, +.markdown-body [type="reset"]:-moz-focusring, +.markdown-body [type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} +.markdown-body [type="checkbox"], +.markdown-body [type="radio"] { + box-sizing: border-box; + padding: 0; +} +.markdown-body [type="number"]::-webkit-inner-spin-button, +.markdown-body [type="number"]::-webkit-outer-spin-button { + height: auto; +} +.markdown-body [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; +} +.markdown-body [type="search"]::-webkit-search-cancel-button, +.markdown-body [type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +.markdown-body ::-webkit-input-placeholder { + color: inherit; + opacity: 0.54; +} +.markdown-body ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} +.markdown-body a:hover { + text-decoration: underline; +} +.markdown-body hr::before { + display: table; + content: ""; +} +.markdown-body hr::after { + display: table; + clear: both; + content: ""; +} +.markdown-body table { + border-spacing: 0; + border-collapse: collapse; + display: block; + width: max-content; + max-width: 100%; + overflow: auto; +} +.markdown-body td, +.markdown-body th { + padding: 0; +} +.markdown-body details summary { + cursor: pointer; +} +.markdown-body details:not([open]) > :not(summary) { + display: none !important; +} +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + line-height: 10px; + color: var(--color-fg-default); + vertical-align: middle; + background-color: var(--color-canvas-subtle); + border: solid 1px var(--color-neutral-muted); + border-bottom-color: var(--color-neutral-muted); + border-radius: 6px; + box-shadow: inset 0 -1px 0 var(--color-neutral-muted); +} +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6 { + margin-top: 24px; + margin-bottom: 16px; + font-weight: 600; + line-height: 1.25; +} +.markdown-body h2 { + font-weight: 600; + padding-bottom: 0.3em; + font-size: 1.5em; + border-bottom: 1px solid var(--color-border-muted); +} +.markdown-body h3 { + font-weight: 600; + font-size: 1.25em; +} +.markdown-body h4 { + font-weight: 600; + font-size: 1em; +} +.markdown-body h5 { + font-weight: 600; + font-size: 0.875em; +} +.markdown-body h6 { + font-weight: 600; + font-size: 0.85em; + color: var(--color-fg-muted); +} +.markdown-body p { + margin-top: 0; + margin-bottom: 10px; +} +.markdown-body blockquote { + margin: 0; + padding: 0 1em; + color: var(--color-fg-muted); + border-left: 0.25em solid var(--color-border-default); +} +.markdown-body ol, +.markdown-body ul { + margin-top: 0; + margin-bottom: 0; + padding-left: 2em; +} +.markdown-body ol ol, +.markdown-body ul ol { + list-style-type: lower-roman; +} +.markdown-body ol ol ol, +.markdown-body ol ul ol, +.markdown-body ul ol ol, +.markdown-body ul ul ol { + list-style-type: lower-alpha; +} +.markdown-body dd { + margin-left: 0; +} +.markdown-body code, +.markdown-body tt { + font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + font-size: 12px; +} +.markdown-body pre { + margin-top: 0; + margin-bottom: 0; + font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + font-size: 12px; + word-wrap: normal; +} +.markdown-body .octicon { + display: inline-block; + overflow: visible !important; + vertical-align: text-bottom; + fill: currentColor; +} +.markdown-body ::placeholder { + color: var(--color-fg-subtle); + opacity: 1; +} +.markdown-body input::-webkit-inner-spin-button, +.markdown-body input::-webkit-outer-spin-button { + margin: 0; + -webkit-appearance: none; + appearance: none; +} +.markdown-body .pl-c { + color: var(--color-prettylights-syntax-comment); +} +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: var(--color-prettylights-syntax-constant); +} +.markdown-body .pl-e, +.markdown-body .pl-en { + color: var(--color-prettylights-syntax-entity); +} +.markdown-body .pl-s .pl-s1, +.markdown-body .pl-smi { + color: var(--color-prettylights-syntax-storage-modifier-import); +} +.markdown-body .pl-ent { + color: var(--color-prettylights-syntax-entity-tag); +} +.markdown-body .pl-k { + color: var(--color-prettylights-syntax-keyword); +} +.markdown-body .pl-pds, +.markdown-body .pl-s, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sra, +.markdown-body .pl-sr .pl-sre { + color: var(--color-prettylights-syntax-string); +} +.markdown-body .pl-smw, +.markdown-body .pl-v { + color: var(--color-prettylights-syntax-variable); +} +.markdown-body .pl-bu { + color: var(--color-prettylights-syntax-brackethighlighter-unmatched); +} +.markdown-body .pl-ii { + color: var(--color-prettylights-syntax-invalid-illegal-text); + background-color: var(--color-prettylights-syntax-invalid-illegal-bg); +} +.markdown-body .pl-c2 { + color: var(--color-prettylights-syntax-carriage-return-text); + background-color: var(--color-prettylights-syntax-carriage-return-bg); +} +.markdown-body .pl-sr .pl-cce { + font-weight: 700; + color: var(--color-prettylights-syntax-string-regexp); +} +.markdown-body .pl-ml { + color: var(--color-prettylights-syntax-markup-list); +} +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: 700; + color: var(--color-prettylights-syntax-markup-heading); +} +.markdown-body .pl-mi { + font-style: italic; + color: var(--color-prettylights-syntax-markup-italic); +} +.markdown-body .pl-mb { + font-weight: 700; + color: var(--color-prettylights-syntax-markup-bold); +} +.markdown-body .pl-md { + color: var(--color-prettylights-syntax-markup-deleted-text); + background-color: var(--color-prettylights-syntax-markup-deleted-bg); +} +.markdown-body .pl-mi1 { + color: var(--color-prettylights-syntax-markup-inserted-text); + background-color: var(--color-prettylights-syntax-markup-inserted-bg); +} +.markdown-body .pl-mc { + color: var(--color-prettylights-syntax-markup-changed-text); + background-color: var(--color-prettylights-syntax-markup-changed-bg); +} +.markdown-body .pl-mi2 { + color: var(--color-prettylights-syntax-markup-ignored-text); + background-color: var(--color-prettylights-syntax-markup-ignored-bg); +} +.markdown-body .pl-mdr { + font-weight: 700; + color: var(--color-prettylights-syntax-meta-diff-range); +} +.markdown-body .pl-ba { + color: var(--color-prettylights-syntax-brackethighlighter-angle); +} +.markdown-body .pl-sg { + color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); +} +.markdown-body .pl-corl { + text-decoration: underline; + color: var(--color-prettylights-syntax-constant-other-reference-link); +} +.markdown-body [data-catalyst] { + display: block; +} +.markdown-body g-emoji { + font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-size: 1em; + font-style: normal !important; + font-weight: 400; + line-height: 1; + vertical-align: -0.075em; +} +.markdown-body g-emoji img { + width: 1em; + height: 1em; +} +.markdown-body::before { + display: table; + content: ""; +} +.markdown-body::after { + display: table; + clear: both; + content: ""; +} +.markdown-body > :first-child { + margin-top: 0 !important; +} +.markdown-body > :last-child { + margin-bottom: 0 !important; +} +.markdown-body a:not([href]) { + color: inherit; + text-decoration: none; +} +.markdown-body .absent { + color: var(--color-danger-fg); +} +.markdown-body .anchor { + float: left; + padding-right: 4px; + margin-left: -20px; + line-height: 1; +} +.markdown-body .anchor:focus { + outline: 0; +} +.markdown-body blockquote, +.markdown-body details, +.markdown-body dl, +.markdown-body ol, +.markdown-body p, +.markdown-body pre, +.markdown-body table, +.markdown-body ul { + margin-top: 0; + margin-bottom: 16px; +} +.markdown-body blockquote > :first-child { + margin-top: 0; +} +.markdown-body blockquote > :last-child { + margin-bottom: 0; +} +.markdown-body sup > a::before { + content: "["; +} +.markdown-body sup > a::after { + content: "]"; +} +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: var(--color-fg-default); + vertical-align: middle; + visibility: hidden; +} +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} +.markdown-body h1 code, +.markdown-body h1 tt, +.markdown-body h2 code, +.markdown-body h2 tt, +.markdown-body h3 code, +.markdown-body h3 tt, +.markdown-body h4 code, +.markdown-body h4 tt, +.markdown-body h5 code, +.markdown-body h5 tt, +.markdown-body h6 code, +.markdown-body h6 tt { + padding: 0 0.2em; + font-size: inherit; +} +.markdown-body ol.no-list, +.markdown-body ul.no-list { + padding: 0; + list-style-type: none; +} +.markdown-body ol[type="1"] { + list-style-type: decimal; +} +.markdown-body ol[type="a"] { + list-style-type: lower-alpha; +} +.markdown-body ol[type="i"] { + list-style-type: lower-roman; +} +.markdown-body div > ol:not([type]) { + list-style-type: decimal; +} +.markdown-body ol ol, +.markdown-body ol ul, +.markdown-body ul ol, +.markdown-body ul ul { + margin-top: 0; + margin-bottom: 0; +} +.markdown-body li > p { + margin-top: 16px; +} +.markdown-body li + li { + margin-top: 0.25em; +} +.markdown-body dl { + padding: 0; +} +.markdown-body dl dt { + padding: 0; + margin-top: 16px; + font-size: 1em; + font-style: italic; + font-weight: 600; +} +.markdown-body dl dd { + padding: 0 16px; + margin-bottom: 16px; +} +.markdown-body table th { + font-weight: 600; +} +.markdown-body table td, +.markdown-body table th { + padding: 6px 13px; + border: 1px solid var(--color-border-default); +} +.markdown-body table tr { + background-color: var(--color-canvas-default); + border-top: 1px solid var(--color-border-muted); +} +.markdown-body table tr:nth-child(2n) { + background-color: var(--color-canvas-subtle); +} +.markdown-body table img { + background-color: transparent; +} +.markdown-body img[align="right"] { + padding-left: 20px; +} +.markdown-body img[align="left"] { + padding-right: 20px; +} +.markdown-body .emoji { + max-width: none; + vertical-align: text-top; + background-color: transparent; +} +.markdown-body span.frame { + display: block; + overflow: hidden; +} +.markdown-body span.frame > span { + display: block; + float: left; + width: auto; + padding: 7px; + margin: 13px 0 0; + overflow: hidden; + border: 1px solid var(--color-border-default); +} +.markdown-body span.frame span img { + display: block; + float: left; +} +.markdown-body span.frame span span { + display: block; + padding: 5px 0 0; + clear: both; + color: var(--color-fg-default); +} +.markdown-body span.align-center { + display: block; + overflow: hidden; + clear: both; +} +.markdown-body span.align-center > span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: center; +} +.markdown-body span.align-center span img { + margin: 0 auto; + text-align: center; +} +.markdown-body span.align-right { + display: block; + overflow: hidden; + clear: both; +} +.markdown-body span.align-right > span { + display: block; + margin: 13px 0 0; + overflow: hidden; + text-align: right; +} +.markdown-body span.align-right span img { + margin: 0; + text-align: right; +} +.markdown-body span.float-left { + display: block; + float: left; + margin-right: 13px; + overflow: hidden; +} +.markdown-body span.float-left span { + margin: 13px 0 0; +} +.markdown-body span.float-right { + display: block; + float: right; + margin-left: 13px; + overflow: hidden; +} +.markdown-body span.float-right > span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: right; +} +.markdown-body code, +.markdown-body tt { + padding: 0.2em 0.4em; + margin: 0; + font-size: 85%; + background-color: var(--color-neutral-muted); + border-radius: 6px; +} +.markdown-body code br, +.markdown-body tt br { + display: none; +} +.markdown-body del code { + text-decoration: inherit; +} +.markdown-body pre code { + font-size: 100%; +} +.markdown-body pre > code { + padding: 0; + margin: 0; + word-break: normal; + white-space: pre; + background: 0 0; + border: 0; +} +.markdown-body .highlight { + margin-bottom: 16px; +} +.markdown-body .highlight pre { + margin-bottom: 0; + word-break: normal; +} +.markdown-body .highlight pre, +.markdown-body pre { + padding: 16px; + overflow: auto; + font-size: 85%; + line-height: 1.45; + background-color: var(--color-canvas-subtle); + border-radius: 6px; +} +.markdown-body pre code, +.markdown-body pre tt { + display: inline; + max-width: auto; + padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; + word-wrap: normal; + background-color: transparent; + border: 0; +} +.markdown-body .csv-data td, +.markdown-body .csv-data th { + padding: 5px; + overflow: hidden; + font-size: 12px; + line-height: 1; + text-align: left; + white-space: nowrap; +} +.markdown-body .csv-data .blob-num { + padding: 10px 8px 9px; + text-align: right; + background: var(--color-canvas-default); + border: 0; +} +.markdown-body .csv-data tr { + border-top: 0; +} +.markdown-body .csv-data th { + font-weight: 600; + background: var(--color-canvas-subtle); + border-top: 0; +} +.markdown-body .footnotes { + font-size: 12px; + color: var(--color-fg-muted); + border-top: 1px solid var(--color-border-default); +} +.markdown-body .footnotes ol { + padding-left: 16px; +} +.markdown-body .footnotes li { + position: relative; +} +.markdown-body .footnotes li:target::before { + position: absolute; + top: -8px; + right: -8px; + bottom: -8px; + left: -24px; + pointer-events: none; + content: ""; + border: 2px solid var(--color-accent-emphasis); + border-radius: 6px; +} +.markdown-body .footnotes li:target { + color: var(--color-fg-default); +} +.markdown-body .footnotes .data-footnote-backref g-emoji { + font-family: monospace; +} +.markdown-body .task-list-item { + list-style-type: none; +} +.markdown-body .task-list-item label { + font-weight: 400; +} +.markdown-body .task-list-item.enabled label { + cursor: pointer; +} +.markdown-body .task-list-item + .task-list-item { + margin-top: 3px; +} +.markdown-body .task-list-item .handle { + display: none; +} +.markdown-body .task-list-item-checkbox { + margin: 0 0.2em 0.25em -1.6em; + vertical-align: middle; +} +.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em 0.25em 0.2em; +} +.markdown-body ::-webkit-calendar-picker-indicator { + filter: invert(50%); +} +/*# sourceMappingURL=/sm/64d6754651b08011e56029ac6df83bb47c5a570dab69e24e289f71fd97eb927d.map */ diff --git a/code/WebApp/vanilla/lib/highlightjs/highlight.css b/code/WebApp/vanilla/lib/highlightjs/highlight.css new file mode 100644 index 00000000..0d8557f1 --- /dev/null +++ b/code/WebApp/vanilla/lib/highlightjs/highlight.css @@ -0,0 +1,111 @@ +/*! + Theme: Default + Description: Original highlight.js style + Author: (c) Ivan Sagalaev + Maintainer: @highlightjs/core-team + Website: https://highlightjs.org/ + License: see project LICENSE + Touched: 2021 +*/ +pre code.hljs { + display: block; + overflow-x: auto; + padding: 1em; +} +code.hljs { + padding: 3px 5px; +} + +.hljs { + --color: #444; + --background: #f3f3f3; + --comment: #697070; + --tag: #444a; + --tag-attr: #444; + --type: #800; + --title: #800; + --link: #ab5656; + --literal: #695; + --code: #397300; + --meta: #1f7199; + --meta-string: #38a; +} + +body.dark .hljs { + --color: var(--dark-text-color); + --background: var(--dark-bg-color); + --keyword: #fff; + --comment: #979797; + --tag: #fff; + --type: #d88; +} + +.hljs { + background: var(--background); + color: var(--color); +} +.hljs-comment { + color: var(--comment); +} +.hljs-punctuation, +.hljs-tag { + color: var(--tag); +} +.hljs-tag .hljs-attr, +.hljs-tag .hljs-name { + color: var(--tag-attr); +} +.hljs-attribute, +.hljs-doctag, +.hljs-keyword, +.hljs-meta .hljs-keyword, +.hljs-name, +.hljs-selector-tag { + font-weight: 700; +} +.hljs-deletion, +.hljs-number, +.hljs-quote, +.hljs-selector-class, +.hljs-selector-id, +.hljs-string, +.hljs-template-tag, +.hljs-type { + color: var(--type); +} +.hljs-section, +.hljs-title { + color: var(--title); + font-weight: 700; +} +.hljs-link, +.hljs-operator, +.hljs-regexp, +.hljs-selector-attr, +.hljs-selector-pseudo, +.hljs-symbol, +.hljs-template-variable, +.hljs-variable { + color: var(--link); +} +.hljs-literal { + color: var(--literal); +} +.hljs-addition, +.hljs-built_in, +.hljs-bullet, +.hljs-code { + color: var(--code); +} +.hljs-meta { + color: var(--meta); +} +.hljs-meta .hljs-string { + color: var(--meta-string); +} +.hljs-emphasis { + font-style: italic; +} +.hljs-strong { + font-weight: 700; +} diff --git a/code/WebApp/vanilla/lib/highlightjs/highlight.min.js b/code/WebApp/vanilla/lib/highlightjs/highlight.min.js new file mode 100644 index 00000000..efe42986 --- /dev/null +++ b/code/WebApp/vanilla/lib/highlightjs/highlight.min.js @@ -0,0 +1,1174 @@ +/*! + Highlight.js v11.5.0 (git: 7a62552656) + (c) 2006-2022 Ivan Sagalaev and other contributors + License: BSD-3-Clause + */ +var e={exports:{}};function n(e){ +return e instanceof Map?e.clear=e.delete=e.set=()=>{ +throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{ +throw Error("set is read-only") +}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((t=>{var a=e[t] +;"object"!=typeof a||Object.isFrozen(a)||n(a)})),e} +e.exports=n,e.exports.default=n;var t=e.exports;class a{constructor(e){ +void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} +ignoreMatch(){this.isMatchIgnored=!0}}function i(e){ +return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") +}function r(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n] +;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}const s=e=>!!e.kind +;class o{constructor(e,n){ +this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){ +this.buffer+=i(e)}openNode(e){if(!s(e))return;let n=e.kind +;n=e.sublanguage?"language-"+n:((e,{prefix:n})=>{if(e.includes(".")){ +const t=e.split(".") +;return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ") +}return`${n}${e}`})(n,{prefix:this.classPrefix}),this.span(n)}closeNode(e){ +s(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ +this.buffer+=``}}class l{constructor(){this.rootNode={ +children:[]},this.stack=[this.rootNode]}get top(){ +return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ +this.top.children.push(e)}openNode(e){const n={kind:e,children:[]} +;this.add(n),this.stack.push(n)}closeNode(){ +if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ +for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} +walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){ +return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n), +n.children.forEach((n=>this._walk(e,n))),e.closeNode(n)),e}static _collapse(e){ +"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ +l._collapse(e)})))}}class c extends l{constructor(e){super(),this.options=e} +addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())} +addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root +;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){ +return new o(this,this.options).value()}finalize(){return!0}}function d(e){ +return e?"string"==typeof e?e:e.source:null}function g(e){return m("(?=",e,")")} +function u(e){return m("(?:",e,")*")}function b(e){return m("(?:",e,")?")} +function m(...e){return e.map((e=>d(e))).join("")}function p(...e){const n=(e=>{ +const n=e[e.length-1] +;return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{} +})(e);return"("+(n.capture?"":"?:")+e.map((e=>d(e))).join("|")+")"} +function _(e){return RegExp(e.toString()+"|").exec("").length-1} +const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./ +;function f(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t +;let a=d(e),i="";for(;a.length>0;){const e=h.exec(a);if(!e){i+=a;break} +i+=a.substring(0,e.index), +a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+(Number(e[1])+n):(i+=e[0], +"("===e[0]&&t++)}return i})).map((e=>`(${e})`)).join(n)} +const E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",y={ +begin:"\\\\[\\s\\S]",relevance:0},w={scope:"string",begin:"'",end:"'", +illegal:"\\n",contains:[y]},N={scope:"string",begin:'"',end:'"',illegal:"\\n", +contains:[y]},v=(e,n,t={})=>{const a=r({scope:"comment",begin:e,end:n, +contains:[]},t);a.contains.push({scope:"doctag", +begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", +end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}) +;const i=p("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/) +;return a.contains.push({begin:m(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a +},k=v("//","$"),O=v("/\\*","\\*/"),x=v("#","$");var M=Object.freeze({ +__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*", +UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:E, +BINARY_NUMBER_RE:"\\b(0b[01]+)", +RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", +SHEBANG:(e={})=>{const n=/^#![ ]*\// +;return e.binary&&(e.begin=m(n,/.*\b/,e.binary,/\b.*/)),r({scope:"meta",begin:n, +end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)}, +BACKSLASH_ESCAPE:y,APOS_STRING_MODE:w,QUOTE_STRING_MODE:N,PHRASAL_WORDS_MODE:{ +begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ +},COMMENT:v,C_LINE_COMMENT_MODE:k,C_BLOCK_COMMENT_MODE:O,HASH_COMMENT_MODE:x, +NUMBER_MODE:{scope:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0}, +C_NUMBER_MODE:{scope:"number",begin:E,relevance:0},BINARY_NUMBER_MODE:{ +scope:"number",begin:"\\b(0b[01]+)",relevance:0},REGEXP_MODE:{ +begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/, +illegal:/\n/,contains:[y,{begin:/\[/,end:/\]/,relevance:0,contains:[y]}]}]}, +TITLE_MODE:{scope:"title",begin:"[a-zA-Z]\\w*",relevance:0}, +UNDERSCORE_TITLE_MODE:{scope:"title",begin:"[a-zA-Z_]\\w*",relevance:0}, +METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0}, +END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1] +},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}) +;function S(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function A(e,n){ +void 0!==e.className&&(e.scope=e.className,delete e.className)}function C(e,n){ +n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", +e.__beforeBegin=S,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, +void 0===e.relevance&&(e.relevance=0))}function T(e,n){ +Array.isArray(e.illegal)&&(e.illegal=p(...e.illegal))}function R(e,n){ +if(e.match){ +if(e.begin||e.end)throw Error("begin & end are not supported with match") +;e.begin=e.match,delete e.match}}function D(e,n){ +void 0===e.relevance&&(e.relevance=1)}const I=(e,n)=>{if(!e.beforeMatch)return +;if(e.starts)throw Error("beforeMatch cannot be used with starts") +;const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n] +})),e.keywords=t.keywords,e.begin=m(t.beforeMatch,g(t.begin)),e.starts={ +relevance:0,contains:[Object.assign(t,{endsParent:!0})] +},e.relevance=0,delete t.beforeMatch +},L=["of","and","for","in","not","or","if","then","parent","list","value"] +;function B(e,n,t="keyword"){const a=Object.create(null) +;return"string"==typeof e?i(t,e.split(" ")):Array.isArray(e)?i(t,e):Object.keys(e).forEach((t=>{ +Object.assign(a,B(e[t],n,t))})),a;function i(e,t){ +n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((n=>{const t=n.split("|") +;a[t[0]]=[e,$(t[0],t[1])]}))}}function $(e,n){ +return n?Number(n):(e=>L.includes(e.toLowerCase()))(e)?0:1}const z={},F=e=>{ +console.error(e)},U=(e,...n)=>{console.log("WARN: "+e,...n)},j=(e,n)=>{ +z[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),z[`${e}/${n}`]=!0) +},P=Error();function K(e,n,{key:t}){let a=0;const i=e[t],r={},s={} +;for(let e=1;e<=n.length;e++)s[e+a]=i[e],r[e+a]=!0,a+=_(n[e-1]) +;e[t]=s,e[t]._emit=r,e[t]._multi=!0}function H(e){(e=>{ +e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope, +delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={ +_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope +}),(e=>{if(Array.isArray(e.begin)){ +if(e.skip||e.excludeBegin||e.returnBegin)throw F("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), +P +;if("object"!=typeof e.beginScope||null===e.beginScope)throw F("beginScope must be object"), +P;K(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}})(e),(e=>{ +if(Array.isArray(e.end)){ +if(e.skip||e.excludeEnd||e.returnEnd)throw F("skip, excludeEnd, returnEnd not compatible with endScope: {}"), +P +;if("object"!=typeof e.endScope||null===e.endScope)throw F("endScope must be object"), +P;K(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}})(e)}function q(e){ +function n(n,t){ +return RegExp(d(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":"")) +}class t{constructor(){ +this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} +addRule(e,n){ +n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]), +this.matchAt+=_(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) +;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(f(e,{joinWith:"|" +}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex +;const n=this.matcherRe.exec(e);if(!n)return null +;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t] +;return n.splice(0,t),Object.assign(n,a)}}class a{constructor(){ +this.rules=[],this.multiRegexes=[], +this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ +if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t +;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))), +n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){ +return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){ +this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){ +const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex +;let t=n.exec(e) +;if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{ +const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)} +return t&&(this.regexIndex+=t.position+1, +this.regexIndex===this.count&&this.considerAll()),t}} +if(e.compilerExtensions||(e.compilerExtensions=[]), +e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") +;return e.classNameAliases=r(e.classNameAliases||{}),function t(i,s){const o=i +;if(i.isCompiled)return o +;[A,R,H,I].forEach((e=>e(i,s))),e.compilerExtensions.forEach((e=>e(i,s))), +i.__beforeBegin=null,[C,T,D].forEach((e=>e(i,s))),i.isCompiled=!0;let l=null +;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords), +l=i.keywords.$pattern, +delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=B(i.keywords,e.case_insensitive)), +o.keywordPatternRe=n(l,!0), +s&&(i.begin||(i.begin=/\B|\b/),o.beginRe=n(o.begin),i.end||i.endsWithParent||(i.end=/\B|\b/), +i.end&&(o.endRe=n(o.end)), +o.terminatorEnd=d(o.end)||"",i.endsWithParent&&s.terminatorEnd&&(o.terminatorEnd+=(i.end?"|":"")+s.terminatorEnd)), +i.illegal&&(o.illegalRe=n(i.illegal)), +i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((n=>r(e,{ +variants:null},n)))),e.cachedVariants?e.cachedVariants:Z(e)?r(e,{ +starts:e.starts?r(e.starts):null +}):Object.isFrozen(e)?r(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,o) +})),i.starts&&t(i.starts,s),o.matcher=(e=>{const n=new a +;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin" +}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end" +}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n})(o),o}(e)}function Z(e){ +return!!e&&(e.endsWithParent||Z(e.starts))}class G extends Error{ +constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}} +const W=i,Q=r,X=Symbol("nomatch");var V=(e=>{ +const n=Object.create(null),i=Object.create(null),r=[];let s=!0 +;const o="Could not find the language '{}', did you forget to load/include a language module?",l={ +disableAutodetect:!0,name:"Plain text",contains:[]};let d={ +ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i, +languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", +cssSelector:"pre code",languages:null,__emitter:c};function _(e){ +return d.noHighlightRe.test(e)}function h(e,n,t){let a="",i="" +;"object"==typeof n?(a=e, +t=n.ignoreIllegals,i=n.language):(j("10.7.0","highlight(lang, code, ...args) has been deprecated."), +j("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), +i=e,a=n),void 0===t&&(t=!0);const r={code:a,language:i};x("before:highlight",r) +;const s=r.result?r.result:f(r.language,r.code,t) +;return s.code=r.code,x("after:highlight",s),s}function f(e,t,i,r){ +const l=Object.create(null);function c(){if(!O.keywords)return void M.addText(S) +;let e=0;O.keywordPatternRe.lastIndex=0;let n=O.keywordPatternRe.exec(S),t="" +;for(;n;){t+=S.substring(e,n.index) +;const i=w.case_insensitive?n[0].toLowerCase():n[0],r=(a=i,O.keywords[a]);if(r){ +const[e,a]=r +;if(M.addText(t),t="",l[i]=(l[i]||0)+1,l[i]<=7&&(A+=a),e.startsWith("_"))t+=n[0];else{ +const t=w.classNameAliases[e]||e;M.addKeyword(n[0],t)}}else t+=n[0] +;e=O.keywordPatternRe.lastIndex,n=O.keywordPatternRe.exec(S)}var a +;t+=S.substr(e),M.addText(t)}function g(){null!=O.subLanguage?(()=>{ +if(""===S)return;let e=null;if("string"==typeof O.subLanguage){ +if(!n[O.subLanguage])return void M.addText(S) +;e=f(O.subLanguage,S,!0,x[O.subLanguage]),x[O.subLanguage]=e._top +}else e=E(S,O.subLanguage.length?O.subLanguage:null) +;O.relevance>0&&(A+=e.relevance),M.addSublanguage(e._emitter,e.language) +})():c(),S=""}function u(e,n){let t=1;const a=n.length-1;for(;t<=a;){ +if(!e._emit[t]){t++;continue}const a=w.classNameAliases[e[t]]||e[t],i=n[t] +;a?M.addKeyword(i,a):(S=i,c(),S=""),t++}}function b(e,n){ +return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope), +e.beginScope&&(e.beginScope._wrap?(M.addKeyword(S,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), +S=""):e.beginScope._multi&&(u(e.beginScope,n),S="")),O=Object.create(e,{parent:{ +value:O}}),O}function m(e,n,t){let i=((e,n)=>{const t=e&&e.exec(n) +;return t&&0===t.index})(e.endRe,t);if(i){if(e["on:end"]){const t=new a(e) +;e["on:end"](n,t),t.isMatchIgnored&&(i=!1)}if(i){ +for(;e.endsParent&&e.parent;)e=e.parent;return e}} +if(e.endsWithParent)return m(e.parent,n,t)}function p(e){ +return 0===O.matcher.regexIndex?(S+=e[0],1):(R=!0,0)}function _(e){ +const n=e[0],a=t.substr(e.index),i=m(O,e,a);if(!i)return X;const r=O +;O.endScope&&O.endScope._wrap?(g(), +M.addKeyword(n,O.endScope._wrap)):O.endScope&&O.endScope._multi?(g(), +u(O.endScope,e)):r.skip?S+=n:(r.returnEnd||r.excludeEnd||(S+=n), +g(),r.excludeEnd&&(S=n));do{ +O.scope&&M.closeNode(),O.skip||O.subLanguage||(A+=O.relevance),O=O.parent +}while(O!==i.parent);return i.starts&&b(i.starts,e),r.returnEnd?0:n.length} +let h={};function y(n,r){const o=r&&r[0];if(S+=n,null==o)return g(),0 +;if("begin"===h.type&&"end"===r.type&&h.index===r.index&&""===o){ +if(S+=t.slice(r.index,r.index+1),!s){const n=Error(`0 width match regex (${e})`) +;throw n.languageName=e,n.badRule=h.rule,n}return 1} +if(h=r,"begin"===r.type)return(e=>{ +const n=e[0],t=e.rule,i=new a(t),r=[t.__beforeBegin,t["on:begin"]] +;for(const t of r)if(t&&(t(e,i),i.isMatchIgnored))return p(n) +;return t.skip?S+=n:(t.excludeBegin&&(S+=n), +g(),t.returnBegin||t.excludeBegin||(S=n)),b(t,e),t.returnBegin?0:n.length})(r) +;if("illegal"===r.type&&!i){ +const e=Error('Illegal lexeme "'+o+'" for mode "'+(O.scope||"")+'"') +;throw e.mode=O,e}if("end"===r.type){const e=_(r);if(e!==X)return e} +if("illegal"===r.type&&""===o)return 1 +;if(T>1e5&&T>3*r.index)throw Error("potential infinite loop, way more iterations than matches") +;return S+=o,o.length}const w=v(e) +;if(!w)throw F(o.replace("{}",e)),Error('Unknown language: "'+e+'"') +;const N=q(w);let k="",O=r||N;const x={},M=new d.__emitter(d);(()=>{const e=[] +;for(let n=O;n!==w;n=n.parent)n.scope&&e.unshift(n.scope) +;e.forEach((e=>M.openNode(e)))})();let S="",A=0,C=0,T=0,R=!1;try{ +for(O.matcher.considerAll();;){ +T++,R?R=!1:O.matcher.considerAll(),O.matcher.lastIndex=C +;const e=O.matcher.exec(t);if(!e)break;const n=y(t.substring(C,e.index),e) +;C=e.index+n}return y(t.substr(C)),M.closeAllNodes(),M.finalize(),k=M.toHTML(),{ +language:e,value:k,relevance:A,illegal:!1,_emitter:M,_top:O}}catch(n){ +if(n.message&&n.message.includes("Illegal"))return{language:e,value:W(t), +illegal:!0,relevance:0,_illegalBy:{message:n.message,index:C, +context:t.slice(C-100,C+100),mode:n.mode,resultSoFar:k},_emitter:M};if(s)return{ +language:e,value:W(t),illegal:!1,relevance:0,errorRaised:n,_emitter:M,_top:O} +;throw n}}function E(e,t){t=t||d.languages||Object.keys(n);const a=(e=>{ +const n={value:W(e),illegal:!1,relevance:0,_top:l,_emitter:new d.__emitter(d)} +;return n._emitter.addText(e),n})(e),i=t.filter(v).filter(O).map((n=>f(n,e,!1))) +;i.unshift(a);const r=i.sort(((e,n)=>{ +if(e.relevance!==n.relevance)return n.relevance-e.relevance +;if(e.language&&n.language){if(v(e.language).supersetOf===n.language)return 1 +;if(v(n.language).supersetOf===e.language)return-1}return 0})),[s,o]=r,c=s +;return c.secondBest=o,c}function y(e){let n=null;const t=(e=>{ +let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"" +;const t=d.languageDetectRe.exec(n);if(t){const n=v(t[1]) +;return n||(U(o.replace("{}",t[1])), +U("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"} +return n.split(/\s+/).find((e=>_(e)||v(e)))})(e);if(_(t))return +;if(x("before:highlightElement",{el:e,language:t +}),e.children.length>0&&(d.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), +console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), +console.warn("The element with unescaped HTML:"), +console.warn(e)),d.throwUnescapedHTML))throw new G("One of your code blocks includes unescaped HTML.",e.innerHTML) +;n=e;const a=n.textContent,r=t?h(a,{language:t,ignoreIllegals:!0}):E(a) +;e.innerHTML=r.value,((e,n,t)=>{const a=n&&i[n]||t +;e.classList.add("hljs"),e.classList.add("language-"+a) +})(e,t,r.language),e.result={language:r.language,re:r.relevance, +relevance:r.relevance},r.secondBest&&(e.secondBest={ +language:r.secondBest.language,relevance:r.secondBest.relevance +}),x("after:highlightElement",{el:e,result:r,text:a})}let w=!1;function N(){ +"loading"!==document.readyState?document.querySelectorAll(d.cssSelector).forEach(y):w=!0 +}function v(e){return e=(e||"").toLowerCase(),n[e]||n[i[e]]} +function k(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{ +i[e.toLowerCase()]=n}))}function O(e){const n=v(e) +;return n&&!n.disableAutodetect}function x(e,n){const t=e;r.forEach((e=>{ +e[t]&&e[t](n)}))} +"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{ +w&&N()}),!1),Object.assign(e,{highlight:h,highlightAuto:E,highlightAll:N, +highlightElement:y, +highlightBlock:e=>(j("10.7.0","highlightBlock will be removed entirely in v12.0"), +j("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{d=Q(d,e)}, +initHighlighting:()=>{ +N(),j("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")}, +initHighlightingOnLoad:()=>{ +N(),j("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.") +},registerLanguage:(t,a)=>{let i=null;try{i=a(e)}catch(e){ +if(F("Language definition for '{}' could not be registered.".replace("{}",t)), +!s)throw e;F(e),i=l} +i.name||(i.name=t),n[t]=i,i.rawDefinition=a.bind(null,e),i.aliases&&k(i.aliases,{ +languageName:t})},unregisterLanguage:e=>{delete n[e] +;for(const n of Object.keys(i))i[n]===e&&delete i[n]}, +listLanguages:()=>Object.keys(n),getLanguage:v,registerAliases:k, +autoDetection:O,inherit:Q,addPlugin:e=>{(e=>{ +e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{ +e["before:highlightBlock"](Object.assign({block:n.el},n)) +}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{ +e["after:highlightBlock"](Object.assign({block:n.el},n))})})(e),r.push(e)} +}),e.debugMode=()=>{s=!1},e.safeMode=()=>{s=!0 +},e.versionString="11.5.0",e.regex={concat:m,lookahead:g,either:p,optional:b, +anyNumberOfTimes:u};for(const e in M)"object"==typeof M[e]&&t(M[e]) +;return Object.assign(e,M),e})({});const J=e=>({IMPORTANT:{scope:"meta", +begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{ +scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/}, +FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/}, +ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", +contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ +scope:"number", +begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/} +}),Y=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ee=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ne=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],te=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ae=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),ie=ne.concat(te) +;var re="\\.([0-9](_*[0-9])*)",se="[0-9a-fA-F](_*[0-9a-fA-F])*",oe={ +className:"number",variants:[{ +begin:`(\\b([0-9](_*[0-9])*)((${re})|\\.)?|(${re}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:`\\b([0-9](_*[0-9])*)((${re})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${re})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{ +begin:`\\b0[xX]((${se})\\.?|(${se})?\\.(${se}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b` +},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${se})[lL]?\\b`},{ +begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], +relevance:0};function le(e,n,t){return-1===t?"":e.replace(n,(a=>le(e,n,t-1)))} +const ce="[A-Za-z$_][0-9A-Za-z$_]*",de=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ge=["true","false","null","undefined","NaN","Infinity"],ue=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],be=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],me=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pe=["arguments","this","super","console","window","document","localStorage","module","global"],_e=[].concat(me,ue,be) +;function he(e){const n=e.regex,t=ce,a={begin:/<[A-Za-z0-9\\._:-]+/, +end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{ +const t=e[0].length+e.index,a=e.input[t] +;if("<"===a||","===a)return void n.ignoreMatch();let i +;">"===a&&(((e,{after:n})=>{const t="",O={ +match:[/const|var|let/,/\s+/,t,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(k)], +keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]} +;return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{ +PARAMS_CONTAINS:p,CLASS_REFERENCE:f},illegal:/#(?![$_A-z])/, +contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ +label:"use_strict",className:"meta",relevance:10, +begin:/^\s*['"]use (strict|asm)['"]/ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,d,g,u,o,f,{className:"attr", +begin:t+n.lookahead(":"),relevance:0},O,{ +begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", +keywords:"return throw case",relevance:0,contains:[u,e.REGEXP_MODE,{ +className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{ +className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{ +className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, +excludeEnd:!0,keywords:i,contains:p}]}]},{begin:/,/,relevance:0},{match:/\s+/, +relevance:0},{variants:[{begin:"<>",end:""},{ +match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin, +"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{ +begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},E,{ +beginKeywords:"while if switch catch for"},{ +begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:t, +className:"title.function"})]},{match:/\.\.\./,relevance:0},N,{match:"\\$"+t, +relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, +contains:[_]},y,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},h,v,{match:/\$[(.]/}]}} +const fe=e=>m(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Ee=["Protocol","Type"].map(fe),ye=["init","self"].map(fe),we=["Any","Self"],Ne=["actor","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],ve=["false","nil","true"],ke=["assignment","associativity","higherThan","left","lowerThan","none","right"],Oe=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],xe=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Me=p(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Se=p(Me,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ae=m(Me,Se,"*"),Ce=p(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Te=p(Ce,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Re=m(Ce,Te,"*"),De=m(/[A-Z]/,Te,"*"),Ie=["autoclosure",m(/convention\(/,p("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",m(/objc\(/,Re,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],Le=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] +;var Be=Object.freeze({__proto__:null,grmr_bash:e=>{const n=e.regex,t={},a={ +begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]} +;Object.assign(t,{className:"variable",variants:[{ +begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const i={ +className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},r={ +begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/, +end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(s);const o={begin:/\$\(\(/, +end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t] +},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10 +}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0, +contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{ +name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/, +keyword:["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"], +literal:["true","false"], +built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"] +},contains:[l,e.SHEBANG(),c,o,e.HASH_COMMENT_MODE,r,{match:/(\/[a-z._-]+)+/},s,{ +className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}, +grmr_c:e=>{const n=e.regex,t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),a="[a-zA-Z_]\\w*::",i="(decltype\\(auto\\)|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",r={ +className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{ +match:/\batomic_[a-z]{3,6}\b/}]},s={className:"string",variants:[{ +begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{ +className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},c={ +className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0 +},d=n.optional(a)+e.IDENT_RE+"\\s*\\(",g={ +keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"], +type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"], +literal:"true false NULL", +built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr" +},u=[l,r,t,e.C_BLOCK_COMMENT_MODE,o,s],b={variants:[{begin:/=/,end:/;/},{ +begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], +keywords:g,contains:u.concat([{begin:/\(/,end:/\)/,keywords:g, +contains:u.concat(["self"]),relevance:0}]),relevance:0},m={ +begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, +keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)", +keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(c,{ +className:"title.function"})],relevance:0},{relevance:0,match:/,/},{ +className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0, +contains:[t,e.C_BLOCK_COMMENT_MODE,s,o,r,{begin:/\(/,end:/\)/,keywords:g, +relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,o,r]}] +},r,t,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C",aliases:["h"],keywords:g, +disableAutodetect:!0,illegal:"=]/,contains:[{ +beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:l, +strings:s,keywords:g}}},grmr_cpp:e=>{const n=e.regex,t=e.COMMENT("//","$",{ +contains:[{begin:/\\\n/}] +}),a="[a-zA-Z_]\\w*::",i="(?!struct)(decltype\\(auto\\)|"+n.optional(a)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",r={ +className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{ +begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{ +className:"string",begin:/<.*?>/},t,e.C_BLOCK_COMMENT_MODE]},c={ +className:"title",begin:n.optional(a)+e.IDENT_RE,relevance:0 +},d=n.optional(a)+e.IDENT_RE+"\\s*\\(",g={ +type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"], +keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"], +literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"], +_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"] +},u={className:"function.dispatch",relevance:0,keywords:{ +_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"] +}, +begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/)) +},b=[u,l,r,t,e.C_BLOCK_COMMENT_MODE,o,s],m={variants:[{begin:/=/,end:/;/},{ +begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], +keywords:g,contains:b.concat([{begin:/\(/,end:/\)/,keywords:g, +contains:b.concat(["self"]),relevance:0}]),relevance:0},p={className:"function", +begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, +keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)", +keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[c],relevance:0},{ +begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[s,o]},{ +relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g, +relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,s,o,r,{begin:/\(/,end:/\)/, +keywords:g,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,o,r]}] +},r,t,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++", +aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:g,illegal:"",keywords:g,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:g},{ +match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/], +className:{1:"keyword",3:"title.class"}}])}},grmr_csharp:e=>{const n={ +keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]), +built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"], +literal:["default","false","null","true"]},t=e.inherit(e.TITLE_MODE,{ +begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{ +begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},i={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}] +},r=e.inherit(i,{illegal:/\n/}),s={className:"subst",begin:/\{/,end:/\}/, +keywords:n},o=e.inherit(s,{illegal:/\n/}),l={className:"string",begin:/\$"/, +end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/ +},e.BACKSLASH_ESCAPE,o]},c={className:"string",begin:/\$@"/,end:'"',contains:[{ +begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]},d=e.inherit(c,{illegal:/\n/, +contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},o]}) +;s.contains=[c,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE], +o.contains=[d,l,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{ +illegal:/\n/})];const g={variants:[c,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},u={begin:"<",end:">",contains:[{beginKeywords:"in out"},t] +},b=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",m={ +begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"], +keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0, +contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{ +begin:"\x3c!--|--\x3e"},{begin:""}]}] +}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#", +end:"$",keywords:{ +keyword:"if else elif endif define undef warning error line region endregion pragma checksum" +}},g,a,{beginKeywords:"class interface",relevance:0,end:/[{;=]/, +illegal:/[^\s:,]/,contains:[{beginKeywords:"where class" +},t,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace", +relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[t,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta", +begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{ +className:"string",begin:/"/,end:/"/}]},{ +beginKeywords:"new return throw await else",relevance:0},{className:"function", +begin:"("+b+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, +end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{ +beginKeywords:"public private protected static internal protected abstract async extern override unsafe virtual new sealed partial", +relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, +contains:[e.TITLE_MODE,u],relevance:0},{match:/\(\)/},{className:"params", +begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0, +contains:[g,a,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},m]}},grmr_css:e=>{ +const n=e.regex,t=J(e),a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{ +name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{ +keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"}, +contains:[t.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/ +},t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0 +},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 +},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ +begin:":("+ne.join("|")+")"},{begin:":(:)?("+te.join("|")+")"}] +},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ae.join("|")+")\\b"},{ +begin:/:/,end:/[;}{]/, +contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{ +begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" +},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}] +},t.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0, +illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{ +begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{ +$pattern:/[a-z-]+/,keyword:"and or not only",attribute:ee.join(" ")},contains:[{ +begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{ +className:"selector-tag",begin:"\\b("+Y.join("|")+")\\b"}]}},grmr_diff:e=>{ +const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{ +className:"meta",relevance:10, +match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/) +},{className:"comment",variants:[{ +begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/), +end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{ +className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/, +end:/$/}]}},grmr_go:e=>{const n={ +keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"], +type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"], +literal:["true","false","iota","nil"], +built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"] +};return{name:"Go",aliases:["golang"],keywords:n,illegal:"{ +const n=e.regex,t={className:"number",relevance:0,variants:[{ +begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{ +begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable", +variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r={ +className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string", +contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{ +begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}] +},o={begin:/\[/,end:/\]/,contains:[a,r,i,s,t,"self"],relevance:0 +},l=n.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{ +name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/, +contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{ +begin:n.concat(l,"(\\s*\\.\\s*",l,")*",n.lookahead(/\s*=\s*[^#\s]/)), +className:"attr",starts:{end:/$/,contains:[a,o,r,i,s,t]}}]}},grmr_java:e=>{ +const n=e.regex,t="[\xc0-\u02b8a-zA-Z_$][\xc0-\u02b8a-zA-Z_$0-9]*",a=t+le("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),i={ +keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"], +literal:["false","true","null"], +type:["char","boolean","long","float","int","byte","short","double"], +built_in:["super","this"]},r={className:"meta",begin:"@"+t,contains:[{ +begin:/\(/,end:/\)/,contains:["self"]}]},s={className:"params",begin:/\(/, +end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0} +;return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, +relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ +begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/, +className:"string",contains:[e.BACKSLASH_ESCAPE] +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ +match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{ +1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{ +begin:[n.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=/],className:{1:"type", +3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword", +3:"title.class"},contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"new throw return else",relevance:0},{ +begin:["(?:"+a+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{ +2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/, +end:/\)/,keywords:i,relevance:0, +contains:[r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,oe,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},oe,r]}},grmr_javascript:he, +grmr_json:e=>({name:"JSON",contains:[{className:"attr", +begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/, +className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,{ +beginKeywords:"true false null" +},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}), +grmr_kotlin:e=>{const n={ +keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", +built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", +literal:"true false null"},t={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" +},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={ +className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},r={className:"string", +variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,a]},{begin:"'",end:"'", +illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, +contains:[e.BACKSLASH_ESCAPE,i,a]}]};a.contains.push(r);const s={ +className:"meta", +begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" +},o={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, +end:/\)/,contains:[e.inherit(r,{className:"string"})]}] +},l=oe,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={ +variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, +contains:[]}]},g=d;return g.variants[1].contains=[d],d.variants[1].contains=[g], +{name:"Kotlin",aliases:["kt","kts"],keywords:n, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", +begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword", +begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", +begin:/@\w+/}]}},t,s,o,{className:"function",beginKeywords:"fun",end:"[(]|$", +returnBegin:!0,excludeEnd:!0,keywords:n,relevance:5,contains:[{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://, +keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, +endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, +endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,c],relevance:0 +},e.C_LINE_COMMENT_MODE,c,s,o,r,e.C_NUMBER_MODE]},c]},{className:"class", +beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, +illegal:"extends implements",contains:[{ +beginKeywords:"public protected internal private constructor" +},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0, +excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/, +excludeBegin:!0,returnEnd:!0},s,o]},r,{className:"meta",begin:"^#!/usr/bin/env", +end:"$",illegal:"\n"},l]}},grmr_less:e=>{ +const n=J(e),t=ie,a="([\\w-]+|@\\{[\\w-]+\\})",i=[],r=[],s=e=>({ +className:"string",begin:"~?"+e+".*?"+e}),o=(e,n,t)=>({className:e,begin:n, +relevance:t}),l={$pattern:/[a-z-]+/,keyword:"and or not only", +attribute:ee.join(" ")},c={begin:"\\(",end:"\\)",contains:r,keywords:l, +relevance:0} +;r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),n.CSS_NUMBER_MODE,{ +begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]", +excludeEnd:!0} +},n.HEXCOLOR,c,o("variable","@@?[\\w-]+",10),o("variable","@\\{[\\w-]+\\}"),o("built_in","~?`[^`]*?`"),{ +className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0 +},n.IMPORTANT);const d=r.concat({begin:/\{/,end:/\}/,contains:i}),g={ +beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not" +}].concat(r)},u={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0, +contains:[{begin:/-(webkit|moz|ms|o)-/},n.CSS_VARIABLE,{className:"attribute", +begin:"\\b("+ae.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0, +illegal:"[<=$]",relevance:0,contains:r}}]},b={className:"keyword", +begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", +starts:{end:"[;{}]",keywords:l,returnEnd:!0,contains:r,relevance:0}},m={ +className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{ +begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:d}},p={variants:[{ +begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0, +returnEnd:!0,illegal:"[<='$\"]",relevance:0, +contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,o("keyword","all\\b"),o("variable","@\\{[\\w-]+\\}"),{ +begin:"\\b("+Y.join("|")+")\\b",className:"selector-tag" +},n.CSS_NUMBER_MODE,o("selector-tag",a,0),o("selector-id","#"+a),o("selector-class","\\."+a,0),o("selector-tag","&",0),n.ATTRIBUTE_SELECTOR_MODE,{ +className:"selector-pseudo",begin:":("+ne.join("|")+")"},{ +className:"selector-pseudo",begin:":(:)?("+te.join("|")+")"},{begin:/\(/, +end:/\)/,relevance:0,contains:d},{begin:"!important"},n.FUNCTION_DISPATCH]},_={ +begin:`[\\w-]+:(:)?(${t.join("|")})`,returnBegin:!0,contains:[p]} +;return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,m,_,u,p),{ +name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}},grmr_lua:e=>{ +const n="\\[=*\\[",t="\\]=*\\]",a={begin:n,end:t,contains:["self"] +},i=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[",t,{contains:[a], +relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE, +literal:"true false nil", +keyword:"and break do else elseif end for goto if in local not or repeat return then until while", +built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove" +},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)", +contains:[e.inherit(e.TITLE_MODE,{ +begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params", +begin:"\\(",endsWithParent:!0,contains:i}].concat(i) +},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string", +begin:n,end:t,contains:[a],relevance:5}])}},grmr_makefile:e=>{const n={ +className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)", +contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{ +const n=e.regex,t=n.concat(/[A-Z_]/,n.optional(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),a={ +className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/, +contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] +},r=e.inherit(i,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{ +className:"string"}),o=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={ +endsWithParent:!0,illegal:/`]+/}]}]}]};return{ +name:"HTML, XML", +aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], +case_insensitive:!0,contains:[{className:"meta",begin://, +relevance:10,contains:[i,o,s,r,{begin:/\[/,end:/\]/,contains:[{className:"meta", +begin://,contains:[i,r,o,s]}]}]},e.COMMENT(//,{ +relevance:10}),{begin://,relevance:10},a,{ +className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[o] +},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/, +keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0, +subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/, +keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0, +subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/ +},{className:"tag", +begin:n.concat(//,/>/,/\s/)))), +end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:l}]},{ +className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(t,/>/))),contains:[{ +className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]} +},grmr_markdown:e=>{const n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml", +relevance:0},t={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{ +begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, +relevance:2},{ +begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), +relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ +begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/ +},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, +returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", +excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", +end:"\\]",excludeBegin:!0,excludeEnd:!0}]},a={className:"strong",contains:[], +variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},i={ +className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{ +begin:/_(?!_)/,end:/_/,relevance:0}]},r=e.inherit(a,{contains:[] +}),s=e.inherit(i,{contains:[]});a.contains.push(s),i.contains.push(r) +;let o=[n,t];return[a,i,r,s].forEach((e=>{e.contains=e.contains.concat(o) +})),o=o.concat(a,i),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ +className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:o},{ +begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", +contains:o}]}]},n,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", +end:"\\s+",excludeEnd:!0},a,i,{className:"quote",begin:"^>\\s+",contains:o, +end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ +begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ +begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", +contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ +begin:"^[-\\*]{3,}",end:"$"},t,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ +className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ +className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},grmr_objectivec:e=>{ +const n=/[a-zA-Z@][a-zA-Z0-9_]*/,t={$pattern:n, +keyword:["@interface","@class","@protocol","@implementation"]};return{ +name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"], +keywords:{"variable.language":["this","super"],$pattern:n, +keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"], +literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"], +built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"], +type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"] +},illegal:"/,end:/$/,illegal:"\\n" +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class", +begin:"("+t.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:t, +contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE, +relevance:0}]}},grmr_perl:e=>{const n=e.regex,t=/[dualxmsipngr]{0,12}/,a={ +$pattern:/[\w.]+/, +keyword:"abs accept alarm and atan2 bind binmode bless break caller chdir chmod chomp chop chown chr chroot close closedir connect continue cos crypt dbmclose dbmopen defined delete die do dump each else elsif endgrent endhostent endnetent endprotoent endpwent endservent eof eval exec exists exit exp fcntl fileno flock for foreach fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt given glob gmtime goto grep gt hex if index int ioctl join keys kill last lc lcfirst length link listen local localtime log lstat lt ma map mkdir msgctl msgget msgrcv msgsnd my ne next no not oct open opendir or ord our pack package pipe pop pos print printf prototype push q|0 qq quotemeta qw qx rand read readdir readline readlink readpipe recv redo ref rename require reset return reverse rewinddir rindex rmdir say scalar seek seekdir select semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat state study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unless unlink unpack unshift untie until use utime values vec wait waitpid wantarray warn when while write x|0 xor y|0" +},i={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:a},r={begin:/->\{/, +end:/\}/},s={variants:[{begin:/\$\d/},{ +begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])") +},{begin:/[$%@][^\s\w{]/,relevance:0}] +},o=[e.BACKSLASH_ESCAPE,i,s],l=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(e,a,i="\\1")=>{ +const r="\\1"===i?i:n.concat(i,a) +;return n.concat(n.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,r,/(?:\\.|[^\\\/])*?/,i,t) +},d=(e,a,i)=>n.concat(n.concat("(?:",e,")"),a,/(?:\\.|[^\\\/])*?/,i,t),g=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{ +endsWithParent:!0}),r,{className:"string",contains:o,variants:[{ +begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[", +end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{ +begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">", +relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'", +contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`", +contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{ +begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number", +begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", +relevance:0},{ +begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*", +keywords:"split return print reverse grep",relevance:0, +contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{ +begin:c("s|tr|y",n.either(...l,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{ +begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{ +className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{ +begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",n.either(...l,{capture:!0 +}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{ +begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub", +end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{ +begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$", +subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}] +}];return i.contains=g,r.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:a, +contains:g}},grmr_php:e=>{ +const n=e.regex,t=/(?![A-Za-z0-9])(?![$])/,a=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,t),i=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,t),r={ +scope:"variable",match:"\\$+"+a},s={scope:"subst",variants:[{begin:/\$\w+/},{ +begin:/\{\$/,end:/\}/}]},o=e.inherit(e.APOS_STRING_MODE,{illegal:null +}),l="[ \t\n]",c={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{ +illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s) +}),o,e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/, +contains:e.QUOTE_STRING_MODE.contains.concat(s)})]},d={scope:"number", +variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{ +begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{ +begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{ +begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" +}],relevance:0 +},g=["false","null","true"],u=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],m={ +keyword:u,literal:(e=>{const n=[];return e.forEach((e=>{ +n.push(e),e.toLowerCase()===e?n.push(e.toUpperCase()):n.push(e.toLowerCase()) +})),n})(g),built_in:b},p=e=>e.map((e=>e.replace(/\|\d+$/,""))),_={variants:[{ +match:[/new/,n.concat(l,"+"),n.concat("(?!",p(b).join("\\b|"),"\\b)"),i],scope:{ +1:"keyword",4:"title.class"}}]},h=n.concat(a,"\\b(?!\\()"),f={variants:[{ +match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),h],scope:{2:"variable.constant" +}},{match:[/::/,/class/],scope:{2:"variable.language"}},{ +match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),h],scope:{1:"title.class", +3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class\b)/))], +scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class", +3:"variable.language"}}]},E={scope:"attr", +match:n.concat(a,n.lookahead(":"),n.lookahead(/(?!::)/))},y={relevance:0, +begin:/\(/,end:/\)/,keywords:m,contains:[E,r,f,e.C_BLOCK_COMMENT_MODE,c,d,_] +},w={relevance:0, +match:[/\b/,n.concat("(?!fn\\b|function\\b|",p(u).join("\\b|"),"|",p(b).join("\\b|"),"\\b)"),a,n.concat(l,"*"),n.lookahead(/(?=\()/)], +scope:{3:"title.function.invoke"},contains:[y]};y.contains.push(w) +;const N=[E,f,e.C_BLOCK_COMMENT_MODE,c,d,_];return{case_insensitive:!1, +keywords:m,contains:[{begin:n.concat(/#\[\s*/,i),beginScope:"meta",end:/]/, +endScope:"meta",keywords:{literal:g,keyword:["new","array"]},contains:[{ +begin:/\[/,end:/]/,keywords:{literal:g,keyword:["new","array"]}, +contains:["self",...N]},...N,{scope:"meta",match:i}] +},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{ +scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/, +keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE, +contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{ +begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{ +begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},r,w,f,{ +match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},_,{ +scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/, +excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use" +},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params", +begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:m, +contains:["self",r,f,e.C_BLOCK_COMMENT_MODE,c,d]}]},{scope:"class",variants:[{ +beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait", +illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{ +beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ +beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/, +contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{ +beginKeywords:"use",relevance:0,end:";",contains:[{ +match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},c,d]} +},grmr_php_template:e=>({name:"PHP template",subLanguage:"xml",contains:[{ +begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*", +end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0 +},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null, +skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null, +contains:null,skip:!0})]}]}),grmr_plaintext:e=>({name:"Plain text", +aliases:["text","txt"],disableAutodetect:!0}),grmr_python:e=>{ +const n=e.regex,t=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={ +$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a, +built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"], +literal:["__debug__","Ellipsis","False","None","NotImplemented","True"], +type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"] +},r={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/, +end:/\}/,keywords:i,illegal:/#/},o={begin:/\{\{/,relevance:0},l={ +className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,r],relevance:10},{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/, +contains:[e.BACKSLASH_ESCAPE,r],relevance:10},{ +begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,r,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/, +end:/"""/,contains:[e.BACKSLASH_ESCAPE,r,o,s]},{begin:/([uU]|[rR])'/,end:/'/, +relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{ +begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/, +end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/, +contains:[e.BACKSLASH_ESCAPE,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,o,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,g="\\b|"+a.join("|"),u={ +className:"number",relevance:0,variants:[{ +begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${g})`},{begin:`(${d})[jJ]?`},{ +begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{ +begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})` +},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${c})[jJ](?=${g})` +}]},b={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:i, +contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={ +className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/, +end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i, +contains:["self",r,u,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,u,r],{ +name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i, +illegal:/(<\/|->|\?)|=>/,contains:[r,u,{begin:/\bself\b/},{beginKeywords:"if", +relevance:0},l,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{ +1:"keyword",3:"title.function"},contains:[m]},{variants:[{ +match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}], +scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{ +className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[u,m,l]}]}}, +grmr_python_repl:e=>({aliases:["pycon"],contains:[{className:"meta.prompt", +starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{ +begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}),grmr_r:e=>{ +const n=e.regex,t=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,a=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,r=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/) +;return{name:"R",keywords:{$pattern:t, +keyword:"function if in break next repeat else for while", +literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", +built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" +},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/, +starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)), +endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{ +scope:"variable",variants:[{match:t},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0 +}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}] +}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE], +variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"', +relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{ +1:"operator",2:"number"},match:[i,a]},{scope:{1:"operator",2:"number"}, +match:[/%[^%]*%/,a]},{scope:{1:"punctuation",2:"number"},match:[r,a]},{scope:{ +2:"number"},match:[/[^a-zA-Z0-9._]|^/,a]}]},{scope:{3:"operator"}, +match:[t,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{ +match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:r},{begin:"`",end:"`", +contains:[{begin:/\\./}]}]}},grmr_ruby:e=>{ +const n=e.regex,t="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",a=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(a,/(::\w+)*/),r={ +"variable.constant":["__FILE__","__LINE__"], +"variable.language":["self","super"], +keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"], +built_in:["proc","lambda"],literal:["true","false","nil"]},s={ +className:"doctag",begin:"@[A-Za-z]+"},o={begin:"#<",end:">" +},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{ +contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={ +className:"subst",begin:/#\{/,end:/\}/,keywords:r},d={className:"string", +contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ +},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/, +end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{ +begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/, +end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{ +begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ +begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ +begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ +begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)), +contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, +contains:[e.BACKSLASH_ESCAPE,c]})]}]},g="[0-9](_?[0-9])*",u={className:"number", +relevance:0,variants:[{ +begin:`\\b([1-9](_?[0-9])*|0)(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{ +begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" +},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ +begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ +begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{ +className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0, +keywords:r}]},m=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{ +match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"}, +keywords:r},{relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},{ +relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{ +match:[/def/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[b]},{ +begin:e.IDENT_RE+"::"},{className:"symbol", +begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", +begin:":(?!\\s)",contains:[d,{begin:t}],relevance:0},u,{className:"variable", +begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ +className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0, +relevance:0,keywords:r},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*", +keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c], +illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{ +begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[", +end:"\\][a-z]*"}]}].concat(o,l),relevance:0}].concat(o,l) +;c.contains=m,b.contains=m;const p=[{begin:/^\s*=>/,starts:{end:"$",contains:m} +},{className:"meta.prompt", +begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", +starts:{end:"$",keywords:r,contains:m}}];return l.unshift(o),{name:"Ruby", +aliases:["rb","gemspec","podspec","thor","irb"],keywords:r,illegal:/\/\*/, +contains:[e.SHEBANG({binary:"ruby"})].concat(p).concat(l).concat(m)}}, +grmr_rust:e=>{const n=e.regex,t={className:"title.function.invoke",relevance:0, +begin:n.concat(/\b/,/(?!let\b)/,e.IDENT_RE,n.lookahead(/\s*\(/)) +},a="([ui](8|16|32|64|128|size)|f(32|64))?",i=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bin!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"] +;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?", +type:["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"], +keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"], +literal:["true","false","Some","None","Ok","Err"],built_in:i},illegal:""},t]}}, +grmr_scss:e=>{const n=J(e),t=te,a=ne,i="@[a-z-]+",r={className:"variable", +begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS", +case_insensitive:!0,illegal:"[=/|']", +contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n.CSS_NUMBER_MODE,{ +className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{ +className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0 +},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag", +begin:"\\b("+Y.join("|")+")\\b",relevance:0},{className:"selector-pseudo", +begin:":("+a.join("|")+")"},{className:"selector-pseudo", +begin:":(:)?("+t.join("|")+")"},r,{begin:/\(/,end:/\)/, +contains:[n.CSS_NUMBER_MODE]},n.CSS_VARIABLE,{className:"attribute", +begin:"\\b("+ae.join("|")+")\\b"},{ +begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" +},{begin:/:/,end:/[;}{]/, +contains:[n.BLOCK_COMMENT,r,n.HEXCOLOR,n.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.IMPORTANT] +},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{ +begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/, +keyword:"and or not only",attribute:ee.join(" ")},contains:[{begin:i, +className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute" +},r,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.HEXCOLOR,n.CSS_NUMBER_MODE] +},n.FUNCTION_DISPATCH]}},grmr_shell:e=>({name:"Shell Session", +aliases:["console","shellsession"],contains:[{className:"meta.prompt", +begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/, +subLanguage:"bash"}}]}),grmr_sql:e=>{ +const n=e.regex,t=e.COMMENT("--","$"),a=["true","false","unknown"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],r=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],o=r,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!r.includes(e))),c={ +begin:n.concat(/\b/,n.either(...o),/\s*\(/),relevance:0,keywords:{built_in:o}} +;return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{ +$pattern:/\b[\w\.]+/,keyword:((e,{exceptions:n,when:t}={})=>{const a=t +;return n=n||[],e.map((e=>e.match(/\|\d+$/)||n.includes(e)?e:a(e)?e+"|0":e)) +})(l,{when:e=>e.length<3}),literal:a,type:i, +built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"] +},contains:[{begin:n.either(...s),relevance:0,keywords:{$pattern:/[\w\.]+/, +keyword:l.concat(s),literal:a,type:i}},{className:"type", +begin:n.either("double precision","large object","with timezone","without timezone") +},c,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{ +begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{ +begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"operator", +begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}, +grmr_swift:e=>{const n={match:/\s+/,relevance:0},t=e.COMMENT("/\\*","\\*/",{ +contains:["self"]}),a=[e.C_LINE_COMMENT_MODE,t],i={match:[/\./,p(...Ee,...ye)], +className:{2:"keyword"}},r={match:m(/\./,p(...Ne)),relevance:0 +},s=Ne.filter((e=>"string"==typeof e)).concat(["_|0"]),o={variants:[{ +className:"keyword", +match:p(...Ne.filter((e=>"string"!=typeof e)).concat(we).map(fe),...ye)}]},l={ +$pattern:p(/\b\w+/,/#\w+/),keyword:s.concat(Oe),literal:ve},c=[i,r,o],d=[{ +match:m(/\./,p(...xe)),relevance:0},{className:"built_in", +match:m(/\b/,p(...xe),/(?=\()/)}],u={match:/->/,relevance:0},b=[u,{ +className:"operator",relevance:0,variants:[{match:Ae},{match:`\\.(\\.|${Se})+`}] +}],_="([0-9a-fA-F]_*)+",h={className:"number",relevance:0,variants:[{ +match:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{ +match:`\\b0x(${_})(\\.(${_}))?([pP][+-]?(([0-9]_*)+))?\\b`},{ +match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},f=(e="")=>({ +className:"subst",variants:[{match:m(/\\/,e,/[0\\tnr"']/)},{ +match:m(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),E=(e="")=>({className:"subst", +match:m(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),y=(e="")=>({className:"subst", +label:"interpol",begin:m(/\\/,e,/\(/),end:/\)/}),w=(e="")=>({begin:m(e,/"""/), +end:m(/"""/,e),contains:[f(e),E(e),y(e)]}),N=(e="")=>({begin:m(e,/"/), +end:m(/"/,e),contains:[f(e),y(e)]}),v={className:"string", +variants:[w(),w("#"),w("##"),w("###"),N(),N("#"),N("##"),N("###")]},k={ +match:m(/`/,Re,/`/)},O=[k,{className:"variable",match:/\$\d+/},{ +className:"variable",match:`\\$${Te}+`}],x=[{match:/(@|#(un)?)available/, +className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Le, +contains:[...b,h,v]}]}},{className:"keyword",match:m(/@/,p(...Ie))},{ +className:"meta",match:m(/@/,Re)}],M={match:g(/\b[A-Z]/),relevance:0,contains:[{ +className:"type", +match:m(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Te,"+") +},{className:"type",match:De,relevance:0},{match:/[?!]+/,relevance:0},{ +match:/\.\.\./,relevance:0},{match:m(/\s+&\s+/,g(De)),relevance:0}]},S={ +begin://,keywords:l,contains:[...a,...c,...x,u,M]};M.contains.push(S) +;const A={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{ +match:m(Re,/\s*:/),keywords:"_|0",relevance:0 +},...a,...c,...d,...b,h,v,...O,...x,M]},C={begin://,contains:[...a,M] +},T={begin:/\(/,end:/\)/,keywords:l,contains:[{ +begin:p(g(m(Re,/\s*:/)),g(m(Re,/\s+/,Re,/\s*:/))),end:/:/,relevance:0, +contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Re}] +},...a,...c,...b,h,v,...x,M,A],endsParent:!0,illegal:/["']/},R={ +match:[/func/,/\s+/,p(k.match,Re,Ae)],className:{1:"keyword",3:"title.function" +},contains:[C,T,n],illegal:[/\[/,/%/]},D={ +match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, +contains:[C,T,n],illegal:/\[|%/},I={match:[/operator/,/\s+/,Ae],className:{ +1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,De],className:{ +1:"keyword",3:"title"},contains:[M],keywords:[...ke,...ve],end:/}/} +;for(const e of v.variants){const n=e.contains.find((e=>"interpol"===e.label)) +;n.keywords=l;const t=[...c,...d,...b,h,v,...O];n.contains=[...t,{begin:/\(/, +end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:l, +contains:[...a,R,D,{beginKeywords:"struct protocol class extension enum actor", +end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{ +className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c] +},I,L,{beginKeywords:"import",end:/$/,contains:[...a],relevance:0 +},...c,...d,...b,h,v,...O,...x,M,A]}},grmr_typescript:e=>{ +const n=he(e),t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={ +beginKeywords:"namespace",end:/\{/,excludeEnd:!0, +contains:[n.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/, +excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t}, +contains:[n.exports.CLASS_REFERENCE]},r={$pattern:ce, +keyword:de.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]), +literal:ge,built_in:_e.concat(t),"variable.language":pe},s={className:"meta", +begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},o=(e,n,t)=>{ +const a=e.contains.findIndex((e=>e.label===n)) +;if(-1===a)throw Error("can not find mode to replace");e.contains.splice(a,1,t)} +;return Object.assign(n.keywords,r), +n.exports.PARAMS_CONTAINS.push(s),n.contains=n.contains.concat([s,a,i]), +o(n,"shebang",e.SHEBANG()),o(n,"use_strict",{className:"meta",relevance:10, +begin:/^\s*['"]use strict['"]/ +}),n.contains.find((e=>"func.def"===e.label)).relevance=0,Object.assign(n,{ +name:"TypeScript",aliases:["ts","tsx"]}),n},grmr_vbnet:e=>{ +const n=e.regex,t=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,i=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,r=/\d{1,2}(:\d{1,2}){1,2}/,s={ +className:"literal",variants:[{begin:n.concat(/# */,n.either(a,t),/ *#/)},{ +begin:n.concat(/# */,r,/ *#/)},{begin:n.concat(/# */,i,/ *#/)},{ +begin:n.concat(/# */,n.either(a,t),/ +/,n.either(i,r),/ *#/)}] +},o=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}] +}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]}) +;return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0, +classNameAliases:{label:"symbol"},keywords:{ +keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield", +built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort", +type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort", +literal:"true false nothing"}, +illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{ +className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/, +end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s,{className:"number",relevance:0, +variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/ +},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{ +begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{ +className:"label",begin:/^\w+:/},o,l,{className:"meta", +begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/, +end:/$/,keywords:{ +keyword:"const disable else elseif enable end externalsource if region then"}, +contains:[l]}]}},grmr_yaml:e=>{ +const n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={ +className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ +},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", +variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(a,{ +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),r={ +end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},s={begin:/\{/, +end:/\}/,contains:[r],illegal:"\\n",relevance:0},o={begin:"\\[",end:"\\]", +contains:[r],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{ +begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{ +begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$", +relevance:10},{className:"string", +begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ +begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, +relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type", +begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t +},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", +begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", +relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{ +className:"number", +begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" +},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,o,a],c=[...l] +;return c.pop(),c.push(i),r.contains=c,{name:"YAML",case_insensitive:!0, +aliases:["yml"],contains:l}}});const $e=V;for(const e of Object.keys(Be)){ +const n=e.replace("grmr_","").replace("_","-");$e.registerLanguage(n,Be[e])} +export{$e as default}; \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/jwt-decode/jwt-decode.esm.js b/code/WebApp/vanilla/lib/jwt-decode/jwt-decode.esm.js new file mode 100644 index 00000000..9ea18ee1 --- /dev/null +++ b/code/WebApp/vanilla/lib/jwt-decode/jwt-decode.esm.js @@ -0,0 +1,2 @@ +function e(e){this.message=e}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";export default o;export{n as InvalidTokenError}; +//# sourceMappingURL=jwt-decode.esm.js.map diff --git a/code/WebApp/vanilla/lib/linq/linq.min.js b/code/WebApp/vanilla/lib/linq/linq.min.js new file mode 100644 index 00000000..afe989bf --- /dev/null +++ b/code/WebApp/vanilla/lib/linq/linq.min.js @@ -0,0 +1 @@ +var Functions={Identity:function(e){return e},True:function(){return!0},Blank:function(){}},Types={Boolean:typeof!0,Number:"number",String:"string",Object:typeof{},Undefined:"undefined",Function:"function"},funcCache={"":Functions.Identity},Utils={createLambda:function(n){if(null==n)return Functions.Identity;if(typeof n!==Types.String)return n;{let t=funcCache[n];if(null!=t)return t;if(-1===n.indexOf("=>")){const o=new RegExp("[$]+","g");let e=0;for(var r;null!=(r=o.exec(n));)r[0].length>e&&(e=r[0].length);const i=[];for(let n=1;n<=e;n++){let t="";for(let e=0;e(.*)/);return t=new Function(e[1],e[2].match(/\breturn\b/)?e[2]:"return "+e[2]),funcCache[n]=t,t}}},defineProperty:function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},compare:function(e,t){return e===t?0:t=t.length&&(e=0),this.yieldReturn(t[e++])},Functions.Blank)})},Enumerable.empty=function(){return new Enumerable(function(){return new IEnumerator(Functions.Blank,function(){return!1},Functions.Blank)})},Enumerable.from=function(r){if(null==r)return Enumerable.empty();if(r instanceof Enumerable)return r;if(typeof r==Types.Number||typeof r==Types.Boolean)return Enumerable.repeat(r,1);if(typeof r==Types.String)return new Enumerable(function(){var e=0;return new IEnumerator(Functions.Blank,function(){return e=t.length-1?0:n+1;const e=t[n];if(e.moveNext())return this.yieldReturn(e.current());e.dispose(),t.splice(n--,1)}return this.yieldBreak()},function(){Enumerable.from(t).forEach(Utils.dispose)})})},Enumerable.prototype.join=function(e,o,i,a,l){o=Utils.createLambda(o),i=Utils.createLambda(i),a=Utils.createLambda(a),l=Utils.createLambda(l);var c=this;return new Enumerable(function(){var t,n,r=null,u=0;return new IEnumerator(function(){t=c.getEnumerator(),n=Enumerable.from(e).toLookup(i,Functions.Identity,l)},function(){for(;;){if(null!=r){let e=r[u++];if(void 0!==e)return this.yieldReturn(a(t.current(),e));e=null,u=0}if(!t.moveNext())return!1;var e=o(t.current());r=n.get(e).toArray()}},function(){Utils.dispose(t)})})},Enumerable.prototype.leftJoin=function(e,o,i,a,l){o=Utils.createLambda(o),i=Utils.createLambda(i),a=Utils.createLambda(a),l=Utils.createLambda(l);var c=this;return new Enumerable(function(){var t,n,r=null,u=0;return new IEnumerator(function(){t=c.getEnumerator(),n=Enumerable.from(e).toLookup(i,Functions.Identity,l)},function(){for(;;){if(null!=r){let e=r[u++];if(void 0!==e)return this.yieldReturn(a(t.current(),e));e=null,u=0}if(!t.moveNext())return!1;var e=o(t.current());if(null==(r=n.get(e).toArray())||0==r.length)return this.yieldReturn(a(t.current(),null))}},function(){Utils.dispose(t)})})},Enumerable.prototype.groupJoin=function(e,r,u,o,i){r=Utils.createLambda(r),u=Utils.createLambda(u),o=Utils.createLambda(o),i=Utils.createLambda(i);var a=this;return new Enumerable(function(){var t=a.getEnumerator(),n=null;return new IEnumerator(function(){t=a.getEnumerator(),n=Enumerable.from(e).toLookup(u,Functions.Identity,i)},function(){if(t.moveNext()){var e=n.get(r(t.current()));return this.yieldReturn(o(t.current(),e))}return!1},function(){Utils.dispose(t)})})},Enumerable.prototype.all=function(t){t=Utils.createLambda(t);var n=!0;return this.forEach(function(e){if(!t(e))return n=!1}),n},Enumerable.prototype.any=function(e){e=Utils.createLambda(e);var t=this.getEnumerator();try{if(0==arguments.length)return t.moveNext();for(;t.moveNext();)if(e(t.current()))return!0;return!1}finally{Utils.dispose(t)}},Enumerable.prototype.isEmpty=function(){return!this.any()},Enumerable.prototype.concat=function(){var n=this;if(1==arguments.length){const r=arguments[0];return new Enumerable(function(){var e,t;return new IEnumerator(function(){e=n.getEnumerator()},function(){if(null==t){if(e.moveNext())return this.yieldReturn(e.current());t=Enumerable.from(r).getEnumerator()}return!!t.moveNext()&&this.yieldReturn(t.current())},function(){try{Utils.dispose(e)}finally{Utils.dispose(t)}})})}{const e=arguments;return new Enumerable(function(){var t;return new IEnumerator(function(){t=Enumerable.make(n).concat(Enumerable.from(e).select(Enumerable.from)).select(function(e){return e.getEnumerator()}).toArray()},function(){for(;0=n?t=r:e=r}return this.yieldReturn(u[t].value)}return this.yieldBreak()},Functions.Blank)})},Enumerable.prototype.groupBy=function(t,n,r,u){var o=this;return t=Utils.createLambda(t),n=Utils.createLambda(n),null!=r&&(r=Utils.createLambda(r)),u=Utils.createLambda(u),new Enumerable(function(){var e;return new IEnumerator(function(){e=o.toLookup(t,n,u).toEnumerable().getEnumerator()},function(){return!!e.moveNext()&&(null==r?this.yieldReturn(e.current()):this.yieldReturn(r(e.current().key(),e.current())))},function(){Utils.dispose(e)})})},Enumerable.prototype.partitionBy=function(i,a,l,c){var s,e=this;return i=Utils.createLambda(i),a=Utils.createLambda(a),c=Utils.createLambda(c),l=null==l?(s=!1,function(e,t){return new Grouping(e,t)}):(s=!0,Utils.createLambda(l)),new Enumerable(function(){var n,r,u,o=[];return new IEnumerator(function(){(n=e.getEnumerator()).moveNext()&&(r=i(n.current()),u=c(r),o.push(a(n.current())))},function(){for(var e;1==(e=n.moveNext())&&u===c(i(n.current()));)o.push(a(n.current()));if(0=r)return this.yieldReturn(e);return 0n(t)?e:t})},Enumerable.prototype.minBy=function(n){return n=Utils.createLambda(n),this.aggregate(function(e,t){return n(e)0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var Pt=Lt(lt),Tt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ct=/,? & /;var Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ut(t){return function(){return t}}var Nt=function(){try{var t=at(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ft=Nt?function(t,n){return Nt(t,"toString",{configurable:!0,enumerable:!1,value:Ut(n),writable:!0})}:q,qt=Lt(Ft);function $t(t,n){for(var r=-1,e=null==t?0:t.length;++r-1}var Jt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ht(t,n,r){var e=n+"";return qt(t,function(t,n){var r=n.length;if(!r)return t;var e=r-1;return n[e]=(r>1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(Dt,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return $t(Jt,(function(r){var e="_."+r[0];n&r[1]&&!Gt(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(Tt);return n?n[1].split(Ct):[]}(e),r)))}var Yt=1,Qt=2,Xt=4,tn=8,nn=32,rn=64;function en(t,n,r,e,i,o,u,a,f,c){var l=n&tn;n|=l?nn:rn,(n&=~(l?rn:nn))&Xt||(n&=~(Yt|Qt));var s=[t,n,i,l?o:void 0,l?u:void 0,l?void 0:o,l?void 0:u,a,f,c],v=r.apply(void 0,s);return Mt(t)&&Pt(v,s),v.placeholder=e,Ht(v,t,n)}function on(t){return t.placeholder}var un=9007199254740991,an=/^(?:0|[1-9]\d*)$/;function fn(t,n){var r=typeof t;return!!(n=null==n?un:n)&&("number"==r||"symbol"!=r&&an.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),s&&c-1&&t%1==0&&t<=Zn}function Jn(t){return null!=t&&Gn(t.length)&&!G(t)}function Hn(t,n,r){if(!R(r))return!1;var e=typeof n;return!!("number"==e?Jn(r)&&fn(n,r.length):"string"==e&&n in r)&&Un(r[n],t)}function Yn(t){return Vn((function(n,r){var e=-1,i=r.length,o=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&Hn(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=Object(n);++e-1},qr.prototype.set=function(t,n){var r=this.__data__,e=Nr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this};var $r=at(e,"Map");function Kr(t,n){var r,e,i=t.__data__;return("string"==(e=typeof(r=n))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?i["string"==typeof n?"string":"hash"]:i.map}function Vr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n0&&r(a)?n>1?fe(a,n-1,r,e,i):oe(i,a):e||(i[i.length]=a)}return i}function ce(t){return(null==t?0:t.length)?fe(t,1):[]}function le(t){return qt(Kn(t,void 0,ce),t+"")}var se=le(ie),ve=jr(Object.getPrototypeOf,Object),pe="[object Object]",he=Function.prototype,de=Object.prototype,ye=he.toString,_e=de.hasOwnProperty,ge=ye.call(Object);function be(t){if(!h(t)||p(t)!=pe)return!1;var n=ve(t);if(null===n)return!0;var r=_e.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&ye.call(r)==ge}var me="[object DOMException]",je="[object Error]";function we(t){if(!h(t))return!1;var n=p(t);return n==je||n==me||"string"==typeof t.message&&"string"==typeof t.name&&!be(t)}var xe=Vn((function(t,n){try{return dt(t,void 0,n)}catch(t){return we(t)?t:new Error(t)}})),Oe="Expected a function";function Ae(t,n){var r;if("function"!=typeof n)throw new TypeError(Oe);return t=N(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var Ie=Vn((function(t,n,r){var e=1;if(r.length){var i=sn(r,on(Ie));e|=32}return Pn(t,e,n,r,i)}));Ie.placeholder={};var Ee=le((function(t,n){return $t(n,(function(n){n=ne(n),Dn(t,n,Ie(t[n],t))})),t})),ke=Vn((function(t,n,r){var e=3;if(r.length){var i=sn(r,on(ke));e|=32}return Pn(n,e,t,r,i)}));function Se(t,n,r){var e=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(r=r>i?i:r)<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(i);++e=e?t:Se(t,n,r)}ke.placeholder={};var Re=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Be(t){return Re.test(t)}var Me="\\ud800-\\udfff",ze="["+Me+"]",Le="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pe="\\ud83c[\\udffb-\\udfff]",Te="[^"+Me+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="(?:"+Le+"|"+Pe+")"+"?",Ne="[\\ufe0e\\ufe0f]?",Fe=Ne+Ue+("(?:\\u200d(?:"+[Te,Ce,De].join("|")+")"+Ne+Ue+")*"),qe="(?:"+[Te+Le+"?",Le,Ce,De,ze].join("|")+")",$e=RegExp(Pe+"(?="+Pe+")|"+qe+Fe,"g");function Ke(t){return Be(t)?function(t){return t.match($e)||[]}(t):function(t){return t.split("")}(t)}function Ve(t){return function(n){var r=Be(n=Qr(n))?Ke(n):void 0,e=r?r[0]:n.charAt(0),i=r?We(r,1).join(""):n.slice(1);return e[t]()+i}}var Ze=Ve("toUpperCase");function Ge(t){return Ze(Qr(t).toLowerCase())}function Je(t,n,r,e){var i=-1,o=null==t?0:t.length;for(e&&o&&(r=t[++i]);++i=n?t:n)),t}function Di(t,n,r){return void 0===r&&(r=n,n=void 0),void 0!==r&&(r=(r=T(r))==r?r:0),void 0!==n&&(n=(n=T(n))==n?n:0),Ci(T(t),n,r)}function Ui(t){var n=this.__data__=new qr(t);this.size=n.size}function Ni(t,n){return t&&qn(n,Ar(n),t)}Ui.prototype.clear=function(){this.__data__=new qr,this.size=0},Ui.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Ui.prototype.get=function(t){return this.__data__.get(t)},Ui.prototype.has=function(t){return this.__data__.has(t)},Ui.prototype.set=function(t,n){var r=this.__data__;if(r instanceof qr){var e=r.__data__;if(!$r||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Vr(e)}return r.set(t,n),this.size=r.size,this};var Fi="object"==typeof exports&&exports&&!exports.nodeType&&exports,qi=Fi&&"object"==typeof module&&module&&!module.nodeType&&module,$i=qi&&qi.exports===Fi?e.Buffer:void 0,Ki=$i?$i.allocUnsafe:void 0;function Vi(t,n){if(n)return t.slice();var r=t.length,e=Ki?Ki(r):new t.constructor(r);return t.copy(e),e}function Zi(t,n){for(var r=-1,e=null==t?0:t.length,i=0,o=[];++ra))return!1;var c=o.get(t),l=o.get(n);if(c&&l)return c==n&&l==t;var s=-1,v=!0,p=r&yu?new vu:void 0;for(o.set(t,n),o.set(n,t);++s=n||r<0||s&&t-c>=o}function d(){var t=xa();if(h(t))return y(t);a=setTimeout(d,function(t){var r=n-(t-f);return s?Ia(r,o-(t-c)):r}(t))}function y(t){return a=void 0,v&&e?p(t):(e=i=void 0,u)}function _(){var t=xa(),r=h(t);if(e=arguments,i=this,f=t,r){if(void 0===a)return function(t){return c=t,a=setTimeout(d,n),l?p(t):u}(f);if(s)return clearTimeout(a),a=setTimeout(d,n),p(f)}return void 0===a&&(a=setTimeout(d,n)),u}return n=T(n)||0,R(r)&&(l=!!r.leading,o=(s="maxWait"in r)?Aa(T(r.maxWait)||0,n):o,v="trailing"in r?!!r.trailing:v),_.cancel=function(){void 0!==a&&clearTimeout(a),c=0,e=f=i=a=void 0},_.flush=function(){return void 0===a?u:y(xa())},_}function ka(t,n){return null==t||t!=t?n:t}var Sa=Object.prototype,Wa=Sa.hasOwnProperty,Ra=Vn((function(t,n){t=Object(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&Hn(n[0],n[1],i)&&(e=1);++r=$a&&(o=hu,u=!1,n=new vu(n));t:for(;++i=0&&t.slice(r,i)==n}function sf(t){return function(n){var r=_o(n);return"[object Map]"==r?gu(n):"[object Set]"==r?function(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=[t,t]})),r}(n):function(t,n){return b(n,(function(n){return[n,t[n]]}))}(n,t(n))}}var vf=sf(Ar),pf=sf(Wr),hf=He({"&":"&","<":"<",">":">",'"':""","'":"'"}),df=/[&<>"']/g,yf=RegExp(df.source);function _f(t){return(t=Qr(t))&&yf.test(t)?t.replace(df,hf):t}var gf=/[\\^$.*+?()[\]{}|]/g,bf=RegExp(gf.source);function mf(t){return(t=Qr(t))&&bf.test(t)?t.replace(gf,"\\$&"):t}function jf(t,n){for(var r=-1,e=null==t?0:t.length;++ri?0:i+r),(e=void 0===e||e>i?i:N(e))<0&&(e+=i),e=r>e?0:Af(e);r-1?i[o?n[u]:u]:void 0}}var Wf=Math.max;function Rf(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:N(r);return i<0&&(i=Wf(e+i,0)),Kt(t,oa(n),i)}var Bf=Sf(Rf);function Mf(t,n,r){var e;return r(t,(function(t,r,i){if(n(t,r,i))return e=r,!1})),e}function zf(t,n){return Mf(t,oa(n),pa)}var Lf=Math.max,Pf=Math.min;function Tf(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e-1;return void 0!==r&&(i=N(r),i=r<0?Lf(e+i,0):Pf(i,e-1)),Kt(t,oa(n),i,!0)}var Cf=Sf(Tf);function Df(t,n){return Mf(t,oa(n),af)}function Uf(t){return t&&t.length?t[0]:void 0}function Nf(t,n){var r=-1,e=Jn(t)?Array(t.length):[];return da(t,(function(t,i,o){e[++r]=n(t,i,o)})),e}function Ff(t,n){return(m(t)?b:Nf)(t,oa(n))}function qf(t,n){return fe(Ff(t,n),1)}function $f(t,n){return fe(Ff(t,n),Infinity)}function Kf(t,n,r){return r=void 0===r?1:N(r),fe(Ff(t,n),r)}function Vf(t){return(null==t?0:t.length)?fe(t,Infinity):[]}function Zf(t,n){return(null==t?0:t.length)?fe(t,n=void 0===n?1:N(n)):[]}function Gf(t){return Pn(t,512)}var Jf=Bi("floor");function Hf(t){return le((function(n){var r=n.length,e=r,i=kt.prototype.thru;for(t&&n.reverse();e--;){var o=n[e];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!u&&"wrapper"==Et(o))var u=new kt([],!0)}for(e=u?e:r;++en}function lc(t){return function(n,r){return"string"==typeof n&&"string"==typeof r||(n=T(n),r=T(r)),t(n,r)}}var sc=lc(cc),vc=lc((function(t,n){return t>=n})),pc=Object.prototype.hasOwnProperty;function hc(t,n){return null!=t&&pc.call(t,n)}function dc(t,n){return null!=t&&Qu(t,n,hc)}var yc=Math.max,_c=Math.min;function gc(t,n,r){return n=U(n),void 0===r?(r=n,n=0):r=U(r),function(t,n,r){return t>=_c(n,r)&&t-1:!!i&&Zt(t,n,r)>-1}var Ac=Math.max;function Ic(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:N(r);return i<0&&(i=Ac(e+i,0)),Zt(t,n,i)}function Ec(t){return(null==t?0:t.length)?Se(t,0,-1):[]}var kc=Math.min;function Sc(t,n,r){for(var e=r?qa:Gt,i=t[0].length,o=t.length,u=o,a=Array(o),f=1/0,c=[];u--;){var l=t[u];u&&n&&(l=b(l,vr(n))),f=kc(l.length,f),a[u]=!r&&(n||i>=120&&l.length>=120)?new vu(u&&l):void 0}l=t[0];var s=-1,v=a[0];t:for(;++s=-9007199254740991&&t<=dl}function _l(t){return void 0===t}function gl(t){return h(t)&&"[object WeakMap]"==_o(t)}function bl(t){return h(t)&&"[object WeakSet]"==p(t)}function ml(t){return oa("function"==typeof t?t:iu(t,1))}var jl=Array.prototype.join;function wl(t,n){return null==t?"":jl.call(t,n)}var xl=Ei((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),Ol=_a((function(t,n,r){Dn(t,r,n)}));var Al=Math.max,Il=Math.min;function El(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return void 0!==r&&(i=(i=N(r))<0?Al(e+i,0):Il(i,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,i):Kt(t,Vt,i,!0)}var kl=Ei((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),Sl=Ve("toLowerCase");function Wl(t,n){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}}function os(t,n){var r=t.length;if(r)return fn(n+=n<0?r:0,r)?t[n]:void 0}function us(t,n){return t&&t.length?os(t,N(n)):void 0}function as(t){return t=N(t),Vn((function(n){return os(n,t)}))}function fs(t,n){return null==(t=Nc(t,n=Xr(n,t)))||delete t[ne(Za(n))]}function cs(t){return be(t)?void 0:t}var ls=le((function(t,n){var r={};if(null==t)return r;var e=!1;n=b(n,(function(n){return n=Xr(n,t),e||(e=n.length>1),n})),qn(t,no(t),r),e&&(r=iu(r,7,cs));for(var i=n.length;i--;)fs(r,n[i]);return r}));function ss(t,n,r,e){if(!R(t))return t;for(var i=-1,o=(n=Xr(n,t)).length,u=o-1,a=t;null!=a&&++in||o&&u&&f&&!a&&!c||e&&u&&f||!r&&f||!i)return 1;if(!e&&!o&&!c&&t=a?f:f*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function gs(t,n,r,e){return null==t?[]:(m(n)||(n=null==n?[]:[n]),m(r=e?void 0:r)||(r=null==r?[]:[r]),_s(t,n,r))}function bs(t){return le((function(n){return n=b(n,vr(oa)),Vn((function(r){var e=this;return t(n,(function(t){return dt(t,e,r)}))}))}))}var ms=bs(b),js=Vn,ws=Math.min,xs=js((function(t,n){var r=(n=1==n.length&&m(n[0])?b(n[0],vr(oa)):b(fe(n,1),vr(oa))).length;return Vn((function(e){for(var i=-1,o=ws(e.length,r);++iIs)return r;do{n%2&&(r+=t),(n=Es(n/2))&&(t+=t)}while(n);return r}var Ss=ea("length"),Ws="\\ud800-\\udfff",Rs="["+Ws+"]",Bs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ms="\\ud83c[\\udffb-\\udfff]",zs="[^"+Ws+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Ps="[\\ud800-\\udbff][\\udc00-\\udfff]",Ts="(?:"+Bs+"|"+Ms+")"+"?",Cs="[\\ufe0e\\ufe0f]?",Ds=Cs+Ts+("(?:\\u200d(?:"+[zs,Ls,Ps].join("|")+")"+Cs+Ts+")*"),Us="(?:"+[zs+Bs+"?",Bs,Ls,Ps,Rs].join("|")+")",Ns=RegExp(Ms+"(?="+Ms+")|"+Us+Ds,"g");function Fs(t){return Be(t)?function(t){for(var n=Ns.lastIndex=0;Ns.test(t);)++n;return n}(t):Ss(t)}var qs=Math.ceil;function $s(t,n){var r=(n=void 0===n?" ":O(n)).length;if(r<2)return r?ks(n,t):n;var e=ks(n,qs(t/Fs(n)));return Be(n)?We(Ke(e),0,t).join(""):e.slice(0,t)}var Ks=Math.ceil,Vs=Math.floor;function Zs(t,n,r){t=Qr(t);var e=(n=N(n))?Fs(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return $s(Vs(i),r)+t+$s(Ks(i),r)}function Gs(t,n,r){t=Qr(t);var e=(n=N(n))?Fs(t):0;return n&&e-1;)a!==t&&uv.call(a,f,1),uv.call(t,f,1);return t}function fv(t,n){return t&&t.length&&n&&n.length?av(t,n):t}var cv=Vn(fv);function lv(t,n,r){return t&&t.length&&n&&n.length?av(t,n,oa(r)):t}function sv(t,n,r){return t&&t.length&&n&&n.length?av(t,n,void 0,r):t}var vv=Array.prototype.splice;function pv(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==o){var o=i;fn(i)?vv.call(t,i,1):fs(t,i)}}return t}var hv=le((function(t,n){var r=null==t?0:t.length,e=ie(t,n);return pv(t,b(n,(function(t){return fn(t,r)?+t:t})).sort(ys)),e})),dv=Math.floor,yv=Math.random;function _v(t,n){return t+dv(yv()*(n-t+1))}var gv=parseFloat,bv=Math.min,mv=Math.random;function jv(t,n,r){if(r&&"boolean"!=typeof r&&Hn(t,n,r)&&(n=r=void 0),void 0===r&&("boolean"==typeof n?(r=n,n=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=U(t),void 0===n?(n=t,t=0):n=U(n)),t>n){var e=t;t=n,n=e}if(r||t%1||n%1){var i=mv();return bv(t+i*(n-t+gv("1e-"+((i+"").length-1))),n)}return _v(t,n)}var wv=Math.ceil,xv=Math.max;function Ov(t){return function(n,r,e){return e&&"number"!=typeof e&&Hn(n,r,e)&&(r=e=void 0),n=U(n),void 0===r?(r=n,n=0):r=U(r),function(t,n,r,e){for(var i=-1,o=xv(wv((n-t)/(r||1)),0),u=Array(o);o--;)u[e?o:++i]=t,t+=r;return u}(n,r,e=void 0===e?n1&&Hn(t,n[0],n[1])?n=[]:r>2&&Hn(n[0],n[1],n[2])&&(n=[n[0]]),_s(t,fe(n,1),[])})),op=4294967294,up=Math.floor,ap=Math.min;function fp(t,n,r,e){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var u=(n=r(n))!=n,a=null===n,f=y(n),c=void 0===n;i>>1,u=t[o];null!==u&&!y(u)&&(r?u<=n:u>>0)?(t=Qr(t))&&("string"==typeof n||null!=n&&!hl(n))&&!(n=O(n))&&Be(t)?We(Ke(t),0,r):t.split(n,r):[]}var jp=Math.max;function wp(t,n){if("function"!=typeof t)throw new TypeError("Expected a function");return n=null==n?0:jp(N(n),0),Vn((function(r){var e=r[n],i=We(r,0,n);return e&&oe(i,e),dt(t,this,i)}))}var xp=Ei((function(t,n,r){return t+(r?" ":"")+Ze(n)}));function Op(t,n,r){return t=Qr(t),r=null==r?0:Ci(N(r),0,t.length),n=O(n),t.slice(r,r+n.length)==n}function Ap(){return{}}function Ip(){return""}function Ep(){return!0}var kp=A((function(t,n){return t-n}),0);function Sp(t){return t&&t.length?Ul(t,q):0}function Wp(t,n){return t&&t.length?Ul(t,oa(n)):0}function Rp(t){var n=null==t?0:t.length;return n?Se(t,1,n):[]}function Bp(t,n,r){return t&&t.length?Se(t,0,(n=r||void 0===n?1:N(n))<0?0:n):[]}function Mp(t,n,r){var e=null==t?0:t.length;return e?Se(t,(n=e-(n=r||void 0===n?1:N(n)))<0?0:n,e):[]}function zp(t,n){return t&&t.length?Xa(t,oa(n),!1,!0):[]}function Lp(t,n){return t&&t.length?Xa(t,oa(n)):[]}function Pp(t,n){return n(t),t}var Tp=Object.prototype,Cp=Tp.hasOwnProperty;function Dp(t,n,r,e){return void 0===t||Un(t,Tp[r])&&!Cp.call(e,r)?n:t}var Up={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Np(t){return"\\"+Up[t]}var Fp=/<%=([\s\S]+?)%>/g,qp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Fp,variable:"",imports:{_:{escape:_f}}},$p=/\b__p \+= '';/g,Kp=/\b(__p \+=) '' \+/g,Vp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zp=/[()=,{}\[\]\/\s]/,Gp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jp=/($^)/,Hp=/['\n\r\u2028\u2029\\]/g,Yp=Object.prototype.hasOwnProperty;function Qp(t,n,r){var e=qp.imports._.templateSettings||qp;r&&Hn(t,n,r)&&(n=void 0),t=Qr(t),n=Br({},n,e,Dp);var i,o,u=Br({},n.imports,e.imports,Dp),a=Ar(u),f=jc(u,a),c=0,l=n.interpolate||Jp,s="__p += '",v=RegExp((n.escape||Jp).source+"|"+l.source+"|"+(l===Fp?Gp:Jp).source+"|"+(n.evaluate||Jp).source+"|$","g"),p=Yp.call(n,"sourceURL")?"//# sourceURL="+(n.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(v,(function(n,r,e,u,a,f){return e||(e=u),s+=t.slice(c,f).replace(Hp,Np),r&&(i=!0,s+="' +\n__e("+r+") +\n'"),a&&(o=!0,s+="';\n"+a+";\n__p += '"),e&&(s+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),c=f+n.length,n})),s+="';\n";var h=Yp.call(n,"variable")&&n.variable;if(h){if(Zp.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(o?s.replace($p,""):s).replace(Kp,"$1").replace(Vp,"$1;"),s="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var d=xe((function(){return Function(a,p+"return "+s).apply(void 0,f)}));if(d.source=s,we(d))throw d;return d}function Xp(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return R(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),Ea(t,n,{leading:e,maxWait:n,trailing:i})}function th(t,n){return n(t)}var nh=4294967295,rh=Math.min;function eh(t,n){if((t=N(t))<1||t>9007199254740991)return[];var r=nh,e=rh(t,nh);n=rf(n),t-=nh;for(var i=tr(e,n);++r-1;);return r}function hh(t,n){for(var r=-1,e=t.length;++r-1;);return r}function dh(t,n,r){if((t=Qr(t))&&(r||void 0===n))return W(t);if(!t||!(n=O(n)))return t;var e=Ke(t),i=Ke(n);return We(e,hh(e,i),ph(e,i)+1).join("")}function yh(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.slice(0,k(t)+1);if(!t||!(n=O(n)))return t;var e=Ke(t);return We(e,0,ph(e,Ke(n))+1).join("")}var _h=/^\s+/;function gh(t,n,r){if((t=Qr(t))&&(r||void 0===n))return t.replace(_h,"");if(!t||!(n=O(n)))return t;var e=Ke(t);return We(e,hh(e,Ke(n))).join("")}var bh=/\w*$/;function mh(t,n){var r=30,e="...";if(R(n)){var i="separator"in n?n.separator:i;r="length"in n?N(n.length):r,e="omission"in n?O(n.omission):e}var o=(t=Qr(t)).length;if(Be(t)){var u=Ke(t);o=u.length}if(r>=o)return t;var a=r-Fs(e);if(a<1)return e;var f=u?We(u,0,a).join(""):t.slice(0,a);if(void 0===i)return f+e;if(u&&(a+=f.length-a),hl(i)){if(t.slice(a).search(i)){var c,l=f;for(i.global||(i=RegExp(i.source,Qr(bh.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var s=c.index;f=f.slice(0,void 0===s?a:s)}}else if(t.indexOf(O(i),a)!=a){var v=f.lastIndexOf(i);v>-1&&(f=f.slice(0,v))}return f+e}function jh(t){return Cn(t,1)}var wh=He({"&":"&","<":"<",">":">",""":'"',"'":"'"}),xh=/&(?:amp|lt|gt|quot|#39);/g,Oh=RegExp(xh.source);function Ah(t){return(t=Qr(t))&&Oh.test(t)?t.replace(xh,wh):t}var Ih=io&&1/bu(new io([,-0]))[1]==1/0?function(t){return new io(t)}:xt,Eh=200;function kh(t,n,r){var e=-1,i=Gt,o=t.length,u=!0,a=[],f=a;if(r)u=!1,i=qa;else if(o>=Eh){var c=n?null:Ih(t);if(c)return bu(c);u=!1,i=hu,f=new vu}else f=n?[]:a;t:for(;++e1||this.__actions__.length)&&e instanceof wt&&fn(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:th,args:[i],thisArg:void 0}),new kt(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function Jh(){return zi(this)}function Hh(){var t=this.__wrapped__;if(t instanceof wt){var n=t;return this.__actions__.length&&(n=new wt(this)),(n=n.reverse()).__actions__.push({func:th,args:[Dv],thisArg:void 0}),new kt(n,this.__chain__)}return this.thru(Dv)}function Yh(t,n,r){var e=t.length;if(e<2)return e?kh(t[0]):[];for(var i=-1,o=Array(e);++i1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Uh(t,r)})),ud={chunk:Ti,compact:lu,concat:su,difference:Va,differenceBy:Ga,differenceWith:Ja,drop:Ya,dropRight:Qa,dropRightWhile:tf,dropWhile:nf,fill:If,findIndex:Rf,findLastIndex:Tf,first:Uf,flatten:ce,flattenDeep:Vf,flattenDepth:Zf,fromPairs:ec,head:Uf,indexOf:Ic,initial:Ec,intersection:Rc,intersectionBy:Bc,intersectionWith:Mc,join:wl,last:Za,lastIndexOf:El,nth:us,pull:cv,pullAll:fv,pullAllBy:lv,pullAllWith:sv,pullAt:hv,remove:Mv,reverse:Dv,slice:tp,sortedIndex:sp,sortedIndexBy:vp,sortedIndexOf:pp,sortedLastIndex:hp,sortedLastIndexBy:dp,sortedLastIndexOf:yp,sortedUniq:gp,sortedUniqBy:bp,tail:Rp,take:Bp,takeRight:Mp,takeRightWhile:zp,takeWhile:Lp,union:Sh,unionBy:Wh,unionWith:Rh,uniq:Bh,uniqBy:Mh,uniqWith:zh,unzip:Dh,unzipWith:Uh,without:Vh,xor:Qh,xorBy:Xh,xorWith:td,zip:nd,zipObject:ed,zipObjectDeep:id,zipWith:od},ad={countBy:ba,each:ef,eachRight:cf,every:xf,filter:kf,find:Bf,findLast:Cf,flatMap:qf,flatMapDeep:$f,flatMapDepth:Kf,forEach:ef,forEachRight:cf,groupBy:fc,includes:Oc,invokeMap:$c,keyBy:Ol,map:Ff,orderBy:gs,partition:nv,reduce:Sv,reduceRight:Rv,reject:Bv,sample:qv,sampleSize:Zv,shuffle:Qv,size:Xv,some:ep,sortBy:ip},fd=xa,cd={after:F,ary:Cn,before:Ae,bind:Ie,bindKey:ke,curry:ja,curryRight:wa,debounce:Ea,defer:Na,delay:Fa,flip:Gf,memoize:Gr,negate:Xl,once:ds,overArgs:xs,partial:Xs,partialRight:tv,rearg:Ev,rest:Pv,spread:wp,throttle:Xp,unary:jh,wrap:Zh},ld={castArray:Si,clone:ou,cloneDeep:uu,cloneDeepWith:au,cloneWith:fu,conformsTo:ca,eq:Un,gt:sc,gte:vc,isArguments:or,isArray:m,isArrayBuffer:Vc,isArrayLike:Jn,isArrayLikeObject:Ma,isBoolean:Zc,isBuffer:lr,isDate:Jc,isElement:Hc,isEmpty:Qc,isEqual:Xc,isEqualWith:tl,isError:we,isFinite:rl,isFunction:G,isInteger:el,isLength:Gn,isMap:Zo,isMatch:il,isMatchWith:ol,isNaN:fl,isNative:ll,isNil:sl,isNull:vl,isNumber:al,isObject:R,isObjectLike:h,isPlainObject:be,isRegExp:hl,isSafeInteger:yl,isSet:Jo,isString:mc,isSymbol:y,isTypedArray:gr,isUndefined:_l,isWeakMap:gl,isWeakSet:bl,lt:Rl,lte:Bl,toArray:es,toFinite:U,toInteger:N,toLength:Af,toNumber:T,toPlainObject:La,toSafeInteger:lh,toString:Qr},sd={add:I,ceil:Mi,divide:Ha,floor:Jf,max:Cl,maxBy:Dl,mean:ql,meanBy:$l,min:Gl,minBy:Jl,multiply:Yl,round:Uv,subtract:kp,sum:Sp,sumBy:Wp},vd=Di,pd=gc,hd=jv,dd={assign:Er,assignIn:Rr,assignInWith:Br,assignWith:Mr,at:se,create:ma,defaults:Ra,defaultsDeep:Da,entries:vf,entriesIn:pf,extend:Rr,extendWith:Br,findKey:zf,findLastKey:Df,forIn:Xf,forInRight:tc,forOwn:nc,forOwnRight:rc,functions:oc,functionsIn:uc,get:ee,has:dc,hasIn:Xu,invert:Pc,invertBy:Uc,invoke:qc,keys:Ar,keysIn:Wr,mapKeys:Ml,mapValues:zl,merge:Kl,mergeWith:Ca,omit:ls,omitBy:hs,pick:rv,pickBy:ps,result:Tv,set:Gv,setWith:Jv,toPairs:vf,toPairsIn:pf,transform:vh,unset:Th,update:Fh,updateWith:qh,values:wc,valuesIn:Kh},yd={at:Gh,chain:zi,commit:cu,lodash:Bt,next:is,plant:ev,reverse:Hh,tap:Pp,thru:th,toIterator:ih,toJSON:uh,value:uh,valueOf:uh,wrapperChain:Jh},_d={camelCase:ki,capitalize:Ge,deburr:ti,endsWith:lf,escape:_f,escapeRegExp:mf,kebabCase:xl,lowerCase:kl,lowerFirst:Sl,pad:Zs,padEnd:Gs,padStart:Js,parseInt:Qs,repeat:zv,replace:Lv,snakeCase:np,split:mp,startCase:xp,startsWith:Op,template:Qp,templateSettings:qp,toLower:ah,toUpper:sh,trim:dh,trimEnd:yh,trimStart:gh,truncate:mh,unescape:Ah,upperCase:$h,upperFirst:Ze,words:Ai},gd={attempt:xe,bindAll:Ee,cond:ua,conforms:fa,constant:Ut,defaultTo:ka,flow:Yf,flowRight:Qf,identity:q,iteratee:ml,matches:Ll,matchesProperty:Pl,method:Vl,methodOf:Zl,mixin:Hl,noop:xt,nthArg:as,over:ms,overEvery:Os,overSome:As,property:ia,propertyOf:iv,range:Av,rangeRight:Iv,stubArray:Gi,stubFalse:ur,stubObject:Ap,stubString:Ip,stubTrue:Ep,times:eh,toPath:fh,uniqueId:Ph};var bd=Math.max,md=Math.min;var jd=Math.min; +/** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ +var wd,xd=4294967295,Od=Array.prototype,Ad=Object.prototype.hasOwnProperty,Id=i?i.iterator:void 0,Ed=Math.max,kd=Math.min,Sd=function(t){return function(n,r,e){if(null==e){var i=R(r),o=i&&Ar(r),u=o&&o.length&&ic(r,o);(u?u.length:i)||(e=r,r=n,n=this)}return t(n,r,e)}}(Hl);Bt.after=cd.after,Bt.ary=cd.ary,Bt.assign=dd.assign,Bt.assignIn=dd.assignIn,Bt.assignInWith=dd.assignInWith,Bt.assignWith=dd.assignWith,Bt.at=dd.at,Bt.before=cd.before,Bt.bind=cd.bind,Bt.bindAll=gd.bindAll,Bt.bindKey=cd.bindKey,Bt.castArray=ld.castArray,Bt.chain=yd.chain,Bt.chunk=ud.chunk,Bt.compact=ud.compact,Bt.concat=ud.concat,Bt.cond=gd.cond,Bt.conforms=gd.conforms,Bt.constant=gd.constant,Bt.countBy=ad.countBy,Bt.create=dd.create,Bt.curry=cd.curry,Bt.curryRight=cd.curryRight,Bt.debounce=cd.debounce,Bt.defaults=dd.defaults,Bt.defaultsDeep=dd.defaultsDeep,Bt.defer=cd.defer,Bt.delay=cd.delay,Bt.difference=ud.difference,Bt.differenceBy=ud.differenceBy,Bt.differenceWith=ud.differenceWith,Bt.drop=ud.drop,Bt.dropRight=ud.dropRight,Bt.dropRightWhile=ud.dropRightWhile,Bt.dropWhile=ud.dropWhile,Bt.fill=ud.fill,Bt.filter=ad.filter,Bt.flatMap=ad.flatMap,Bt.flatMapDeep=ad.flatMapDeep,Bt.flatMapDepth=ad.flatMapDepth,Bt.flatten=ud.flatten,Bt.flattenDeep=ud.flattenDeep,Bt.flattenDepth=ud.flattenDepth,Bt.flip=cd.flip,Bt.flow=gd.flow,Bt.flowRight=gd.flowRight,Bt.fromPairs=ud.fromPairs,Bt.functions=dd.functions,Bt.functionsIn=dd.functionsIn,Bt.groupBy=ad.groupBy,Bt.initial=ud.initial,Bt.intersection=ud.intersection,Bt.intersectionBy=ud.intersectionBy,Bt.intersectionWith=ud.intersectionWith,Bt.invert=dd.invert,Bt.invertBy=dd.invertBy,Bt.invokeMap=ad.invokeMap,Bt.iteratee=gd.iteratee,Bt.keyBy=ad.keyBy,Bt.keys=Ar,Bt.keysIn=dd.keysIn,Bt.map=ad.map,Bt.mapKeys=dd.mapKeys,Bt.mapValues=dd.mapValues,Bt.matches=gd.matches,Bt.matchesProperty=gd.matchesProperty,Bt.memoize=cd.memoize,Bt.merge=dd.merge,Bt.mergeWith=dd.mergeWith,Bt.method=gd.method,Bt.methodOf=gd.methodOf,Bt.mixin=Sd,Bt.negate=Xl,Bt.nthArg=gd.nthArg,Bt.omit=dd.omit,Bt.omitBy=dd.omitBy,Bt.once=cd.once,Bt.orderBy=ad.orderBy,Bt.over=gd.over,Bt.overArgs=cd.overArgs,Bt.overEvery=gd.overEvery,Bt.overSome=gd.overSome,Bt.partial=cd.partial,Bt.partialRight=cd.partialRight,Bt.partition=ad.partition,Bt.pick=dd.pick,Bt.pickBy=dd.pickBy,Bt.property=gd.property,Bt.propertyOf=gd.propertyOf,Bt.pull=ud.pull,Bt.pullAll=ud.pullAll,Bt.pullAllBy=ud.pullAllBy,Bt.pullAllWith=ud.pullAllWith,Bt.pullAt=ud.pullAt,Bt.range=gd.range,Bt.rangeRight=gd.rangeRight,Bt.rearg=cd.rearg,Bt.reject=ad.reject,Bt.remove=ud.remove,Bt.rest=cd.rest,Bt.reverse=ud.reverse,Bt.sampleSize=ad.sampleSize,Bt.set=dd.set,Bt.setWith=dd.setWith,Bt.shuffle=ad.shuffle,Bt.slice=ud.slice,Bt.sortBy=ad.sortBy,Bt.sortedUniq=ud.sortedUniq,Bt.sortedUniqBy=ud.sortedUniqBy,Bt.split=_d.split,Bt.spread=cd.spread,Bt.tail=ud.tail,Bt.take=ud.take,Bt.takeRight=ud.takeRight,Bt.takeRightWhile=ud.takeRightWhile,Bt.takeWhile=ud.takeWhile,Bt.tap=yd.tap,Bt.throttle=cd.throttle,Bt.thru=th,Bt.toArray=ld.toArray,Bt.toPairs=dd.toPairs,Bt.toPairsIn=dd.toPairsIn,Bt.toPath=gd.toPath,Bt.toPlainObject=ld.toPlainObject,Bt.transform=dd.transform,Bt.unary=cd.unary,Bt.union=ud.union,Bt.unionBy=ud.unionBy,Bt.unionWith=ud.unionWith,Bt.uniq=ud.uniq,Bt.uniqBy=ud.uniqBy,Bt.uniqWith=ud.uniqWith,Bt.unset=dd.unset,Bt.unzip=ud.unzip,Bt.unzipWith=ud.unzipWith,Bt.update=dd.update,Bt.updateWith=dd.updateWith,Bt.values=dd.values,Bt.valuesIn=dd.valuesIn,Bt.without=ud.without,Bt.words=_d.words,Bt.wrap=cd.wrap,Bt.xor=ud.xor,Bt.xorBy=ud.xorBy,Bt.xorWith=ud.xorWith,Bt.zip=ud.zip,Bt.zipObject=ud.zipObject,Bt.zipObjectDeep=ud.zipObjectDeep,Bt.zipWith=ud.zipWith,Bt.entries=dd.toPairs,Bt.entriesIn=dd.toPairsIn,Bt.extend=dd.assignIn,Bt.extendWith=dd.assignInWith,Sd(Bt,Bt),Bt.add=sd.add,Bt.attempt=gd.attempt,Bt.camelCase=_d.camelCase,Bt.capitalize=_d.capitalize,Bt.ceil=sd.ceil,Bt.clamp=vd,Bt.clone=ld.clone,Bt.cloneDeep=ld.cloneDeep,Bt.cloneDeepWith=ld.cloneDeepWith,Bt.cloneWith=ld.cloneWith,Bt.conformsTo=ld.conformsTo,Bt.deburr=_d.deburr,Bt.defaultTo=gd.defaultTo,Bt.divide=sd.divide,Bt.endsWith=_d.endsWith,Bt.eq=ld.eq,Bt.escape=_d.escape,Bt.escapeRegExp=_d.escapeRegExp,Bt.every=ad.every,Bt.find=ad.find,Bt.findIndex=ud.findIndex,Bt.findKey=dd.findKey,Bt.findLast=ad.findLast,Bt.findLastIndex=ud.findLastIndex,Bt.findLastKey=dd.findLastKey,Bt.floor=sd.floor,Bt.forEach=ad.forEach,Bt.forEachRight=ad.forEachRight,Bt.forIn=dd.forIn,Bt.forInRight=dd.forInRight,Bt.forOwn=dd.forOwn,Bt.forOwnRight=dd.forOwnRight,Bt.get=dd.get,Bt.gt=ld.gt,Bt.gte=ld.gte,Bt.has=dd.has,Bt.hasIn=dd.hasIn,Bt.head=ud.head,Bt.identity=q,Bt.includes=ad.includes,Bt.indexOf=ud.indexOf,Bt.inRange=pd,Bt.invoke=dd.invoke,Bt.isArguments=ld.isArguments,Bt.isArray=m,Bt.isArrayBuffer=ld.isArrayBuffer,Bt.isArrayLike=ld.isArrayLike,Bt.isArrayLikeObject=ld.isArrayLikeObject,Bt.isBoolean=ld.isBoolean,Bt.isBuffer=ld.isBuffer,Bt.isDate=ld.isDate,Bt.isElement=ld.isElement,Bt.isEmpty=ld.isEmpty,Bt.isEqual=ld.isEqual,Bt.isEqualWith=ld.isEqualWith,Bt.isError=ld.isError,Bt.isFinite=ld.isFinite,Bt.isFunction=ld.isFunction,Bt.isInteger=ld.isInteger,Bt.isLength=ld.isLength,Bt.isMap=ld.isMap,Bt.isMatch=ld.isMatch,Bt.isMatchWith=ld.isMatchWith,Bt.isNaN=ld.isNaN,Bt.isNative=ld.isNative,Bt.isNil=ld.isNil,Bt.isNull=ld.isNull,Bt.isNumber=ld.isNumber,Bt.isObject=R,Bt.isObjectLike=ld.isObjectLike,Bt.isPlainObject=ld.isPlainObject,Bt.isRegExp=ld.isRegExp,Bt.isSafeInteger=ld.isSafeInteger,Bt.isSet=ld.isSet,Bt.isString=ld.isString,Bt.isSymbol=ld.isSymbol,Bt.isTypedArray=ld.isTypedArray,Bt.isUndefined=ld.isUndefined,Bt.isWeakMap=ld.isWeakMap,Bt.isWeakSet=ld.isWeakSet,Bt.join=ud.join,Bt.kebabCase=_d.kebabCase,Bt.last=Za,Bt.lastIndexOf=ud.lastIndexOf,Bt.lowerCase=_d.lowerCase,Bt.lowerFirst=_d.lowerFirst,Bt.lt=ld.lt,Bt.lte=ld.lte,Bt.max=sd.max,Bt.maxBy=sd.maxBy,Bt.mean=sd.mean,Bt.meanBy=sd.meanBy,Bt.min=sd.min,Bt.minBy=sd.minBy,Bt.stubArray=gd.stubArray,Bt.stubFalse=gd.stubFalse,Bt.stubObject=gd.stubObject,Bt.stubString=gd.stubString,Bt.stubTrue=gd.stubTrue,Bt.multiply=sd.multiply,Bt.nth=ud.nth,Bt.noop=gd.noop,Bt.now=fd,Bt.pad=_d.pad,Bt.padEnd=_d.padEnd,Bt.padStart=_d.padStart,Bt.parseInt=_d.parseInt,Bt.random=hd,Bt.reduce=ad.reduce,Bt.reduceRight=ad.reduceRight,Bt.repeat=_d.repeat,Bt.replace=_d.replace,Bt.result=dd.result,Bt.round=sd.round,Bt.sample=ad.sample,Bt.size=ad.size,Bt.snakeCase=_d.snakeCase,Bt.some=ad.some,Bt.sortedIndex=ud.sortedIndex,Bt.sortedIndexBy=ud.sortedIndexBy,Bt.sortedIndexOf=ud.sortedIndexOf,Bt.sortedLastIndex=ud.sortedLastIndex,Bt.sortedLastIndexBy=ud.sortedLastIndexBy,Bt.sortedLastIndexOf=ud.sortedLastIndexOf,Bt.startCase=_d.startCase,Bt.startsWith=_d.startsWith,Bt.subtract=sd.subtract,Bt.sum=sd.sum,Bt.sumBy=sd.sumBy,Bt.template=_d.template,Bt.times=gd.times,Bt.toFinite=ld.toFinite,Bt.toInteger=N,Bt.toLength=ld.toLength,Bt.toLower=_d.toLower,Bt.toNumber=ld.toNumber,Bt.toSafeInteger=ld.toSafeInteger,Bt.toString=ld.toString,Bt.toUpper=_d.toUpper,Bt.trim=_d.trim,Bt.trimEnd=_d.trimEnd,Bt.trimStart=_d.trimStart,Bt.truncate=_d.truncate,Bt.unescape=_d.unescape,Bt.uniqueId=gd.uniqueId,Bt.upperCase=_d.upperCase,Bt.upperFirst=_d.upperFirst,Bt.each=ad.forEach,Bt.eachRight=ad.forEachRight,Bt.first=ud.head,Sd(Bt,(wd={},pa(Bt,(function(t,n){Ad.call(Bt.prototype,n)||(wd[n]=t)})),wd),{chain:!1}),Bt.VERSION="4.17.21",(Bt.templateSettings=_d.templateSettings).imports._=Bt,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bt[t].placeholder=Bt})),$t(["drop","take"],(function(t,n){wt.prototype[t]=function(r){r=void 0===r?1:Ed(N(r),0);var e=this.__filtered__&&!n?new wt(this):this.clone();return e.__filtered__?e.__takeCount__=kd(r,e.__takeCount__):e.__views__.push({size:kd(r,xd),type:t+(e.__dir__<0?"Right":"")}),e},wt.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),$t(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;wt.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:oa(t),type:r}),n.__filtered__=n.__filtered__||e,n}})),$t(["head","last"],(function(t,n){var r="take"+(n?"Right":"");wt.prototype[t]=function(){return this[r](1).value()[0]}})),$t(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");wt.prototype[t]=function(){return this.__filtered__?new wt(this):this[r](1)}})),wt.prototype.compact=function(){return this.filter(q)},wt.prototype.find=function(t){return this.filter(t).head()},wt.prototype.findLast=function(t){return this.reverse().find(t)},wt.prototype.invokeMap=Vn((function(t,n){return"function"==typeof t?new wt(this):this.map((function(r){return Fc(r,t,n)}))})),wt.prototype.reject=function(t){return this.filter(Xl(oa(t)))},wt.prototype.slice=function(t,n){t=N(t);var r=this;return r.__filtered__&&(t>0||n<0)?new wt(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=N(n))<0?r.dropRight(-n):r.take(n-t)),r)},wt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},wt.prototype.toArray=function(){return this.take(xd)},pa(wt.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Bt[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Bt.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof wt,f=u[0],c=a||m(n),l=function(t){var n=i.apply(Bt,oe([t],u));return e&&s?n[0]:n};c&&r&&"function"==typeof f&&1!=f.length&&(a=c=!1);var s=this.__chain__,v=!!this.__actions__.length,p=o&&!s,h=a&&!v;if(!o&&c){n=h?n:new wt(this);var d=t.apply(n,u);return d.__actions__.push({func:th,args:[l],thisArg:void 0}),new kt(d,s)}return p&&h?t.apply(this,u):(d=this.thru(l),p?e?d.value()[0]:d.value():d)})})),$t(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Od[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Bt.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(m(i)?i:[],t)}return this[r]((function(r){return n.apply(m(r)?r:[],t)}))}})),pa(wt.prototype,(function(t,n){var r=Bt[n];if(r){var e=r.name+"";Ad.call(At,e)||(At[e]=[]),At[e].push({name:n,func:r})}})),At[gn(void 0,2).name]=[{name:"wrapper",func:void 0}],wt.prototype.clone=function(){var t=new wt(this.__wrapped__);return t.__actions__=St(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=St(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=St(this.__views__),t},wt.prototype.reverse=function(){if(this.__filtered__){var t=new wt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},wt.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=m(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e"']/; +const escapeReplace = /[&<>"']/g; +const escapeTestNoEncode = /[<>"']|&(?!#?\w+;)/; +const escapeReplaceNoEncode = /[<>"']|&(?!#?\w+;)/g; +const escapeReplacements = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''' +}; +const getEscapeReplacement = (ch) => escapeReplacements[ch]; +function escape(html, encode) { + if (encode) { + if (escapeTest.test(html)) { + return html.replace(escapeReplace, getEscapeReplacement); + } + } else { + if (escapeTestNoEncode.test(html)) { + return html.replace(escapeReplaceNoEncode, getEscapeReplacement); + } + } + + return html; +} + +const unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig; + +/** + * @param {string} html + */ +function unescape(html) { + // explicitly match decimal, hex, and named HTML entities + return html.replace(unescapeTest, (_, n) => { + n = n.toLowerCase(); + if (n === 'colon') return ':'; + if (n.charAt(0) === '#') { + return n.charAt(1) === 'x' + ? String.fromCharCode(parseInt(n.substring(2), 16)) + : String.fromCharCode(+n.substring(1)); + } + return ''; + }); +} + +const caret = /(^|[^\[])\^/g; + +/** + * @param {string | RegExp} regex + * @param {string} opt + */ +function edit(regex, opt) { + regex = typeof regex === 'string' ? regex : regex.source; + opt = opt || ''; + const obj = { + replace: (name, val) => { + val = val.source || val; + val = val.replace(caret, '$1'); + regex = regex.replace(name, val); + return obj; + }, + getRegex: () => { + return new RegExp(regex, opt); + } + }; + return obj; +} + +const nonWordAndColonTest = /[^\w:]/g; +const originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i; + +/** + * @param {boolean} sanitize + * @param {string} base + * @param {string} href + */ +function cleanUrl(sanitize, base, href) { + if (sanitize) { + let prot; + try { + prot = decodeURIComponent(unescape(href)) + .replace(nonWordAndColonTest, '') + .toLowerCase(); + } catch (e) { + return null; + } + if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) { + return null; + } + } + if (base && !originIndependentUrl.test(href)) { + href = resolveUrl(base, href); + } + try { + href = encodeURI(href).replace(/%25/g, '%'); + } catch (e) { + return null; + } + return href; +} + +const baseUrls = {}; +const justDomain = /^[^:]+:\/*[^/]*$/; +const protocol = /^([^:]+:)[\s\S]*$/; +const domain = /^([^:]+:\/*[^/]*)[\s\S]*$/; + +/** + * @param {string} base + * @param {string} href + */ +function resolveUrl(base, href) { + if (!baseUrls[' ' + base]) { + // we can ignore everything in base after the last slash of its path component, + // but we might need to add _that_ + // https://tools.ietf.org/html/rfc3986#section-3 + if (justDomain.test(base)) { + baseUrls[' ' + base] = base + '/'; + } else { + baseUrls[' ' + base] = rtrim(base, '/', true); + } + } + base = baseUrls[' ' + base]; + const relativeBase = base.indexOf(':') === -1; + + if (href.substring(0, 2) === '//') { + if (relativeBase) { + return href; + } + return base.replace(protocol, '$1') + href; + } else if (href.charAt(0) === '/') { + if (relativeBase) { + return href; + } + return base.replace(domain, '$1') + href; + } else { + return base + href; + } +} + +const noopTest = { exec: function noopTest() { } }; + +function merge(obj) { + let i = 1, + target, + key; + + for (; i < arguments.length; i++) { + target = arguments[i]; + for (key in target) { + if (Object.prototype.hasOwnProperty.call(target, key)) { + obj[key] = target[key]; + } + } + } + + return obj; +} + +function splitCells(tableRow, count) { + // ensure that every cell-delimiting pipe has a space + // before it to distinguish it from an escaped pipe + const row = tableRow.replace(/\|/g, (match, offset, str) => { + let escaped = false, + curr = offset; + while (--curr >= 0 && str[curr] === '\\') escaped = !escaped; + if (escaped) { + // odd number of slashes means | is escaped + // so we leave it alone + return '|'; + } else { + // add space before unescaped | + return ' |'; + } + }), + cells = row.split(/ \|/); + let i = 0; + + // First/last cell in a row cannot be empty if it has no leading/trailing pipe + if (!cells[0].trim()) { cells.shift(); } + if (cells.length > 0 && !cells[cells.length - 1].trim()) { cells.pop(); } + + if (cells.length > count) { + cells.splice(count); + } else { + while (cells.length < count) cells.push(''); + } + + for (; i < cells.length; i++) { + // leading or trailing whitespace is ignored per the gfm spec + cells[i] = cells[i].trim().replace(/\\\|/g, '|'); + } + return cells; +} + +/** + * Remove trailing 'c's. Equivalent to str.replace(/c*$/, ''). + * /c*$/ is vulnerable to REDOS. + * + * @param {string} str + * @param {string} c + * @param {boolean} invert Remove suffix of non-c chars instead. Default falsey. + */ +function rtrim(str, c, invert) { + const l = str.length; + if (l === 0) { + return ''; + } + + // Length of suffix matching the invert condition. + let suffLen = 0; + + // Step left until we fail to match the invert condition. + while (suffLen < l) { + const currChar = str.charAt(l - suffLen - 1); + if (currChar === c && !invert) { + suffLen++; + } else if (currChar !== c && invert) { + suffLen++; + } else { + break; + } + } + + return str.slice(0, l - suffLen); +} + +function findClosingBracket(str, b) { + if (str.indexOf(b[1]) === -1) { + return -1; + } + const l = str.length; + let level = 0, + i = 0; + for (; i < l; i++) { + if (str[i] === '\\') { + i++; + } else if (str[i] === b[0]) { + level++; + } else if (str[i] === b[1]) { + level--; + if (level < 0) { + return i; + } + } + } + return -1; +} + +function checkSanitizeDeprecation(opt) { + if (opt && opt.sanitize && !opt.silent) { + console.warn('marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options'); + } +} + +// copied from https://stackoverflow.com/a/5450113/806777 +/** + * @param {string} pattern + * @param {number} count + */ +function repeatString(pattern, count) { + if (count < 1) { + return ''; + } + let result = ''; + while (count > 1) { + if (count & 1) { + result += pattern; + } + count >>= 1; + pattern += pattern; + } + return result + pattern; +} + +function outputLink(cap, link, raw, lexer) { + const href = link.href; + const title = link.title ? escape(link.title) : null; + const text = cap[1].replace(/\\([\[\]])/g, '$1'); + + if (cap[0].charAt(0) !== '!') { + lexer.state.inLink = true; + const token = { + type: 'link', + raw, + href, + title, + text, + tokens: lexer.inlineTokens(text, []) + }; + lexer.state.inLink = false; + return token; + } else { + return { + type: 'image', + raw, + href, + title, + text: escape(text) + }; + } +} + +function indentCodeCompensation(raw, text) { + const matchIndentToCode = raw.match(/^(\s+)(?:```)/); + + if (matchIndentToCode === null) { + return text; + } + + const indentToCode = matchIndentToCode[1]; + + return text + .split('\n') + .map(node => { + const matchIndentInNode = node.match(/^\s+/); + if (matchIndentInNode === null) { + return node; + } + + const [indentInNode] = matchIndentInNode; + + if (indentInNode.length >= indentToCode.length) { + return node.slice(indentToCode.length); + } + + return node; + }) + .join('\n'); +} + +/** + * Tokenizer + */ +class Tokenizer { + constructor(options) { + this.options = options || defaults; + } + + space(src) { + const cap = this.rules.block.newline.exec(src); + if (cap && cap[0].length > 0) { + return { + type: 'space', + raw: cap[0] + }; + } + } + + code(src) { + const cap = this.rules.block.code.exec(src); + if (cap) { + const text = cap[0].replace(/^ {1,4}/gm, ''); + return { + type: 'code', + raw: cap[0], + codeBlockStyle: 'indented', + text: !this.options.pedantic + ? rtrim(text, '\n') + : text + }; + } + } + + fences(src) { + const cap = this.rules.block.fences.exec(src); + if (cap) { + const raw = cap[0]; + const text = indentCodeCompensation(raw, cap[3] || ''); + + return { + type: 'code', + raw, + lang: cap[2] ? cap[2].trim() : cap[2], + text + }; + } + } + + heading(src) { + const cap = this.rules.block.heading.exec(src); + if (cap) { + let text = cap[2].trim(); + + // remove trailing #s + if (/#$/.test(text)) { + const trimmed = rtrim(text, '#'); + if (this.options.pedantic) { + text = trimmed.trim(); + } else if (!trimmed || / $/.test(trimmed)) { + // CommonMark requires space before trailing #s + text = trimmed.trim(); + } + } + + const token = { + type: 'heading', + raw: cap[0], + depth: cap[1].length, + text: text, + tokens: [] + }; + this.lexer.inline(token.text, token.tokens); + return token; + } + } + + hr(src) { + const cap = this.rules.block.hr.exec(src); + if (cap) { + return { + type: 'hr', + raw: cap[0] + }; + } + } + + blockquote(src) { + const cap = this.rules.block.blockquote.exec(src); + if (cap) { + const text = cap[0].replace(/^ *>[ \t]?/gm, ''); + + return { + type: 'blockquote', + raw: cap[0], + tokens: this.lexer.blockTokens(text, []), + text + }; + } + } + + list(src) { + let cap = this.rules.block.list.exec(src); + if (cap) { + let raw, istask, ischecked, indent, i, blankLine, endsWithBlankLine, + line, nextLine, rawLine, itemContents, endEarly; + + let bull = cap[1].trim(); + const isordered = bull.length > 1; + + const list = { + type: 'list', + raw: '', + ordered: isordered, + start: isordered ? +bull.slice(0, -1) : '', + loose: false, + items: [] + }; + + bull = isordered ? `\\d{1,9}\\${bull.slice(-1)}` : `\\${bull}`; + + if (this.options.pedantic) { + bull = isordered ? bull : '[*+-]'; + } + + // Get next list item + const itemRegex = new RegExp(`^( {0,3}${bull})((?:[\t ][^\\n]*)?(?:\\n|$))`); + + // Check if current bullet point can start a new List Item + while (src) { + endEarly = false; + if (!(cap = itemRegex.exec(src))) { + break; + } + + if (this.rules.block.hr.test(src)) { // End list if bullet was actually HR (possibly move into itemRegex?) + break; + } + + raw = cap[0]; + src = src.substring(raw.length); + + line = cap[2].split('\n', 1)[0]; + nextLine = src.split('\n', 1)[0]; + + if (this.options.pedantic) { + indent = 2; + itemContents = line.trimLeft(); + } else { + indent = cap[2].search(/[^ ]/); // Find first non-space char + indent = indent > 4 ? 1 : indent; // Treat indented code blocks (> 4 spaces) as having only 1 indent + itemContents = line.slice(indent); + indent += cap[1].length; + } + + blankLine = false; + + if (!line && /^ *$/.test(nextLine)) { // Items begin with at most one blank line + raw += nextLine + '\n'; + src = src.substring(nextLine.length + 1); + endEarly = true; + } + + if (!endEarly) { + const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])`); + + // Check if following lines should be included in List Item + while (src) { + rawLine = src.split('\n', 1)[0]; + line = rawLine; + + // Re-align to follow commonmark nesting rules + if (this.options.pedantic) { + line = line.replace(/^ {1,4}(?=( {4})*[^ ])/g, ' '); + } + + // End list item if found start of new bullet + if (nextBulletRegex.test(line)) { + break; + } + + if (line.search(/[^ ]/) >= indent || !line.trim()) { // Dedent if possible + itemContents += '\n' + line.slice(indent); + } else if (!blankLine) { // Until blank line, item doesn't need indentation + itemContents += '\n' + line; + } else { // Otherwise, improper indentation ends this item + break; + } + + if (!blankLine && !line.trim()) { // Check if current line is blank + blankLine = true; + } + + raw += rawLine + '\n'; + src = src.substring(rawLine.length + 1); + } + } + + if (!list.loose) { + // If the previous item ended with a blank line, the list is loose + if (endsWithBlankLine) { + list.loose = true; + } else if (/\n *\n *$/.test(raw)) { + endsWithBlankLine = true; + } + } + + // Check for task list items + if (this.options.gfm) { + istask = /^\[[ xX]\] /.exec(itemContents); + if (istask) { + ischecked = istask[0] !== '[ ] '; + itemContents = itemContents.replace(/^\[[ xX]\] +/, ''); + } + } + + list.items.push({ + type: 'list_item', + raw: raw, + task: !!istask, + checked: ischecked, + loose: false, + text: itemContents + }); + + list.raw += raw; + } + + // Do not consume newlines at end of final item. Alternatively, make itemRegex *start* with any newlines to simplify/speed up endsWithBlankLine logic + list.items[list.items.length - 1].raw = raw.trimRight(); + list.items[list.items.length - 1].text = itemContents.trimRight(); + list.raw = list.raw.trimRight(); + + const l = list.items.length; + + // Item child tokens handled here at end because we needed to have the final item to trim it first + for (i = 0; i < l; i++) { + this.lexer.state.top = false; + list.items[i].tokens = this.lexer.blockTokens(list.items[i].text, []); + const spacers = list.items[i].tokens.filter(t => t.type === 'space'); + const hasMultipleLineBreaks = spacers.every(t => { + const chars = t.raw.split(''); + let lineBreaks = 0; + for (const char of chars) { + if (char === '\n') { + lineBreaks += 1; + } + if (lineBreaks > 1) { + return true; + } + } + + return false; + }); + + if (!list.loose && spacers.length && hasMultipleLineBreaks) { + // Having a single line break doesn't mean a list is loose. A single line break is terminating the last list item + list.loose = true; + list.items[i].loose = true; + } + } + + return list; + } + } + + html(src) { + const cap = this.rules.block.html.exec(src); + if (cap) { + const token = { + type: 'html', + raw: cap[0], + pre: !this.options.sanitizer + && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'), + text: cap[0] + }; + if (this.options.sanitize) { + token.type = 'paragraph'; + token.text = this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0]); + token.tokens = []; + this.lexer.inline(token.text, token.tokens); + } + return token; + } + } + + def(src) { + const cap = this.rules.block.def.exec(src); + if (cap) { + if (cap[3]) cap[3] = cap[3].substring(1, cap[3].length - 1); + const tag = cap[1].toLowerCase().replace(/\s+/g, ' '); + return { + type: 'def', + tag, + raw: cap[0], + href: cap[2], + title: cap[3] + }; + } + } + + table(src) { + const cap = this.rules.block.table.exec(src); + if (cap) { + const item = { + type: 'table', + header: splitCells(cap[1]).map(c => { return { text: c }; }), + align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), + rows: cap[3] && cap[3].trim() ? cap[3].replace(/\n[ \t]*$/, '').split('\n') : [] + }; + + if (item.header.length === item.align.length) { + item.raw = cap[0]; + + let l = item.align.length; + let i, j, k, row; + for (i = 0; i < l; i++) { + if (/^ *-+: *$/.test(item.align[i])) { + item.align[i] = 'right'; + } else if (/^ *:-+: *$/.test(item.align[i])) { + item.align[i] = 'center'; + } else if (/^ *:-+ *$/.test(item.align[i])) { + item.align[i] = 'left'; + } else { + item.align[i] = null; + } + } + + l = item.rows.length; + for (i = 0; i < l; i++) { + item.rows[i] = splitCells(item.rows[i], item.header.length).map(c => { return { text: c }; }); + } + + // parse child tokens inside headers and cells + + // header child tokens + l = item.header.length; + for (j = 0; j < l; j++) { + item.header[j].tokens = []; + this.lexer.inlineTokens(item.header[j].text, item.header[j].tokens); + } + + // cell child tokens + l = item.rows.length; + for (j = 0; j < l; j++) { + row = item.rows[j]; + for (k = 0; k < row.length; k++) { + row[k].tokens = []; + this.lexer.inlineTokens(row[k].text, row[k].tokens); + } + } + + return item; + } + } + } + + lheading(src) { + const cap = this.rules.block.lheading.exec(src); + if (cap) { + const token = { + type: 'heading', + raw: cap[0], + depth: cap[2].charAt(0) === '=' ? 1 : 2, + text: cap[1], + tokens: [] + }; + this.lexer.inline(token.text, token.tokens); + return token; + } + } + + paragraph(src) { + const cap = this.rules.block.paragraph.exec(src); + if (cap) { + const token = { + type: 'paragraph', + raw: cap[0], + text: cap[1].charAt(cap[1].length - 1) === '\n' + ? cap[1].slice(0, -1) + : cap[1], + tokens: [] + }; + this.lexer.inline(token.text, token.tokens); + return token; + } + } + + text(src) { + const cap = this.rules.block.text.exec(src); + if (cap) { + const token = { + type: 'text', + raw: cap[0], + text: cap[0], + tokens: [] + }; + this.lexer.inline(token.text, token.tokens); + return token; + } + } + + escape(src) { + const cap = this.rules.inline.escape.exec(src); + if (cap) { + return { + type: 'escape', + raw: cap[0], + text: escape(cap[1]) + }; + } + } + + tag(src) { + const cap = this.rules.inline.tag.exec(src); + if (cap) { + if (!this.lexer.state.inLink && /^/i.test(cap[0])) { + this.lexer.state.inLink = false; + } + if (!this.lexer.state.inRawBlock && /^<(pre|code|kbd|script)(\s|>)/i.test(cap[0])) { + this.lexer.state.inRawBlock = true; + } else if (this.lexer.state.inRawBlock && /^<\/(pre|code|kbd|script)(\s|>)/i.test(cap[0])) { + this.lexer.state.inRawBlock = false; + } + + return { + type: this.options.sanitize + ? 'text' + : 'html', + raw: cap[0], + inLink: this.lexer.state.inLink, + inRawBlock: this.lexer.state.inRawBlock, + text: this.options.sanitize + ? (this.options.sanitizer + ? this.options.sanitizer(cap[0]) + : escape(cap[0])) + : cap[0] + }; + } + } + + link(src) { + const cap = this.rules.inline.link.exec(src); + if (cap) { + const trimmedUrl = cap[2].trim(); + if (!this.options.pedantic && /^$/.test(trimmedUrl))) { + return; + } + + // ending angle bracket cannot be escaped + const rtrimSlash = rtrim(trimmedUrl.slice(0, -1), '\\'); + if ((trimmedUrl.length - rtrimSlash.length) % 2 === 0) { + return; + } + } else { + // find closing parenthesis + const lastParenIndex = findClosingBracket(cap[2], '()'); + if (lastParenIndex > -1) { + const start = cap[0].indexOf('!') === 0 ? 5 : 4; + const linkLen = start + cap[1].length + lastParenIndex; + cap[2] = cap[2].substring(0, lastParenIndex); + cap[0] = cap[0].substring(0, linkLen).trim(); + cap[3] = ''; + } + } + let href = cap[2]; + let title = ''; + if (this.options.pedantic) { + // split pedantic href and title + const link = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(href); + + if (link) { + href = link[1]; + title = link[3]; + } + } else { + title = cap[3] ? cap[3].slice(1, -1) : ''; + } + + href = href.trim(); + if (/^$/.test(trimmedUrl))) { + // pedantic allows starting angle bracket without ending angle bracket + href = href.slice(1); + } else { + href = href.slice(1, -1); + } + } + return outputLink(cap, { + href: href ? href.replace(this.rules.inline._escapes, '$1') : href, + title: title ? title.replace(this.rules.inline._escapes, '$1') : title + }, cap[0], this.lexer); + } + } + + reflink(src, links) { + let cap; + if ((cap = this.rules.inline.reflink.exec(src)) + || (cap = this.rules.inline.nolink.exec(src))) { + let link = (cap[2] || cap[1]).replace(/\s+/g, ' '); + link = links[link.toLowerCase()]; + if (!link || !link.href) { + const text = cap[0].charAt(0); + return { + type: 'text', + raw: text, + text + }; + } + return outputLink(cap, link, cap[0], this.lexer); + } + } + + emStrong(src, maskedSrc, prevChar = '') { + let match = this.rules.inline.emStrong.lDelim.exec(src); + if (!match) return; + + // _ can't be between two alphanumerics. \p{L}\p{N} includes non-english alphabet/numbers as well + if (match[3] && prevChar.match(/[\p{L}\p{N}]/u)) return; + + const nextChar = match[1] || match[2] || ''; + + if (!nextChar || (nextChar && (prevChar === '' || this.rules.inline.punctuation.exec(prevChar)))) { + const lLength = match[0].length - 1; + let rDelim, rLength, delimTotal = lLength, midDelimTotal = 0; + + const endReg = match[0][0] === '*' ? this.rules.inline.emStrong.rDelimAst : this.rules.inline.emStrong.rDelimUnd; + endReg.lastIndex = 0; + + // Clip maskedSrc to same section of string as src (move to lexer?) + maskedSrc = maskedSrc.slice(-1 * src.length + lLength); + + while ((match = endReg.exec(maskedSrc)) != null) { + rDelim = match[1] || match[2] || match[3] || match[4] || match[5] || match[6]; + + if (!rDelim) continue; // skip single * in __abc*abc__ + + rLength = rDelim.length; + + if (match[3] || match[4]) { // found another Left Delim + delimTotal += rLength; + continue; + } else if (match[5] || match[6]) { // either Left or Right Delim + if (lLength % 3 && !((lLength + rLength) % 3)) { + midDelimTotal += rLength; + continue; // CommonMark Emphasis Rules 9-10 + } + } + + delimTotal -= rLength; + + if (delimTotal > 0) continue; // Haven't found enough closing delimiters + + // Remove extra characters. *a*** -> *a* + rLength = Math.min(rLength, rLength + delimTotal + midDelimTotal); + + // Create `em` if smallest delimiter has odd char count. *a*** + if (Math.min(lLength, rLength) % 2) { + const text = src.slice(1, lLength + match.index + rLength); + return { + type: 'em', + raw: src.slice(0, lLength + match.index + rLength + 1), + text, + tokens: this.lexer.inlineTokens(text, []) + }; + } + + // Create 'strong' if smallest delimiter has even char count. **a*** + const text = src.slice(2, lLength + match.index + rLength - 1); + return { + type: 'strong', + raw: src.slice(0, lLength + match.index + rLength + 1), + text, + tokens: this.lexer.inlineTokens(text, []) + }; + } + } + } + + codespan(src) { + const cap = this.rules.inline.code.exec(src); + if (cap) { + let text = cap[2].replace(/\n/g, ' '); + const hasNonSpaceChars = /[^ ]/.test(text); + const hasSpaceCharsOnBothEnds = /^ /.test(text) && / $/.test(text); + if (hasNonSpaceChars && hasSpaceCharsOnBothEnds) { + text = text.substring(1, text.length - 1); + } + text = escape(text, true); + return { + type: 'codespan', + raw: cap[0], + text + }; + } + } + + br(src) { + const cap = this.rules.inline.br.exec(src); + if (cap) { + return { + type: 'br', + raw: cap[0] + }; + } + } + + del(src) { + const cap = this.rules.inline.del.exec(src); + if (cap) { + return { + type: 'del', + raw: cap[0], + text: cap[2], + tokens: this.lexer.inlineTokens(cap[2], []) + }; + } + } + + autolink(src, mangle) { + const cap = this.rules.inline.autolink.exec(src); + if (cap) { + let text, href; + if (cap[2] === '@') { + text = escape(this.options.mangle ? mangle(cap[1]) : cap[1]); + href = 'mailto:' + text; + } else { + text = escape(cap[1]); + href = text; + } + + return { + type: 'link', + raw: cap[0], + text, + href, + tokens: [ + { + type: 'text', + raw: text, + text + } + ] + }; + } + } + + url(src, mangle) { + let cap; + if (cap = this.rules.inline.url.exec(src)) { + let text, href; + if (cap[2] === '@') { + text = escape(this.options.mangle ? mangle(cap[0]) : cap[0]); + href = 'mailto:' + text; + } else { + // do extended autolink path validation + let prevCapZero; + do { + prevCapZero = cap[0]; + cap[0] = this.rules.inline._backpedal.exec(cap[0])[0]; + } while (prevCapZero !== cap[0]); + text = escape(cap[0]); + if (cap[1] === 'www.') { + href = 'http://' + text; + } else { + href = text; + } + } + return { + type: 'link', + raw: cap[0], + text, + href, + tokens: [ + { + type: 'text', + raw: text, + text + } + ] + }; + } + } + + inlineText(src, smartypants) { + const cap = this.rules.inline.text.exec(src); + if (cap) { + let text; + if (this.lexer.state.inRawBlock) { + text = this.options.sanitize ? (this.options.sanitizer ? this.options.sanitizer(cap[0]) : escape(cap[0])) : cap[0]; + } else { + text = escape(this.options.smartypants ? smartypants(cap[0]) : cap[0]); + } + return { + type: 'text', + raw: cap[0], + text + }; + } + } +} + +/** + * Block-Level Grammar + */ +const block = { + newline: /^(?: *(?:\n|$))+/, + code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, + fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/, + hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, + heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, + blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/, + list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/, + html: '^ {0,3}(?:' // optional indentation + + '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)' // (1) + + '|comment[^\\n]*(\\n+|$)' // (2) + + '|<\\?[\\s\\S]*?(?:\\?>\\n*|$)' // (3) + + '|\\n*|$)' // (4) + + '|\\n*|$)' // (5) + + '|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (6) + + '|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (7) open tag + + '|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (7) closing tag + + ')', + def: /^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/, + table: noopTest, + lheading: /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/, + // regex template, placeholders will be replaced according to different paragraph + // interruption rules of commonmark and the original markdown spec: + _paragraph: /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, + text: /^[^\n]+/ +}; + +block._label = /(?!\s*\])(?:\\.|[^\[\]\\])+/; +block._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/; +block.def = edit(block.def) + .replace('label', block._label) + .replace('title', block._title) + .getRegex(); + +block.bullet = /(?:[*+-]|\d{1,9}[.)])/; +block.listItemStart = edit(/^( *)(bull) */) + .replace('bull', block.bullet) + .getRegex(); + +block.list = edit(block.list) + .replace(/bull/g, block.bullet) + .replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))') + .replace('def', '\\n+(?=' + block.def.source + ')') + .getRegex(); + +block._tag = 'address|article|aside|base|basefont|blockquote|body|caption' + + '|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption' + + '|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe' + + '|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option' + + '|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr' + + '|track|ul'; +block._comment = /|$)/; +block.html = edit(block.html, 'i') + .replace('comment', block._comment) + .replace('tag', block._tag) + .replace('attribute', / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/) + .getRegex(); + +block.paragraph = edit(block._paragraph) + .replace('hr', block.hr) + .replace('heading', ' {0,3}#{1,6} ') + .replace('|lheading', '') // setex headings don't interrupt commonmark paragraphs + .replace('|table', '') + .replace('blockquote', ' {0,3}>') + .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n') + .replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt + .replace('html', ')|<(?:script|pre|style|textarea|!--)') + .replace('tag', block._tag) // pars can be interrupted by type (6) html blocks + .getRegex(); + +block.blockquote = edit(block.blockquote) + .replace('paragraph', block.paragraph) + .getRegex(); + +/** + * Normal Block Grammar + */ + +block.normal = merge({}, block); + +/** + * GFM Block Grammar + */ + +block.gfm = merge({}, block.normal, { + table: '^ *([^\\n ].*\\|.*)\\n' // Header + + ' {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?' // Align + + '(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)' // Cells +}); + +block.gfm.table = edit(block.gfm.table) + .replace('hr', block.hr) + .replace('heading', ' {0,3}#{1,6} ') + .replace('blockquote', ' {0,3}>') + .replace('code', ' {4}[^\\n]') + .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n') + .replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt + .replace('html', ')|<(?:script|pre|style|textarea|!--)') + .replace('tag', block._tag) // tables can be interrupted by type (6) html blocks + .getRegex(); + +block.gfm.paragraph = edit(block._paragraph) + .replace('hr', block.hr) + .replace('heading', ' {0,3}#{1,6} ') + .replace('|lheading', '') // setex headings don't interrupt commonmark paragraphs + .replace('table', block.gfm.table) // interrupt paragraphs with table + .replace('blockquote', ' {0,3}>') + .replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n') + .replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt + .replace('html', ')|<(?:script|pre|style|textarea|!--)') + .replace('tag', block._tag) // pars can be interrupted by type (6) html blocks + .getRegex(); +/** + * Pedantic grammar (original John Gruber's loose markdown specification) + */ + +block.pedantic = merge({}, block.normal, { + html: edit( + '^ *(?:comment *(?:\\n|\\s*$)' + + '|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)' // closed tag + + '|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))') + .replace('comment', block._comment) + .replace(/tag/g, '(?!(?:' + + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub' + + '|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)' + + '\\b)\\w+(?!:|[^\\w\\s@]*@)\\b') + .getRegex(), + def: /^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, + heading: /^(#{1,6})(.*)(?:\n+|$)/, + fences: noopTest, // fences not supported + paragraph: edit(block.normal._paragraph) + .replace('hr', block.hr) + .replace('heading', ' *#{1,6} *[^\n]') + .replace('lheading', block.lheading) + .replace('blockquote', ' {0,3}>') + .replace('|fences', '') + .replace('|list', '') + .replace('|html', '') + .getRegex() +}); + +/** + * Inline-Level Grammar + */ +const inline = { + escape: /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, + autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, + url: noopTest, + tag: '^comment' + + '|^' // self-closing tag + + '|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>' // open tag + + '|^<\\?[\\s\\S]*?\\?>' // processing instruction, e.g. + + '|^' // declaration, e.g. + + '|^', // CDATA section + link: /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/, + reflink: /^!?\[(label)\]\[(ref)\]/, + nolink: /^!?\[(ref)\](?:\[\])?/, + reflinkSearch: 'reflink|nolink(?!\\()', + emStrong: { + lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/, + // (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left. (5) and (6) can be either Left or Right. + // () Skip orphan inside strong () Consume to delim (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a + rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/, + rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _ + }, + code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, + br: /^( {2,}|\\)\n(?!\s*$)/, + del: noopTest, + text: /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~'; +inline.punctuation = edit(inline.punctuation).replace(/punctuation/g, inline._punctuation).getRegex(); + +// sequences em should skip over [title](link), `code`, +inline.blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g; +inline.escapedEmSt = /\\\*|\\_/g; + +inline._comment = edit(block._comment).replace('(?:-->|$)', '-->').getRegex(); + +inline.emStrong.lDelim = edit(inline.emStrong.lDelim) + .replace(/punct/g, inline._punctuation) + .getRegex(); + +inline.emStrong.rDelimAst = edit(inline.emStrong.rDelimAst, 'g') + .replace(/punct/g, inline._punctuation) + .getRegex(); + +inline.emStrong.rDelimUnd = edit(inline.emStrong.rDelimUnd, 'g') + .replace(/punct/g, inline._punctuation) + .getRegex(); + +inline._escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g; + +inline._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/; +inline._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/; +inline.autolink = edit(inline.autolink) + .replace('scheme', inline._scheme) + .replace('email', inline._email) + .getRegex(); + +inline._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/; + +inline.tag = edit(inline.tag) + .replace('comment', inline._comment) + .replace('attribute', inline._attribute) + .getRegex(); + +inline._label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/; +inline._href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/; +inline._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/; + +inline.link = edit(inline.link) + .replace('label', inline._label) + .replace('href', inline._href) + .replace('title', inline._title) + .getRegex(); + +inline.reflink = edit(inline.reflink) + .replace('label', inline._label) + .replace('ref', block._label) + .getRegex(); + +inline.nolink = edit(inline.nolink) + .replace('ref', block._label) + .getRegex(); + +inline.reflinkSearch = edit(inline.reflinkSearch, 'g') + .replace('reflink', inline.reflink) + .replace('nolink', inline.nolink) + .getRegex(); + +/** + * Normal Inline Grammar + */ + +inline.normal = merge({}, inline); + +/** + * Pedantic Inline Grammar + */ + +inline.pedantic = merge({}, inline.normal, { + strong: { + start: /^__|\*\*/, + middle: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, + endAst: /\*\*(?!\*)/g, + endUnd: /__(?!_)/g + }, + em: { + start: /^_|\*/, + middle: /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/, + endAst: /\*(?!\*)/g, + endUnd: /_(?!_)/g + }, + link: edit(/^!?\[(label)\]\((.*?)\)/) + .replace('label', inline._label) + .getRegex(), + reflink: edit(/^!?\[(label)\]\s*\[([^\]]*)\]/) + .replace('label', inline._label) + .getRegex() +}); + +/** + * GFM Inline Grammar + */ + +inline.gfm = merge({}, inline.normal, { + escape: edit(inline.escape).replace('])', '~|])').getRegex(), + _extended_email: /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/, + url: /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, + _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/, + del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/, + text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ 0.5) { + ch = 'x' + ch.toString(16); + } + out += '&#' + ch + ';'; + } + + return out; +} + +/** + * Block Lexer + */ +class Lexer { + constructor(options) { + this.tokens = []; + this.tokens.links = Object.create(null); + this.options = options || defaults; + this.options.tokenizer = this.options.tokenizer || new Tokenizer(); + this.tokenizer = this.options.tokenizer; + this.tokenizer.options = this.options; + this.tokenizer.lexer = this; + this.inlineQueue = []; + this.state = { + inLink: false, + inRawBlock: false, + top: true + }; + + const rules = { + block: block.normal, + inline: inline.normal + }; + + if (this.options.pedantic) { + rules.block = block.pedantic; + rules.inline = inline.pedantic; + } else if (this.options.gfm) { + rules.block = block.gfm; + if (this.options.breaks) { + rules.inline = inline.breaks; + } else { + rules.inline = inline.gfm; + } + } + this.tokenizer.rules = rules; + } + + /** + * Expose Rules + */ + static get rules() { + return { + block, + inline + }; + } + + /** + * Static Lex Method + */ + static lex(src, options) { + const lexer = new Lexer(options); + return lexer.lex(src); + } + + /** + * Static Lex Inline Method + */ + static lexInline(src, options) { + const lexer = new Lexer(options); + return lexer.inlineTokens(src); + } + + /** + * Preprocessing + */ + lex(src) { + src = src + .replace(/\r\n|\r/g, '\n'); + + this.blockTokens(src, this.tokens); + + let next; + while (next = this.inlineQueue.shift()) { + this.inlineTokens(next.src, next.tokens); + } + + return this.tokens; + } + + /** + * Lexing + */ + blockTokens(src, tokens = []) { + if (this.options.pedantic) { + src = src.replace(/\t/g, ' ').replace(/^ +$/gm, ''); + } else { + src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => { + return leading + ' '.repeat(tabs.length); + }); + } + + let token, lastToken, cutSrc, lastParagraphClipped; + + while (src) { + if (this.options.extensions + && this.options.extensions.block + && this.options.extensions.block.some((extTokenizer) => { + if (token = extTokenizer.call({ lexer: this }, src, tokens)) { + src = src.substring(token.raw.length); + tokens.push(token); + return true; + } + return false; + })) { + continue; + } + + // newline + if (token = this.tokenizer.space(src)) { + src = src.substring(token.raw.length); + if (token.raw.length === 1 && tokens.length > 0) { + // if there's a single \n as a spacer, it's terminating the last line, + // so move it there so that we don't get unecessary paragraph tags + tokens[tokens.length - 1].raw += '\n'; + } else { + tokens.push(token); + } + continue; + } + + // code + if (token = this.tokenizer.code(src)) { + src = src.substring(token.raw.length); + lastToken = tokens[tokens.length - 1]; + // An indented code block cannot interrupt a paragraph. + if (lastToken && (lastToken.type === 'paragraph' || lastToken.type === 'text')) { + lastToken.raw += '\n' + token.raw; + lastToken.text += '\n' + token.text; + this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; + } else { + tokens.push(token); + } + continue; + } + + // fences + if (token = this.tokenizer.fences(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // heading + if (token = this.tokenizer.heading(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // hr + if (token = this.tokenizer.hr(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // blockquote + if (token = this.tokenizer.blockquote(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // list + if (token = this.tokenizer.list(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // html + if (token = this.tokenizer.html(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // def + if (token = this.tokenizer.def(src)) { + src = src.substring(token.raw.length); + lastToken = tokens[tokens.length - 1]; + if (lastToken && (lastToken.type === 'paragraph' || lastToken.type === 'text')) { + lastToken.raw += '\n' + token.raw; + lastToken.text += '\n' + token.raw; + this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; + } else if (!this.tokens.links[token.tag]) { + this.tokens.links[token.tag] = { + href: token.href, + title: token.title + }; + } + continue; + } + + // table (gfm) + if (token = this.tokenizer.table(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // lheading + if (token = this.tokenizer.lheading(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // top-level paragraph + // prevent paragraph consuming extensions by clipping 'src' to extension start + cutSrc = src; + if (this.options.extensions && this.options.extensions.startBlock) { + let startIndex = Infinity; + const tempSrc = src.slice(1); + let tempStart; + this.options.extensions.startBlock.forEach(function (getStartIndex) { + tempStart = getStartIndex.call({ lexer: this }, tempSrc); + if (typeof tempStart === 'number' && tempStart >= 0) { startIndex = Math.min(startIndex, tempStart); } + }); + if (startIndex < Infinity && startIndex >= 0) { + cutSrc = src.substring(0, startIndex + 1); + } + } + if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) { + lastToken = tokens[tokens.length - 1]; + if (lastParagraphClipped && lastToken.type === 'paragraph') { + lastToken.raw += '\n' + token.raw; + lastToken.text += '\n' + token.text; + this.inlineQueue.pop(); + this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; + } else { + tokens.push(token); + } + lastParagraphClipped = (cutSrc.length !== src.length); + src = src.substring(token.raw.length); + continue; + } + + // text + if (token = this.tokenizer.text(src)) { + src = src.substring(token.raw.length); + lastToken = tokens[tokens.length - 1]; + if (lastToken && lastToken.type === 'text') { + lastToken.raw += '\n' + token.raw; + lastToken.text += '\n' + token.text; + this.inlineQueue.pop(); + this.inlineQueue[this.inlineQueue.length - 1].src = lastToken.text; + } else { + tokens.push(token); + } + continue; + } + + if (src) { + const errMsg = 'Infinite loop on byte: ' + src.charCodeAt(0); + if (this.options.silent) { + console.error(errMsg); + break; + } else { + throw new Error(errMsg); + } + } + } + + this.state.top = true; + return tokens; + } + + inline(src, tokens) { + this.inlineQueue.push({ src, tokens }); + } + + /** + * Lexing/Compiling + */ + inlineTokens(src, tokens = []) { + let token, lastToken, cutSrc; + + // String with links masked to avoid interference with em and strong + let maskedSrc = src; + let match; + let keepPrevChar, prevChar; + + // Mask out reflinks + if (this.tokens.links) { + const links = Object.keys(this.tokens.links); + if (links.length > 0) { + while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) { + if (links.includes(match[0].slice(match[0].lastIndexOf('[') + 1, -1))) { + maskedSrc = maskedSrc.slice(0, match.index) + '[' + repeatString('a', match[0].length - 2) + ']' + maskedSrc.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex); + } + } + } + } + // Mask out other blocks + while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) { + maskedSrc = maskedSrc.slice(0, match.index) + '[' + repeatString('a', match[0].length - 2) + ']' + maskedSrc.slice(this.tokenizer.rules.inline.blockSkip.lastIndex); + } + + // Mask out escaped em & strong delimiters + while ((match = this.tokenizer.rules.inline.escapedEmSt.exec(maskedSrc)) != null) { + maskedSrc = maskedSrc.slice(0, match.index) + '++' + maskedSrc.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex); + } + + while (src) { + if (!keepPrevChar) { + prevChar = ''; + } + keepPrevChar = false; + + // extensions + if (this.options.extensions + && this.options.extensions.inline + && this.options.extensions.inline.some((extTokenizer) => { + if (token = extTokenizer.call({ lexer: this }, src, tokens)) { + src = src.substring(token.raw.length); + tokens.push(token); + return true; + } + return false; + })) { + continue; + } + + // escape + if (token = this.tokenizer.escape(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // tag + if (token = this.tokenizer.tag(src)) { + src = src.substring(token.raw.length); + lastToken = tokens[tokens.length - 1]; + if (lastToken && token.type === 'text' && lastToken.type === 'text') { + lastToken.raw += token.raw; + lastToken.text += token.text; + } else { + tokens.push(token); + } + continue; + } + + // link + if (token = this.tokenizer.link(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // reflink, nolink + if (token = this.tokenizer.reflink(src, this.tokens.links)) { + src = src.substring(token.raw.length); + lastToken = tokens[tokens.length - 1]; + if (lastToken && token.type === 'text' && lastToken.type === 'text') { + lastToken.raw += token.raw; + lastToken.text += token.text; + } else { + tokens.push(token); + } + continue; + } + + // em & strong + if (token = this.tokenizer.emStrong(src, maskedSrc, prevChar)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // code + if (token = this.tokenizer.codespan(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // br + if (token = this.tokenizer.br(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // del (gfm) + if (token = this.tokenizer.del(src)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // autolink + if (token = this.tokenizer.autolink(src, mangle)) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // url (gfm) + if (!this.state.inLink && (token = this.tokenizer.url(src, mangle))) { + src = src.substring(token.raw.length); + tokens.push(token); + continue; + } + + // text + // prevent inlineText consuming extensions by clipping 'src' to extension start + cutSrc = src; + if (this.options.extensions && this.options.extensions.startInline) { + let startIndex = Infinity; + const tempSrc = src.slice(1); + let tempStart; + this.options.extensions.startInline.forEach(function (getStartIndex) { + tempStart = getStartIndex.call({ lexer: this }, tempSrc); + if (typeof tempStart === 'number' && tempStart >= 0) { startIndex = Math.min(startIndex, tempStart); } + }); + if (startIndex < Infinity && startIndex >= 0) { + cutSrc = src.substring(0, startIndex + 1); + } + } + if (token = this.tokenizer.inlineText(cutSrc, smartypants)) { + src = src.substring(token.raw.length); + if (token.raw.slice(-1) !== '_') { // Track prevChar before string of ____ started + prevChar = token.raw.slice(-1); + } + keepPrevChar = true; + lastToken = tokens[tokens.length - 1]; + if (lastToken && lastToken.type === 'text') { + lastToken.raw += token.raw; + lastToken.text += token.text; + } else { + tokens.push(token); + } + continue; + } + + if (src) { + const errMsg = 'Infinite loop on byte: ' + src.charCodeAt(0); + if (this.options.silent) { + console.error(errMsg); + break; + } else { + throw new Error(errMsg); + } + } + } + + return tokens; + } +} + +/** + * Renderer + */ +class Renderer { + constructor(options) { + this.options = options || defaults; + } + + code(code, infostring, escaped) { + const lang = (infostring || '').match(/\S*/)[0]; + if (this.options.highlight) { + const out = this.options.highlight(code, lang); + if (out != null && out !== code) { + escaped = true; + code = out; + } + } + + code = code.replace(/\n$/, '') + '\n'; + + if (!lang) { + return '
'
+        + (escaped ? code : escape(code, true))
+        + '
\n'; + } + + return '
'
+      + (escaped ? code : escape(code, true))
+      + '
\n'; + } + + /** + * @param {string} quote + */ + blockquote(quote) { + return `
\n${quote}
\n`; + } + + html(html) { + return html; + } + + /** + * @param {string} text + * @param {string} level + * @param {string} raw + * @param {any} slugger + */ + heading(text, level, raw, slugger) { + if (this.options.headerIds) { + const id = this.options.headerPrefix + slugger.slug(raw); + return `${text}\n`; + } + + // ignore IDs + return `${text}\n`; + } + + hr() { + return this.options.xhtml ? '
\n' : '
\n'; + } + + list(body, ordered, start) { + const type = ordered ? 'ol' : 'ul', + startatt = (ordered && start !== 1) ? (' start="' + start + '"') : ''; + return '<' + type + startatt + '>\n' + body + '\n'; + } + + /** + * @param {string} text + */ + listitem(text) { + return `
  • ${text}
  • \n`; + } + + checkbox(checked) { + return ' '; + } + + /** + * @param {string} text + */ + paragraph(text) { + return `

    ${text}

    \n`; + } + + /** + * @param {string} header + * @param {string} body + */ + table(header, body) { + if (body) body = `${body}`; + + return '\n' + + '\n' + + header + + '\n' + + body + + '
    \n'; + } + + /** + * @param {string} content + */ + tablerow(content) { + return `\n${content}\n`; + } + + tablecell(content, flags) { + const type = flags.header ? 'th' : 'td'; + const tag = flags.align + ? `<${type} align="${flags.align}">` + : `<${type}>`; + return tag + content + `\n`; + } + + /** + * span level renderer + * @param {string} text + */ + strong(text) { + return `${text}`; + } + + /** + * @param {string} text + */ + em(text) { + return `${text}`; + } + + /** + * @param {string} text + */ + codespan(text) { + return `${text}`; + } + + br() { + return this.options.xhtml ? '
    ' : '
    '; + } + + /** + * @param {string} text + */ + del(text) { + return `${text}`; + } + + /** + * @param {string} href + * @param {string} title + * @param {string} text + */ + link(href, title, text) { + href = cleanUrl(this.options.sanitize, this.options.baseUrl, href); + if (href === null) { + return text; + } + let out = '
    '; + return out; + } + + /** + * @param {string} href + * @param {string} title + * @param {string} text + */ + image(href, title, text) { + href = cleanUrl(this.options.sanitize, this.options.baseUrl, href); + if (href === null) { + return text; + } + + let out = `${text}' : '>'; + return out; + } + + text(text) { + return text; + } +} + +/** + * TextRenderer + * returns only the textual part of the token + */ +class TextRenderer { + // no need for block level renderers + strong(text) { + return text; + } + + em(text) { + return text; + } + + codespan(text) { + return text; + } + + del(text) { + return text; + } + + html(text) { + return text; + } + + text(text) { + return text; + } + + link(href, title, text) { + return '' + text; + } + + image(href, title, text) { + return '' + text; + } + + br() { + return ''; + } +} + +/** + * Slugger generates header id + */ +class Slugger { + constructor() { + this.seen = {}; + } + + /** + * @param {string} value + */ + serialize(value) { + return value + .toLowerCase() + .trim() + // remove html tags + .replace(/<[!\/a-z].*?>/ig, '') + // remove unwanted chars + .replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g, '') + .replace(/\s/g, '-'); + } + + /** + * Finds the next safe (unique) slug to use + * @param {string} originalSlug + * @param {boolean} isDryRun + */ + getNextSafeSlug(originalSlug, isDryRun) { + let slug = originalSlug; + let occurenceAccumulator = 0; + if (this.seen.hasOwnProperty(slug)) { + occurenceAccumulator = this.seen[originalSlug]; + do { + occurenceAccumulator++; + slug = originalSlug + '-' + occurenceAccumulator; + } while (this.seen.hasOwnProperty(slug)); + } + if (!isDryRun) { + this.seen[originalSlug] = occurenceAccumulator; + this.seen[slug] = 0; + } + return slug; + } + + /** + * Convert string to unique id + * @param {object} [options] + * @param {boolean} [options.dryrun] Generates the next unique slug without + * updating the internal accumulator. + */ + slug(value, options = {}) { + const slug = this.serialize(value); + return this.getNextSafeSlug(slug, options.dryrun); + } +} + +/** + * Parsing & Compiling + */ +class Parser { + constructor(options) { + this.options = options || defaults; + this.options.renderer = this.options.renderer || new Renderer(); + this.renderer = this.options.renderer; + this.renderer.options = this.options; + this.textRenderer = new TextRenderer(); + this.slugger = new Slugger(); + } + + /** + * Static Parse Method + */ + static parse(tokens, options) { + const parser = new Parser(options); + return parser.parse(tokens); + } + + /** + * Static Parse Inline Method + */ + static parseInline(tokens, options) { + const parser = new Parser(options); + return parser.parseInline(tokens); + } + + /** + * Parse Loop + */ + parse(tokens, top = true) { + let out = '', + i, + j, + k, + l2, + l3, + row, + cell, + header, + body, + token, + ordered, + start, + loose, + itemBody, + item, + checked, + task, + checkbox, + ret; + + const l = tokens.length; + for (i = 0; i < l; i++) { + token = tokens[i]; + + // Run any renderer extensions + if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) { + ret = this.options.extensions.renderers[token.type].call({ parser: this }, token); + if (ret !== false || !['space', 'hr', 'heading', 'code', 'table', 'blockquote', 'list', 'html', 'paragraph', 'text'].includes(token.type)) { + out += ret || ''; + continue; + } + } + + switch (token.type) { + case 'space': { + continue; + } + case 'hr': { + out += this.renderer.hr(); + continue; + } + case 'heading': { + out += this.renderer.heading( + this.parseInline(token.tokens), + token.depth, + unescape(this.parseInline(token.tokens, this.textRenderer)), + this.slugger); + continue; + } + case 'code': { + out += this.renderer.code(token.text, + token.lang, + token.escaped); + continue; + } + case 'table': { + header = ''; + + // header + cell = ''; + l2 = token.header.length; + for (j = 0; j < l2; j++) { + cell += this.renderer.tablecell( + this.parseInline(token.header[j].tokens), + { header: true, align: token.align[j] } + ); + } + header += this.renderer.tablerow(cell); + + body = ''; + l2 = token.rows.length; + for (j = 0; j < l2; j++) { + row = token.rows[j]; + + cell = ''; + l3 = row.length; + for (k = 0; k < l3; k++) { + cell += this.renderer.tablecell( + this.parseInline(row[k].tokens), + { header: false, align: token.align[k] } + ); + } + + body += this.renderer.tablerow(cell); + } + out += this.renderer.table(header, body); + continue; + } + case 'blockquote': { + body = this.parse(token.tokens); + out += this.renderer.blockquote(body); + continue; + } + case 'list': { + ordered = token.ordered; + start = token.start; + loose = token.loose; + l2 = token.items.length; + + body = ''; + for (j = 0; j < l2; j++) { + item = token.items[j]; + checked = item.checked; + task = item.task; + + itemBody = ''; + if (item.task) { + checkbox = this.renderer.checkbox(checked); + if (loose) { + if (item.tokens.length > 0 && item.tokens[0].type === 'paragraph') { + item.tokens[0].text = checkbox + ' ' + item.tokens[0].text; + if (item.tokens[0].tokens && item.tokens[0].tokens.length > 0 && item.tokens[0].tokens[0].type === 'text') { + item.tokens[0].tokens[0].text = checkbox + ' ' + item.tokens[0].tokens[0].text; + } + } else { + item.tokens.unshift({ + type: 'text', + text: checkbox + }); + } + } else { + itemBody += checkbox; + } + } + + itemBody += this.parse(item.tokens, loose); + body += this.renderer.listitem(itemBody, task, checked); + } + + out += this.renderer.list(body, ordered, start); + continue; + } + case 'html': { + // TODO parse inline content if parameter markdown=1 + out += this.renderer.html(token.text); + continue; + } + case 'paragraph': { + out += this.renderer.paragraph(this.parseInline(token.tokens)); + continue; + } + case 'text': { + body = token.tokens ? this.parseInline(token.tokens) : token.text; + while (i + 1 < l && tokens[i + 1].type === 'text') { + token = tokens[++i]; + body += '\n' + (token.tokens ? this.parseInline(token.tokens) : token.text); + } + out += top ? this.renderer.paragraph(body) : body; + continue; + } + + default: { + const errMsg = 'Token with "' + token.type + '" type was not found.'; + if (this.options.silent) { + console.error(errMsg); + return; + } else { + throw new Error(errMsg); + } + } + } + } + + return out; + } + + /** + * Parse Inline Tokens + */ + parseInline(tokens, renderer) { + renderer = renderer || this.renderer; + let out = '', + i, + token, + ret; + + const l = tokens.length; + for (i = 0; i < l; i++) { + token = tokens[i]; + + // Run any renderer extensions + if (this.options.extensions && this.options.extensions.renderers && this.options.extensions.renderers[token.type]) { + ret = this.options.extensions.renderers[token.type].call({ parser: this }, token); + if (ret !== false || !['escape', 'html', 'link', 'image', 'strong', 'em', 'codespan', 'br', 'del', 'text'].includes(token.type)) { + out += ret || ''; + continue; + } + } + + switch (token.type) { + case 'escape': { + out += renderer.text(token.text); + break; + } + case 'html': { + out += renderer.html(token.text); + break; + } + case 'link': { + out += renderer.link(token.href, token.title, this.parseInline(token.tokens, renderer)); + break; + } + case 'image': { + out += renderer.image(token.href, token.title, token.text); + break; + } + case 'strong': { + out += renderer.strong(this.parseInline(token.tokens, renderer)); + break; + } + case 'em': { + out += renderer.em(this.parseInline(token.tokens, renderer)); + break; + } + case 'codespan': { + out += renderer.codespan(token.text); + break; + } + case 'br': { + out += renderer.br(); + break; + } + case 'del': { + out += renderer.del(this.parseInline(token.tokens, renderer)); + break; + } + case 'text': { + out += renderer.text(token.text); + break; + } + default: { + const errMsg = 'Token with "' + token.type + '" type was not found.'; + if (this.options.silent) { + console.error(errMsg); + return; + } else { + throw new Error(errMsg); + } + } + } + } + return out; + } +} + +/** + * Marked + */ +function marked(src, opt, callback) { + // throw error in case of non string input + if (typeof src === 'undefined' || src === null) { + throw new Error('marked(): input parameter is undefined or null'); + } + if (typeof src !== 'string') { + throw new Error('marked(): input parameter is of type ' + + Object.prototype.toString.call(src) + ', string expected'); + } + + if (typeof opt === 'function') { + callback = opt; + opt = null; + } + + opt = merge({}, marked.defaults, opt || {}); + checkSanitizeDeprecation(opt); + + if (callback) { + const highlight = opt.highlight; + let tokens; + + try { + tokens = Lexer.lex(src, opt); + } catch (e) { + return callback(e); + } + + const done = function (err) { + let out; + + if (!err) { + try { + if (opt.walkTokens) { + marked.walkTokens(tokens, opt.walkTokens); + } + out = Parser.parse(tokens, opt); + } catch (e) { + err = e; + } + } + + opt.highlight = highlight; + + return err + ? callback(err) + : callback(null, out); + }; + + if (!highlight || highlight.length < 3) { + return done(); + } + + delete opt.highlight; + + if (!tokens.length) return done(); + + let pending = 0; + marked.walkTokens(tokens, function (token) { + if (token.type === 'code') { + pending++; + setTimeout(() => { + highlight(token.text, token.lang, function (err, code) { + if (err) { + return done(err); + } + if (code != null && code !== token.text) { + token.text = code; + token.escaped = true; + } + + pending--; + if (pending === 0) { + done(); + } + }); + }, 0); + } + }); + + if (pending === 0) { + done(); + } + + return; + } + + try { + const tokens = Lexer.lex(src, opt); + if (opt.walkTokens) { + marked.walkTokens(tokens, opt.walkTokens); + } + return Parser.parse(tokens, opt); + } catch (e) { + e.message += '\nPlease report this to https://github.com/markedjs/marked.'; + if (opt.silent) { + return '

    An error occurred:

    '
    +        + escape(e.message + '', true)
    +        + '
    '; + } + throw e; + } +} + +/** + * Options + */ + +marked.options = + marked.setOptions = function (opt) { + merge(marked.defaults, opt); + changeDefaults(marked.defaults); + return marked; + }; + +marked.getDefaults = getDefaults; + +marked.defaults = defaults; + +/** + * Use Extension + */ + +marked.use = function (...args) { + const opts = merge({}, ...args); + const extensions = marked.defaults.extensions || { renderers: {}, childTokens: {} }; + let hasExtensions; + + args.forEach((pack) => { + // ==-- Parse "addon" extensions --== // + if (pack.extensions) { + hasExtensions = true; + pack.extensions.forEach((ext) => { + if (!ext.name) { + throw new Error('extension name required'); + } + if (ext.renderer) { // Renderer extensions + const prevRenderer = extensions.renderers ? extensions.renderers[ext.name] : null; + if (prevRenderer) { + // Replace extension with func to run new extension but fall back if false + extensions.renderers[ext.name] = function (...args) { + let ret = ext.renderer.apply(this, args); + if (ret === false) { + ret = prevRenderer.apply(this, args); + } + return ret; + }; + } else { + extensions.renderers[ext.name] = ext.renderer; + } + } + if (ext.tokenizer) { // Tokenizer Extensions + if (!ext.level || (ext.level !== 'block' && ext.level !== 'inline')) { + throw new Error("extension level must be 'block' or 'inline'"); + } + if (extensions[ext.level]) { + extensions[ext.level].unshift(ext.tokenizer); + } else { + extensions[ext.level] = [ext.tokenizer]; + } + if (ext.start) { // Function to check for start of token + if (ext.level === 'block') { + if (extensions.startBlock) { + extensions.startBlock.push(ext.start); + } else { + extensions.startBlock = [ext.start]; + } + } else if (ext.level === 'inline') { + if (extensions.startInline) { + extensions.startInline.push(ext.start); + } else { + extensions.startInline = [ext.start]; + } + } + } + } + if (ext.childTokens) { // Child tokens to be visited by walkTokens + extensions.childTokens[ext.name] = ext.childTokens; + } + }); + } + + // ==-- Parse "overwrite" extensions --== // + if (pack.renderer) { + const renderer = marked.defaults.renderer || new Renderer(); + for (const prop in pack.renderer) { + const prevRenderer = renderer[prop]; + // Replace renderer with func to run extension, but fall back if false + renderer[prop] = (...args) => { + let ret = pack.renderer[prop].apply(renderer, args); + if (ret === false) { + ret = prevRenderer.apply(renderer, args); + } + return ret; + }; + } + opts.renderer = renderer; + } + if (pack.tokenizer) { + const tokenizer = marked.defaults.tokenizer || new Tokenizer(); + for (const prop in pack.tokenizer) { + const prevTokenizer = tokenizer[prop]; + // Replace tokenizer with func to run extension, but fall back if false + tokenizer[prop] = (...args) => { + let ret = pack.tokenizer[prop].apply(tokenizer, args); + if (ret === false) { + ret = prevTokenizer.apply(tokenizer, args); + } + return ret; + }; + } + opts.tokenizer = tokenizer; + } + + // ==-- Parse WalkTokens extensions --== // + if (pack.walkTokens) { + const walkTokens = marked.defaults.walkTokens; + opts.walkTokens = function (token) { + pack.walkTokens.call(this, token); + if (walkTokens) { + walkTokens.call(this, token); + } + }; + } + + if (hasExtensions) { + opts.extensions = extensions; + } + + marked.setOptions(opts); + }); +}; + +/** + * Run callback for every token + */ + +marked.walkTokens = function (tokens, callback) { + for (const token of tokens) { + callback.call(marked, token); + switch (token.type) { + case 'table': { + for (const cell of token.header) { + marked.walkTokens(cell.tokens, callback); + } + for (const row of token.rows) { + for (const cell of row) { + marked.walkTokens(cell.tokens, callback); + } + } + break; + } + case 'list': { + marked.walkTokens(token.items, callback); + break; + } + default: { + if (marked.defaults.extensions && marked.defaults.extensions.childTokens && marked.defaults.extensions.childTokens[token.type]) { // Walk any extensions + marked.defaults.extensions.childTokens[token.type].forEach(function (childTokens) { + marked.walkTokens(token[childTokens], callback); + }); + } else if (token.tokens) { + marked.walkTokens(token.tokens, callback); + } + } + } + } +}; + +/** + * Parse Inline + * @param {string} src + */ +marked.parseInline = function (src, opt) { + // throw error in case of non string input + if (typeof src === 'undefined' || src === null) { + throw new Error('marked.parseInline(): input parameter is undefined or null'); + } + if (typeof src !== 'string') { + throw new Error('marked.parseInline(): input parameter is of type ' + + Object.prototype.toString.call(src) + ', string expected'); + } + + opt = merge({}, marked.defaults, opt || {}); + checkSanitizeDeprecation(opt); + + try { + const tokens = Lexer.lexInline(src, opt); + if (opt.walkTokens) { + marked.walkTokens(tokens, opt.walkTokens); + } + return Parser.parseInline(tokens, opt); + } catch (e) { + e.message += '\nPlease report this to https://github.com/markedjs/marked.'; + if (opt.silent) { + return '

    An error occurred:

    '
    +        + escape(e.message + '', true)
    +        + '
    '; + } + throw e; + } +}; + +/** + * Expose + */ +marked.Parser = Parser; +marked.parser = Parser.parse; +marked.Renderer = Renderer; +marked.TextRenderer = TextRenderer; +marked.Lexer = Lexer; +marked.lexer = Lexer.lex; +marked.Tokenizer = Tokenizer; +marked.Slugger = Slugger; +marked.parse = marked; + +const options = marked.options; +const setOptions = marked.setOptions; +const use = marked.use; +const walkTokens = marked.walkTokens; +const parseInline = marked.parseInline; +const parse = marked; +const parser = Parser.parse; +const lexer = Lexer.lex; + +export { Lexer, Parser, Renderer, Slugger, TextRenderer, Tokenizer, defaults, getDefaults, lexer, marked, options, parse, parseInline, parser, setOptions, use, walkTokens }; \ No newline at end of file diff --git a/code/WebApp/vanilla/lib/mermaid/mermaid.esm.min.mjs b/code/WebApp/vanilla/lib/mermaid/mermaid.esm.min.mjs new file mode 100644 index 00000000..b0e4c313 --- /dev/null +++ b/code/WebApp/vanilla/lib/mermaid/mermaid.esm.min.mjs @@ -0,0 +1,3 @@ +/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */ +var t={1362:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,12],o=[1,11],s=[1,15,24],c=[1,19],u=[1,31],l=[1,34],h=[1,32],f=[1,33],d=[1,35],p=[1,36],g=[1,37],y=[1,38],m=[1,41],v=[1,42],b=[1,43],_=[1,44],x=[15,24],w=[1,56],k=[1,57],T=[1,58],C=[1,59],E=[1,60],S=[1,61],A=[15,24,31,38,39,47,50,51,52,53,54,55,60,62],M=[15,24,29,31,38,39,43,47,50,51,52,53,54,55,60,62,77,78,79,80],N=[7,8,9,10,15,18,22,24],D=[47,77,78,79,80],B=[47,54,55,77,78,79,80],L=[47,50,51,52,53,77,78,79,80],O=[15,24,31],I=[1,93],R={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,CLASS_DIAGRAM:22,statements:23,EOF:24,statement:25,className:26,alphaNumToken:27,classLiteralName:28,GENERICTYPE:29,relationStatement:30,LABEL:31,classStatement:32,methodStatement:33,annotationStatement:34,clickStatement:35,cssClassStatement:36,CLASS:37,STYLE_SEPARATOR:38,STRUCT_START:39,members:40,STRUCT_STOP:41,ANNOTATION_START:42,ANNOTATION_END:43,MEMBER:44,SEPARATOR:45,relation:46,STR:47,relationType:48,lineType:49,AGGREGATION:50,EXTENSION:51,COMPOSITION:52,DEPENDENCY:53,LINE:54,DOTTED_LINE:55,CALLBACK:56,LINK:57,LINK_TARGET:58,CLICK:59,CALLBACK_NAME:60,CALLBACK_ARGS:61,HREF:62,CSSCLASS:63,commentToken:64,textToken:65,graphCodeTokens:66,textNoTagsToken:67,TAGSTART:68,TAGEND:69,"==":70,"--":71,PCT:72,DEFAULT:73,SPACE:74,MINUS:75,keywords:76,UNICODE_TEXT:77,NUM:78,ALPHA:79,BQUOTE_STR:80,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"CLASS_DIAGRAM",24:"EOF",29:"GENERICTYPE",31:"LABEL",37:"CLASS",38:"STYLE_SEPARATOR",39:"STRUCT_START",41:"STRUCT_STOP",42:"ANNOTATION_START",43:"ANNOTATION_END",44:"MEMBER",45:"SEPARATOR",47:"STR",50:"AGGREGATION",51:"EXTENSION",52:"COMPOSITION",53:"DEPENDENCY",54:"LINE",55:"DOTTED_LINE",56:"CALLBACK",57:"LINK",58:"LINK_TARGET",59:"CLICK",60:"CALLBACK_NAME",61:"CALLBACK_ARGS",62:"HREF",63:"CSSCLASS",66:"graphCodeTokens",68:"TAGSTART",69:"TAGEND",70:"==",71:"--",72:"PCT",73:"DEFAULT",74:"SPACE",75:"MINUS",76:"keywords",77:"UNICODE_TEXT",78:"NUM",79:"ALPHA",80:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[23,1],[23,2],[23,3],[26,1],[26,1],[26,2],[26,2],[26,2],[25,1],[25,2],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[32,2],[32,4],[32,5],[32,7],[34,4],[40,1],[40,2],[33,1],[33,2],[33,1],[33,1],[30,3],[30,4],[30,4],[30,5],[46,3],[46,2],[46,2],[46,1],[48,1],[48,1],[48,1],[48,1],[49,1],[49,1],[35,3],[35,4],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[35,3],[35,4],[35,4],[35,5],[36,3],[64,1],[64,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[65,1],[67,1],[67,1],[67,1],[67,1],[27,1],[27,1],[27,1],[28,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:r.parseDirective(a[s],"type_directive");break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","class");break;case 19:case 20:this.$=a[s];break;case 21:this.$=a[s-1]+a[s];break;case 22:case 23:this.$=a[s-1]+"~"+a[s];break;case 24:r.addRelation(a[s]);break;case 25:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 33:r.addClass(a[s]);break;case 34:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 35:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 36:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 37:r.addAnnotation(a[s],a[s-2]);break;case 38:this.$=[a[s]];break;case 39:a[s].push(a[s-1]),this.$=a[s];break;case 40:case 42:case 43:break;case 41:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 44:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 45:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 46:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 47:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 48:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 49:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 50:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 51:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 52:this.$=r.relationType.AGGREGATION;break;case 53:this.$=r.relationType.EXTENSION;break;case 54:this.$=r.relationType.COMPOSITION;break;case 55:this.$=r.relationType.DEPENDENCY;break;case 56:this.$=r.lineType.LINE;break;case 57:this.$=r.lineType.DOTTED_LINE;break;case 58:case 64:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 59:case 65:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 60:case 68:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 61:case 69:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 62:case 70:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 63:case 71:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 66:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 67:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 72:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[3]},{1:[2,1]},{1:[2,2]},{3:13,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o},{1:[2,8]},t(s,[2,4]),t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),{13:14,19:[1,15]},{15:[1,16]},{19:[2,11]},{1:[2,3]},{14:17,16:[1,18],21:c},t([16,21],[2,12]),{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:20,25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:u,42:l,44:h,45:f,56:d,57:p,59:g,63:y,77:m,78:v,79:b,80:_},{15:[1,45]},{17:46,20:[1,47]},{15:[2,14]},{24:[1,48]},{15:[1,49],24:[2,16]},t(x,[2,24],{31:[1,50]}),t(x,[2,26]),t(x,[2,27]),t(x,[2,28]),t(x,[2,29]),t(x,[2,30]),t(x,[2,31]),t(x,[2,32]),t(x,[2,40],{46:51,48:54,49:55,31:[1,53],47:[1,52],50:w,51:k,52:T,53:C,54:E,55:S}),{26:62,27:39,28:40,77:m,78:v,79:b,80:_},t(x,[2,42]),t(x,[2,43]),{27:63,77:m,78:v,79:b},{26:64,27:39,28:40,77:m,78:v,79:b,80:_},{26:65,27:39,28:40,77:m,78:v,79:b,80:_},{26:66,27:39,28:40,77:m,78:v,79:b,80:_},{47:[1,67]},t(A,[2,19],{27:39,28:40,26:68,29:[1,69],77:m,78:v,79:b,80:_}),t(A,[2,20],{29:[1,70]}),t(M,[2,86]),t(M,[2,87]),t(M,[2,88]),t([15,24,29,31,38,39,47,50,51,52,53,54,55,60,62],[2,89]),t(N,[2,9]),{14:71,21:c},{21:[2,13]},{1:[2,15]},{5:29,6:28,7:e,8:n,9:r,10:i,12:10,18:a,23:72,24:[2,17],25:21,26:30,27:39,28:40,30:22,32:23,33:24,34:25,35:26,36:27,37:u,42:l,44:h,45:f,56:d,57:p,59:g,63:y,77:m,78:v,79:b,80:_},t(x,[2,25]),{26:73,27:39,28:40,47:[1,74],77:m,78:v,79:b,80:_},{46:75,48:54,49:55,50:w,51:k,52:T,53:C,54:E,55:S},t(x,[2,41]),{49:76,54:E,55:S},t(D,[2,51],{48:77,50:w,51:k,52:T,53:C}),t(B,[2,52]),t(B,[2,53]),t(B,[2,54]),t(B,[2,55]),t(L,[2,56]),t(L,[2,57]),t(x,[2,33],{38:[1,78],39:[1,79]}),{43:[1,80]},{47:[1,81]},{47:[1,82]},{60:[1,83],62:[1,84]},{27:85,77:m,78:v,79:b},t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),{15:[1,86]},{24:[2,18]},t(O,[2,44]),{26:87,27:39,28:40,77:m,78:v,79:b,80:_},{26:88,27:39,28:40,47:[1,89],77:m,78:v,79:b,80:_},t(D,[2,50],{48:90,50:w,51:k,52:T,53:C}),t(D,[2,49]),{27:91,77:m,78:v,79:b},{40:92,44:I},{26:94,27:39,28:40,77:m,78:v,79:b,80:_},t(x,[2,58],{47:[1,95]}),t(x,[2,60],{47:[1,97],58:[1,96]}),t(x,[2,64],{47:[1,98],61:[1,99]}),t(x,[2,68],{47:[1,101],58:[1,100]}),t(x,[2,72]),t(N,[2,10]),t(O,[2,46]),t(O,[2,45]),{26:102,27:39,28:40,77:m,78:v,79:b,80:_},t(D,[2,48]),t(x,[2,34],{39:[1,103]}),{41:[1,104]},{40:105,41:[2,38],44:I},t(x,[2,37]),t(x,[2,59]),t(x,[2,61]),t(x,[2,62],{58:[1,106]}),t(x,[2,65]),t(x,[2,66],{47:[1,107]}),t(x,[2,69]),t(x,[2,70],{58:[1,108]}),t(O,[2,47]),{40:109,44:I},t(x,[2,35]),{41:[2,39]},t(x,[2,63]),t(x,[2,67]),t(x,[2,71]),{41:[1,110]},t(x,[2,36])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],12:[2,11],13:[2,3],19:[2,14],47:[2,13],48:[2,15],72:[2,18],105:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},F={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:case 10:case 12:case 19:break;case 11:return 15;case 13:case 14:return 22;case 15:return this.begin("struct"),39;case 16:return"EOF_IN_STRUCT";case 17:return"OPEN_IN_STRUCT";case 18:return this.popState(),41;case 20:return"MEMBER";case 21:return 37;case 22:return 63;case 23:return 56;case 24:return 57;case 25:return 59;case 26:return 42;case 27:return 43;case 28:this.begin("generic");break;case 29:case 32:case 35:case 38:case 41:case 44:this.popState();break;case 30:return"GENERICTYPE";case 31:this.begin("string");break;case 33:return"STR";case 34:this.begin("bqstring");break;case 36:return"BQUOTE_STR";case 37:this.begin("href");break;case 39:return 62;case 40:this.begin("callback_name");break;case 42:this.popState(),this.begin("callback_args");break;case 43:return 60;case 45:return 61;case 46:case 47:case 48:case 49:return 58;case 50:case 51:return 51;case 52:case 53:return 53;case 54:return 52;case 55:return 50;case 56:return 54;case 57:return 55;case 58:return 31;case 59:return 38;case 60:return 75;case 61:return"DOT";case 62:return"PLUS";case 63:return 72;case 64:case 65:return"EQUALS";case 66:return 79;case 67:return"PUNCTUATION";case 68:return 78;case 69:return 77;case 70:return 74;case 71:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[44,45],inclusive:!1},callback_name:{rules:[41,42,43],inclusive:!1},href:{rules:[38,39],inclusive:!1},struct:{rules:[16,17,18,19,20],inclusive:!1},generic:{rules:[29,30],inclusive:!1},bqstring:{rules:[35,36],inclusive:!1},string:{rules:[32,33],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,13,14,15,21,22,23,24,25,26,27,28,31,34,37,40,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71],inclusive:!0}}};function P(){this.yy={}}return R.lexer=F,P.prototype=R,R.Parser=P,new P}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8218).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},5890:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,23,25,27,45],i=[1,17],a=[1,18],o=[1,19],s=[1,22],c=[1,27],u=[1,28],l=[1,29],h=[1,30],f=[1,41],d=[27,42,43],p=[4,6,9,11,23,25,27,45],g=[38,39,40,41],y=[22,33],m=[1,59],v={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,accDescription:25,description_value:26,ALPHANUM:27,attribute:28,attributeType:29,attributeName:30,attributeKeyType:31,attributeComment:32,ATTRIBUTE_WORD:33,ATTRIBUTE_KEY:34,COMMENT:35,cardinality:36,relType:37,ZERO_OR_ONE:38,ZERO_OR_MORE:39,ONE_OR_MORE:40,ONLY_ONE:41,NON_IDENTIFYING:42,IDENTIFYING:43,WORD:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"accDescription",26:"description_value",27:"ALPHANUM",33:"ATTRIBUTE_WORD",34:"ATTRIBUTE_KEY",35:"COMMENT",38:"ZERO_OR_ONE",39:"ZERO_OR_MORE",40:"ONE_OR_MORE",41:"ONLY_ONE",42:"NON_IDENTIFYING",43:"IDENTIFYING",44:"WORD",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[17,1],[21,1],[21,2],[28,2],[28,3],[28,3],[28,4],[29,1],[30,1],[31,1],[32,1],[18,3],[36,1],[36,1],[36,1],[36,1],[37,1],[37,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 18:case 25:case 26:case 27:case 37:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 16:this.$=a[s].trim(),r.setTitle(this.$);break;case 17:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=[a[s]];break;case 20:a[s].push(a[s-1]),this.$=a[s];break;case 21:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 22:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyType:a[s]};break;case 23:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 24:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyType:a[s-1],attributeComment:a[s]};break;case 28:case 36:this.$=a[s].replace(/"/g,"");break;case 29:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 30:this.$=r.Cardinality.ZERO_OR_ONE;break;case 31:this.$=r.Cardinality.ZERO_OR_MORE;break;case 32:this.$=r.Cardinality.ONE_OR_MORE;break;case 33:this.$=r.Cardinality.ONLY_ONE;break;case 34:this.$=r.Identification.NON_IDENTIFYING;break;case 35:this.$=r.Identification.IDENTIFYING;break;case 38:r.parseDirective("%%{","open_directive");break;case 39:r.parseDirective(a[s],"type_directive");break;case 40:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 41:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,45:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,45:n},{13:8,46:[1,9]},{46:[2,38]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,25:a,27:o,45:n},{1:[2,2]},{14:20,15:[1,21],48:s},t([15,48],[2,39]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:23,12:4,17:16,23:i,25:a,27:o,45:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,15],{18:24,36:26,20:[1,25],38:c,39:u,40:l,41:h}),{24:[1,31]},{26:[1,32]},t([6,9,11,15,20,23,25,27,38,39,40,41,45],[2,18]),{11:[1,33]},{16:34,47:[1,35]},{11:[2,41]},t(r,[2,5]),{17:36,27:o},{21:37,22:[1,38],28:39,29:40,33:f},{37:42,42:[1,43],43:[1,44]},t(d,[2,30]),t(d,[2,31]),t(d,[2,32]),t(d,[2,33]),t(r,[2,16]),t(r,[2,17]),t(p,[2,9]),{14:45,48:s},{48:[2,40]},{15:[1,46]},{22:[1,47]},t(r,[2,14]),{21:48,22:[2,19],28:39,29:40,33:f},{30:49,33:[1,50]},{33:[2,25]},{36:51,38:c,39:u,40:l,41:h},t(g,[2,34]),t(g,[2,35]),{11:[1,52]},{19:53,27:[1,55],44:[1,54]},t(r,[2,13]),{22:[2,20]},t(y,[2,21],{31:56,32:57,34:[1,58],35:m}),t([22,33,34,35],[2,26]),{27:[2,29]},t(p,[2,10]),t(r,[2,12]),t(r,[2,36]),t(r,[2,37]),t(y,[2,22],{32:60,35:m}),t(y,[2,23]),t([22,33,35],[2,27]),t(y,[2,28]),t(y,[2,24])],defaultActions:{5:[2,38],7:[2,2],22:[2,41],35:[2,40],41:[2,25],48:[2,20],51:[2,29]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("title"),23;case 1:return this.popState(),"title_value";case 2:return this.begin("accDescription"),25;case 3:return this.popState(),"description_value";case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),15;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 17:case 21:break;case 11:return 11;case 13:return 9;case 14:return 44;case 15:return 4;case 16:return this.begin("block"),20;case 18:return 34;case 19:return 33;case 20:return 35;case 22:return this.popState(),22;case 23:case 36:return e.yytext[0];case 24:case 28:return 38;case 25:case 29:return 39;case 26:case 30:return 40;case 27:return 41;case 31:case 33:case 34:return 42;case 32:return 43;case 35:return 27;case 37:return 6}},rules:[/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{accDescription:{rules:[3],inclusive:!1},title:{rules:[1],inclusive:!1},open_directive:{rules:[5],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},block:{rules:[17,18,19,20,21,22,23],inclusive:!1},INITIAL:{rules:[0,2,4,9,10,11,12,13,14,15,16,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function _(){this.yy={}}return v.lexer=b,_.prototype=v,v.Parser=_,new _}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8009).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3602:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,9],n=[1,7],r=[1,6],i=[1,8],a=[1,20,21,22,23,38,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],o=[2,10],s=[1,20],c=[1,21],u=[1,22],l=[1,23],h=[1,30],f=[1,59],d=[1,45],p=[1,49],g=[1,33],y=[1,34],m=[1,35],v=[1,36],b=[1,37],_=[1,53],x=[1,60],w=[1,48],k=[1,50],T=[1,52],C=[1,56],E=[1,57],S=[1,38],A=[1,39],M=[1,40],N=[1,41],D=[1,58],B=[1,47],L=[1,51],O=[1,54],I=[1,55],R=[1,46],F=[1,63],P=[1,68],j=[1,20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],Y=[1,72],z=[1,71],U=[1,73],q=[20,21,23,76,77],H=[1,94],$=[1,99],W=[1,102],V=[1,103],G=[1,96],X=[1,101],Z=[1,104],Q=[1,97],K=[1,109],J=[1,108],tt=[1,98],et=[1,100],nt=[1,105],rt=[1,106],it=[1,107],at=[1,110],ot=[20,21,22,23,76,77],st=[20,21,22,23,48,76,77],ct=[20,21,22,23,40,47,48,50,52,54,56,58,60,61,62,64,66,68,69,71,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],ut=[20,21,23],lt=[20,21,23,47,61,62,76,77,86,90,100,101,104,106,107,117,118,119,120,121,122],ht=[1,12,20,21,22,23,24,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],ft=[47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],dt=[1,144],pt=[1,152],gt=[1,153],yt=[1,154],mt=[1,155],vt=[1,139],bt=[1,140],_t=[1,136],xt=[1,147],wt=[1,148],kt=[1,149],Tt=[1,150],Ct=[1,151],Et=[1,156],St=[1,157],At=[1,142],Mt=[1,145],Nt=[1,141],Dt=[1,138],Bt=[20,21,22,23,38,42,47,61,62,81,82,83,84,85,86,90,100,101,104,106,107,113,114,115,116,117,118,119,120,121,122],Lt=[1,160],Ot=[20,21,22,23,26,47,61,62,86,100,101,104,106,107,117,118,119,120,121,122],It=[20,21,22,23,24,26,38,40,41,42,47,51,53,55,57,59,61,62,63,65,67,68,70,72,76,77,81,82,83,84,85,86,87,90,100,101,104,106,107,108,109,117,118,119,120,121,122],Rt=[12,21,22,24],Ft=[22,101],Pt=[1,245],jt=[1,240],Yt=[1,241],zt=[1,249],Ut=[1,246],qt=[1,243],Ht=[1,242],$t=[1,244],Wt=[1,247],Vt=[1,248],Gt=[1,250],Xt=[1,268],Zt=[20,21,23,101],Qt=[20,21,22,23,61,62,81,97,100,101,104,105,106,107,108],Kt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,link:44,node:45,vertex:46,AMP:47,STYLE_SEPARATOR:48,idString:49,DOUBLECIRCLESTART:50,DOUBLECIRCLEEND:51,PS:52,PE:53,"(-":54,"-)":55,STADIUMSTART:56,STADIUMEND:57,SUBROUTINESTART:58,SUBROUTINEEND:59,VERTEX_WITH_PROPS_START:60,ALPHA:61,COLON:62,PIPE:63,CYLINDERSTART:64,CYLINDEREND:65,DIAMOND_START:66,DIAMOND_STOP:67,TAGEND:68,TRAPSTART:69,TRAPEND:70,INVTRAPSTART:71,INVTRAPEND:72,linkStatement:73,arrowText:74,TESTSTR:75,START_LINK:76,LINK:77,textToken:78,STR:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTags:88,textNoTagsToken:89,DEFAULT:90,stylesOpt:91,alphaNum:92,CALLBACKNAME:93,CALLBACKARGS:94,HREF:95,LINK_TARGET:96,HEX:97,numList:98,INTERPOLATE:99,NUM:100,COMMA:101,style:102,styleComponent:103,MINUS:104,UNIT:105,BRKT:106,DOT:107,PCT:108,TAGSTART:109,alphaNumToken:110,idStringToken:111,alphaNumStatement:112,direction_tb:113,direction_bt:114,direction_rl:115,direction_lr:116,PUNCTUATION:117,UNICODE_TEXT:118,PLUS:119,EQUALS:120,MULT:121,UNDERSCORE:122,graphCodeTokens:123,ARROW_CROSS:124,ARROW_POINT:125,ARROW_CIRCLE:126,ARROW_OPEN:127,QUOTE:128,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",47:"AMP",48:"STYLE_SEPARATOR",50:"DOUBLECIRCLESTART",51:"DOUBLECIRCLEEND",52:"PS",53:"PE",54:"(-",55:"-)",56:"STADIUMSTART",57:"STADIUMEND",58:"SUBROUTINESTART",59:"SUBROUTINEEND",60:"VERTEX_WITH_PROPS_START",61:"ALPHA",62:"COLON",63:"PIPE",64:"CYLINDERSTART",65:"CYLINDEREND",66:"DIAMOND_START",67:"DIAMOND_STOP",68:"TAGEND",69:"TRAPSTART",70:"TRAPEND",71:"INVTRAPSTART",72:"INVTRAPEND",75:"TESTSTR",76:"START_LINK",77:"LINK",79:"STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"DEFAULT",93:"CALLBACKNAME",94:"CALLBACKARGS",95:"HREF",96:"LINK_TARGET",97:"HEX",99:"INTERPOLATE",100:"NUM",101:"COMMA",104:"MINUS",105:"UNIT",106:"BRKT",107:"DOT",108:"PCT",109:"TAGSTART",113:"direction_tb",114:"direction_bt",115:"direction_rl",116:"direction_lr",117:"PUNCTUATION",118:"UNICODE_TEXT",119:"PLUS",120:"EQUALS",121:"MULT",122:"UNDERSCORE",124:"ARROW_CROSS",125:"ARROW_POINT",126:"ARROW_CIRCLE",127:"ARROW_OPEN",128:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[45,1],[45,5],[45,3],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,8],[46,4],[46,4],[46,4],[46,6],[46,4],[46,4],[46,4],[46,4],[46,4],[46,1],[44,2],[44,3],[44,3],[44,1],[44,3],[73,1],[74,3],[39,1],[39,2],[39,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[88,1],[88,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[98,1],[98,3],[91,1],[91,3],[102,1],[102,2],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[78,1],[78,1],[78,1],[78,1],[78,1],[78,1],[89,1],[89,1],[89,1],[89,1],[49,1],[49,2],[92,1],[92,2],[112,1],[112,1],[112,1],[112,1],[43,1],[43,1],[43,1],[43,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[s]!==[]&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 79:case 81:case 93:case 149:case 151:case 152:case 75:case 147:this.$=a[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 48:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 49:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 50:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 51:this.$={stmt:a[s],nodes:a[s]};break;case 52:case 120:case 122:this.$=[a[s]];break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 55:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"square");break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"doublecircle");break;case 57:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"circle");break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"ellipse");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"stadium");break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"subroutine");break;case 61:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"cylinder");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"round");break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"diamond");break;case 65:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"hexagon");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"odd");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"trapezoid");break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_right");break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_left");break;case 71:this.$=a[s],r.addVertex(a[s]);break;case 72:a[s-1].text=a[s],this.$=a[s-1];break;case 73:case 74:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 77:c=r.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 78:this.$=a[s-1];break;case 80:case 94:case 150:case 148:this.$=a[s-1]+""+a[s];break;case 95:case 96:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 97:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 98:case 106:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 99:case 107:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 100:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 101:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 102:case 108:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 103:case 109:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 104:case 110:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 105:case 111:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 112:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 113:case 115:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 114:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 116:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 117:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 118:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 119:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 121:case 123:a[s-2].push(a[s]),this.$=a[s-2];break;case 125:this.$=a[s-1]+a[s];break;case 153:this.$="v";break;case 154:this.$="-";break;case 155:this.$={stmt:"dir",value:"TB"};break;case 156:this.$={stmt:"dir",value:"BT"};break;case 157:this.$={stmt:"dir",value:"RL"};break;case 158:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,45:32,46:42,47:f,49:43,61:d,62:p,81:g,82:y,83:m,84:v,85:b,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,113:S,114:A,115:M,116:N,117:D,118:B,119:L,120:O,121:I,122:R},{8:61,10:[1,62],15:F},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,65],21:[1,66],22:P,27:64,30:67},t(j,[2,11]),t(j,[2,12]),t(j,[2,13]),t(j,[2,14]),t(j,[2,15]),t(j,[2,16]),{9:69,20:Y,21:z,23:U,44:70,73:74,76:[1,75],77:[1,76]},{9:77,20:Y,21:z,23:U},{9:78,20:Y,21:z,23:U},{9:79,20:Y,21:z,23:U},{9:80,20:Y,21:z,23:U},{9:81,20:Y,21:z,23:U},{9:83,20:Y,21:z,22:[1,82],23:U},t(j,[2,44]),t(q,[2,51],{30:84,22:P}),{22:[1,85]},{22:[1,86]},{22:[1,87]},{22:[1,88]},{26:H,47:$,61:W,62:V,79:[1,92],86:G,92:91,93:[1,89],95:[1,90],100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(j,[2,155]),t(j,[2,156]),t(j,[2,157]),t(j,[2,158]),t(ot,[2,52],{48:[1,111]}),t(st,[2,71],{111:124,40:[1,112],47:f,50:[1,113],52:[1,114],54:[1,115],56:[1,116],58:[1,117],60:[1,118],61:d,62:p,64:[1,119],66:[1,120],68:[1,121],69:[1,122],71:[1,123],86:_,90:x,100:w,101:k,104:T,106:C,107:E,117:D,118:B,119:L,120:O,121:I,122:R}),t(ct,[2,147]),t(ct,[2,172]),t(ct,[2,173]),t(ct,[2,174]),t(ct,[2,175]),t(ct,[2,176]),t(ct,[2,177]),t(ct,[2,178]),t(ct,[2,179]),t(ct,[2,180]),t(ct,[2,181]),t(ct,[2,182]),t(ct,[2,183]),t(ct,[2,184]),t(ct,[2,185]),t(ct,[2,186]),t(ct,[2,187]),{9:125,20:Y,21:z,23:U},{11:126,14:[1,127]},t(ut,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,128]},t(lt,[2,34],{30:129,22:P}),t(j,[2,35]),{45:130,46:42,47:f,49:43,61:d,62:p,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,117:D,118:B,119:L,120:O,121:I,122:R},t(ht,[2,45]),t(ht,[2,46]),t(ht,[2,47]),t(ft,[2,75],{74:131,63:[1,133],75:[1,132]}),{22:dt,24:pt,26:gt,38:yt,39:134,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t([47,61,62,63,75,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,77]),t(j,[2,36]),t(j,[2,37]),t(j,[2,38]),t(j,[2,39]),t(j,[2,40]),{22:dt,24:pt,26:gt,38:yt,39:158,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(Bt,o,{17:159}),t(q,[2,50],{47:Lt}),{26:H,47:$,61:W,62:V,86:G,92:161,97:[1,162],100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},{90:[1,163],98:164,100:[1,165]},{26:H,47:$,61:W,62:V,86:G,90:[1,166],92:167,100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},{26:H,47:$,61:W,62:V,86:G,92:168,100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(ut,[2,98],{22:[1,169],94:[1,170]}),t(ut,[2,102],{22:[1,171]}),t(ut,[2,106],{110:95,112:173,22:[1,172],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,117:tt,118:et,119:nt,120:rt,121:it,122:at}),t(ut,[2,108],{22:[1,174]}),t(Ot,[2,149]),t(Ot,[2,151]),t(Ot,[2,152]),t(Ot,[2,153]),t(Ot,[2,154]),t(It,[2,159]),t(It,[2,160]),t(It,[2,161]),t(It,[2,162]),t(It,[2,163]),t(It,[2,164]),t(It,[2,165]),t(It,[2,166]),t(It,[2,167]),t(It,[2,168]),t(It,[2,169]),t(It,[2,170]),t(It,[2,171]),{47:f,49:175,61:d,62:p,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,117:D,118:B,119:L,120:O,121:I,122:R},{22:dt,24:pt,26:gt,38:yt,39:176,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:177,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:179,42:mt,47:$,52:[1,178],61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:180,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:181,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:182,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{61:[1,183]},{22:dt,24:pt,26:gt,38:yt,39:184,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:185,42:mt,47:$,61:W,62:V,66:[1,186],68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:187,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:188,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:189,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(ct,[2,148]),t(Rt,[2,3]),{8:190,15:F},{15:[2,7]},t(a,[2,28]),t(lt,[2,33]),t(q,[2,48],{30:191,22:P}),t(ft,[2,72],{22:[1,192]}),{22:[1,193]},{22:dt,24:pt,26:gt,38:yt,39:194,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,68:vt,76:bt,77:[1,195],78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(It,[2,79]),t(It,[2,81]),t(It,[2,137]),t(It,[2,138]),t(It,[2,139]),t(It,[2,140]),t(It,[2,141]),t(It,[2,142]),t(It,[2,143]),t(It,[2,144]),t(It,[2,145]),t(It,[2,146]),t(It,[2,82]),t(It,[2,83]),t(It,[2,84]),t(It,[2,85]),t(It,[2,86]),t(It,[2,87]),t(It,[2,88]),t(It,[2,89]),t(It,[2,90]),t(It,[2,91]),t(It,[2,92]),{9:198,20:Y,21:z,22:dt,23:U,24:pt,26:gt,38:yt,40:[1,197],42:mt,47:$,61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,199],43:31,45:32,46:42,47:f,49:43,61:d,62:p,81:g,82:y,83:m,84:v,85:b,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,113:S,114:A,115:M,116:N,117:D,118:B,119:L,120:O,121:I,122:R},{22:P,30:200},{22:[1,201],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,110:95,112:173,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:[1,202]},{22:[1,203]},{22:[1,204],101:[1,205]},t(Ft,[2,120]),{22:[1,206]},{22:[1,207],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,110:95,112:173,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:[1,208],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,110:95,112:173,117:tt,118:et,119:nt,120:rt,121:it,122:at},{79:[1,209]},t(ut,[2,100],{22:[1,210]}),{79:[1,211],96:[1,212]},{79:[1,213]},t(Ot,[2,150]),{79:[1,214],96:[1,215]},t(ot,[2,54],{111:124,47:f,61:d,62:p,86:_,90:x,100:w,101:k,104:T,106:C,107:E,117:D,118:B,119:L,120:O,121:I,122:R}),{22:dt,24:pt,26:gt,38:yt,41:[1,216],42:mt,47:$,61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,51:[1,217],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:218,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,53:[1,219],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,55:[1,220],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,57:[1,221],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,59:[1,222],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{62:[1,223]},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,65:[1,224],68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,67:[1,225],68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,39:226,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,41:[1,227],42:mt,47:$,61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,68:vt,70:[1,228],72:[1,229],76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,68:vt,70:[1,231],72:[1,230],76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{9:232,20:Y,21:z,23:U},t(q,[2,49],{47:Lt}),t(ft,[2,74]),t(ft,[2,73]),{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,63:[1,233],68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(ft,[2,76]),t(It,[2,80]),{22:dt,24:pt,26:gt,38:yt,39:234,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(Bt,o,{17:235}),t(j,[2,43]),{46:236,47:f,49:43,61:d,62:p,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,117:D,118:B,119:L,120:O,121:I,122:R},{22:Pt,61:jt,62:Yt,81:zt,91:237,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{22:Pt,61:jt,62:Yt,81:zt,91:251,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{22:Pt,61:jt,62:Yt,81:zt,91:252,97:Ut,99:[1,253],100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{22:Pt,61:jt,62:Yt,81:zt,91:254,97:Ut,99:[1,255],100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{100:[1,256]},{22:Pt,61:jt,62:Yt,81:zt,91:257,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{22:Pt,61:jt,62:Yt,81:zt,91:258,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{26:H,47:$,61:W,62:V,86:G,92:259,100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(ut,[2,99]),{79:[1,260]},t(ut,[2,103],{22:[1,261]}),t(ut,[2,104]),t(ut,[2,107]),t(ut,[2,109],{22:[1,262]}),t(ut,[2,110]),t(st,[2,55]),t(st,[2,56]),{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,53:[1,263],61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(st,[2,63]),t(st,[2,58]),t(st,[2,59]),t(st,[2,60]),{61:[1,264]},t(st,[2,62]),t(st,[2,64]),{22:dt,24:pt,26:gt,38:yt,42:mt,47:$,61:W,62:V,67:[1,265],68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(st,[2,66]),t(st,[2,67]),t(st,[2,69]),t(st,[2,68]),t(st,[2,70]),t(Rt,[2,4]),t([22,47,61,62,86,90,100,101,104,106,107,117,118,119,120,121,122],[2,78]),{22:dt,24:pt,26:gt,38:yt,41:[1,266],42:mt,47:$,61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,267],43:31,45:32,46:42,47:f,49:43,61:d,62:p,81:g,82:y,83:m,84:v,85:b,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,113:S,114:A,115:M,116:N,117:D,118:B,119:L,120:O,121:I,122:R},t(ot,[2,53]),t(ut,[2,112],{101:Xt}),t(Zt,[2,122],{103:269,22:Pt,61:jt,62:Yt,81:zt,97:Ut,100:qt,104:Ht,105:$t,106:Wt,107:Vt,108:Gt}),t(Qt,[2,124]),t(Qt,[2,126]),t(Qt,[2,127]),t(Qt,[2,128]),t(Qt,[2,129]),t(Qt,[2,130]),t(Qt,[2,131]),t(Qt,[2,132]),t(Qt,[2,133]),t(Qt,[2,134]),t(Qt,[2,135]),t(Qt,[2,136]),t(ut,[2,113],{101:Xt}),t(ut,[2,114],{101:Xt}),{22:[1,270]},t(ut,[2,115],{101:Xt}),{22:[1,271]},t(Ft,[2,121]),t(ut,[2,95],{101:Xt}),t(ut,[2,96],{101:Xt}),t(ut,[2,97],{110:95,112:173,26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,117:tt,118:et,119:nt,120:rt,121:it,122:at}),t(ut,[2,101]),{96:[1,272]},{96:[1,273]},{53:[1,274]},{63:[1,275]},{67:[1,276]},{9:277,20:Y,21:z,23:U},t(j,[2,42]),{22:Pt,61:jt,62:Yt,81:zt,97:Ut,100:qt,102:278,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},t(Qt,[2,125]),{26:H,47:$,61:W,62:V,86:G,92:279,100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},{26:H,47:$,61:W,62:V,86:G,92:280,100:X,101:Z,104:Q,106:K,107:J,110:95,112:93,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(ut,[2,105]),t(ut,[2,111]),t(st,[2,57]),{22:dt,24:pt,26:gt,38:yt,39:281,42:mt,47:$,61:W,62:V,68:vt,76:bt,78:135,79:_t,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},t(st,[2,65]),t(Bt,o,{17:282}),t(Zt,[2,123],{103:269,22:Pt,61:jt,62:Yt,81:zt,97:Ut,100:qt,104:Ht,105:$t,106:Wt,107:Vt,108:Gt}),t(ut,[2,118],{110:95,112:173,22:[1,283],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,117:tt,118:et,119:nt,120:rt,121:it,122:at}),t(ut,[2,119],{110:95,112:173,22:[1,284],26:H,47:$,61:W,62:V,86:G,100:X,101:Z,104:Q,106:K,107:J,117:tt,118:et,119:nt,120:rt,121:it,122:at}),{22:dt,24:pt,26:gt,38:yt,41:[1,285],42:mt,47:$,61:W,62:V,68:vt,76:bt,78:196,80:146,81:xt,82:wt,83:kt,84:Tt,85:Ct,86:Et,87:St,89:137,90:At,100:X,101:Z,104:Mt,106:K,107:J,108:Nt,109:Dt,110:143,117:tt,118:et,119:nt,120:rt,121:it,122:at},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,286],43:31,45:32,46:42,47:f,49:43,61:d,62:p,81:g,82:y,83:m,84:v,85:b,86:_,90:x,100:w,101:k,104:T,106:C,107:E,111:44,113:S,114:A,115:M,116:N,117:D,118:B,119:L,120:O,121:I,122:R},{22:Pt,61:jt,62:Yt,81:zt,91:287,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},{22:Pt,61:jt,62:Yt,81:zt,91:288,97:Ut,100:qt,102:238,103:239,104:Ht,105:$t,106:Wt,107:Vt,108:Gt},t(st,[2,61]),t(j,[2,41]),t(ut,[2,116],{101:Xt}),t(ut,[2,117],{101:Xt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],127:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},Jt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:case 17:case 20:case 23:case 26:this.popState();break;case 9:return"STR";case 10:return 81;case 11:return 90;case 12:return 82;case 13:return 99;case 14:return 83;case 15:return 84;case 16:this.begin("href");break;case 18:return 95;case 19:this.begin("callbackname");break;case 21:this.popState(),this.begin("callbackargs");break;case 22:return 93;case 24:return 94;case 25:this.begin("click");break;case 27:return 85;case 28:case 29:return t.lex.firstGraph()&&this.begin("dir"),24;case 30:return 38;case 31:return 42;case 32:case 33:case 34:case 35:return 96;case 36:return this.popState(),25;case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:return this.popState(),26;case 47:return 113;case 48:return 114;case 49:return 115;case 50:return 116;case 51:return 100;case 52:return 106;case 53:return 48;case 54:return 62;case 55:return 47;case 56:return 20;case 57:return 101;case 58:return 121;case 59:case 60:case 61:return 77;case 62:case 63:case 64:return 76;case 65:return 54;case 66:return 55;case 67:return 56;case 68:return 57;case 69:return 58;case 70:return 59;case 71:return 60;case 72:return 64;case 73:return 65;case 74:return 50;case 75:return 51;case 76:return 104;case 77:return 107;case 78:return 122;case 79:return 119;case 80:return 108;case 81:case 82:return 120;case 83:return 109;case 84:return 68;case 85:return 87;case 86:return"SEP";case 87:return 86;case 88:return 61;case 89:return 70;case 90:return 69;case 91:return 72;case 92:return 71;case 93:return 117;case 94:return 118;case 95:return 63;case 96:return 52;case 97:return 53;case 98:return 40;case 99:return 41;case 100:return 66;case 101:return 67;case 102:return 128;case 103:return 21;case 104:return 22;case 105:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[23,24],inclusive:!1},callbackname:{rules:[20,21,22],inclusive:!1},href:{rules:[17,18],inclusive:!1},click:{rules:[26,27],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[36,37,38,39,40,41,42,43,44,45,46],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,19,25,28,29,30,31,32,33,34,35,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],inclusive:!0}}};function te(){this.yy={}}return Kt.lexer=Jt,te.prototype=Kt,Kt.Parser=te,new te}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(5354).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9959:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,20],l=[1,21],h=[1,22],f=[1,23],d=[1,25],p=[1,27],g=[1,30],y=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,29,34],m={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,section:20,clickStatement:21,taskTxt:22,taskData:23,openDirective:24,typeDirective:25,closeDirective:26,":":27,argDirective:28,click:29,callbackname:30,callbackargs:31,href:32,clickStatementDebug:33,open_directive:34,type_directive:35,arg_directive:36,close_directive:37,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"section",22:"taskTxt",23:"taskData",27:":",29:"click",30:"callbackname",31:"callbackargs",32:"href",34:"open_directive",35:"type_directive",36:"arg_directive",37:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[21,2],[21,3],[21,3],[21,4],[21,3],[21,4],[21,2],[33,2],[33,3],[33,3],[33,4],[33,3],[33,4],[33,2],[24,1],[25,1],[28,1],[26,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 14:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 16:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 17:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 19:r.addTask(a[s-1],a[s]),this.$="task";break;case 23:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 24:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 25:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 26:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 27:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 28:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 29:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 30:case 36:this.$=a[s-1]+" "+a[s];break;case 31:case 32:case 34:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 33:case 35:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 37:r.parseDirective("%%{","open_directive");break;case 38:r.parseDirective(a[s],"type_directive");break;case 39:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 40:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,24:4,34:n},{1:[3]},{3:6,4:2,5:e,24:4,34:n},t(r,[2,3],{6:7}),{25:8,35:[1,9]},{35:[2,37]},{1:[2,1]},{4:26,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:h,20:f,21:24,22:d,24:4,29:p,34:n},{26:28,27:[1,29],37:g},t([27,37],[2,38]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:26,10:31,12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:h,20:f,21:24,22:d,24:4,29:p,34:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),t(r,[2,17]),t(r,[2,18]),{23:[1,32]},t(r,[2,20]),{30:[1,33],32:[1,34]},{11:[1,35]},{28:36,36:[1,37]},{11:[2,40]},t(r,[2,5]),t(r,[2,19]),t(r,[2,23],{31:[1,38],32:[1,39]}),t(r,[2,29],{30:[1,40]}),t(y,[2,21]),{26:41,37:g},{37:[2,39]},t(r,[2,24],{32:[1,42]}),t(r,[2,25]),t(r,[2,27],{31:[1,43]}),{11:[1,44]},t(r,[2,26]),t(r,[2,28]),t(y,[2,22])],defaultActions:{5:[2,37],6:[2,1],30:[2,40],37:[2,39]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),34;case 1:return this.begin("type_directive"),35;case 2:return this.popState(),this.begin("arg_directive"),27;case 3:return this.popState(),this.popState(),37;case 4:return 36;case 5:case 6:case 7:case 9:case 10:case 11:break;case 8:return 11;case 12:this.begin("href");break;case 13:case 16:case 19:case 22:this.popState();break;case 14:return 32;case 15:this.begin("callbackname");break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 30;case 20:return 31;case 21:this.begin("click");break;case 23:return 29;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 17;case 30:return 16;case 31:return 18;case 32:return"date";case 33:return 19;case 34:return 20;case 35:return 22;case 36:return 23;case 37:return 27;case 38:return 7;case 39:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};function b(){this.yy={}}return m.lexer=v,b.prototype=m,m.Parser=b,new b}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(6878).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},2553:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,7],r=[1,5],i=[1,9],a=[1,6],o=[2,6],s=[1,16],c=[6,8,14,18,20,21,22,37,41],u=[8,14,18,20,21,22],l=[8,13,14,18,20,21,22],h=[1,26],f=[6,8,14,37,41],d=[8,14,41],p=[1,53],g=[1,54],y=[1,55],m=[8,14,24,28,29,41],v={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,BRANCH:18,ID:19,CHECKOUT:20,MERGE:21,COMMIT:22,commit_arg:23,COMMIT_TAG:24,STR:25,COMMIT_TYPE:26,commitType:27,COMMIT_ID:28,COMMIT_MSG:29,NORMAL:30,REVERSE:31,HIGHLIGHT:32,openDirective:33,typeDirective:34,closeDirective:35,argDirective:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,";":41,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",18:"BRANCH",19:"ID",20:"CHECKOUT",21:"MERGE",22:"COMMIT",24:"COMMIT_TAG",25:"STR",26:"COMMIT_TYPE",28:"COMMIT_ID",29:"COMMIT_MSG",30:"NORMAL",31:"REVERSE",32:"HIGHLIGHT",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive",41:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,2],[16,2],[16,2],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[23,0],[23,1],[27,1],[27,1],[27,1],[5,3],[5,5],[33,1],[34,1],[36,1],[35,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return a[s];case 4:return a[s-1];case 5:return r.setDirection(a[s-3]),a[s-1];case 7:r.setOptions(a[s-1]),this.$=a[s];break;case 8:a[s-1]+=a[s],this.$=a[s-1];break;case 10:this.$=[];break;case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 12:this.$=a[s-1];break;case 15:r.branch(a[s]);break;case 16:r.checkout(a[s]);break;case 17:r.merge(a[s]);break;case 18:r.commit(a[s]);break;case 19:r.commit("","",r.commitType.NORMAL,a[s]);break;case 20:r.commit("","",a[s],"");break;case 21:r.commit("","",a[s],a[s-2]);break;case 22:r.commit("","",a[s-2],a[s]);break;case 23:r.commit("",a[s],r.commitType.NORMAL,"");break;case 24:r.commit("",a[s-2],r.commitType.NORMAL,a[s]);break;case 25:r.commit("",a[s],r.commitType.NORMAL,a[s-2]);break;case 26:r.commit("",a[s-2],a[s],"");break;case 27:r.commit("",a[s],a[s-2],"");break;case 28:r.commit("",a[s-4],a[s-2],a[s]);break;case 29:r.commit("",a[s-4],a[s],a[s-2]);break;case 30:r.commit("",a[s-2],a[s-4],a[s]);break;case 31:r.commit("",a[s],a[s-4],a[s-2]);break;case 32:r.commit("",a[s],a[s-2],a[s-4]);break;case 33:r.commit("",a[s-2],a[s],a[s-4]);break;case 34:r.commit(a[s],"",r.commitType.NORMAL,"");break;case 35:r.commit(a[s],"",r.commitType.NORMAL,a[s-2]);break;case 36:r.commit(a[s-2],"",r.commitType.NORMAL,a[s]);break;case 37:r.commit(a[s-2],"",a[s],"");break;case 38:r.commit(a[s],"",a[s-2],"");break;case 39:r.commit(a[s],a[s-2],r.commitType.NORMAL,"");break;case 40:r.commit(a[s-2],a[s],r.commitType.NORMAL,"");break;case 41:r.commit(a[s-4],"",a[s-2],a[s]);break;case 42:r.commit(a[s-4],"",a[s],a[s-2]);break;case 43:r.commit(a[s-2],"",a[s-4],a[s]);break;case 44:r.commit(a[s],"",a[s-4],a[s-2]);break;case 45:r.commit(a[s],"",a[s-2],a[s-4]);break;case 46:r.commit(a[s-2],"",a[s],a[s-4]);break;case 47:r.commit(a[s-4],a[s],a[s-2],"");break;case 48:r.commit(a[s-4],a[s-2],a[s],"");break;case 49:r.commit(a[s-2],a[s],a[s-4],"");break;case 50:r.commit(a[s],a[s-2],a[s-4],"");break;case 51:r.commit(a[s],a[s-4],a[s-2],"");break;case 52:r.commit(a[s-2],a[s-4],a[s],"");break;case 53:r.commit(a[s-4],a[s],r.commitType.NORMAL,a[s-2]);break;case 54:r.commit(a[s-4],a[s-2],r.commitType.NORMAL,a[s]);break;case 55:r.commit(a[s-2],a[s],r.commitType.NORMAL,a[s-4]);break;case 56:r.commit(a[s],a[s-2],r.commitType.NORMAL,a[s-4]);break;case 57:r.commit(a[s],a[s-4],r.commitType.NORMAL,a[s-2]);break;case 58:r.commit(a[s-2],a[s-4],r.commitType.NORMAL,a[s]);break;case 59:r.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 60:r.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 61:r.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 62:r.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 63:r.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 64:r.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 65:r.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 66:r.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 67:r.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 68:r.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 69:r.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 70:r.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 71:r.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 72:r.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 73:r.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 74:r.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 75:r.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 76:r.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 77:r.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 78:r.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 79:r.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 80:r.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 81:r.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 82:r.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 83:this.$="";break;case 84:this.$=a[s];break;case 85:this.$=r.commitType.NORMAL;break;case 86:this.$=r.commitType.REVERSE;break;case 87:this.$=r.commitType.HIGHLIGHT;break;case 90:r.parseDirective("%%{","open_directive");break;case 91:r.parseDirective(a[s],"type_directive");break;case 92:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 93:r.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:n,14:r,33:8,37:i,41:a},{1:[3]},{3:10,4:2,5:3,6:e,8:n,14:r,33:8,37:i,41:a},{3:11,4:2,5:3,6:e,8:n,14:r,33:8,37:i,41:a},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,94]),t(c,[2,95]),t(c,[2,96]),{34:17,38:[1,18]},{38:[2,90]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},t(u,[2,10],{12:22,13:[1,23]}),t(l,[2,9]),{9:[1,25],35:24,40:h},t([9,40],[2,91]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:[1,33],20:[1,34],21:[1,35],22:[1,36]},t(l,[2,8]),t(f,[2,88]),{36:37,39:[1,38]},t(f,[2,93]),{1:[2,4]},{8:[1,39]},t(u,[2,11]),{4:40,8:n,14:r,41:a},t(u,[2,13]),t(d,[2,14]),{19:[1,41]},{19:[1,42]},{19:[1,43]},t(d,[2,83],{23:44,24:[1,45],25:[1,49],26:[1,46],28:[1,47],29:[1,48]}),{35:50,40:h},{40:[2,92]},{1:[2,5]},t(u,[2,12]),t(d,[2,15]),t(d,[2,16]),t(d,[2,17]),t(d,[2,18]),{25:[1,51]},{27:52,30:p,31:g,32:y},{25:[1,56]},{25:[1,57]},t(d,[2,84]),t(f,[2,89]),t(d,[2,19],{26:[1,58],28:[1,59],29:[1,60]}),t(d,[2,20],{24:[1,61],28:[1,62],29:[1,63]}),t(m,[2,85]),t(m,[2,86]),t(m,[2,87]),t(d,[2,23],{24:[1,64],26:[1,65],29:[1,66]}),t(d,[2,34],{24:[1,67],26:[1,68],28:[1,69]}),{27:70,30:p,31:g,32:y},{25:[1,71]},{25:[1,72]},{25:[1,73]},{25:[1,74]},{25:[1,75]},{25:[1,76]},{27:77,30:p,31:g,32:y},{25:[1,78]},{25:[1,79]},{27:80,30:p,31:g,32:y},{25:[1,81]},t(d,[2,21],{28:[1,82],29:[1,83]}),t(d,[2,25],{26:[1,84],29:[1,85]}),t(d,[2,35],{26:[1,86],28:[1,87]}),t(d,[2,22],{28:[1,88],29:[1,89]}),t(d,[2,27],{24:[1,90],29:[1,91]}),t(d,[2,38],{24:[1,92],28:[1,93]}),t(d,[2,24],{26:[1,94],29:[1,95]}),t(d,[2,26],{24:[1,96],29:[1,97]}),t(d,[2,39],{24:[1,99],26:[1,98]}),t(d,[2,36],{26:[1,100],28:[1,101]}),t(d,[2,37],{24:[1,102],28:[1,103]}),t(d,[2,40],{24:[1,105],26:[1,104]}),{25:[1,106]},{25:[1,107]},{27:108,30:p,31:g,32:y},{25:[1,109]},{27:110,30:p,31:g,32:y},{25:[1,111]},{25:[1,112]},{25:[1,113]},{25:[1,114]},{25:[1,115]},{25:[1,116]},{25:[1,117]},{27:118,30:p,31:g,32:y},{25:[1,119]},{25:[1,120]},{25:[1,121]},{27:122,30:p,31:g,32:y},{25:[1,123]},{27:124,30:p,31:g,32:y},{25:[1,125]},{25:[1,126]},{25:[1,127]},{27:128,30:p,31:g,32:y},{25:[1,129]},t(d,[2,32],{29:[1,130]}),t(d,[2,45],{28:[1,131]}),t(d,[2,33],{29:[1,132]}),t(d,[2,56],{26:[1,133]}),t(d,[2,46],{28:[1,134]}),t(d,[2,55],{26:[1,135]}),t(d,[2,31],{29:[1,136]}),t(d,[2,44],{28:[1,137]}),t(d,[2,30],{29:[1,138]}),t(d,[2,50],{24:[1,139]}),t(d,[2,43],{28:[1,140]}),t(d,[2,49],{24:[1,141]}),t(d,[2,29],{29:[1,142]}),t(d,[2,57],{26:[1,143]}),t(d,[2,28],{29:[1,144]}),t(d,[2,51],{24:[1,145]}),t(d,[2,52],{24:[1,146]}),t(d,[2,58],{26:[1,147]}),t(d,[2,42],{28:[1,148]}),t(d,[2,53],{26:[1,149]}),t(d,[2,41],{28:[1,150]}),t(d,[2,47],{24:[1,151]}),t(d,[2,48],{24:[1,152]}),t(d,[2,54],{26:[1,153]}),{25:[1,154]},{25:[1,155]},{25:[1,156]},{27:157,30:p,31:g,32:y},{25:[1,158]},{27:159,30:p,31:g,32:y},{25:[1,160]},{25:[1,161]},{25:[1,162]},{25:[1,163]},{25:[1,164]},{25:[1,165]},{25:[1,166]},{27:167,30:p,31:g,32:y},{25:[1,168]},{25:[1,169]},{25:[1,170]},{27:171,30:p,31:g,32:y},{25:[1,172]},{27:173,30:p,31:g,32:y},{25:[1,174]},{25:[1,175]},{25:[1,176]},{27:177,30:p,31:g,32:y},t(d,[2,73]),t(d,[2,74]),t(d,[2,71]),t(d,[2,72]),t(d,[2,76]),t(d,[2,75]),t(d,[2,80]),t(d,[2,79]),t(d,[2,78]),t(d,[2,77]),t(d,[2,82]),t(d,[2,81]),t(d,[2,70]),t(d,[2,69]),t(d,[2,68]),t(d,[2,67]),t(d,[2,65]),t(d,[2,66]),t(d,[2,64]),t(d,[2,63]),t(d,[2,62]),t(d,[2,61]),t(d,[2,59]),t(d,[2,60])],defaultActions:{9:[2,90],10:[2,1],11:[2,2],19:[2,3],27:[2,4],38:[2,92],39:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:return 14;case 6:case 7:case 8:break;case 9:return 6;case 10:return 22;case 11:return 28;case 12:return 26;case 13:return 29;case 14:return 30;case 15:return 31;case 16:return 32;case 17:return 24;case 18:return 18;case 19:return 21;case 20:return 20;case 21:case 22:return 10;case 23:return 9;case 24:return"CARET";case 25:this.begin("options");break;case 26:case 29:this.popState();break;case 27:return 13;case 28:this.begin("string");break;case 30:return 25;case 31:return 19;case 32:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[26,27],inclusive:!1},string:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,28,31,32],inclusive:!0}}};function _(){this.yy={}}return v.lexer=b,_.prototype=v,v.Parser=_,new _}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8183).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6765:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(1428).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7062:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,11,13,15,22,23,24,25],s=[2,5],c=[1,6,11,13,15,22,23,24,25],u=[22,23,24],l=[2,8],h=[1,18],f=[1,19],d=[1,20],p=[1,25],g=[6,22,23,24,25],y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,accDescription:15,description_value:16,openDirective:17,typeDirective:18,closeDirective:19,":":20,argDirective:21,NEWLINE:22,";":23,EOF:24,open_directive:25,type_directive:26,arg_directive:27,close_directive:28,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"accDescription",16:"description_value",20:":",22:"NEWLINE",23:";",24:"EOF",25:"open_directive",26:"type_directive",27:"arg_directive",28:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[17,1],[18,1],[21,1],[19,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setTitle(this.$);break;case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 18:r.parseDirective("%%{","open_directive");break;case 19:r.parseDirective(a[s],"type_directive");break;case 20:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 21:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,17:8,22:n,23:r,24:i,25:a},{1:[3]},{3:10,4:2,5:3,6:e,17:8,22:n,23:r,24:i,25:a},{3:11,4:2,5:3,6:e,17:8,22:n,23:r,24:i,25:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,15]),t(c,[2,16]),t(c,[2,17]),{18:14,26:[1,15]},{26:[2,18]},{1:[2,1]},{1:[2,2]},t(u,l,{17:8,9:16,10:17,5:21,1:[2,3],11:h,13:f,15:d,25:a}),t(o,s,{7:22}),{19:23,20:[1,24],28:p},t([20,28],[2,19]),t(o,[2,6]),{4:26,22:n,23:r,24:i},{12:[1,27]},{14:[1,28]},{16:[1,29]},t(u,[2,12]),t(u,l,{17:8,9:16,10:17,5:21,1:[2,4],11:h,13:f,15:d,25:a}),t(g,[2,13]),{21:30,27:[1,31]},t(g,[2,21]),t(o,[2,7]),t(u,[2,9]),t(u,[2,10]),t(u,[2,11]),{19:32,28:p},{28:[2,20]},t(g,[2,14])],defaultActions:{9:[2,18],10:[2,1],11:[2,2],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),25;case 1:return this.begin("type_directive"),26;case 2:return this.popState(),this.begin("arg_directive"),20;case 3:return this.popState(),this.popState(),28;case 4:return 27;case 5:case 6:case 8:case 9:break;case 7:return 22;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("accDescription"),15;case 13:return this.popState(),"description_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 6;case 18:return 8;case 19:return"value";case 20:return 24}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescription\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},accDescription:{rules:[13],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,17,18,19,20],inclusive:!0}}};function v(){this.yy={}}return y.lexer=m,v.prototype=y,y.Parser=v,new v}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(4551).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3176:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[1,17],i=[2,10],a=[1,21],o=[1,22],s=[1,23],c=[1,24],u=[1,25],l=[1,26],h=[1,19],f=[1,27],d=[1,28],p=[1,31],g=[66,67],y=[5,8,14,35,36,37,38,39,40,48,55,57,66,67],m=[5,6,8,14,35,36,37,38,39,40,48,66,67],v=[1,51],b=[1,52],_=[1,53],x=[1,54],w=[1,55],k=[1,56],T=[1,57],C=[57,58],E=[1,69],S=[1,65],A=[1,66],M=[1,67],N=[1,68],D=[1,70],B=[1,74],L=[1,75],O=[1,72],I=[1,73],R=[5,8,14,35,36,37,38,39,40,48,66,67],F={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,open_directive:14,type_directive:15,arg_directive:16,close_directive:17,requirementDef:18,elementDef:19,relationshipDef:20,requirementType:21,requirementName:22,STRUCT_START:23,requirementBody:24,ID:25,COLONSEP:26,id:27,TEXT:28,text:29,RISK:30,riskLevel:31,VERIFYMTHD:32,verifyType:33,STRUCT_STOP:34,REQUIREMENT:35,FUNCTIONAL_REQUIREMENT:36,INTERFACE_REQUIREMENT:37,PERFORMANCE_REQUIREMENT:38,PHYSICAL_REQUIREMENT:39,DESIGN_CONSTRAINT:40,LOW_RISK:41,MED_RISK:42,HIGH_RISK:43,VERIFY_ANALYSIS:44,VERIFY_DEMONSTRATION:45,VERIFY_INSPECTION:46,VERIFY_TEST:47,ELEMENT:48,elementName:49,elementBody:50,TYPE:51,type:52,DOCREF:53,ref:54,END_ARROW_L:55,relationship:56,LINE:57,END_ARROW_R:58,CONTAINS:59,COPIES:60,DERIVES:61,SATISFIES:62,VERIFIES:63,REFINES:64,TRACES:65,unqString:66,qString:67,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"open_directive",15:"type_directive",16:"arg_directive",17:"close_directive",23:"STRUCT_START",25:"ID",26:"COLONSEP",28:"TEXT",30:"RISK",32:"VERIFYMTHD",34:"STRUCT_STOP",35:"REQUIREMENT",36:"FUNCTIONAL_REQUIREMENT",37:"INTERFACE_REQUIREMENT",38:"PERFORMANCE_REQUIREMENT",39:"PHYSICAL_REQUIREMENT",40:"DESIGN_CONSTRAINT",41:"LOW_RISK",42:"MED_RISK",43:"HIGH_RISK",44:"VERIFY_ANALYSIS",45:"VERIFY_DEMONSTRATION",46:"VERIFY_INSPECTION",47:"VERIFY_TEST",48:"ELEMENT",51:"TYPE",53:"DOCREF",55:"END_ARROW_L",57:"LINE",58:"END_ARROW_R",59:"CONTAINS",60:"COPIES",61:"DERIVES",62:"SATISFIES",63:"VERIFIES",64:"REFINES",65:"TRACES",66:"unqString",67:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[18,5],[24,5],[24,5],[24,5],[24,5],[24,2],[24,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[31,1],[31,1],[31,1],[33,1],[33,1],[33,1],[33,1],[19,5],[50,5],[50,5],[50,2],[50,1],[20,5],[20,5],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[27,1],[27,1],[29,1],[29,1],[49,1],[49,1],[52,1],[52,1],[54,1],[54,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(a[s],"type_directive");break;case 8:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","pie");break;case 10:this.$=[];break;case 16:r.addRequirement(a[s-3],a[s-4]);break;case 17:r.setNewReqId(a[s-2]);break;case 18:r.setNewReqText(a[s-2]);break;case 19:r.setNewReqRisk(a[s-2]);break;case 20:r.setNewReqVerifyMethod(a[s-2]);break;case 23:this.$=r.RequirementType.REQUIREMENT;break;case 24:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 26:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 27:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 29:this.$=r.RiskLevel.LOW_RISK;break;case 30:this.$=r.RiskLevel.MED_RISK;break;case 31:this.$=r.RiskLevel.HIGH_RISK;break;case 32:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 33:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 34:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 35:this.$=r.VerifyType.VERIFY_TEST;break;case 36:r.addElement(a[s-3]);break;case 37:r.setNewElementType(a[s-2]);break;case 38:r.setNewElementDocRef(a[s-2]);break;case 41:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 42:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 43:this.$=r.Relationships.CONTAINS;break;case 44:this.$=r.Relationships.COPIES;break;case 45:this.$=r.Relationships.DERIVES;break;case 46:this.$=r.Relationships.SATISFIES;break;case 47:this.$=r.Relationships.VERIFIES;break;case 48:this.$=r.Relationships.REFINES;break;case 49:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n},{1:[3]},{3:7,4:2,5:[1,6],6:e,9:4,14:n},{5:[1,8]},{10:9,15:[1,10]},{15:[2,6]},{3:11,4:2,6:e,9:4,14:n},{1:[2,2]},{4:16,5:r,7:12,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{11:29,12:[1,30],17:p},t([12,17],[2,7]),{1:[2,1]},{8:[1,32]},{4:16,5:r,7:33,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{4:16,5:r,7:34,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{4:16,5:r,7:35,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{4:16,5:r,7:36,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{4:16,5:r,7:37,8:i,9:4,14:n,18:13,19:14,20:15,21:18,27:20,35:a,36:o,37:s,38:c,39:u,40:l,48:h,66:f,67:d},{22:38,66:[1,39],67:[1,40]},{49:41,66:[1,42],67:[1,43]},{55:[1,44],57:[1,45]},t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),t(g,[2,26]),t(g,[2,27]),t(g,[2,28]),t(y,[2,52]),t(y,[2,53]),t(m,[2,4]),{13:46,16:[1,47]},t(m,[2,9]),{1:[2,3]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{23:[1,48]},{23:[2,50]},{23:[2,51]},{23:[1,49]},{23:[2,56]},{23:[2,57]},{56:50,59:v,60:b,61:_,62:x,63:w,64:k,65:T},{56:58,59:v,60:b,61:_,62:x,63:w,64:k,65:T},{11:59,17:p},{17:[2,8]},{5:[1,60]},{5:[1,61]},{57:[1,62]},t(C,[2,43]),t(C,[2,44]),t(C,[2,45]),t(C,[2,46]),t(C,[2,47]),t(C,[2,48]),t(C,[2,49]),{58:[1,63]},t(m,[2,5]),{5:E,24:64,25:S,28:A,30:M,32:N,34:D},{5:B,34:L,50:71,51:O,53:I},{27:76,66:f,67:d},{27:77,66:f,67:d},t(R,[2,16]),{26:[1,78]},{26:[1,79]},{26:[1,80]},{26:[1,81]},{5:E,24:82,25:S,28:A,30:M,32:N,34:D},t(R,[2,22]),t(R,[2,36]),{26:[1,83]},{26:[1,84]},{5:B,34:L,50:85,51:O,53:I},t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),{27:86,66:f,67:d},{29:87,66:[1,88],67:[1,89]},{31:90,41:[1,91],42:[1,92],43:[1,93]},{33:94,44:[1,95],45:[1,96],46:[1,97],47:[1,98]},t(R,[2,21]),{52:99,66:[1,100],67:[1,101]},{54:102,66:[1,103],67:[1,104]},t(R,[2,39]),{5:[1,105]},{5:[1,106]},{5:[2,54]},{5:[2,55]},{5:[1,107]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[1,108]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[1,109]},{5:[2,58]},{5:[2,59]},{5:[1,110]},{5:[2,60]},{5:[2,61]},{5:E,24:111,25:S,28:A,30:M,32:N,34:D},{5:E,24:112,25:S,28:A,30:M,32:N,34:D},{5:E,24:113,25:S,28:A,30:M,32:N,34:D},{5:E,24:114,25:S,28:A,30:M,32:N,34:D},{5:B,34:L,50:115,51:O,53:I},{5:B,34:L,50:116,51:O,53:I},t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,37]),t(R,[2,38])],defaultActions:{5:[2,6],7:[2,2],11:[2,1],32:[2,3],33:[2,11],34:[2,12],35:[2,13],36:[2,14],37:[2,15],39:[2,50],40:[2,51],42:[2,56],43:[2,57],47:[2,8],88:[2,54],89:[2,55],91:[2,29],92:[2,30],93:[2,31],95:[2,32],96:[2,33],97:[2,34],98:[2,35],100:[2,58],101:[2,59],103:[2,60],104:[2,61]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},P={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),14;case 1:return this.begin("type_directive"),15;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),17;case 4:return 16;case 5:return 5;case 6:case 7:case 8:break;case 9:return 8;case 10:return 6;case 11:return 23;case 12:return 34;case 13:return 26;case 14:return 25;case 15:return 28;case 16:return 30;case 17:return 32;case 18:return 35;case 19:return 36;case 20:return 37;case 21:return 38;case 22:return 39;case 23:return 40;case 24:return 41;case 25:return 42;case 26:return 43;case 27:return 44;case 28:return 45;case 29:return 46;case 30:return 47;case 31:return 48;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 62;case 36:return 63;case 37:return 64;case 38:return 65;case 39:return 51;case 40:return 53;case 41:return 55;case 42:return 58;case 43:return 57;case 44:this.begin("string");break;case 45:this.popState();break;case 46:return"qString";case 47:return e.yytext=e.yytext.trim(),66}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[45,46],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,47],inclusive:!0}}};function j(){this.yy={}}return F.lexer=P,j.prototype=F,F.Parser=j,new j}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(8800).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6876:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,18],u=[1,19],l=[1,21],h=[1,22],f=[1,23],d=[1,29],p=[1,30],g=[1,31],y=[1,32],m=[1,33],v=[1,34],b=[1,35],_=[1,36],x=[1,39],w=[1,40],k=[1,41],T=[1,42],C=[1,43],E=[1,44],S=[1,47],A=[1,4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],M=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,43,48,49,50,51,59,69],N=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,42,43,48,49,50,51,59,69],D=[4,5,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,43,48,49,50,51,59,69],B=[57,58,59],L=[1,104],O=[1,4,5,7,16,20,22,23,24,30,31,32,33,34,35,36,37,39,41,42,43,48,49,50,51,59,69],I={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,activate:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,accDescription:32,loop:33,end:34,rect:35,opt:36,alt:37,else_sections:38,par:39,par_sections:40,and:41,else:42,note:43,placement:44,text2:45,over:46,actor_pair:47,links:48,link:49,properties:50,details:51,spaceList:52,",":53,left_of:54,right_of:55,signaltype:56,"+":57,"-":58,ACTOR:59,SOLID_OPEN_ARROW:60,DOTTED_OPEN_ARROW:61,SOLID_ARROW:62,DOTTED_ARROW:63,SOLID_CROSS:64,DOTTED_CROSS:65,SOLID_POINT:66,DOTTED_POINT:67,TXT:68,open_directive:69,type_directive:70,arg_directive:71,close_directive:72,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"accDescription",33:"loop",34:"end",35:"rect",36:"opt",37:"alt",39:"par",41:"and",42:"else",43:"note",46:"over",48:"links",49:"link",50:"properties",51:"details",53:",",54:"left_of",55:"right_of",57:"+",58:"-",59:"ACTOR",60:"SOLID_OPEN_ARROW",61:"DOTTED_OPEN_ARROW",62:"SOLID_ARROW",63:"DOTTED_ARROW",64:"SOLID_CROSS",65:"DOTTED_CROSS",66:"SOLID_POINT",67:"DOTTED_POINT",68:"TXT",69:"open_directive",70:"type_directive",71:"arg_directive",72:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[40,1],[40,4],[38,1],[38,4],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[52,2],[52,1],[47,3],[47,1],[44,1],[44,1],[21,5],[21,5],[21,4],[17,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[56,1],[45,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.apply(a[s]),a[s];case 5:case 9:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 47:this.$=a[s];break;case 12:a[s-3].type="addParticipant",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 13:a[s-1].type="addParticipant",this.$=a[s-1];break;case 14:a[s-3].type="addActor",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 15:a[s-1].type="addActor",this.$=a[s-1];break;case 17:r.enableSequenceNumbers();break;case 18:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 19:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 25:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 26:r.setTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 27:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 28:a[s-1].unshift({type:"loopStart",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 29:a[s-1].unshift({type:"rectStart",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 30:a[s-1].unshift({type:"optStart",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 31:a[s-1].unshift({type:"altStart",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 32:a[s-1].unshift({type:"parStart",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 35:this.$=a[s-3].concat([{type:"and",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 37:this.$=a[s-3].concat([{type:"else",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 38:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 39:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 40:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 41:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 42:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 43:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 46:this.$=[a[s-2],a[s]];break;case 48:this.$=r.PLACEMENT.LEFTOF;break;case 49:this.$=r.PLACEMENT.RIGHTOF;break;case 50:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 51:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 52:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 53:this.$={type:"addParticipant",actor:a[s]};break;case 54:this.$=r.LINETYPE.SOLID_OPEN;break;case 55:this.$=r.LINETYPE.DOTTED_OPEN;break;case 56:this.$=r.LINETYPE.SOLID;break;case 57:this.$=r.LINETYPE.DOTTED;break;case 58:this.$=r.LINETYPE.SOLID_CROSS;break;case 59:this.$=r.LINETYPE.DOTTED_CROSS;break;case 60:this.$=r.LINETYPE.SOLID_POINT;break;case 61:this.$=r.LINETYPE.DOTTED_POINT;break;case 62:this.$=r.parseMessage(a[s].trim().substring(1));break;case 63:r.parseDirective("%%{","open_directive");break;case 64:r.parseDirective(a[s],"type_directive");break;case 65:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 66:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:r,11:6,69:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,11:6,69:i},{3:9,4:e,5:n,6:4,7:r,11:6,69:i},{3:10,4:e,5:n,6:4,7:r,11:6,69:i},t([1,4,5,16,20,22,23,24,30,31,32,33,35,36,37,39,43,48,49,50,51,59,69],a,{8:11}),{12:12,70:[1,13]},{70:[2,63]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,35:m,36:v,37:b,39:_,43:x,48:w,49:k,50:T,51:C,59:E,69:i},{13:45,14:[1,46],72:S},t([14,72],[2,64]),t(A,[2,6]),{6:37,10:48,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,35:m,36:v,37:b,39:_,43:x,48:w,49:k,50:T,51:C,59:E,69:i},t(A,[2,8]),t(A,[2,9]),{17:49,59:E},{17:50,59:E},{5:[1,51]},t(A,[2,17]),{17:52,59:E},{17:53,59:E},{5:[1,54]},{5:[1,55]},{5:[1,56]},{5:[1,57]},{5:[1,58]},t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),{19:[1,59]},{19:[1,60]},{19:[1,61]},{19:[1,62]},{19:[1,63]},t(A,[2,33]),{56:64,60:[1,65],61:[1,66],62:[1,67],63:[1,68],64:[1,69],65:[1,70],66:[1,71],67:[1,72]},{44:73,46:[1,74],54:[1,75],55:[1,76]},{17:77,59:E},{17:78,59:E},{17:79,59:E},{17:80,59:E},t([5,18,53,60,61,62,63,64,65,66,67,68],[2,53]),{5:[1,81]},{15:82,71:[1,83]},{5:[2,66]},t(A,[2,7]),{5:[1,85],18:[1,84]},{5:[1,87],18:[1,86]},t(A,[2,16]),{5:[1,88]},{5:[1,89]},t(A,[2,20]),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(M,a,{8:90}),t(M,a,{8:91}),t(M,a,{8:92}),t(N,a,{38:93,8:94}),t(D,a,{40:95,8:96}),{17:99,57:[1,97],58:[1,98],59:E},t(B,[2,54]),t(B,[2,55]),t(B,[2,56]),t(B,[2,57]),t(B,[2,58]),t(B,[2,59]),t(B,[2,60]),t(B,[2,61]),{17:100,59:E},{17:102,47:101,59:E},{59:[2,48]},{59:[2,49]},{45:103,68:L},{45:105,68:L},{45:106,68:L},{45:107,68:L},t(O,[2,10]),{13:108,72:S},{72:[2,65]},{19:[1,109]},t(A,[2,13]),{19:[1,110]},t(A,[2,15]),t(A,[2,18]),t(A,[2,19]),{4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,34:[1,111],35:m,36:v,37:b,39:_,43:x,48:w,49:k,50:T,51:C,59:E,69:i},{4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,34:[1,112],35:m,36:v,37:b,39:_,43:x,48:w,49:k,50:T,51:C,59:E,69:i},{4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,34:[1,113],35:m,36:v,37:b,39:_,43:x,48:w,49:k,50:T,51:C,59:E,69:i},{34:[1,114]},{4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,34:[2,36],35:m,36:v,37:b,39:_,42:[1,115],43:x,48:w,49:k,50:T,51:C,59:E,69:i},{34:[1,116]},{4:o,5:s,6:37,9:14,10:16,11:6,16:c,17:38,20:u,21:20,22:l,23:h,24:f,25:24,26:25,27:26,28:27,29:28,30:d,31:p,32:g,33:y,34:[2,34],35:m,36:v,37:b,39:_,41:[1,117],43:x,48:w,49:k,50:T,51:C,59:E,69:i},{17:118,59:E},{17:119,59:E},{45:120,68:L},{45:121,68:L},{45:122,68:L},{53:[1,123],68:[2,47]},{5:[2,40]},{5:[2,62]},{5:[2,41]},{5:[2,42]},{5:[2,43]},{5:[1,124]},{5:[1,125]},{5:[1,126]},t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),t(A,[2,31]),{19:[1,127]},t(A,[2,32]),{19:[1,128]},{45:129,68:L},{45:130,68:L},{5:[2,52]},{5:[2,38]},{5:[2,39]},{17:131,59:E},t(O,[2,11]),t(A,[2,12]),t(A,[2,14]),t(N,a,{8:94,38:132}),t(D,a,{8:96,40:133}),{5:[2,50]},{5:[2,51]},{68:[2,46]},{34:[2,37]},{34:[2,35]}],defaultActions:{7:[2,63],8:[2,1],9:[2,2],10:[2,3],47:[2,66],75:[2,48],76:[2,49],83:[2,65],103:[2,40],104:[2,62],105:[2,41],106:[2,42],107:[2,43],120:[2,52],121:[2,38],122:[2,39],129:[2,50],130:[2,51],131:[2,46],132:[2,37],133:[2,35]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},R={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),69;case 1:return this.begin("type_directive"),70;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),72;case 4:return 71;case 5:case 41:case 54:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return this.begin("ID"),20;case 13:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),59;case 14:return this.popState(),this.popState(),this.begin("LINE"),18;case 15:return this.popState(),this.popState(),5;case 16:return this.begin("LINE"),33;case 17:return this.begin("LINE"),35;case 18:return this.begin("LINE"),36;case 19:return this.begin("LINE"),37;case 20:return this.begin("LINE"),42;case 21:return this.begin("LINE"),39;case 22:return this.begin("LINE"),41;case 23:return this.popState(),19;case 24:return 34;case 25:return 54;case 26:return 55;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 46;case 32:return 43;case 33:return this.begin("ID"),23;case 34:return this.begin("ID"),24;case 35:return 30;case 36:return 31;case 37:return 32;case 38:return 7;case 39:return 22;case 40:return 53;case 42:return e.yytext=e.yytext.trim(),59;case 43:return 62;case 44:return 63;case 45:return 60;case 46:return 61;case 47:return 64;case 48:return 65;case 49:return 66;case 50:return 67;case 51:return 68;case 52:return 57;case 53:return 58;case 55:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,13],inclusive:!1},ALIAS:{rules:[7,8,14,15],inclusive:!1},LINE:{rules:[7,8,23],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};function F(){this.yy={}}return I.lexer=R,F.prototype=I,I.Parser=F,new F}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(1993).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3584:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],u=[1,20],l=[1,21],h=[1,22],f=[1,30],d=[1,23],p=[1,24],g=[1,25],y=[1,26],m=[1,27],v=[1,32],b=[1,33],_=[1,34],x=[1,35],w=[1,31],k=[1,38],T=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],C=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],E=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],S=[4,5,14,15,17,19,20,22,23,24,25,26,27,36,37,38,39,42,45],A={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,openDirective:31,typeDirective:32,closeDirective:33,":":34,argDirective:35,direction_tb:36,direction_bt:37,direction_rl:38,direction_lr:39,eol:40,";":41,EDGE_STATE:42,left_of:43,right_of:44,open_directive:45,type_directive:46,arg_directive:47,close_directive:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",34:":",36:"direction_tb",37:"direction_bt",38:"direction_rl",39:"direction_lr",41:";",42:"EDGE_STATE",43:"left_of",44:"right_of",45:"open_directive",46:"type_directive",47:"arg_directive",48:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[40,1],[40,1],[11,1],[11,1],[28,1],[28,1],[31,1],[32,1],[35,1],[33,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 36:case 37:this.$=a[s];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 18:var c=a[s],u=a[s-2].trim();if(a[s].match(":")){var l=a[s].split(":");c=l[0],u=[u,l[1]]}this.$={stmt:"state",id:c,type:"default",description:u};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:"state",id:a[s],type:"fork"};break;case 21:this.$={stmt:"state",id:a[s],type:"join"};break;case 22:this.$={stmt:"state",id:a[s],type:"choice"};break;case 23:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 31:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 32:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 33:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:r.parseDirective("%%{","open_directive");break;case 41:r.parseDirective(a[s],"type_directive");break;case 42:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 43:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:r,31:6,45:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,31:6,45:i},{3:9,4:e,5:n,6:4,7:r,31:6,45:i},{3:10,4:e,5:n,6:4,7:r,31:6,45:i},t([1,4,5,14,15,17,20,22,23,24,25,26,27,36,37,38,39,42,45],a,{8:11}),{32:12,46:[1,13]},{46:[2,40]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},{33:36,34:[1,37],48:k},t([34,48],[2,41]),t(T,[2,6]),{6:28,10:39,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(T,[2,8]),t(T,[2,9]),t(T,[2,10],{12:[1,40],13:[1,41]}),t(T,[2,14]),{16:[1,42]},t(T,[2,16],{18:[1,43]}),{21:[1,44]},t(T,[2,20]),t(T,[2,21]),t(T,[2,22]),t(T,[2,23]),{28:45,29:[1,46],43:[1,47],44:[1,48]},t(T,[2,26]),t(T,[2,27]),t(C,[2,36]),t(C,[2,37]),t(T,[2,30]),t(T,[2,31]),t(T,[2,32]),t(T,[2,33]),t(E,[2,28]),{35:49,47:[1,50]},t(E,[2,43]),t(T,[2,7]),t(T,[2,11]),{11:51,22:f,42:w},t(T,[2,15]),t(S,a,{8:52}),{22:[1,53]},{22:[1,54]},{21:[1,55]},{22:[2,38]},{22:[2,39]},{33:56,48:k},{48:[2,42]},t(T,[2,12],{12:[1,57]}),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,58],20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(T,[2,18],{18:[1,59]}),{29:[1,60]},{22:[1,61]},t(E,[2,29]),t(T,[2,13]),t(T,[2,17]),t(S,a,{8:62}),t(T,[2,24]),t(T,[2,25]),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,63],20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:6,36:v,37:b,38:_,39:x,42:w,45:i},t(T,[2,19])],defaultActions:{7:[2,40],8:[2,1],9:[2,2],10:[2,3],47:[2,38],48:[2,39],50:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:case 26:return 36;case 1:case 27:return 37;case 2:case 28:return 38;case 3:case 29:return 39;case 4:return this.begin("open_directive"),45;case 5:return this.begin("type_directive"),46;case 6:return this.popState(),this.begin("arg_directive"),34;case 7:return this.popState(),this.popState(),48;case 8:return 47;case 9:case 10:case 12:case 13:case 14:case 15:case 39:case 45:break;case 11:case 59:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 33:case 36:this.popState();break;case 19:this.pushState("STATE");break;case 20:case 23:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 21:case 24:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 22:case 25:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),25;case 30:this.begin("STATE_STRING");break;case 31:return this.popState(),this.pushState("STATE_ID"),"AS";case 32:case 47:return this.popState(),"ID";case 34:return"STATE_DESCR";case 35:return 17;case 37:return this.popState(),this.pushState("struct"),18;case 38:return this.popState(),19;case 40:return this.begin("NOTE"),27;case 41:return this.popState(),this.pushState("NOTE_ID"),43;case 42:return this.popState(),this.pushState("NOTE_ID"),44;case 43:this.popState(),this.pushState("FLOATING_NOTE");break;case 44:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 46:return"NOTE_TEXT";case 48:return this.popState(),this.pushState("NOTE_TEXT"),22;case 49:return this.popState(),e.yytext=e.yytext.substr(2).trim(),29;case 50:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),29;case 51:case 52:return 7;case 53:return 14;case 54:return 42;case 55:return 22;case 56:return e.yytext=e.yytext.trim(),12;case 57:return 13;case 58:return 26;case 60:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,19,26,27,28,29,38,39,40,54,55,56,57,58],inclusive:!1},FLOATING_NOTE_ID:{rules:[47],inclusive:!1},FLOATING_NOTE:{rules:[44,45,46],inclusive:!1},NOTE_TEXT:{rules:[49,50],inclusive:!1},NOTE_ID:{rules:[48],inclusive:!1},NOTE:{rules:[41,42,43],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[32],inclusive:!1},STATE_STRING:{rules:[33,34],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,20,21,22,23,24,25,30,31,35,36,37],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,37,40,51,52,53,54,55,56,57,59,60],inclusive:!0}}};function N(){this.yy={}}return A.lexer=M,N.prototype=A,A.Parser=N,new N}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(3069).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9763:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],a=[1,16],o=[1,17],s=[1,21],c=[4,6,9,11,17,18,19,21],u={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(a[s],"type_directive");break;case 17:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,21:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,19:o,21:n},{1:[2,2]},{14:19,15:[1,20],24:s},t([15,24],[2,16]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:18,10:22,12:4,17:i,18:a,19:o,21:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,12]),{20:[1,23]},t(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},t(r,[2,5]),t(r,[2,13]),t(c,[2,9]),{14:27,24:s},{24:[2,17]},{11:[1,28]},t(c,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N="";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push("'"+this.terminals_[C]+"'");N=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function h(){this.yy={}}return u.lexer=l,h.prototype=u,u.Parser=h,new h}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),process.exit(1));var r=n(9143).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7967:(t,e)=>{e.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^([^:]+):/gm,o=[".","/"];e.N=function(t){var e,s=(e=t||"",e.replace(r,(function(t,e){return String.fromCharCode(e)}))).replace(i,"").trim();if(!s)return"about:blank";if(function(t){return o.indexOf(t[0])>-1}(s))return s;var c=s.match(a);if(!c)return s;var u=c[0];return n.test(u)?"about:blank":s}},3841:t=>{t.exports=function(t,e){return t.intersect(e)}},3850:(t,e,n)=>{n.d(e,{Z:()=>gE});var r=n(1941),i=n.n(r),a={debug:1,info:2,warn:3,error:4,fatal:5},o={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==a[t]&&(t=a[t])),o.trace=function(){},o.debug=function(){},o.info=function(){},o.warn=function(){},o.error=function(){},o.fatal=function(){},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"",c("FATAL"))),t<=a.error&&(o.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"",c("ERROR"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"",c("WARN"))),t<=a.info&&(o.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"",c("INFO"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"",c("DEBUG")))},c=function(t){var e=i()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function u(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function l(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function h(t){return t}var f=1e-6;function d(t){return"translate("+t+",0)"}function p(t){return"translate(0,"+t+")"}function g(t){return e=>+t(e)}function y(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function m(){return!this.__axis}function v(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",v=1===t||3===t?d:p;function b(d){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,b=null==i?e.tickFormat?e.tickFormat.apply(e,n):h:i,_=Math.max(a,0)+s,x=e.range(),w=+x[0]+c,k=+x[x.length-1]+c,T=(e.bandwidth?y:g)(e.copy(),c),C=d.selection?d.selection():d,E=C.selectAll(".domain").data([null]),S=C.selectAll(".tick").data(p,e).order(),A=S.exit(),M=S.enter().append("g").attr("class","tick"),N=S.select("line"),D=S.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(M),N=N.merge(M.append("line").attr("stroke","currentColor").attr(l+"2",u*a)),D=D.merge(M.append("text").attr("fill","currentColor").attr(l,u*_).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),d!==C&&(E=E.transition(d),S=S.transition(d),N=N.transition(d),D=D.transition(d),A=A.transition(d).attr("opacity",f).attr("transform",(function(t){return isFinite(t=T(t))?v(t+c):this.getAttribute("transform")})),M.attr("opacity",f).attr("transform",(function(t){var e=this.parentNode.__axis;return v((e&&isFinite(e=e(t))?e:T(t))+c)}))),A.remove(),E.attr("d",4===t||2===t?o?"M"+u*o+","+w+"H"+c+"V"+k+"H"+u*o:"M"+c+","+w+"V"+k:o?"M"+w+","+u*o+"V"+c+"H"+k+"V"+u*o:"M"+w+","+c+"H"+k),S.attr("opacity",1).attr("transform",(function(t){return v(T(t)+c)})),N.attr(l+"2",u*a),D.attr(l,u*_).text(b),C.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),C.each((function(){this.__axis=T}))}return b.scale=function(t){return arguments.length?(e=t,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),b):n.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(i=t,b):i},b.tickSize=function(t){return arguments.length?(a=o=+t,b):a},b.tickSizeInner=function(t){return arguments.length?(a=+t,b):a},b.tickSizeOuter=function(t){return arguments.length?(o=+t,b):o},b.tickPadding=function(t){return arguments.length?(s=+t,b):s},b.offset=function(t){return arguments.length?(c=+t,b):c},b}function b(){}function _(t){return null==t?b:function(){return this.querySelector(t)}}function x(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function w(){return[]}function k(t){return null==t?w:function(){return this.querySelectorAll(t)}}function T(t){return function(){return this.matches(t)}}function C(t){return function(e){return e.matches(t)}}var E=Array.prototype.find;function S(){return this.firstElementChild}var A=Array.prototype.filter;function M(){return Array.from(this.children)}function N(t){return new Array(t.length)}function D(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function B(t){return function(){return t}}function L(t,e,n,r,i,a){for(var o,s=0,c=e.length,u=a.length;se?1:t>=e?0:NaN}D.prototype={constructor:D,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var P="http://www.w3.org/1999/xhtml";const j={svg:"http://www.w3.org/2000/svg",xhtml:P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Y(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),j.hasOwnProperty(e)?{space:j[e],local:t}:t}function z(t){return function(){this.removeAttribute(t)}}function U(t){return function(){this.removeAttributeNS(t.space,t.local)}}function q(t,e){return function(){this.setAttribute(t,e)}}function H(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function G(t){return function(){this.style.removeProperty(t)}}function X(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Z(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Q(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function K(t){return function(){delete this[t]}}function J(t,e){return function(){this[t]=e}}function tt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function et(t){return t.trim().split(/^|\s+/)}function nt(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=et(t.getAttribute("class")||"")}function it(t,e){for(var n=nt(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ct(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Nt=[null];function Dt(t,e){this._groups=t,this._parents=e}function Bt(){return new Dt([[document.documentElement]],Nt)}Dt.prototype=Bt.prototype={constructor:Dt,select:function(t){"function"!=typeof t&&(t=_(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=F);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?G:"function"==typeof e?Z:X)(t,e,null==n?"":n)):Q(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?K:"function"==typeof e?tt:J)(t,e)):this.node()[t]},classed:function(t,e){var n=et(t+"");if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i{}};function It(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Pt(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--qt}()}finally{qt=0,function(){for(var t,e,n=zt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:zt=e);Ut=t,re(r)}(),Vt=0}}function ne(){var t=Xt.now(),e=t-Wt;e>1e3&&(Gt-=e,Wt=t)}function re(t){qt||(Ht&&(Ht=clearTimeout(Ht)),t-Vt>24?(t<1/0&&(Ht=setTimeout(ee,t-Xt.now()-Gt)),$t&&($t=clearInterval($t))):($t||(Wt=Xt.now(),$t=setInterval(ne,1e3)),qt=1,Zt(ee)))}function ie(t,e,n){var r=new Jt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Jt.prototype=te.prototype={constructor:Jt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Qt():+n)+(null==e?0:+e),this._next||Ut===this||(Ut?Ut._next=this:zt=this,Ut=this),this._call=t,this._time=n,re()},stop:function(){this._call&&(this._call=null,this._time=1/0,re())}};var ae=Yt("start","end","cancel","interrupt"),oe=[];function se(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return ie(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function ue(t,e){var n=le(t,e);if(n.state>3)throw new Error("too late; already running");return n}function le(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function he(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var fe,de=180/Math.PI,pe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ge(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:he(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:he(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:he(t,n)},{i:s-2,x:he(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ue(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ue(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=De.exec(t))?new $e(e[1],e[2],e[3],1):(e=Be.exec(t))?new $e(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Le.exec(t))?Ue(e[1],e[2],e[3],e[4]):(e=Oe.exec(t))?Ue(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ie.exec(t))?Xe(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Xe(e[1],e[2]/100,e[3]/100,e[4]):Fe.hasOwnProperty(t)?ze(Fe[t]):"transparent"===t?new $e(NaN,NaN,NaN,0):null}function ze(t){return new $e(t>>16&255,t>>8&255,255&t,1)}function Ue(t,e,n,r){return r<=0&&(t=e=n=NaN),new $e(t,e,n,r)}function qe(t){return t instanceof Te||(t=Ye(t)),t?new $e((t=t.rgb()).r,t.g,t.b,t.opacity):new $e}function He(t,e,n,r){return 1===arguments.length?qe(t):new $e(t,e,n,null==r?1:r)}function $e(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function We(){return"#"+Ge(this.r)+Ge(this.g)+Ge(this.b)}function Ve(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ge(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Xe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qe(t,e,n,r)}function Ze(t){if(t instanceof Qe)return new Qe(t.h,t.s,t.l,t.opacity);if(t instanceof Te||(t=Ye(t)),!t)return new Qe;if(t instanceof Qe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new Qe(o,s,c,t.opacity)}function Qe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ke(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Je(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}we(Te,Ye,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return Ze(this).formatHsl()},formatRgb:je,toString:je}),we($e,He,ke(Te,{brighter:function(t){return t=null==t?Ee:Math.pow(Ee,t),new $e(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ce:Math.pow(Ce,t),new $e(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatRgb:Ve,toString:Ve})),we(Qe,(function(t,e,n,r){return 1===arguments.length?Ze(t):new Qe(t,e,n,null==r?1:r)}),ke(Te,{brighter:function(t){return t=null==t?Ee:Math.pow(Ee,t),new Qe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ce:Math.pow(Ce,t),new Qe(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new $e(Ke(t>=240?t-240:t+120,i,r),Ke(t,i,r),Ke(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const tn=t=>()=>t;function en(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):tn(isNaN(t)?e:t)}const nn=function t(e){var n=function(t){return 1==(t=+t)?en:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):tn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=He(t)).r,(e=He(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=en(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function rn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:he(n,r)})),a=on.lastIndex;return a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ce:ue;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Cn=Lt.prototype.constructor;function En(t){return function(){this.style.removeProperty(t)}}function Sn(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function An(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Sn(t,a,n)),r}return a._value=e,a}function Mn(t){return function(e){this.textContent=t.call(this,e)}}function Nn(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Mn(r)),e}return r._value=t,r}var Dn=0;function Bn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ln(){return++Dn}var On=Lt.prototype;Bn.prototype=function(t){return Lt().transition(t)}.prototype={constructor:Bn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=_(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Lt.prototype.transition=function(t){var e,n;t instanceof Bn?(e=t._id,t=t._name):(e=Ln(),(n=In).time=Qt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?sr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?sr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zn.exec(t))?new lr(e[1],e[2],e[3],1):(e=Qn.exec(t))?new lr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Kn.exec(t))?sr(e[1],e[2],e[3],e[4]):(e=Jn.exec(t))?sr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tr.exec(t))?pr(e[1],e[2]/100,e[3]/100,1):(e=er.exec(t))?pr(e[1],e[2]/100,e[3]/100,e[4]):nr.hasOwnProperty(t)?or(nr[t]):"transparent"===t?new lr(NaN,NaN,NaN,0):null}function or(t){return new lr(t>>16&255,t>>8&255,255&t,1)}function sr(t,e,n,r){return r<=0&&(t=e=n=NaN),new lr(t,e,n,r)}function cr(t){return t instanceof qn||(t=ar(t)),t?new lr((t=t.rgb()).r,t.g,t.b,t.opacity):new lr}function ur(t,e,n,r){return 1===arguments.length?cr(t):new lr(t,e,n,null==r?1:r)}function lr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function hr(){return"#"+dr(this.r)+dr(this.g)+dr(this.b)}function fr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function dr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function pr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new yr(t,e,n,r)}function gr(t){if(t instanceof yr)return new yr(t.h,t.s,t.l,t.opacity);if(t instanceof qn||(t=ar(t)),!t)return new yr;if(t instanceof yr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new yr(o,s,c,t.opacity)}function yr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function mr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}zn(qn,ar,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rr,formatHex:rr,formatHsl:function(){return gr(this).formatHsl()},formatRgb:ir,toString:ir}),zn(lr,ur,Un(qn,{brighter:function(t){return t=null==t?$n:Math.pow($n,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hr,formatHex:hr,formatRgb:fr,toString:fr})),zn(yr,(function(t,e,n,r){return 1===arguments.length?gr(t):new yr(t,e,n,null==r?1:r)}),Un(qn,{brighter:function(t){return t=null==t?$n:Math.pow($n,t),new yr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new yr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new lr(mr(t>=240?t-240:t+120,i,r),mr(t,i,r),mr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const vr=Math.PI/180,br=180/Math.PI,_r=.96422,xr=.82521,wr=4/29,kr=6/29,Tr=3*kr*kr;function Cr(t){if(t instanceof Er)return new Er(t.l,t.a,t.b,t.opacity);if(t instanceof Lr)return Or(t);t instanceof lr||(t=cr(t));var e,n,r=Nr(t.r),i=Nr(t.g),a=Nr(t.b),o=Sr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=Sr((.4360747*r+.3850649*i+.1430804*a)/_r),n=Sr((.0139322*r+.0971045*i+.7141733*a)/xr)),new Er(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Er(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Sr(t){return t>.008856451679035631?Math.pow(t,1/3):t/Tr+wr}function Ar(t){return t>kr?t*t*t:Tr*(t-wr)}function Mr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Nr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Dr(t){if(t instanceof Lr)return new Lr(t.h,t.c,t.l,t.opacity);if(t instanceof Er||(t=Cr(t)),0===t.a&&0===t.b)return new Lr(NaN,0()=>t;function Rr(t,e){return function(n){return t+n*e}}function Fr(t,e){var n=e-t;return n?Rr(t,n):Ir(isNaN(t)?e:t)}function Pr(t){return function(e,n){var r=t((e=Br(e)).h,(n=Br(n)).h),i=Fr(e.c,n.c),a=Fr(e.l,n.l),o=Fr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const jr=Pr((function(t,e){var n=e-t;return n?Rr(t,n>180||n<-180?n-360*Math.round(n/360):n):Ir(isNaN(t)?e:t)}));Pr(Fr);var Yr=Math.sqrt(50),zr=Math.sqrt(10),Ur=Math.sqrt(2);function qr(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Yr?10:a>=zr?5:a>=Ur?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Yr?10:a>=zr?5:a>=Ur?2:1)}function Hr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Yr?i*=10:a>=zr?i*=5:a>=Ur&&(i*=2),ee?1:t>=e?0:NaN}function Wr(t){let e=t,n=t,r=t;function i(t,e,i=0,a=t.length){if(i>>1;r(t[n],e)<0?i=n+1:a=n}while(it(e)-n,n=$r,r=(e,n)=>$r(t(e),n)),{left:i,center:function(t,n,r=0,a=t.length){const o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i=0,a=t.length){if(i>>1;r(t[n],e)<=0?i=n+1:a=n}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ai.exec(t))?new bi(e[1],e[2],e[3],1):(e=oi.exec(t))?new bi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=si.exec(t))?yi(e[1],e[2],e[3],e[4]):(e=ci.exec(t))?yi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ui.exec(t))?ki(e[1],e[2]/100,e[3]/100,1):(e=li.exec(t))?ki(e[1],e[2]/100,e[3]/100,e[4]):hi.hasOwnProperty(t)?gi(hi[t]):"transparent"===t?new bi(NaN,NaN,NaN,0):null}function gi(t){return new bi(t>>16&255,t>>8&255,255&t,1)}function yi(t,e,n,r){return r<=0&&(t=e=n=NaN),new bi(t,e,n,r)}function mi(t){return t instanceof Kr||(t=pi(t)),t?new bi((t=t.rgb()).r,t.g,t.b,t.opacity):new bi}function vi(t,e,n,r){return 1===arguments.length?mi(t):new bi(t,e,n,null==r?1:r)}function bi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function _i(){return"#"+wi(this.r)+wi(this.g)+wi(this.b)}function xi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function wi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ki(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ci(t,e,n,r)}function Ti(t){if(t instanceof Ci)return new Ci(t.h,t.s,t.l,t.opacity);if(t instanceof Kr||(t=pi(t)),!t)return new Ci;if(t instanceof Ci)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new Ci(o,s,c,t.opacity)}function Ci(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ei(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Si(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Zr(Kr,pi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:fi,formatHex:fi,formatHsl:function(){return Ti(this).formatHsl()},formatRgb:di,toString:di}),Zr(bi,vi,Qr(Kr,{brighter:function(t){return t=null==t?ti:Math.pow(ti,t),new bi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Jr:Math.pow(Jr,t),new bi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_i,formatHex:_i,formatRgb:xi,toString:xi})),Zr(Ci,(function(t,e,n,r){return 1===arguments.length?Ti(t):new Ci(t,e,n,null==r?1:r)}),Qr(Kr,{brighter:function(t){return t=null==t?ti:Math.pow(ti,t),new Ci(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Jr:Math.pow(Jr,t),new Ci(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new bi(Ei(t>=240?t-240:t+120,i,r),Ei(t,i,r),Ei(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Ai=t=>()=>t;function Mi(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ai(isNaN(t)?e:t)}const Ni=function t(e){var n=function(t){return 1==(t=+t)?Mi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ai(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=vi(t)).r,(e=vi(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Mi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Di(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Oi(n,r)})),a=Fi.lastIndex;return ae&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?Vi:Wi,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),Oi)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,Ui),l()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=zi,l()},h.clamp=function(t){return arguments.length?(u=!!t||Hi,l()):u!==Hi},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(Hi,Hi)}function Zi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Qi,Ki=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ji(t){if(!(e=Ki.exec(t)))throw new Error("invalid format: "+t);var e;return new ta({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ta(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ea(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function na(t){return(t=ea(Math.abs(t)))?t[1]:NaN}function ra(t,e){var n=ea(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Ji.prototype=ta.prototype,ta.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ia={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ra(100*t,e),r:ra,s:function(t,e){var n=ea(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Qi=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ea(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function aa(t){return t}var oa,sa,ca,ua=Array.prototype.map,la=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ha(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/o),r=Math.round(e/o);for(n*oe&&--r,a=new Array(i=r-n+1);++se&&--r,a=new Array(i=r-n+1);++s0;){if((i=qr(c,u,n))===r)return a[o]=c,a[s]=u,e(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function fa(){var t=Xi();return t.copy=function(){return Gi(t,fa())},Zi.apply(t,arguments),ha(t)}oa=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?aa:(e=ua.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?aa:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ua.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Ji(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):ia[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?a:/[%p]/.test(v)?c:"",x=ia[v],w=/[defgprs%]/.test(v);function k(t){var i,a,c,f=b,k=_;if("c"===v)k=x(t)+k,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==h&&(T=!1),f=(T?"("===h?h:u:"-"===h||"("===h?"":h)+f,k=("s"===v?la[8+Qi/3]:"")+k+(T&&"("===h?")":""),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var C=f.length+t.length+k.length,E=C>1)+f+t+k+E.slice(C);break;default:t=E+f+t+k}return s(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ji(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(na(e)/3))),i=Math.pow(10,-r),a=la[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),sa=oa.format,ca=oa.formatPrefix;class da extends Map{constructor(t,e=ga){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(pa(this,t))}has(t){return super.has(pa(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function pa({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function ga(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ya=Symbol("implicit");function ma(){var t=new da,e=[],n=[],r=ya;function i(i){let a=t.get(i);if(void 0===a){if(r!==ya)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new da;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ma(e,n).unknown(r)},Zi.apply(i,arguments),i}const va=1e3,ba=6e4,_a=36e5,xa=864e5,wa=6048e5,ka=31536e6;var Ta=new Date,Ca=new Date;function Ea(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ta.setTime(+e),Ca.setTime(+r),t(Ta),t(Ca),Math.floor(n(Ta,Ca))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Sa=Ea((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Sa.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ea((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Sa:null};const Aa=Sa;Sa.range;var Ma=Ea((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*va)}),(function(t,e){return(e-t)/va}),(function(t){return t.getUTCSeconds()}));const Na=Ma;Ma.range;var Da=Ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*va)}),(function(t,e){t.setTime(+t+e*ba)}),(function(t,e){return(e-t)/ba}),(function(t){return t.getMinutes()}));const Ba=Da;Da.range;var La=Ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*va-t.getMinutes()*ba)}),(function(t,e){t.setTime(+t+e*_a)}),(function(t,e){return(e-t)/_a}),(function(t){return t.getHours()}));const Oa=La;La.range;var Ia=Ea((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ba)/xa),(t=>t.getDate()-1));const Ra=Ia;function Fa(t){return Ea((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ba)/wa}))}Ia.range;var Pa=Fa(0),ja=Fa(1),Ya=Fa(2),za=Fa(3),Ua=Fa(4),qa=Fa(5),Ha=Fa(6),$a=(Pa.range,ja.range,Ya.range,za.range,Ua.range,qa.range,Ha.range,Ea((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Wa=$a;$a.range;var Va=Ea((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Va.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ea((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ga=Va;Va.range;var Xa=Ea((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ba)}),(function(t,e){return(e-t)/ba}),(function(t){return t.getUTCMinutes()}));const Za=Xa;Xa.range;var Qa=Ea((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*_a)}),(function(t,e){return(e-t)/_a}),(function(t){return t.getUTCHours()}));const Ka=Qa;Qa.range;var Ja=Ea((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/xa}),(function(t){return t.getUTCDate()-1}));const to=Ja;function eo(t){return Ea((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/wa}))}Ja.range;var no=eo(0),ro=eo(1),io=eo(2),ao=eo(3),oo=eo(4),so=eo(5),co=eo(6),uo=(no.range,ro.range,io.range,ao.range,oo.range,so.range,co.range,Ea((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const lo=uo;uo.range;var ho=Ea((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ho.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ea((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const fo=ho;function po(t,e,n,r,i,a){const o=[[Na,1,va],[Na,5,5e3],[Na,15,15e3],[Na,30,3e4],[a,1,ba],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,_a],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,xa],[r,2,1728e5],[n,1,wa],[e,1,2592e6],[e,3,7776e6],[t,1,ka]];function s(e,n,r){const i=Math.abs(n-e)/r,a=Wr((([,,t])=>t)).right(o,i);if(a===o.length)return t.every(Hr(e/ka,n/ka,r));if(0===a)return Aa.every(Math.max(Hr(e,n,r),1));const[s,c]=o[i/o[a-1][2][t.toLowerCase(),e])))}function Bo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Lo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Oo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Io(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ro(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Fo(t,e,n){var r=Co.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Po(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jo(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Yo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function zo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Uo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qo(t,e,n){var r=Co.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ho(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function $o(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Wo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vo(t,e,n){var r=Co.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Go(t,e,n){var r=Co.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xo(t,e,n){var r=Eo.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zo(t,e,n){var r=Co.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Qo(t,e,n){var r=Co.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ko(t,e){return Ao(t.getDate(),e,2)}function Jo(t,e){return Ao(t.getHours(),e,2)}function ts(t,e){return Ao(t.getHours()%12||12,e,2)}function es(t,e){return Ao(1+Ra.count(Ga(t),t),e,3)}function ns(t,e){return Ao(t.getMilliseconds(),e,3)}function rs(t,e){return ns(t,e)+"000"}function is(t,e){return Ao(t.getMonth()+1,e,2)}function as(t,e){return Ao(t.getMinutes(),e,2)}function os(t,e){return Ao(t.getSeconds(),e,2)}function ss(t){var e=t.getDay();return 0===e?7:e}function cs(t,e){return Ao(Pa.count(Ga(t)-1,t),e,2)}function us(t){var e=t.getDay();return e>=4||0===e?Ua(t):Ua.ceil(t)}function ls(t,e){return t=us(t),Ao(Ua.count(Ga(t),t)+(4===Ga(t).getDay()),e,2)}function hs(t){return t.getDay()}function fs(t,e){return Ao(ja.count(Ga(t)-1,t),e,2)}function ds(t,e){return Ao(t.getFullYear()%100,e,2)}function ps(t,e){return Ao((t=us(t)).getFullYear()%100,e,2)}function gs(t,e){return Ao(t.getFullYear()%1e4,e,4)}function ys(t,e){var n=t.getDay();return Ao((t=n>=4||0===n?Ua(t):Ua.ceil(t)).getFullYear()%1e4,e,4)}function ms(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ao(e/60|0,"0",2)+Ao(e%60,"0",2)}function vs(t,e){return Ao(t.getUTCDate(),e,2)}function bs(t,e){return Ao(t.getUTCHours(),e,2)}function _s(t,e){return Ao(t.getUTCHours()%12||12,e,2)}function xs(t,e){return Ao(1+to.count(fo(t),t),e,3)}function ws(t,e){return Ao(t.getUTCMilliseconds(),e,3)}function ks(t,e){return ws(t,e)+"000"}function Ts(t,e){return Ao(t.getUTCMonth()+1,e,2)}function Cs(t,e){return Ao(t.getUTCMinutes(),e,2)}function Es(t,e){return Ao(t.getUTCSeconds(),e,2)}function Ss(t){var e=t.getUTCDay();return 0===e?7:e}function As(t,e){return Ao(no.count(fo(t)-1,t),e,2)}function Ms(t){var e=t.getUTCDay();return e>=4||0===e?oo(t):oo.ceil(t)}function Ns(t,e){return t=Ms(t),Ao(oo.count(fo(t),t)+(4===fo(t).getUTCDay()),e,2)}function Ds(t){return t.getUTCDay()}function Bs(t,e){return Ao(ro.count(fo(t)-1,t),e,2)}function Ls(t,e){return Ao(t.getUTCFullYear()%100,e,2)}function Os(t,e){return Ao((t=Ms(t)).getUTCFullYear()%100,e,2)}function Is(t,e){return Ao(t.getUTCFullYear()%1e4,e,4)}function Rs(t,e){var n=t.getUTCDay();return Ao((t=n>=4||0===n?oo(t):oo.ceil(t)).getUTCFullYear()%1e4,e,4)}function Fs(){return"+0000"}function Ps(){return"%"}function js(t){return+t}function Ys(t){return Math.floor(+t/1e3)}function zs(t){return new Date(t)}function Us(t){return t instanceof Date?+t:+new Date(+t)}function qs(t,e,n,r,i,a,o,s,c,u){var l=Xi(),h=l.invert,f=l.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),v=u("%b %d"),b=u("%B"),_=u("%Y");function x(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:js,s:Ys,S:os,u:ss,U:cs,V:ls,w:hs,W:fs,x:null,X:null,y:ds,Y:gs,Z:ms,"%":Ps},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vs,e:vs,f:ks,g:Os,G:Rs,H:bs,I:_s,j:xs,L:ws,m:Ts,M:Cs,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:js,s:Ys,S:Es,u:Ss,U:As,V:Ns,w:Ds,W:Bs,x:null,X:null,y:Ls,Y:Is,Z:Fs,"%":Ps},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:Uo,e:Uo,f:Go,g:Po,G:Fo,H:Ho,I:Ho,j:qo,L:Vo,m:zo,M:$o,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Yo,Q:Zo,s:Qo,S:Wo,u:Lo,U:Oo,V:Io,w:Bo,W:Ro,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:Po,Y:Fo,Z:jo,"%":Xo};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=_o(xo(a.y,0,1))).getUTCDay(),r=i>4||0===i?ro.ceil(r):ro(r),r=to.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=bo(xo(a.y,0,1))).getDay(),r=i>4||0===i?ja.ceil(r):ja(r),r=Ra.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?_o(xo(a.y,0,1)).getUTCDay():bo(xo(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,_o(a)):bo(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in To?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),ko=wo.format,wo.parse,wo.utcFormat,wo.utcParse;var Qs=Array.prototype.find;function Ks(){return this.firstElementChild}var Js=Array.prototype.filter;function tc(){return Array.from(this.children)}function ec(t){return new Array(t.length)}function nc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rc(t){return function(){return t}}function ic(t,e,n,r,i,a){for(var o,s=0,c=e.length,u=a.length;se?1:t>=e?0:NaN}nc.prototype={constructor:nc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var uc="http://www.w3.org/1999/xhtml";const lc={svg:"http://www.w3.org/2000/svg",xhtml:uc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hc(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),lc.hasOwnProperty(e)?{space:lc[e],local:t}:t}function fc(t){return function(){this.removeAttribute(t)}}function dc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pc(t,e){return function(){this.setAttribute(t,e)}}function gc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function yc(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function mc(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vc(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bc(t){return function(){this.style.removeProperty(t)}}function _c(t,e,n){return function(){this.style.setProperty(t,e,n)}}function xc(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function wc(t,e){return t.style.getPropertyValue(e)||vc(t).getComputedStyle(t,null).getPropertyValue(e)}function kc(t){return function(){delete this[t]}}function Tc(t,e){return function(){this[t]=e}}function Cc(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ec(t){return t.trim().split(/^|\s+/)}function Sc(t){return t.classList||new Ac(t)}function Ac(t){this._node=t,this._names=Ec(t.getAttribute("class")||"")}function Mc(t,e){for(var n=Sc(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Zc(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var eu=[null];function nu(t,e){this._groups=t,this._parents=e}function ru(){return new nu([[document.documentElement]],eu)}nu.prototype=ru.prototype={constructor:nu,select:function(t){"function"!=typeof t&&(t=$s(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=cc);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?bc:"function"==typeof e?xc:_c)(t,e,null==n?"":n)):wc(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?kc:"function"==typeof e?Cc:Tc)(t,e)):this.node()[t]},classed:function(t,e){var n=Ec(t+"");if(arguments.length<2){for(var r=Sc(this.node()),i=-1,a=n.length;++iuu)if(Math.abs(l*s-c*u)>uu&&i){var f=n-a,d=r-o,p=s*s+c*c,g=f*f+d*d,y=Math.sqrt(p),m=Math.sqrt(h),v=i*Math.tan((su-Math.acos((p+h-g)/(2*y*m)))/2),b=v/m,_=v/y;Math.abs(b-1)>uu&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>uu||Math.abs(this._y1-u)>uu)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%cu+cu),h>lu?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>uu&&(this._+="A"+n+","+n+",0,"+ +(h>=su)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const du=fu;function pu(t){return function(){return t}}var gu=Math.abs,yu=Math.atan2,mu=Math.cos,vu=Math.max,bu=Math.min,_u=Math.sin,xu=Math.sqrt,wu=1e-12,ku=Math.PI,Tu=ku/2,Cu=2*ku;function Eu(t){return t>1?0:t<-1?ku:Math.acos(t)}function Su(t){return t>=1?Tu:t<=-1?-Tu:Math.asin(t)}function Au(t){return t.innerRadius}function Mu(t){return t.outerRadius}function Nu(t){return t.startAngle}function Du(t){return t.endAngle}function Bu(t){return t&&t.padAngle}function Lu(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*fN*N+D*D&&(T=E,C=S),{cx:T,cy:C,x01:-l,y01:-h,x11:T*(i/x-1),y11:C*(i/x-1)}}function Iu(){var t=Au,e=Mu,n=pu(0),r=null,i=Nu,a=Du,o=Bu,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-Tu,d=a.apply(this,arguments)-Tu,p=gu(d-f),g=d>f;if(s||(s=c=du()),hwu)if(p>Cu-wu)s.moveTo(h*mu(f),h*_u(f)),s.arc(0,0,h,f,d,!g),l>wu&&(s.moveTo(l*mu(d),l*_u(d)),s.arc(0,0,l,d,f,g));else{var y,m,v=f,b=d,_=f,x=d,w=p,k=p,T=o.apply(this,arguments)/2,C=T>wu&&(r?+r.apply(this,arguments):xu(l*l+h*h)),E=bu(gu(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(C>wu){var M=Su(C/l*_u(T)),N=Su(C/h*_u(T));(w-=2*M)>wu?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>wu?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*mu(v),B=h*_u(v),L=l*mu(x),O=l*_u(x);if(E>wu){var I,R=h*mu(b),F=h*_u(b),P=l*mu(_),j=l*_u(_);if(pwu?A>wu?(y=Ou(P,j,D,B,h,A,g),m=Ou(R,F,L,O,h,A,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),Awu&&w>wu?S>wu?(y=Ou(L,O,R,F,l,-S,g),m=Ou(D,B,P,j,l,-S,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),St?1:e>=t?0:NaN}function qu(t){return t}function Hu(){}function $u(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Wu(t){this._context=t}function Vu(t){return new Wu(t)}function Gu(t){this._context=t}function Xu(t){this._context=t}function Zu(t){this._context=t}function Qu(t){return t<0?-1:1}function Ku(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Qu(a)+Qu(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ju(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function tl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function el(t){this._context=t}function nl(t){this._context=new rl(t)}function rl(t){this._context=t}function il(t){this._context=t}function al(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var sl=new Date,cl=new Date;function ul(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return sl.setTime(+e),cl.setTime(+r),t(sl),t(cl),Math.floor(n(sl,cl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}const ll=864e5,hl=6048e5;function fl(t){return ul((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hl}))}var dl=fl(0),pl=fl(1),gl=fl(2),yl=fl(3),ml=fl(4),vl=fl(5),bl=fl(6),_l=(dl.range,pl.range,gl.range,yl.range,ml.range,vl.range,bl.range,ul((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ll}),(function(t){return t.getUTCDate()-1})));const xl=_l;function wl(t){return ul((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/hl}))}_l.range;var kl=wl(0),Tl=wl(1),Cl=wl(2),El=wl(3),Sl=wl(4),Al=wl(5),Ml=wl(6),Nl=(kl.range,Tl.range,Cl.range,El.range,Sl.range,Al.range,Ml.range,ul((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/ll),(t=>t.getDate()-1)));const Dl=Nl;Nl.range;var Bl=ul((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Bl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ul((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ll=Bl;Bl.range;var Ol=ul((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ol.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ul((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Il=Ol;function Rl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Fl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pl(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Ol.range;var jl,Yl,zl={"-":"",_:" ",0:"0"},Ul=/^\s*\d+/,ql=/^%/,Hl=/[\\^$*+?|[\]().{}]/g;function $l(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[t.toLowerCase(),e])))}function Xl(t,e,n){var r=Ul.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Zl(t,e,n){var r=Ul.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ql(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Kl(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Jl(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function th(t,e,n){var r=Ul.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function eh(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nh(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rh(t,e,n){var r=Ul.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ih(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ah(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function oh(t,e,n){var r=Ul.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function sh(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ch(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function uh(t,e,n){var r=Ul.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function lh(t,e,n){var r=Ul.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hh(t,e,n){var r=Ul.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fh(t,e,n){var r=ql.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function dh(t,e,n){var r=Ul.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ph(t,e,n){var r=Ul.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function gh(t,e){return $l(t.getDate(),e,2)}function yh(t,e){return $l(t.getHours(),e,2)}function mh(t,e){return $l(t.getHours()%12||12,e,2)}function vh(t,e){return $l(1+Dl.count(Ll(t),t),e,3)}function bh(t,e){return $l(t.getMilliseconds(),e,3)}function _h(t,e){return bh(t,e)+"000"}function xh(t,e){return $l(t.getMonth()+1,e,2)}function wh(t,e){return $l(t.getMinutes(),e,2)}function kh(t,e){return $l(t.getSeconds(),e,2)}function Th(t){var e=t.getDay();return 0===e?7:e}function Ch(t,e){return $l(kl.count(Ll(t)-1,t),e,2)}function Eh(t){var e=t.getDay();return e>=4||0===e?Sl(t):Sl.ceil(t)}function Sh(t,e){return t=Eh(t),$l(Sl.count(Ll(t),t)+(4===Ll(t).getDay()),e,2)}function Ah(t){return t.getDay()}function Mh(t,e){return $l(Tl.count(Ll(t)-1,t),e,2)}function Nh(t,e){return $l(t.getFullYear()%100,e,2)}function Dh(t,e){return $l((t=Eh(t)).getFullYear()%100,e,2)}function Bh(t,e){return $l(t.getFullYear()%1e4,e,4)}function Lh(t,e){var n=t.getDay();return $l((t=n>=4||0===n?Sl(t):Sl.ceil(t)).getFullYear()%1e4,e,4)}function Oh(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$l(e/60|0,"0",2)+$l(e%60,"0",2)}function Ih(t,e){return $l(t.getUTCDate(),e,2)}function Rh(t,e){return $l(t.getUTCHours(),e,2)}function Fh(t,e){return $l(t.getUTCHours()%12||12,e,2)}function Ph(t,e){return $l(1+xl.count(Il(t),t),e,3)}function jh(t,e){return $l(t.getUTCMilliseconds(),e,3)}function Yh(t,e){return jh(t,e)+"000"}function zh(t,e){return $l(t.getUTCMonth()+1,e,2)}function Uh(t,e){return $l(t.getUTCMinutes(),e,2)}function qh(t,e){return $l(t.getUTCSeconds(),e,2)}function Hh(t){var e=t.getUTCDay();return 0===e?7:e}function $h(t,e){return $l(dl.count(Il(t)-1,t),e,2)}function Wh(t){var e=t.getUTCDay();return e>=4||0===e?ml(t):ml.ceil(t)}function Vh(t,e){return t=Wh(t),$l(ml.count(Il(t),t)+(4===Il(t).getUTCDay()),e,2)}function Gh(t){return t.getUTCDay()}function Xh(t,e){return $l(pl.count(Il(t)-1,t),e,2)}function Zh(t,e){return $l(t.getUTCFullYear()%100,e,2)}function Qh(t,e){return $l((t=Wh(t)).getUTCFullYear()%100,e,2)}function Kh(t,e){return $l(t.getUTCFullYear()%1e4,e,4)}function Jh(t,e){var n=t.getUTCDay();return $l((t=n>=4||0===n?ml(t):ml.ceil(t)).getUTCFullYear()%1e4,e,4)}function tf(){return"+0000"}function ef(){return"%"}function nf(t){return+t}function rf(t){return Math.floor(+t/1e3)}jl=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Vl(i),l=Gl(i),h=Vl(a),f=Gl(a),d=Vl(o),p=Gl(o),g=Vl(s),y=Gl(s),m=Vl(c),v=Gl(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:gh,e:gh,f:_h,g:Dh,G:Lh,H:yh,I:mh,j:vh,L:bh,m:xh,M:wh,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nf,s:rf,S:kh,u:Th,U:Ch,V:Sh,w:Ah,W:Mh,x:null,X:null,y:Nh,Y:Bh,Z:Oh,"%":ef},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ih,e:Ih,f:Yh,g:Qh,G:Jh,H:Rh,I:Fh,j:Ph,L:jh,m:zh,M:Uh,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nf,s:rf,S:qh,u:Hh,U:$h,V:Vh,w:Gh,W:Xh,x:null,X:null,y:Zh,Y:Kh,Z:tf,"%":ef},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:ah,e:ah,f:hh,g:eh,G:th,H:sh,I:sh,j:oh,L:lh,m:ih,M:ch,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:rh,Q:dh,s:ph,S:uh,u:Zl,U:Ql,V:Kl,w:Xl,W:Jl,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:eh,Y:th,Z:nh,"%":fh};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Fl(Pl(a.y,0,1))).getUTCDay(),r=i>4||0===i?pl.ceil(r):pl(r),r=xl.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Rl(Pl(a.y,0,1))).getDay(),r=i>4||0===i?Tl.ceil(r):Tl(r),r=Dl.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Fl(Pl(a.y,0,1)).getUTCDay():Rl(Pl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Fl(a)):Rl(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in zl?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Yl=jl.format,jl.parse,jl.utcFormat,jl.utcParse;var af={value:()=>{}};function of(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function uf(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--pf}()}finally{pf=0,function(){for(var t,e,n=ff,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ff=e);df=t,Af(r)}(),vf=0}}function Sf(){var t=_f.now(),e=t-mf;e>1e3&&(bf-=e,mf=t)}function Af(t){pf||(gf&&(gf=clearTimeout(gf)),t-vf>24?(t<1/0&&(gf=setTimeout(Ef,t-_f.now()-bf)),yf&&(yf=clearInterval(yf))):(yf||(mf=_f.now(),yf=setInterval(Sf,1e3)),pf=1,xf(Ef)))}function Mf(t,e,n){var r=new Tf;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Tf.prototype=Cf.prototype={constructor:Tf,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?wf():+n)+(null==e?0:+e),this._next||df===this||(df?df._next=this:ff=this,df=this),this._call=t,this._time=n,Af()},stop:function(){this._call&&(this._call=null,this._time=1/0,Af())}};var Nf=hf("start","end","cancel","interrupt"),Df=[];function Bf(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Mf(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function Of(t,e){var n=If(t,e);if(n.state>3)throw new Error("too late; already running");return n}function If(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Rf(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ff,Pf=180/Math.PI,jf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Yf(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Rf(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Rf(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Rf(t,n)},{i:s-2,x:Rf(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Rf(n,r)})),a=Qf.lastIndex;return a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Lf:Of;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var yd=iu.prototype.constructor;function md(t){return function(){this.style.removeProperty(t)}}function vd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function bd(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&vd(t,a,n)),r}return a._value=e,a}function _d(t){return function(e){this.textContent=t.call(this,e)}}function xd(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&_d(r)),e}return r._value=t,r}var wd=0;function kd(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Td(){return++wd}var Cd=iu.prototype;kd.prototype=function(t){return iu().transition(t)}.prototype={constructor:kd,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=$s(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},iu.prototype.transition=function(t){var e,n;t instanceof kd?(e=t._id,t=t._name):(e=Td(),(n=Ed).time=wf(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;ae?1:t>=e?0:NaN}Yd.prototype={constructor:Yd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Vd="http://www.w3.org/1999/xhtml";const Gd={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xd(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Gd.hasOwnProperty(e)?{space:Gd[e],local:t}:t}function Zd(t){return function(){this.removeAttribute(t)}}function Qd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kd(t,e){return function(){this.setAttribute(t,e)}}function Jd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function tp(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ep(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function np(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function rp(t){return function(){this.style.removeProperty(t)}}function ip(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ap(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function op(t,e){return t.style.getPropertyValue(e)||np(t).getComputedStyle(t,null).getPropertyValue(e)}function sp(t){return function(){delete this[t]}}function cp(t,e){return function(){this[t]=e}}function up(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function lp(t){return t.trim().split(/^|\s+/)}function hp(t){return t.classList||new fp(t)}function fp(t){this._node=t,this._names=lp(t.getAttribute("class")||"")}function dp(t,e){for(var n=hp(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Op(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var jp=[null];function Yp(t,e){this._groups=t,this._parents=e}function zp(){return new Yp([[document.documentElement]],jp)}Yp.prototype=zp.prototype={constructor:Yp,select:function(t){"function"!=typeof t&&(t=Md(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Wd);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?rp:"function"==typeof e?ap:ip)(t,e,null==n?"":n)):op(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?sp:"function"==typeof e?up:cp)(t,e)):this.node()[t]},classed:function(t,e){var n=lp(t+"");if(arguments.length<2){for(var r=hp(this.node()),i=-1,a=n.length;++i{}};function Hp(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Vp(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--Kp}()}finally{Kp=0,function(){for(var t,e,n=Zp,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Zp=e);Qp=t,fg(r)}(),ng=0}}function hg(){var t=ig.now(),e=t-eg;e>1e3&&(rg-=e,eg=t)}function fg(t){Kp||(Jp&&(Jp=clearTimeout(Jp)),t-ng>24?(t<1/0&&(Jp=setTimeout(lg,t-ig.now()-rg)),tg&&(tg=clearInterval(tg))):(tg||(eg=ig.now(),tg=setInterval(hg,1e3)),Kp=1,ag(lg)))}function dg(t,e,n){var r=new cg;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}cg.prototype=ug.prototype={constructor:cg,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?og():+n)+(null==e?0:+e),this._next||Qp===this||(Qp?Qp._next=this:Zp=this,Qp=this),this._call=t,this._time=n,fg()},stop:function(){this._call&&(this._call=null,this._time=1/0,fg())}};var pg=Xp("start","end","cancel","interrupt"),gg=[];function yg(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return dg(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function vg(t,e){var n=bg(t,e);if(n.state>3)throw new Error("too late; already running");return n}function bg(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function _g(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var xg,wg=180/Math.PI,kg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tg(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:_g(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:_g(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:_g(t,n)},{i:s-2,x:_g(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Qg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Qg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Yg.exec(t))?new ty(e[1],e[2],e[3],1):(e=zg.exec(t))?new ty(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ug.exec(t))?Qg(e[1],e[2],e[3],e[4]):(e=qg.exec(t))?Qg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Hg.exec(t))?iy(e[1],e[2]/100,e[3]/100,1):(e=$g.exec(t))?iy(e[1],e[2]/100,e[3]/100,e[4]):Wg.hasOwnProperty(t)?Zg(Wg[t]):"transparent"===t?new ty(NaN,NaN,NaN,0):null}function Zg(t){return new ty(t>>16&255,t>>8&255,255&t,1)}function Qg(t,e,n,r){return r<=0&&(t=e=n=NaN),new ty(t,e,n,r)}function Kg(t){return t instanceof Lg||(t=Xg(t)),t?new ty((t=t.rgb()).r,t.g,t.b,t.opacity):new ty}function Jg(t,e,n,r){return 1===arguments.length?Kg(t):new ty(t,e,n,null==r?1:r)}function ty(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ey(){return"#"+ry(this.r)+ry(this.g)+ry(this.b)}function ny(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ry(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function iy(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new oy(t,e,n,r)}function ay(t){if(t instanceof oy)return new oy(t.h,t.s,t.l,t.opacity);if(t instanceof Lg||(t=Xg(t)),!t)return new oy;if(t instanceof oy)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new oy(o,s,c,t.opacity)}function oy(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sy(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cy(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Dg(Lg,Xg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Vg,formatHex:Vg,formatHsl:function(){return ay(this).formatHsl()},formatRgb:Gg,toString:Gg}),Dg(ty,Jg,Bg(Lg,{brighter:function(t){return t=null==t?Ig:Math.pow(Ig,t),new ty(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Og:Math.pow(Og,t),new ty(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ey,formatHex:ey,formatRgb:ny,toString:ny})),Dg(oy,(function(t,e,n,r){return 1===arguments.length?ay(t):new oy(t,e,n,null==r?1:r)}),Bg(Lg,{brighter:function(t){return t=null==t?Ig:Math.pow(Ig,t),new oy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Og:Math.pow(Og,t),new oy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ty(sy(t>=240?t-240:t+120,i,r),sy(t,i,r),sy(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const uy=t=>()=>t;function ly(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):uy(isNaN(t)?e:t)}const hy=function t(e){var n=function(t){return 1==(t=+t)?ly:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):uy(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Jg(t)).r,(e=Jg(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ly(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function fy(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:_g(n,r)})),a=py.lastIndex;return a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?mg:vg;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Ly=Up.prototype.constructor;function Oy(t){return function(){this.style.removeProperty(t)}}function Iy(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ry(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Iy(t,a,n)),r}return a._value=e,a}function Fy(t){return function(e){this.textContent=t.call(this,e)}}function Py(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Fy(r)),e}return r._value=t,r}var jy=0;function Yy(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function zy(){return++jy}var Uy=Up.prototype;Yy.prototype=function(t){return Up().transition(t)}.prototype={constructor:Yy,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Md(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Up.prototype.transition=function(t){var e,n;t instanceof Yy?(e=t._id,t=t._name):(e=zy(),(n=qy).time=og(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a0?tm(fm,--lm):0,cm--,10===hm&&(cm=1,sm--),hm}function gm(){return hm=lm2||bm(hm)>3?"":" "}function wm(t,e){for(;--e&&gm()&&!(hm<48||hm>102||hm>57&&hm<65||hm>70&&hm<97););return vm(t,mm()+(e<6&&32==ym()&&32==gm()))}function km(t){for(;gm();)switch(hm){case t:return lm;case 34:case 39:34!==t&&39!==t&&km(hm);break;case 40:41===t&&km(t);break;case 92:gm()}return lm}function Tm(t,e){for(;gm()&&t+hm!==57&&(t+hm!==84||47!==ym()););return"/*"+vm(e,lm-1)+"*"+Zy(47===t?t:gm())}function Cm(t){for(;!bm(ym());)gm();return vm(t,lm)}function Em(t){return function(t){return fm="",t}(Sm("",null,null,null,[""],t=function(t){return sm=cm=1,um=nm(fm=t),lm=0,[]}(t),0,[0],t))}function Sm(t,e,n,r,i,a,o,s,c){for(var u=0,l=0,h=o,f=0,d=0,p=0,g=1,y=1,m=1,v=0,b="",_=i,x=a,w=r,k=b;y;)switch(p=v,v=gm()){case 40:if(108!=p&&58==k.charCodeAt(h-1)){-1!=Jy(k+=Ky(_m(v),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:k+=_m(v);break;case 9:case 10:case 13:case 32:k+=xm(p);break;case 92:k+=wm(mm()-1,7);continue;case 47:switch(ym()){case 42:case 47:im(Mm(Tm(gm(),mm()),e,n),c);break;default:k+="/"}break;case 123*g:s[u++]=nm(k)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+l:d>0&&nm(k)-h&&im(d>32?Nm(k+";",r,n,h-1):Nm(Ky(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(im(w=Am(k,e,n,u,l,i,s,b,_=[],x=[],h),a),123===v)if(0===l)Sm(k,e,w,w,_,a,h,s,x);else switch(f){case 100:case 109:case 115:Sm(t,w,w,r&&im(Am(t,w,w,0,0,i,s,b,i,_=[],h),x),i,x,h,s,r?_:x);break;default:Sm(k,w,w,w,[""],x,0,s,x)}}u=l=d=0,g=m=1,b=k="",h=o;break;case 58:h=1+nm(k),d=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==pm())continue;switch(k+=Zy(v),v*g){case 38:m=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(nm(k)-1)*m,m=1;break;case 64:45===ym()&&(k+=_m(gm())),f=ym(),l=h=nm(b=k+=Cm(mm())),v++;break;case 45:45===p&&2==nm(k)&&(g=0)}}return a}function Am(t,e,n,r,i,a,o,s,c,u,l){for(var h=i-1,f=0===i?a:[""],d=rm(f),p=0,g=0,y=0;p0?f[m]+" "+v:Ky(v,/&\f/g,f[m])))&&(c[y++]=b);return dm(t,e,n,0===i?Vy:s,c,u,l)}function Mm(t,e,n){return dm(t,e,n,Wy,Zy(hm),em(t,2,-2),0)}function Nm(t,e,n,r){return dm(t,e,n,Gy,em(t,0,r),em(t,r+1,-1),r)}const Dm="9.0.0";var Bm=n(7967),Lm=n(7856),Om=n.n(Lm),Im=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\u/g,""),16))}));return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/\\[\d\d\d]{3}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))).replace(/\\[\d\d\d]{2}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))},Rm=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}var r=Im(e);return(r=(r=(r=r.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/')}if(void 0!==n)switch(g){case"flowchart":case"flowchart-v2":n(T,bx.bindFunctions);break;case"gantt":n(T,kw.bindFunctions);break;case"class":case"classDiagram":n(T,_b.bindFunctions);break;default:n(T)}else o.debug("CB = undefined!");aT.forEach((function(t){t()})),aT=[];var S="sandbox"===s.securityLevel?"#i"+t:"#d"+t,A=au(S).node();return null!==A&&"function"==typeof A.remove&&au(S).node().remove(),T},parse:function(t){var e=tb(),n=$v.detectInit(t,e);n&&o.info("reinit ",n);var r,i=$v.detectType(t,e);switch(o.debug("Type "+i),i){case"gitGraph":(r=$w()).parser.yy=qw;break;case"flowchart":case"flowchart-v2":bx.clear(),(r=xx()).parser.yy=bx;break;case"sequence":iT.clear(),(r=Rk()).parser.yy=iT;break;case"gantt":(r=Sw()).parser.yy=kw;break;case"class":case"classDiagram":(r=Eb()).parser.yy=_b;break;case"state":case"stateDiagram":(r=ZT()).parser.yy=hC;break;case"info":o.debug("info info info"),(r=ik()).parser.yy=nk;break;case"pie":o.debug("pie"),(r=ck()).parser.yy=dk;break;case"er":o.debug("er"),(r=P_()).parser.yy=R_;break;case"journey":o.debug("Journey"),(r=jC()).parser.yy=FC;break;case"requirement":case"requirementDiagram":o.debug("RequirementDiagram"),(r=vk()).parser.yy=Tk}return r.parser.yy.graphType=i,r.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},r.parse(t),r},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":uE={};break;case"type_directive":uE.type=e.toLowerCase();break;case"arg_directive":uE.args=JSON.parse(e);break;case"close_directive":(function(t,e,n){switch(o.debug("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),o.debug("sanitize in handleDirective",e.args),qv(e.args),o.debug("sanitize in handleDirective (done)",e.args),e.args,nb(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.warn("themeCss encountered");break;default:o.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}})(t,uE,r),uE=null}}catch(t){o.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(n)),o.error(t.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(t){Vv=Iv({},t)}(t),t&&t.theme&&sv[t.theme]?t.themeVariables=sv[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=sv.default.getThemeVariables(t.themeVariables));var e="object"===sE(t)?function(t){return Xv=Iv({},Gv),Xv=Iv(Xv,t),t.theme&&(Xv.themeVariables=sv[t.theme].getThemeVariables(t.themeVariables)),Qv=Kv(Xv,Zv),Xv}(t):Jv();lE(e),s(e.logLevel)},reinitialize:function(){},getConfig:tb,setConfig:function(t){return Iv(Qv,t),tb()},getSiteConfig:Jv,updateSiteConfig:function(t){return Xv=Iv(Xv,t),Kv(Xv,Zv),Xv},reset:function(){rb()},globalReset:function(){rb(),lE(tb())},defaultConfig:Gv});s(tb().logLevel),rb(tb());const fE=hE;var dE=function(){pE.startOnLoad?fE.getConfig().startOnLoad&&pE.init():void 0===pE.startOnLoad&&(o.debug("In start, no config"),fE.getConfig().startOnLoad&&pE.init())};"undefined"!=typeof document&&window.addEventListener("load",(function(){dE()}),!1);var pE={startOnLoad:!0,htmlLabels:!0,mermaidAPI:fE,parse:fE.parse,render:fE.render,init:function(){var t,e,n=this,r=fE.getConfig();arguments.length>=2?(void 0!==arguments[0]&&(pE.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],o.debug("Callback function found")):void 0!==r.mermaid&&("function"==typeof r.mermaid.callback?(e=r.mermaid.callback,o.debug("Callback function found")):o.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,o.debug("Start On Load before: "+pE.startOnLoad),void 0!==pE.startOnLoad&&(o.debug("Start On Load inner: "+pE.startOnLoad),fE.updateSiteConfig({startOnLoad:pE.startOnLoad})),void 0!==pE.ganttConfig&&fE.updateSiteConfig({gantt:pE.ganttConfig});for(var i,a=new $v.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed),s=function(r){var s=t[r];if(s.getAttribute("data-processed"))return"continue";s.setAttribute("data-processed",!0);var c="mermaid-".concat(a.next());i=s.innerHTML,i=$v.entityDecode(i).trim().replace(//gi,"
    ");var u=$v.detectInit(i);u&&o.debug("Detected early reinit: ",u);try{fE.render(c,i,(function(t,n){s.innerHTML=t,void 0!==e&&e(c),n&&n(s)}),s)}catch(t){o.warn("Syntax Error rendering"),o.warn(t),n.parseError&&n.parseError(t)}},c=0;c{t.exports={graphlib:n(6614),dagre:n(1463),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n,o=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),s=t.selectAll("g.cluster").data(o,(function(t){return t}));return s.selectAll("*").remove(),s.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),s=t.selectAll("g.cluster"),r.applyTransition(s,e).style("opacity",1),s.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),s.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),n=s.exit?s.exit():s.selectAll(null),r.applyTransition(n,e).style("opacity",0).remove(),s}},6315:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n,s=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return s.exit().remove(),s.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(s=t.selectAll("g.edgeLabel")).each((function(t){var n=o.select(this);n.select(".label").remove();var a=e.edge(t),s=i(n,e.edge(t),0,0).classed("label",!0),c=s.node().getBBox();a.labelId&&s.attr("id",a.labelId),r.has(a,"width")||(a.width=c.width),r.has(a,"height")||(a.height=c.height)})),n=s.exit?s.exit():s.selectAll(null),a.applyTransition(n,e).style("opacity",0).remove(),s}},940:(t,e,n)=>{var r=n(1034),i=n(7584),a=n(8355),o=n(4322);function s(t,e){var n=(o.line||o.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0),u=function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return s(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs"),n}(c,e);!function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove()}(c,e);var l=void 0!==c.merge?c.merge(u):c;return a.applyTransition(l,e).style("opacity",1),l.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),l.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),s(n,o)}(e,t)})),a.applyStyle(c,n.style)})),l.selectAll("defs *").remove(),l.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),l}},607:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),u=t.selectAll("g.node").data(c,(function(t){return t})).classed("update",!0);return u.exit().remove(),u.enter().append("g").attr("class","node").style("opacity",0),(u=t.selectAll("g.node")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var u=c.append("g").attr("class","label"),l=i(u,s),h=n[s.shape],f=r.pick(l.node().getBBox(),"width","height");s.elem=this,s.id&&c.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),r.has(s,"width")&&(f.width=s.width),r.has(s,"height")&&(f.height=s.height),f.width+=s.paddingLeft+s.paddingRight,f.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var d=o.select(this);d.select(".label-container").remove();var p=h(d,f,s).classed("label-container",!0);a.applyStyle(p,s.style);var g=p.node().getBBox();s.width=g.width,s.height=g.height})),s=u.exit?u.exit():u.selectAll(null),a.applyTransition(s,e).style("opacity",0).remove(),u}},4322:(t,e,n)=>{var r;if(!r)try{r=n(7188)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,e,n)=>{var r;try{r=n(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(7584),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),u=Math.abs(e*n*o/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,s,c,u,l,h,f,d,p,g,y,m;if(!(a=n.y-t.y,s=t.x-n.x,u=n.x*t.y-t.x*n.y,d=a*r.x+s*r.y+u,p=a*i.x+s*i.y+u,0!==d&&0!==p&&e(d,p)||(o=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,h=o*t.x+c*t.y+l,f=o*n.x+c*n.y+l,0!==h&&0!==f&&e(h,f)||0==(g=a*c-o*s))))return y=Math.abs(g/2),{x:(m=s*l-c*u)<0?(m-y)/g:(m+y)/g,y:(m=o*u-a*l)<0?(m-y)/g:(m+y)/g}}},7584:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),c=Math.min(c,t.y)}));for(var u=i-t.width/2-s,l=a-t.height/2-c,h=0;h1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,s=t.append("g");"svg"===e.labelType?a(s,e):"string"!=typeof o||"html"===e.labelType?i(s,e):r(s,e);var c,u=s.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-u.height;break;default:c=-u.height/2}return s.attr("transform","translate("+-u.width/2+","+c+")"),s}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i{var r;try{r={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch(t){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},4849:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(1463).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),u=n(940),l=n(4849),h=n(4577),f=n(6381),d=n(4418),p=n(9144),g=function(n,g){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(g);var y=c(n,"output"),m=c(y,"clusters"),v=c(y,"edgePaths"),b=i(c(y,"edgeLabels"),g),_=t(c(y,"nodes"),g,d);a(g),l(_,g),h(b,g),u(v,g,p);var x=e(m,g);f(x,g),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(e){return arguments.length?(t=e,g):t},g.createClusters=function(t){return arguments.length?(e=t,g):e},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(u=t,g):u},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},4418:(t,e,n)=>{var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},s}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.4"},7188:(t,e,n)=>{n.r(e),n.d(e,{FormatSpecifier:()=>uc,active:()=>Jr,arc:()=>fx,area:()=>vx,areaRadial:()=>Sx,ascending:()=>i,autoType:()=>Fo,axisBottom:()=>it,axisLeft:()=>at,axisRight:()=>rt,axisTop:()=>nt,bisect:()=>u,bisectLeft:()=>c,bisectRight:()=>s,bisector:()=>a,blob:()=>ms,brush:()=>Ai,brushSelection:()=>Ci,brushX:()=>Ei,brushY:()=>Si,buffer:()=>bs,chord:()=>Fi,clientPoint:()=>Dn,cluster:()=>Sd,color:()=>Ve,contourDensity:()=>oo,contours:()=>to,create:()=>j_,creator:()=>ie,cross:()=>f,csv:()=>Ts,csvFormat:()=>To,csvFormatBody:()=>Co,csvFormatRow:()=>So,csvFormatRows:()=>Eo,csvFormatValue:()=>Ao,csvParse:()=>wo,csvParseRows:()=>ko,cubehelix:()=>Ha,curveBasis:()=>sw,curveBasisClosed:()=>uw,curveBasisOpen:()=>hw,curveBundle:()=>dw,curveCardinal:()=>yw,curveCardinalClosed:()=>vw,curveCardinalOpen:()=>_w,curveCatmullRom:()=>kw,curveCatmullRomClosed:()=>Cw,curveCatmullRomOpen:()=>Sw,curveLinear:()=>px,curveLinearClosed:()=>Mw,curveMonotoneX:()=>Fw,curveMonotoneY:()=>Pw,curveNatural:()=>zw,curveStep:()=>qw,curveStepAfter:()=>$w,curveStepBefore:()=>Hw,customEvent:()=>ye,descending:()=>d,deviation:()=>y,dispatch:()=>ft,drag:()=>po,dragDisable:()=>Se,dragEnable:()=>Ae,dsv:()=>ks,dsvFormat:()=>_o,easeBack:()=>hs,easeBackIn:()=>us,easeBackInOut:()=>hs,easeBackOut:()=>ls,easeBounce:()=>os,easeBounceIn:()=>as,easeBounceInOut:()=>ss,easeBounceOut:()=>os,easeCircle:()=>rs,easeCircleIn:()=>es,easeCircleInOut:()=>rs,easeCircleOut:()=>ns,easeCubic:()=>Xr,easeCubicIn:()=>Vr,easeCubicInOut:()=>Xr,easeCubicOut:()=>Gr,easeElastic:()=>ps,easeElasticIn:()=>ds,easeElasticInOut:()=>gs,easeElasticOut:()=>ps,easeExp:()=>ts,easeExpIn:()=>Ko,easeExpInOut:()=>ts,easeExpOut:()=>Jo,easeLinear:()=>jo,easePoly:()=>$o,easePolyIn:()=>qo,easePolyInOut:()=>$o,easePolyOut:()=>Ho,easeQuad:()=>Uo,easeQuadIn:()=>Yo,easeQuadInOut:()=>Uo,easeQuadOut:()=>zo,easeSin:()=>Zo,easeSinIn:()=>Go,easeSinInOut:()=>Zo,easeSinOut:()=>Xo,entries:()=>pa,event:()=>le,extent:()=>m,forceCenter:()=>Ls,forceCollide:()=>Ws,forceLink:()=>Xs,forceManyBody:()=>tc,forceRadial:()=>ec,forceSimulation:()=>Js,forceX:()=>nc,forceY:()=>rc,format:()=>pc,formatDefaultLocale:()=>bc,formatLocale:()=>vc,formatPrefix:()=>gc,formatSpecifier:()=>cc,geoAlbers:()=>Uf,geoAlbersUsa:()=>qf,geoArea:()=>gu,geoAzimuthalEqualArea:()=>Vf,geoAzimuthalEqualAreaRaw:()=>Wf,geoAzimuthalEquidistant:()=>Xf,geoAzimuthalEquidistantRaw:()=>Gf,geoBounds:()=>sl,geoCentroid:()=>bl,geoCircle:()=>Nl,geoClipAntimeridian:()=>Ul,geoClipCircle:()=>ql,geoClipExtent:()=>Vl,geoClipRectangle:()=>Wl,geoConicConformal:()=>ed,geoConicConformalRaw:()=>td,geoConicEqualArea:()=>zf,geoConicEqualAreaRaw:()=>Yf,geoConicEquidistant:()=>ad,geoConicEquidistantRaw:()=>id,geoContains:()=>ph,geoDistance:()=>ah,geoEqualEarth:()=>fd,geoEqualEarthRaw:()=>hd,geoEquirectangular:()=>rd,geoEquirectangularRaw:()=>nd,geoGnomonic:()=>pd,geoGnomonicRaw:()=>dd,geoGraticule:()=>mh,geoGraticule10:()=>vh,geoIdentity:()=>gd,geoInterpolate:()=>bh,geoLength:()=>nh,geoMercator:()=>Qf,geoMercatorRaw:()=>Zf,geoNaturalEarth1:()=>md,geoNaturalEarth1Raw:()=>yd,geoOrthographic:()=>bd,geoOrthographicRaw:()=>vd,geoPath:()=>kf,geoProjection:()=>Ff,geoProjectionMutator:()=>Pf,geoRotation:()=>Sl,geoStereographic:()=>xd,geoStereographicRaw:()=>_d,geoStream:()=>nu,geoTransform:()=>Tf,geoTransverseMercator:()=>kd,geoTransverseMercatorRaw:()=>wd,gray:()=>ka,hcl:()=>Ba,hierarchy:()=>Md,histogram:()=>D,hsl:()=>an,html:()=>Ds,image:()=>Es,interpolate:()=>Mn,interpolateArray:()=>xn,interpolateBasis:()=>un,interpolateBasisClosed:()=>ln,interpolateBlues:()=>f_,interpolateBrBG:()=>Tb,interpolateBuGn:()=>Ub,interpolateBuPu:()=>Hb,interpolateCividis:()=>k_,interpolateCool:()=>E_,interpolateCubehelix:()=>zp,interpolateCubehelixDefault:()=>T_,interpolateCubehelixLong:()=>Up,interpolateDate:()=>kn,interpolateDiscrete:()=>Sp,interpolateGnBu:()=>Wb,interpolateGreens:()=>p_,interpolateGreys:()=>y_,interpolateHcl:()=>Pp,interpolateHclLong:()=>jp,interpolateHsl:()=>Op,interpolateHslLong:()=>Ip,interpolateHue:()=>Ap,interpolateInferno:()=>F_,interpolateLab:()=>Rp,interpolateMagma:()=>R_,interpolateNumber:()=>Tn,interpolateNumberArray:()=>bn,interpolateObject:()=>Cn,interpolateOrRd:()=>Gb,interpolateOranges:()=>w_,interpolatePRGn:()=>Eb,interpolatePiYG:()=>Ab,interpolatePlasma:()=>P_,interpolatePuBu:()=>Kb,interpolatePuBuGn:()=>Zb,interpolatePuOr:()=>Nb,interpolatePuRd:()=>t_,interpolatePurples:()=>v_,interpolateRainbow:()=>A_,interpolateRdBu:()=>Bb,interpolateRdGy:()=>Ob,interpolateRdPu:()=>n_,interpolateRdYlBu:()=>Rb,interpolateRdYlGn:()=>Pb,interpolateReds:()=>__,interpolateRgb:()=>gn,interpolateRgbBasis:()=>mn,interpolateRgbBasisClosed:()=>vn,interpolateRound:()=>Mp,interpolateSinebow:()=>B_,interpolateSpectral:()=>Yb,interpolateString:()=>An,interpolateTransformCss:()=>pr,interpolateTransformSvg:()=>gr,interpolateTurbo:()=>L_,interpolateViridis:()=>I_,interpolateWarm:()=>C_,interpolateYlGn:()=>o_,interpolateYlGnBu:()=>i_,interpolateYlOrBr:()=>c_,interpolateYlOrRd:()=>l_,interpolateZoom:()=>Bp,interrupt:()=>ar,interval:()=>fk,isoFormat:()=>uk,isoParse:()=>hk,json:()=>As,keys:()=>fa,lab:()=>Ta,lch:()=>Da,line:()=>mx,lineRadial:()=>Ex,linkHorizontal:()=>Rx,linkRadial:()=>Px,linkVertical:()=>Fx,local:()=>z_,map:()=>na,matcher:()=>mt,max:()=>I,mean:()=>R,median:()=>F,merge:()=>P,min:()=>j,mouse:()=>Ln,namespace:()=>Ct,namespaces:()=>Tt,nest:()=>ra,now:()=>Hn,pack:()=>tp,packEnclose:()=>Id,packSiblings:()=>Gd,pairs:()=>l,partition:()=>op,path:()=>Wi,permute:()=>Y,pie:()=>xx,piecewise:()=>qp,pointRadial:()=>Ax,polygonArea:()=>$p,polygonCentroid:()=>Wp,polygonContains:()=>Qp,polygonHull:()=>Zp,polygonLength:()=>Kp,precisionFixed:()=>_c,precisionPrefix:()=>xc,precisionRound:()=>wc,quadtree:()=>Ys,quantile:()=>B,quantize:()=>Hp,radialArea:()=>Sx,radialLine:()=>Ex,randomBates:()=>ig,randomExponential:()=>ag,randomIrwinHall:()=>rg,randomLogNormal:()=>ng,randomNormal:()=>eg,randomUniform:()=>tg,range:()=>k,rgb:()=>Qe,ribbon:()=>Ki,scaleBand:()=>dg,scaleDiverging:()=>ob,scaleDivergingLog:()=>sb,scaleDivergingPow:()=>ub,scaleDivergingSqrt:()=>lb,scaleDivergingSymlog:()=>cb,scaleIdentity:()=>Mg,scaleImplicit:()=>hg,scaleLinear:()=>Ag,scaleLog:()=>Pg,scaleOrdinal:()=>fg,scalePoint:()=>gg,scalePow:()=>Vg,scaleQuantile:()=>Xg,scaleQuantize:()=>Zg,scaleSequential:()=>Jv,scaleSequentialLog:()=>tb,scaleSequentialPow:()=>nb,scaleSequentialQuantile:()=>ib,scaleSequentialSqrt:()=>rb,scaleSequentialSymlog:()=>eb,scaleSqrt:()=>Gg,scaleSymlog:()=>Ug,scaleThreshold:()=>Qg,scaleTime:()=>Yv,scaleUtc:()=>Zv,scan:()=>z,schemeAccent:()=>db,schemeBlues:()=>h_,schemeBrBG:()=>kb,schemeBuGn:()=>zb,schemeBuPu:()=>qb,schemeCategory10:()=>fb,schemeDark2:()=>pb,schemeGnBu:()=>$b,schemeGreens:()=>d_,schemeGreys:()=>g_,schemeOrRd:()=>Vb,schemeOranges:()=>x_,schemePRGn:()=>Cb,schemePaired:()=>gb,schemePastel1:()=>yb,schemePastel2:()=>mb,schemePiYG:()=>Sb,schemePuBu:()=>Qb,schemePuBuGn:()=>Xb,schemePuOr:()=>Mb,schemePuRd:()=>Jb,schemePurples:()=>m_,schemeRdBu:()=>Db,schemeRdGy:()=>Lb,schemeRdPu:()=>e_,schemeRdYlBu:()=>Ib,schemeRdYlGn:()=>Fb,schemeReds:()=>b_,schemeSet1:()=>vb,schemeSet2:()=>bb,schemeSet3:()=>_b,schemeSpectral:()=>jb,schemeTableau10:()=>xb,schemeYlGn:()=>a_,schemeYlGnBu:()=>r_,schemeYlOrBr:()=>s_,schemeYlOrRd:()=>u_,select:()=>Te,selectAll:()=>q_,selection:()=>ke,selector:()=>pt,selectorAll:()=>yt,set:()=>ha,shuffle:()=>U,stack:()=>Xw,stackOffsetDiverging:()=>Qw,stackOffsetExpand:()=>Zw,stackOffsetNone:()=>Ww,stackOffsetSilhouette:()=>Kw,stackOffsetWiggle:()=>Jw,stackOrderAppearance:()=>tk,stackOrderAscending:()=>nk,stackOrderDescending:()=>ik,stackOrderInsideOut:()=>ak,stackOrderNone:()=>Vw,stackOrderReverse:()=>ok,stratify:()=>hp,style:()=>Rt,sum:()=>q,svg:()=>Bs,symbol:()=>rw,symbolCircle:()=>jx,symbolCross:()=>Yx,symbolDiamond:()=>qx,symbolSquare:()=>Gx,symbolStar:()=>Vx,symbolTriangle:()=>Zx,symbolWye:()=>ew,symbols:()=>nw,text:()=>xs,thresholdFreedmanDiaconis:()=>L,thresholdScott:()=>O,thresholdSturges:()=>N,tickFormat:()=>Eg,tickIncrement:()=>A,tickStep:()=>M,ticks:()=>S,timeDay:()=>Ay,timeDays:()=>My,timeFormat:()=>pm,timeFormatDefaultLocale:()=>Iv,timeFormatLocale:()=>fm,timeFriday:()=>vy,timeFridays:()=>Cy,timeHour:()=>Dy,timeHours:()=>By,timeInterval:()=>ty,timeMillisecond:()=>Yy,timeMilliseconds:()=>zy,timeMinute:()=>Oy,timeMinutes:()=>Iy,timeMonday:()=>py,timeMondays:()=>xy,timeMonth:()=>ay,timeMonths:()=>oy,timeParse:()=>gm,timeSaturday:()=>by,timeSaturdays:()=>Ey,timeSecond:()=>Fy,timeSeconds:()=>Py,timeSunday:()=>dy,timeSundays:()=>_y,timeThursday:()=>my,timeThursdays:()=>Ty,timeTuesday:()=>gy,timeTuesdays:()=>wy,timeWednesday:()=>yy,timeWednesdays:()=>ky,timeWeek:()=>dy,timeWeeks:()=>_y,timeYear:()=>ny,timeYears:()=>ry,timeout:()=>Kn,timer:()=>Vn,timerFlush:()=>Gn,touch:()=>Bn,touches:()=>H_,transition:()=>Hr,transpose:()=>H,tree:()=>vp,treemap:()=>kp,treemapBinary:()=>Tp,treemapDice:()=>ap,treemapResquarify:()=>Ep,treemapSlice:()=>bp,treemapSliceDice:()=>Cp,treemapSquarify:()=>wp,tsv:()=>Cs,tsvFormat:()=>Bo,tsvFormatBody:()=>Lo,tsvFormatRow:()=>Io,tsvFormatRows:()=>Oo,tsvFormatValue:()=>Ro,tsvParse:()=>No,tsvParseRows:()=>Do,utcDay:()=>im,utcDays:()=>am,utcFormat:()=>ym,utcFriday:()=>Gy,utcFridays:()=>em,utcHour:()=>$v,utcHours:()=>Wv,utcMillisecond:()=>Yy,utcMilliseconds:()=>zy,utcMinute:()=>Gv,utcMinutes:()=>Xv,utcMonday:()=>Hy,utcMondays:()=>Qy,utcMonth:()=>Uv,utcMonths:()=>qv,utcParse:()=>mm,utcSaturday:()=>Xy,utcSaturdays:()=>nm,utcSecond:()=>Fy,utcSeconds:()=>Py,utcSunday:()=>qy,utcSundays:()=>Zy,utcThursday:()=>Vy,utcThursdays:()=>tm,utcTuesday:()=>$y,utcTuesdays:()=>Ky,utcWednesday:()=>Wy,utcWednesdays:()=>Jy,utcWeek:()=>qy,utcWeeks:()=>Zy,utcYear:()=>sm,utcYears:()=>cm,values:()=>da,variance:()=>g,version:()=>r,voronoi:()=>Kk,window:()=>Bt,xml:()=>Ns,zip:()=>W,zoom:()=>fT,zoomIdentity:()=>nT,zoomTransform:()=>rT});var r="5.16.0";function i(t,e){return te?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),s=o.right,c=o.left;const u=s;function l(t,e){null==e&&(e=h);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function y(t,e){var n=g(t,e);return n?Math.sqrt(n):n}function m(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=0?(a>=T?10:a>=C?5:a>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=T?10:a>=C?5:a>=E?2:1)}function M(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=T?i*=10:a>=C?i*=5:a>=E&&(i*=2),eh;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:l,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function L(t,e,n){return t=_.call(t,p).sort(i),Math.ceil((n-e)/(2*(B(t,.75)-B(t,.25))*Math.pow(t.length,-1/3)))}function O(t,e,n){return Math.ceil((n-e)/(3.5*y(t)*Math.pow(t.length,-1/3)))}function I(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function R(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function j(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function Y(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function z(t,e){if(n=t.length){var n,r,a=0,o=0,s=t[o];for(null==e&&(e=i);++a=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function lt(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;ae?1:t>=e?0:NaN}bt.prototype={constructor:bt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var kt="http://www.w3.org/1999/xhtml";const Tt={svg:"http://www.w3.org/2000/svg",xhtml:kt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ct(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Tt.hasOwnProperty(e)?{space:Tt[e],local:t}:t}function Et(t){return function(){this.removeAttribute(t)}}function St(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Mt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Dt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lt(t){return function(){this.style.removeProperty(t)}}function Ot(t,e,n){return function(){this.style.setProperty(t,e,n)}}function It(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Rt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Pt(t,e){return function(){this[t]=e}}function jt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Yt(t){return t.trim().split(/^|\s+/)}function zt(t){return t.classList||new Ut(t)}function Ut(t){this._node=t,this._names=Yt(t.getAttribute("class")||"")}function qt(t,e){for(var n=zt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ue={},le=null;function he(t,e,n){return t=fe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function fe(t,e,n){return function(r){var i=le;le=r;try{t.call(this,this.__data__,e,n)}finally{le=i}}}function de(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function pe(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=x&&(x=_+1);!(b=m[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=wt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Lt:"function"==typeof e?It:Ot)(t,e,null==n?"":n)):Rt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?jt:Pt)(t,e)):this.node()[t]},classed:function(t,e){var n=Yt(t+"");if(arguments.length<2){for(var r=zt(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Xe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Pe.exec(t))?new Ke(e[1],e[2],e[3],1):(e=je.exec(t))?new Ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ye.exec(t))?Xe(e[1],e[2],e[3],e[4]):(e=ze.exec(t))?Xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ue.exec(t))?nn(e[1],e[2]/100,e[3]/100,1):(e=qe.exec(t))?nn(e[1],e[2]/100,e[3]/100,e[4]):He.hasOwnProperty(t)?Ge(He[t]):"transparent"===t?new Ke(NaN,NaN,NaN,0):null}function Ge(t){return new Ke(t>>16&255,t>>8&255,255&t,1)}function Xe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ke(t,e,n,r)}function Ze(t){return t instanceof De||(t=Ve(t)),t?new Ke((t=t.rgb()).r,t.g,t.b,t.opacity):new Ke}function Qe(t,e,n,r){return 1===arguments.length?Ze(t):new Ke(t,e,n,null==r?1:r)}function Ke(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Je(){return"#"+en(this.r)+en(this.g)+en(this.b)}function tn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function en(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function nn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new on(t,e,n,r)}function rn(t){if(t instanceof on)return new on(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Ve(t)),!t)return new on;if(t instanceof on)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new on(o,s,c,t.opacity)}function an(t,e,n,r){return 1===arguments.length?rn(t):new on(t,e,n,null==r?1:r)}function on(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function un(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):hn(isNaN(t)?e:t)}function pn(t,e){var n=e-t;return n?fn(t,n):hn(isNaN(t)?e:t)}Me(De,Ve,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$e,formatHex:$e,formatHsl:function(){return rn(this).formatHsl()},formatRgb:We,toString:We}),Me(Ke,Qe,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Be:Math.pow(Be,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Je,formatHex:Je,formatRgb:tn,toString:tn})),Me(on,an,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new on(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Be:Math.pow(Be,t),new on(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ke(sn(t>=240?t-240:t+120,i,r),sn(t,i,r),sn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const gn=function t(e){var n=function(t){return 1==(t=+t)?pn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):hn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Qe(t)).r,(e=Qe(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=pn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function yn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Tn(n,r)})),a=Sn.lastIndex;return a=0&&e._call.call(null,t),e=e._next;--Rn}function Xn(){Yn=(jn=Un.now())+zn,Rn=Fn=0;try{Gn()}finally{Rn=0,function(){for(var t,e,n=On,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:On=e);In=t,Qn(r)}(),Yn=0}}function Zn(){var t=Un.now(),e=t-jn;e>1e3&&(zn-=e,jn=t)}function Qn(t){Rn||(Fn&&(Fn=clearTimeout(Fn)),t-Yn>24?(t<1/0&&(Fn=setTimeout(Xn,t-Un.now()-zn)),Pn&&(Pn=clearInterval(Pn))):(Pn||(jn=Un.now(),Pn=setInterval(Zn,1e3)),Rn=1,qn(Xn)))}function Kn(t,e,n){var r=new Wn;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Wn.prototype=Vn.prototype={constructor:Wn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Hn():+n)+(null==e?0:+e),this._next||In===this||(In?In._next=this:On=this,In=this),this._call=t,this._time=n,Qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qn())}};var Jn=ft("start","end","cancel","interrupt"),tr=[];function er(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Kn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function rr(t,e){var n=ir(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ir(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ar(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var or,sr,cr,ur,lr=180/Math.PI,hr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fr(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Tn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Tn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Tn(t,n)},{i:s-2,x:Tn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?nr:rr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Rr=ke.prototype.constructor;function Fr(t){return function(){this.style.removeProperty(t)}}function Pr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function jr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Pr(t,a,n)),r}return a._value=e,a}function Yr(t){return function(e){this.textContent=t.call(this,e)}}function zr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Yr(r)),e}return r._value=t,r}var Ur=0;function qr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Hr(t){return ke().transition(t)}function $r(){return++Ur}var Wr=ke.prototype;function Vr(t){return t*t*t}function Gr(t){return--t*t*t+1}function Xr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}qr.prototype=Hr.prototype={constructor:qr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=pt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o1&&n.name===e)return new qr([[t]],Kr,e,+r);return null}function ti(t){return function(){return t}}function ei(t,e,n){this.target=t,this.type=e,this.selection=n}function ni(){le.stopImmediatePropagation()}function ri(){le.preventDefault(),le.stopImmediatePropagation()}var ii={name:"drag"},ai={name:"space"},oi={name:"handle"},si={name:"center"};function ci(t){return[+t[0],+t[1]]}function ui(t){return[ci(t[0]),ci(t[1])]}function li(t){return function(e){return Bn(e,le.touches,t)}}var hi={name:"x",handles:["w","e"].map(bi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},fi={name:"y",handles:["n","s"].map(bi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(bi),input:function(t){return null==t?null:ui(t)},output:function(t){return t}},pi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},gi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},yi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},vi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bi(t){return{type:t}}function _i(){return!le.ctrlKey&&!le.button}function xi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||"ontouchstart"in this}function ki(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ti(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ci(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ei(){return Mi(hi)}function Si(){return Mi(fi)}function Ai(){return Mi(di)}function Mi(t){var e,n=xi,r=_i,i=wi,a=!0,o=ft("start","brush","end"),s=6;function c(e){var n=e.property("__brush",g).selectAll(".overlay").data([bi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pi.overlay).merge(n).each((function(){var t=ki(this).extent;Te(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([bi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pi[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=Te(this),e=ki(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(){if((!e||le.touches)&&r.apply(this,arguments)){var n,i,o,s,c,h,f,d,p,g,y,m=this,v=le.target.__data__.type,b="selection"===(a&&le.metaKey?v="overlay":v)?ii:a&&le.altKey?si:oi,_=t===fi?null:mi[v],x=t===hi?null:vi[v],w=ki(m),k=w.extent,T=w.selection,C=k[0][0],E=k[0][1],S=k[1][0],A=k[1][1],M=0,N=0,D=_&&x&&a&&le.shiftKey,B=le.touches?li(le.changedTouches[0].identifier):Ln,L=B(m),O=L,I=l(m,arguments,!0).beforestart();"overlay"===v?(T&&(p=!0),w.selection=T=[[n=t===fi?C:L[0],o=t===hi?E:L[1]],[c=t===fi?S:n,f=t===hi?A:o]]):(n=T[0][0],o=T[0][1],c=T[1][0],f=T[1][1]),i=n,s=o,h=c,d=f;var R=Te(m).attr("pointer-events","none"),F=R.selectAll(".overlay").attr("cursor",pi[v]);if(le.touches)I.moved=j,I.ended=z;else{var P=Te(le.view).on("mousemove.brush",j,!0).on("mouseup.brush",z,!0);a&&P.on("keydown.brush",U,!0).on("keyup.brush",q,!0),Se(le.view)}ni(),ar(m),u.call(m),I.start()}function j(){var t=B(m);!D||g||y||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?y=!0:g=!0),O=t,p=!0,ri(),Y()}function Y(){var t;switch(M=O[0]-L[0],N=O[1]-L[1],b){case ai:case ii:_&&(M=Math.max(C-n,Math.min(S-c,M)),i=n+M,h=c+M),x&&(N=Math.max(E-o,Math.min(A-f,N)),s=o+N,d=f+N);break;case oi:_<0?(M=Math.max(C-n,Math.min(S-n,M)),i=n+M,h=c):_>0&&(M=Math.max(C-c,Math.min(S-c,M)),i=n,h=c+M),x<0?(N=Math.max(E-o,Math.min(A-o,N)),s=o+N,d=f):x>0&&(N=Math.max(E-f,Math.min(A-f,N)),s=o,d=f+N);break;case si:_&&(i=Math.max(C,Math.min(S,n-M*_)),h=Math.max(C,Math.min(S,c+M*_))),x&&(s=Math.max(E,Math.min(A,o-N*x)),d=Math.max(E,Math.min(A,f+N*x)))}h0&&(n=i-M),x<0?f=d-N:x>0&&(o=s-N),b=ai,F.attr("cursor",pi.selection),Y());break;default:return}ri()}function q(){switch(le.keyCode){case 16:D&&(g=y=D=!1,Y());break;case 18:b===si&&(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi,Y());break;case 32:b===ai&&(le.altKey?(_&&(c=h-M*_,n=i+M*_),x&&(f=d-N*x,o=s+N*x),b=si):(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi),F.attr("cursor",pi[v]),Y());break;default:return}ri()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function g(){var e=this.__brush||{selection:null};return e.extent=ui(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Mn(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),u.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,i.extent),o=l(e,r).beforestart();ar(e),i.selection=null===a?null:a,u.call(e),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){ye(new ei(c,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:ti(ui(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:ti(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:ti(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Ni=Math.cos,Di=Math.sin,Bi=Math.PI,Li=Bi/2,Oi=2*Bi,Ii=Math.max;function Ri(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Fi(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,c,u,l,h=i.length,f=[],d=k(h),p=[],g=[],y=g.groups=new Array(h),m=new Array(h*h);for(a=0,u=-1;++uUi)if(Math.abs(l*s-c*u)>Ui&&i){var f=n-a,d=r-o,p=s*s+c*c,g=f*f+d*d,y=Math.sqrt(p),m=Math.sqrt(h),v=i*Math.tan((Yi-Math.acos((p+h-g)/(2*y*m)))/2),b=v/m,_=v/y;Math.abs(b-1)>Ui&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>Ui||Math.abs(this._y1-u)>Ui)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%zi+zi),h>qi?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>Ui&&(this._+="A"+n+","+n+",0,"+ +(h>=Yi)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Wi=$i;function Vi(t){return t.source}function Gi(t){return t.target}function Xi(t){return t.radius}function Zi(t){return t.startAngle}function Qi(t){return t.endAngle}function Ki(){var t=Vi,e=Gi,n=Xi,r=Zi,i=Qi,a=null;function o(){var o,s=Pi.call(arguments),c=t.apply(this,s),u=e.apply(this,s),l=+n.apply(this,(s[0]=c,s)),h=r.apply(this,s)-Li,f=i.apply(this,s)-Li,d=l*Ni(h),p=l*Di(h),g=+n.apply(this,(s[0]=u,s)),y=r.apply(this,s)-Li,m=i.apply(this,s)-Li;if(a||(a=o=Wi()),a.moveTo(d,p),a.arc(0,0,l,h,f),h===y&&f===m||(a.quadraticCurveTo(0,0,g*Ni(y),g*Di(y)),a.arc(0,0,g,y,m)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:ji(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ji(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ji(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Ji="$";function ta(){}function ea(t,e){var n=new ta;if(t instanceof ta)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,u,l,h=-1,f=n.length,d=r[i++],p=na(),g=o();++hr.length)return t;var a,s=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:o(t,n)})}))),null!=s?a.sort((function(t,e){return s(t.key,e.key)})):a}return n={object:function(t){return a(t,0,ia,aa)},map:function(t){return a(t,0,oa,sa)},entries:function(t){return o(a(t,0,oa,sa),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ia(){return{}}function aa(t,e,n){t[e]=n}function oa(){return na()}function sa(t,e,n){t.set(e,n)}function ca(){}var ua=na.prototype;function la(t,e){var n=new ca;if(t instanceof ca)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r.008856451679035631?Math.pow(t,1/3):t/xa+ba}function Sa(t){return t>_a?t*t*t:xa*(t-ba)}function Aa(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ma(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Na(t){if(t instanceof La)return new La(t.h,t.c,t.l,t.opacity);if(t instanceof Ca||(t=wa(t)),0===t.a&&0===t.b)return new La(NaN,0r!=d>r&&n<(f-u)*(r-l)/(d-l)+u&&(i=-i)}return i}function Qa(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Ka(){}var Ja=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function to(){var t=1,e=1,n=N,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Va);else{var r=m(t),i=r[0],o=r[1];e=M(i,o,e),e=k(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,u,l,h,f=new Array,d=new Array;for(a=s=-1,u=n[0]>=r,Ja[u<<1].forEach(p);++a=r,Ja[c|u<<1].forEach(p);for(Ja[u<<0].forEach(p);++s=r,l=n[s*t]>=r,Ja[u<<1|l<<2].forEach(p);++a=r,h=l,l=n[s*t+a+1]>=r,Ja[c|u<<1|l<<2|h<<3].forEach(p);Ja[u|l<<3].forEach(p)}for(a=-1,l=n[s*t]>=r,Ja[l<<2].forEach(p);++a=r,Ja[l<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],u=o(r),l=o(c);(e=d[u])?(n=f[l])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(c),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=f[l])?(n=d[u])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=u]=e):f[u]=d[l]={start:u,end:l,ring:[r,c]}}Ja[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n0&&o0&&s0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Ga(Wa.call(t)):Ga(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Ka,i):r===s},i}function eo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function no(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function ro(t){return t[0]}function io(t){return t[1]}function ao(){return 1}function oo(){var t=ro,e=io,n=ao,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,u=i+2*s>>o,l=Ga(20);function h(r){var i=new Float32Array(c*u),h=new Float32Array(c*u);r.forEach((function(r,a,l){var h=+t(r,a,l)+s>>o,f=+e(r,a,l)+s>>o,d=+n(r,a,l);h>=0&&h=0&&f>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),eo({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),eo({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o);var d=l(i);if(!Array.isArray(d)){var p=I(i);d=M(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return to().thresholds(d).size([c,u])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function y(){return c=r+2*(s=3*a)>>o,u=i+2*s>>o,h}return h.x=function(e){return arguments.length?(t="function"==typeof e?e:Ga(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:Ga(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,y()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),y()},h.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?Ga(Wa.call(t)):Ga(t),h):l},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},h}function so(t){return function(){return t}}function co(t,e,n,r,i,a,o,s,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=c,this._=u}function uo(){return!le.ctrlKey&&!le.button}function lo(){return this.parentNode}function ho(t){return null==t?{x:le.x,y:le.y}:t}function fo(){return navigator.maxTouchPoints||"ontouchstart"in this}function po(){var t,e,n,r,i=uo,a=lo,o=ho,s=fo,c={},u=ft("start","drag","end"),l=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",y).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",a.apply(this,arguments),Ln,this,arguments);o&&(Te(le.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Se(le.view),Ce(),n=!1,t=le.clientX,e=le.clientY,o("start"))}}function p(){if(Ee(),!n){var r=le.clientX-t,i=le.clientY-e;n=r*r+i*i>h}c.mouse("drag")}function g(){Te(le.view).on("mousemove.drag mouseup.drag",null),Ae(le.view,n),Ee(),c.mouse("end")}function y(){if(i.apply(this,arguments)){var t,e,n=le.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t=a?c=!0:10===(r=t.charCodeAt(o++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o9999?"+"+bo(t,6):bo(t,4)}(t.getUTCFullYear())+"-"+bo(t.getUTCMonth()+1,2)+"-"+bo(t.getUTCDate(),2)+(i?"T"+bo(e,2)+":"+bo(n,2)+":"+bo(r,2)+"."+bo(i,3)+"Z":r?"T"+bo(e,2)+":"+bo(n,2)+":"+bo(r,2)+"Z":n||e?"T"+bo(e,2)+":"+bo(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=mo(t);return function(r,i){return e(n(r),i,t)}}(t,e):mo(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=vo(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=vo(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var xo=_o(","),wo=xo.parse,ko=xo.parseRows,To=xo.format,Co=xo.formatBody,Eo=xo.formatRows,So=xo.formatRow,Ao=xo.formatValue,Mo=_o("\t"),No=Mo.parse,Do=Mo.parseRows,Bo=Mo.format,Lo=Mo.formatBody,Oo=Mo.formatRows,Io=Mo.formatRow,Ro=Mo.formatValue;function Fo(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Po&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Po=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function jo(t){return+t}function Yo(t){return t*t}function zo(t){return t*(2-t)}function Uo(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var qo=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Ho=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),$o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Wo=Math.PI,Vo=Wo/2;function Go(t){return 1==+t?1:1-Math.cos(t*Vo)}function Xo(t){return Math.sin(t*Vo)}function Zo(t){return(1-Math.cos(Wo*t))/2}function Qo(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Ko(t){return Qo(1-+t)}function Jo(t){return 1-Qo(t)}function ts(t){return((t*=2)<=1?Qo(1-t):2-Qo(t-1))/2}function es(t){return 1-Math.sqrt(1-t*t)}function ns(t){return Math.sqrt(1- --t*t)}function rs(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var is=7.5625;function as(t){return 1-os(1-t)}function os(t){return(t=+t)<.36363636363636365?is*t*t:t<.7272727272727273?is*(t-=.5454545454545454)*t+.75:t<.9090909090909091?is*(t-=.8181818181818182)*t+.9375:is*(t-=.9545454545454546)*t+.984375}function ss(t){return((t*=2)<=1?1-os(1-t):os(t-1)+1)/2}var cs=1.70158,us=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(cs),ls=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(cs),hs=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(cs),fs=2*Math.PI,ds=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return e*Qo(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),ps=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return 1-e*Qo(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),gs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return((t=2*t-1)<0?e*Qo(-t)*Math.sin((r-t)/n):2-e*Qo(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3);function ys(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function ms(t,e){return fetch(t,e).then(ys)}function vs(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function bs(t,e){return fetch(t,e).then(vs)}function _s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function xs(t,e){return fetch(t,e).then(_s)}function ws(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),xs(e,n).then((function(e){return t(e,r)}))}}function ks(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=_o(t);return xs(e,n).then((function(t){return i.parse(t,r)}))}var Ts=ws(wo),Cs=ws(No);function Es(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function Ss(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function As(t,e){return fetch(t,e).then(Ss)}function Ms(t){return function(e,n){return xs(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}const Ns=Ms("application/xml");var Ds=Ms("text/html"),Bs=Ms("image/svg+xml");function Ls(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r=(a=(g+m)/2))?g=a:m=a,(l=n>=(o=(y+v)/2))?y=o:v=o,i=d,!(d=d[h=l<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===s&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(g+m)/2))?g=a:m=a,(l=n>=(o=(y+v)/2))?y=o:v=o}while((h=l<<1|u)==(f=(c>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}function Fs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Ps(t){return t[0]}function js(t){return t[1]}function Ys(t,e,n){var r=new zs(null==e?Ps:e,null==n?js:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function zs(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Us(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var qs=Ys.prototype=zs.prototype;function Hs(t){return t.x+t.vx}function $s(t){return t.y+t.vy}function Ws(t){var e,n,r=1,i=1;function a(){for(var t,a,s,c,u,l,h,f=e.length,d=0;dc+d||iu+d||as.index){var p=c-o.x-o.vx,g=u-o.y-o.vy,y=p*p+g*g;yt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;rl&&(l=r),ih&&(h=i));if(c>l||u>h)return this;for(this.cover(c,u).cover(l,h),n=0;nt||t>=i||r>e||e>=a;)switch(s=(ef||(a=c.y0)>d||(o=c.x1)=m)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=v*v+b*b;if(_=(s=(p+y)/2))?p=s:y=s,(l=o>=(c=(g+m)/2))?g=c:m=c,e=d,!(d=d[h=l<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},qs.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}}function tc(){var t,e,n,r,i=Os(-30),a=1,o=1/0,s=.81;function c(r){var i,a=t.length,o=Ys(t,Zs,Qs).visitAfter(l);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Is())*l),0===h&&(d+=(h=Is())*h),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ac(t){return(t=ic(Math.abs(t)))?t[1]:NaN}var oc,sc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cc(t){if(!(e=sc.exec(t)))throw new Error("invalid format: "+t);var e;return new uc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function uc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function lc(t,e){var n=ic(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}cc.prototype=uc.prototype,uc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const hc={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return lc(100*t,e)},r:lc,s:function(t,e){var n=ic(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(oc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ic(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function fc(t){return t}var dc,pc,gc,yc=Array.prototype.map,mc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vc(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?fc:(e=yc.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?fc:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(yc.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=cc(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):hc[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===f?a:/[%p]/.test(v)?c:"",x=hc[v],w=/[defgprs%]/.test(v);function k(t){var i,a,c,f=b,k=_;if("c"===v)k=x(t)+k,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&"+"!==h&&(T=!1),f=(T?"("===h?h:u:"-"===h||"("===h?"":h)+f,k=("s"===v?mc[8+oc/3]:"")+k+(T&&"("===h?")":""),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var C=f.length+t.length+k.length,E=C>1)+f+t+k+E.slice(C);break;default:t=E+f+t+k}return s(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=cc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ac(e)/3))),i=Math.pow(10,-r),a=mc[8+r/3];return function(t){return n(i*t)+a}}}}function bc(t){return dc=vc(t),pc=dc.format,gc=dc.formatPrefix,dc}function _c(t){return Math.max(0,-ac(Math.abs(t)))}function xc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ac(e)/3)))-ac(Math.abs(t)))}function wc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ac(e)-ac(t))+1}function kc(){return new Tc}function Tc(){this.reset()}bc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Tc.prototype={constructor:Tc,reset:function(){this.s=this.t=0},add:function(t){Ec(Cc,t,this.t),Ec(this,Cc.s,this.s),this.s?this.t+=Cc.t:this.s=Cc.t},valueOf:function(){return this.s}};var Cc=new Tc;function Ec(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Sc=1e-6,Ac=1e-12,Mc=Math.PI,Nc=Mc/2,Dc=Mc/4,Bc=2*Mc,Lc=180/Mc,Oc=Mc/180,Ic=Math.abs,Rc=Math.atan,Fc=Math.atan2,Pc=Math.cos,jc=Math.ceil,Yc=Math.exp,zc=(Math.floor,Math.log),Uc=Math.pow,qc=Math.sin,Hc=Math.sign||function(t){return t>0?1:t<0?-1:0},$c=Math.sqrt,Wc=Math.tan;function Vc(t){return t>1?0:t<-1?Mc:Math.acos(t)}function Gc(t){return t>1?Nc:t<-1?-Nc:Math.asin(t)}function Xc(t){return(t=qc(t/2))*t}function Zc(){}function Qc(t,e){t&&Jc.hasOwnProperty(t.type)&&Jc[t.type](t,e)}var Kc={Feature:function(t,e){Qc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=Pc(e=(e*=Oc)/2+Dc),o=qc(e),s=su*o,c=ou*a+s*Pc(i),u=s*r*qc(i);cu.add(Fc(u,c)),au=t,ou=a,su=o}function gu(t){return uu.reset(),nu(t,lu),2*uu}function yu(t){return[Fc(t[1],t[0]),Gc(t[2])]}function mu(t){var e=t[0],n=t[1],r=Pc(n);return[r*Pc(e),r*qc(e),qc(n)]}function vu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function bu(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _u(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function xu(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function wu(t){var e=$c(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ku,Tu,Cu,Eu,Su,Au,Mu,Nu,Du,Bu,Lu,Ou,Iu,Ru,Fu,Pu,ju,Yu,zu,Uu,qu,Hu,$u,Wu,Vu,Gu,Xu=kc(),Zu={point:Qu,lineStart:Ju,lineEnd:tl,polygonStart:function(){Zu.point=el,Zu.lineStart=nl,Zu.lineEnd=rl,Xu.reset(),lu.polygonStart()},polygonEnd:function(){lu.polygonEnd(),Zu.point=Qu,Zu.lineStart=Ju,Zu.lineEnd=tl,cu<0?(ku=-(Cu=180),Tu=-(Eu=90)):Xu>Sc?Eu=90:Xu<-1e-6&&(Tu=-90),Bu[0]=ku,Bu[1]=Cu},sphere:function(){ku=-(Cu=180),Tu=-(Eu=90)}};function Qu(t,e){Du.push(Bu=[ku=t,Cu=t]),eEu&&(Eu=e)}function Ku(t,e){var n=mu([t*Oc,e*Oc]);if(Nu){var r=bu(Nu,n),i=bu([r[1],-r[0],0],r);wu(i),i=yu(i);var a,o=t-Su,s=o>0?1:-1,c=i[0]*Lc*s,u=Ic(o)>180;u^(s*SuEu&&(Eu=a):u^(s*Su<(c=(c+360)%360-180)&&cEu&&(Eu=e)),u?til(ku,Cu)&&(Cu=t):il(t,Cu)>il(ku,Cu)&&(ku=t):Cu>=ku?(tCu&&(Cu=t)):t>Su?il(ku,t)>il(ku,Cu)&&(Cu=t):il(t,Cu)>il(ku,Cu)&&(ku=t)}else Du.push(Bu=[ku=t,Cu=t]);eEu&&(Eu=e),Nu=n,Su=t}function Ju(){Zu.point=Ku}function tl(){Bu[0]=ku,Bu[1]=Cu,Zu.point=Qu,Nu=null}function el(t,e){if(Nu){var n=t-Su;Xu.add(Ic(n)>180?n+(n>0?360:-360):n)}else Au=t,Mu=e;lu.point(t,e),Ku(t,e)}function nl(){lu.lineStart()}function rl(){el(Au,Mu),lu.lineEnd(),Ic(Xu)>Sc&&(ku=-(Cu=180)),Bu[0]=ku,Bu[1]=Cu,Nu=null}function il(t,e){return(e-=t)<0?e+360:e}function al(t,e){return t[0]-e[0]}function ol(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eil(r[0],r[1])&&(r[1]=i[1]),il(i[0],r[1])>il(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=il(r[1],i[0]))>o&&(o=s,ku=i[0],Cu=r[1])}return Du=Bu=null,ku===1/0||Tu===1/0?[[NaN,NaN],[NaN,NaN]]:[[ku,Tu],[Cu,Eu]]}var cl={sphere:Zc,point:ul,lineStart:hl,lineEnd:pl,polygonStart:function(){cl.lineStart=gl,cl.lineEnd=yl},polygonEnd:function(){cl.lineStart=hl,cl.lineEnd=pl}};function ul(t,e){t*=Oc;var n=Pc(e*=Oc);ll(n*Pc(t),n*qc(t),qc(e))}function ll(t,e,n){++Lu,Iu+=(t-Iu)/Lu,Ru+=(e-Ru)/Lu,Fu+=(n-Fu)/Lu}function hl(){cl.point=fl}function fl(t,e){t*=Oc;var n=Pc(e*=Oc);Wu=n*Pc(t),Vu=n*qc(t),Gu=qc(e),cl.point=dl,ll(Wu,Vu,Gu)}function dl(t,e){t*=Oc;var n=Pc(e*=Oc),r=n*Pc(t),i=n*qc(t),a=qc(e),o=Fc($c((o=Vu*a-Gu*i)*o+(o=Gu*r-Wu*a)*o+(o=Wu*i-Vu*r)*o),Wu*r+Vu*i+Gu*a);Ou+=o,Pu+=o*(Wu+(Wu=r)),ju+=o*(Vu+(Vu=i)),Yu+=o*(Gu+(Gu=a)),ll(Wu,Vu,Gu)}function pl(){cl.point=ul}function gl(){cl.point=ml}function yl(){vl(Hu,$u),cl.point=ul}function ml(t,e){Hu=t,$u=e,t*=Oc,e*=Oc,cl.point=vl;var n=Pc(e);Wu=n*Pc(t),Vu=n*qc(t),Gu=qc(e),ll(Wu,Vu,Gu)}function vl(t,e){t*=Oc;var n=Pc(e*=Oc),r=n*Pc(t),i=n*qc(t),a=qc(e),o=Vu*a-Gu*i,s=Gu*r-Wu*a,c=Wu*i-Vu*r,u=$c(o*o+s*s+c*c),l=Gc(u),h=u&&-l/u;zu+=h*o,Uu+=h*s,qu+=h*c,Ou+=l,Pu+=l*(Wu+(Wu=r)),ju+=l*(Vu+(Vu=i)),Yu+=l*(Gu+(Gu=a)),ll(Wu,Vu,Gu)}function bl(t){Lu=Ou=Iu=Ru=Fu=Pu=ju=Yu=zu=Uu=qu=0,nu(t,cl);var e=zu,n=Uu,r=qu,i=e*e+n*n+r*r;return iMc?t+Math.round(-t/Bc)*Bc:t,e]}function kl(t,e,n){return(t%=Bc)?e||n?xl(Cl(t),El(e,n)):Cl(t):e||n?El(e,n):wl}function Tl(t){return function(e,n){return[(e+=t)>Mc?e-Bc:e<-Mc?e+Bc:e,n]}}function Cl(t){var e=Tl(t);return e.invert=Tl(-t),e}function El(t,e){var n=Pc(t),r=qc(t),i=Pc(e),a=qc(e);function o(t,e){var o=Pc(e),s=Pc(t)*o,c=qc(t)*o,u=qc(e),l=u*n+s*r;return[Fc(c*i-l*a,s*n-u*r),Gc(l*i+c*a)]}return o.invert=function(t,e){var o=Pc(e),s=Pc(t)*o,c=qc(t)*o,u=qc(e),l=u*i-c*a;return[Fc(c*i+u*a,s*n+l*r),Gc(l*n-s*r)]},o}function Sl(t){function e(e){return(e=t(e[0]*Oc,e[1]*Oc))[0]*=Lc,e[1]*=Lc,e}return t=kl(t[0]*Oc,t[1]*Oc,t.length>2?t[2]*Oc:0),e.invert=function(e){return(e=t.invert(e[0]*Oc,e[1]*Oc))[0]*=Lc,e[1]*=Lc,e},e}function Al(t,e,n,r,i,a){if(n){var o=Pc(e),s=qc(e),c=r*n;null==i?(i=e+r*Bc,a=e-c/2):(i=Ml(o,i),a=Ml(o,a),(r>0?ia)&&(i+=r*Bc));for(var u,l=i;r>0?l>a:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Bl(t,e){return Ic(t[0]-e[0])=0;--a)i.point((l=u[a])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function Il(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,C=T*k,E=C>Mc,S=g*x;if(Rl.add(Fc(S*T*qc(C),y*w+S*Pc(C))),o+=E?k+T*Bc:k,E^d>=n^b>=n){var A=bu(mu(f),mu(v));wu(A);var M=bu(a,A);wu(M);var N=(E^k>=0?-1:1)*Gc(M[2]);(r>N||r===N&&(A[0]||A[1]))&&(s+=E^k>=0?1:-1)}}return(o<-1e-6||o0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t1&&2&c&&f.push(f.pop().concat(f.shift())),o.push(f.filter(Yl))}return f}}function Yl(t){return t.length>1}function zl(t,e){return((t=t.x)[0]<0?t[1]-Nc-Sc:Nc-t[1])-((e=e.x)[0]<0?e[1]-Nc-Sc:Nc-e[1])}const Ul=jl((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Mc:-Mc,c=Ic(a-n);Ic(c-Mc)0?Nc:-Nc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=Mc&&(Ic(n-i)Sc?Rc((qc(e)*(a=Pc(r))*qc(n)-qc(r)*(i=Pc(e))*qc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Nc,r.point(-Mc,i),r.point(0,i),r.point(Mc,i),r.point(Mc,0),r.point(Mc,-i),r.point(0,-i),r.point(-Mc,-i),r.point(-Mc,0),r.point(-Mc,i);else if(Ic(t[0]-e[0])>Sc){var a=t[0]0,i=Ic(e)>Sc;function a(t,n){return Pc(t)*Pc(n)>e}function o(t,n,r){var i=[1,0,0],a=bu(mu(t),mu(n)),o=vu(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var u=e*o/c,l=-e*s/c,h=bu(i,a),f=xu(i,u);_u(f,xu(a,l));var d=h,p=vu(f,d),g=vu(d,d),y=p*p-g*(vu(f,f)-1);if(!(y<0)){var m=$c(y),v=xu(d,(-p-m)/g);if(_u(v,f),v=yu(v),!r)return v;var b,_=t[0],x=n[0],w=t[1],k=n[1];x<_&&(b=_,_=x,x=b);var T=x-_,C=Ic(T-Mc)0^v[1]<(Ic(v[0]-_)Mc^(_<=v[0]&&v[0]<=x)){var E=xu(d,(-p+m)/g);return _u(E,f),[v,yu(E)]}}}function s(e,n){var i=r?t:Mc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return jl(a,(function(t){var e,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(h,f){var d,p=[h,f],g=a(h,f),y=r?g?0:s(h,f):g?s(h+(h<0?Mc:-Mc),f):0;if(!e&&(u=c=g)&&t.lineStart(),g!==c&&(!(d=o(e,p))||Bl(e,d)||Bl(p,d))&&(p[2]=1),g!==c)l=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var m;y&n||!(m=o(p,e,!0))||(l=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!g||e&&Bl(e,p)||t.point(p[0],p[1]),e=p,c=g,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(u&&c)<<1}}}),(function(e,r,i,a){Al(a,t,n,i,e,r)}),r?[0,-t]:[-Mc,t-Mc])}var Hl=1e9,$l=-Hl;function Wl(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,u){var l=0,h=0;if(null==i||(l=o(i,s))!==(h=o(a,s))||c(i,a)<0^s>0)do{u.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==h);else u.point(a[0],a[1])}function o(r,i){return Ic(r[0]-t)0?0:3:Ic(r[0]-n)0?2:1:Ic(r[1]-e)0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,u,l,h,f,d,p,g,y,m,v,b=o,_=Dl(),x={point:w,lineStart:function(){x.point=k,u&&u.push(l=[]),m=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(k(h,f),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;nr&&(f-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(f-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=v&&e,i=(c=P(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Ol(c,s,e,a,o),o.polygonEnd()),b=o,c=u=l=null}};function w(t,e){i(t,e)&&b.point(t,e)}function k(a,o){var s=i(a,o);if(u&&l.push([a,o]),m)h=a,f=o,d=s,m=!1,s&&(b.lineStart(),b.point(a,o));else if(s&&y)b.point(a,o);else{var c=[p=Math.max($l,Math.min(Hl,p)),g=Math.max($l,Math.min(Hl,g))],_=[a=Math.max($l,Math.min(Hl,a)),o=Math.max($l,Math.min(Hl,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],u=0,l=1,h=e[0]-s,f=e[1]-c;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>u&&(u=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=a-c,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>u&&(u=o)}else if(f>0){if(o0&&(t[0]=s+u*h,t[1]=c+u*f),l<1&&(e[0]=s+l*h,e[1]=c+l*f),!0}}}}}(c,_,t,e,n,r)?s&&(b.lineStart(),b.point(a,o),v=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),s||b.lineEnd(),v=!1)}p=a,g=o,y=s}return x}}function Vl(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Wl(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Gl,Xl,Zl,Ql=kc(),Kl={sphere:Zc,point:Zc,lineStart:function(){Kl.point=th,Kl.lineEnd=Jl},lineEnd:Zc,polygonStart:Zc,polygonEnd:Zc};function Jl(){Kl.point=Kl.lineEnd=Zc}function th(t,e){Gl=t*=Oc,Xl=qc(e*=Oc),Zl=Pc(e),Kl.point=eh}function eh(t,e){t*=Oc;var n=qc(e*=Oc),r=Pc(e),i=Ic(t-Gl),a=Pc(i),o=r*qc(i),s=Zl*n-Xl*r*a,c=Xl*n+Zl*r*a;Ql.add(Fc($c(o*o+s*s),c)),Gl=t,Xl=n,Zl=r}function nh(t){return Ql.reset(),nu(t,Kl),+Ql}var rh=[null,null],ih={type:"LineString",coordinates:rh};function ah(t,e){return rh[0]=t,rh[1]=e,nh(ih)}var oh={Feature:function(t,e){return ch(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=ah(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))Sc})).map(c)).concat(k(jc(a/d)*d,i,d).filter((function(t){return Ic(t%g)>Sc})).map(u))}return m.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(h(o).slice(1),l(n).reverse().slice(1),h(s).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),m.precision(y)):[[r,s],[n,o]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),m.precision(y)):[[e,a],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],m):[p,g]},m.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],m):[f,d]},m.precision=function(f){return arguments.length?(y=+f,c=gh(a,i,90),u=yh(e,t,y),l=gh(s,o,90),h=yh(r,n,y),m):y},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function vh(){return mh()()}function bh(t,e){var n=t[0]*Oc,r=t[1]*Oc,i=e[0]*Oc,a=e[1]*Oc,o=Pc(r),s=qc(r),c=Pc(a),u=qc(a),l=o*Pc(n),h=o*qc(n),f=c*Pc(i),d=c*qc(i),p=2*Gc($c(Xc(a-r)+o*c*Xc(i-n))),g=qc(p),y=p?function(t){var e=qc(t*=p)/g,n=qc(p-t)/g,r=n*l+e*f,i=n*h+e*d,a=n*s+e*u;return[Fc(i,r)*Lc,Fc(a,$c(r*r+i*i))*Lc]}:function(){return[n*Lc,r*Lc]};return y.distance=p,y}function _h(t){return t}var xh,wh,kh,Th,Ch=kc(),Eh=kc(),Sh={point:Zc,lineStart:Zc,lineEnd:Zc,polygonStart:function(){Sh.lineStart=Ah,Sh.lineEnd=Dh},polygonEnd:function(){Sh.lineStart=Sh.lineEnd=Sh.point=Zc,Ch.add(Ic(Eh)),Eh.reset()},result:function(){var t=Ch/2;return Ch.reset(),t}};function Ah(){Sh.point=Mh}function Mh(t,e){Sh.point=Nh,xh=kh=t,wh=Th=e}function Nh(t,e){Eh.add(Th*t-kh*e),kh=t,Th=e}function Dh(){Nh(xh,wh)}const Bh=Sh;var Lh=1/0,Oh=Lh,Ih=-Lh,Rh=Ih,Fh={point:function(t,e){tIh&&(Ih=t),eRh&&(Rh=e)},lineStart:Zc,lineEnd:Zc,polygonStart:Zc,polygonEnd:Zc,result:function(){var t=[[Lh,Oh],[Ih,Rh]];return Ih=Rh=-(Oh=Lh=1/0),t}};const Ph=Fh;var jh,Yh,zh,Uh,qh=0,Hh=0,$h=0,Wh=0,Vh=0,Gh=0,Xh=0,Zh=0,Qh=0,Kh={point:Jh,lineStart:tf,lineEnd:rf,polygonStart:function(){Kh.lineStart=af,Kh.lineEnd=of},polygonEnd:function(){Kh.point=Jh,Kh.lineStart=tf,Kh.lineEnd=rf},result:function(){var t=Qh?[Xh/Qh,Zh/Qh]:Gh?[Wh/Gh,Vh/Gh]:$h?[qh/$h,Hh/$h]:[NaN,NaN];return qh=Hh=$h=Wh=Vh=Gh=Xh=Zh=Qh=0,t}};function Jh(t,e){qh+=t,Hh+=e,++$h}function tf(){Kh.point=ef}function ef(t,e){Kh.point=nf,Jh(zh=t,Uh=e)}function nf(t,e){var n=t-zh,r=e-Uh,i=$c(n*n+r*r);Wh+=i*(zh+t)/2,Vh+=i*(Uh+e)/2,Gh+=i,Jh(zh=t,Uh=e)}function rf(){Kh.point=Jh}function af(){Kh.point=sf}function of(){cf(jh,Yh)}function sf(t,e){Kh.point=cf,Jh(jh=zh=t,Yh=Uh=e)}function cf(t,e){var n=t-zh,r=e-Uh,i=$c(n*n+r*r);Wh+=i*(zh+t)/2,Vh+=i*(Uh+e)/2,Gh+=i,Xh+=(i=Uh*t-zh*e)*(zh+t),Zh+=i*(Uh+e),Qh+=3*i,Jh(zh=t,Uh=e)}const uf=Kh;function lf(t){this._context=t}lf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Bc)}},result:Zc};var hf,ff,df,pf,gf,yf=kc(),mf={point:Zc,lineStart:function(){mf.point=vf},lineEnd:function(){hf&&bf(ff,df),mf.point=Zc},polygonStart:function(){hf=!0},polygonEnd:function(){hf=null},result:function(){var t=+yf;return yf.reset(),t}};function vf(t,e){mf.point=bf,ff=pf=t,df=gf=e}function bf(t,e){pf-=t,gf-=e,yf.add($c(pf*pf+gf*gf)),pf=t,gf=e}const _f=mf;function xf(){this._string=[]}function wf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function kf(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),nu(t,n(r))),r.result()}return a.area=function(t){return nu(t,n(Bh)),Bh.result()},a.measure=function(t){return nu(t,n(_f)),_f.result()},a.bounds=function(t){return nu(t,n(Ph)),Ph.result()},a.centroid=function(t){return nu(t,n(uf)),uf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,_h):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new xf):new lf(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function Tf(t){return{stream:Cf(t)}}function Cf(t){return function(e){var n=new Ef;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Ef(){}function Sf(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),nu(n,t.stream(Ph)),e(Ph.result()),null!=r&&t.clipExtent(r),t}function Af(t,e,n){return Sf(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function Mf(t,e,n){return Af(t,[[0,0],e],n)}function Nf(t,e,n){return Sf(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function Df(t,e,n){return Sf(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}xf.prototype={_radius:4.5,_circle:wf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=wf(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ef.prototype={constructor:Ef,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Bf=Pc(30*Oc);function Lf(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,u,l,h,f,d,p,g,y){var m=u-r,v=l-i,b=m*m+v*v;if(b>4*e&&g--){var _=o+f,x=s+d,w=c+p,k=$c(_*_+x*x+w*w),T=Gc(w/=k),C=Ic(Ic(w)-1)e||Ic((m*M+v*N)/b-.5)>.3||o*f+s*d+c*p2?t[2]%360*Oc:0,M()):[y*Lc,m*Lc,v*Lc]},S.angle=function(t){return arguments.length?(b=t%360*Oc,M()):b*Lc},S.reflectX=function(t){return arguments.length?(_=t?-1:1,M()):_<0},S.reflectY=function(t){return arguments.length?(x=t?-1:1,M()):x<0},S.precision=function(t){return arguments.length?(o=Lf(s,E=t*t),N()):$c(E)},S.fitExtent=function(t,e){return Af(S,t,e)},S.fitSize=function(t,e){return Mf(S,t,e)},S.fitWidth=function(t,e){return Nf(S,t,e)},S.fitHeight=function(t,e){return Df(S,t,e)},function(){return e=t.apply(this,arguments),S.invert=e.invert&&A,M()}}function jf(t){var e=0,n=Mc/3,r=Pf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Oc,n=t[1]*Oc):[e*Lc,n*Lc]},i}function Yf(t,e){var n=qc(t),r=(n+qc(e))/2;if(Ic(r)=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-Nc+Sc&&(e=-Nc+Sc):e>Nc-Sc&&(e=Nc-Sc);var n=i/Uc(Jf(e),r);return[n*qc(r*t),i-n*Pc(r*t)]}return a.invert=function(t,e){var n=i-e,a=Hc(r)*$c(t*t+n*n),o=Fc(t,Ic(n))*Hc(n);return n*r<0&&(o-=Mc*Hc(t)*Hc(n)),[o/r,2*Rc(Uc(i/a,1/r))-Nc]},a}function ed(){return jf(td).scale(109.5).parallels([30,30])}function nd(t,e){return[t,e]}function rd(){return Ff(nd).scale(152.63)}function id(t,e){var n=Pc(t),r=t===e?qc(t):(n-Pc(e))/(e-t),i=n/r+t;if(Ic(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Td(t,e){return t.parent===e.parent?1:2}function Cd(t,e){return t+e.x}function Ed(t,e){return Math.max(t,e.y)}function Sd(){var t=Td,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Cd,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Ed,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,c)/2,l=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(l-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Ad(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Md(t,e){var n,r,i,a,o,s=new Ld(t),c=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=Nd);n=u.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)u.push(r=n.children[a]=new Ld(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Bd)}function Nd(t){return t.children}function Dd(t){t.data=t.data.data}function Bd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ld(t){this.data=t,this.depth=this.height=0,this.parent=null}hd.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(od+sd*i+a*(cd+ud*i))-e)/(od+3*sd*i+a*(7*cd+9*ud*i)))*r)*i*i,!(Ic(n)Sc&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},vd.invert=$f(Gc),_d.invert=$f((function(t){return 2*Rc(t)})),wd.invert=function(t,e){return[-e,2*Rc(Yc(t))-Nc]},Ld.prototype=Md.prototype={constructor:Ld,count:function(){return this.eachAfter(Ad)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Md(this).eachBefore(Dd)}};var Od=Array.prototype.slice;function Id(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Od.call(t))).length,a=[];r0&&n*n>r*r+i*i}function jd(t,e){for(var n=0;n(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function Hd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function $d(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Wd(t){this._=t,this.next=null,this.previous=null}function Vd(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,c,u,l,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;qd(n,e,r=t[2]),e=new Wd(e),n=new Wd(n),r=new Wd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Zd(e),n):t},n.parentId=function(t){return arguments.length?(e=Zd(t),n):e},n}function fp(t,e){return t.parent===e.parent?1:2}function dp(t){var e=t.children;return e?e[0]:t.t}function pp(t){var e=t.children;return e?e[e.length-1]:t.t}function gp(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function yp(t,e,n){return t.a.parent===e.parent?t.a:n}function mp(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function vp(){var t=fp,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new mp(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new mp(r[i],i)),n.parent=e;return(o.parent=new mp(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var u=i,l=i,h=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=u===l?1:t(u,l)/2,d=f-u.x,p=e/(l.x+f+d),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],u=a.m,l=o.m,h=s.m,f=c.m;s=pp(s),a=dp(a),s&&a;)c=dp(c),(o=pp(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(gp(yp(s,e,r),e,i),u+=i,l+=i),h+=s.m,u+=a.m,f+=c.m,l+=o.m;s&&!pp(o)&&(o.t=s,o.m+=h-l),a&&!dp(c)&&(c.t=a,c.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function bp(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,u=t.value&&(i-n)/t.value;++sf&&(f=s),y=l*l*g,(d=Math.max(f/y,y/h))>p){l-=s;break}p=d}m.push(o={value:l,dice:c1?e:1)},n}(_p);function kp(){var t=wp,e=!1,n=1,r=1,i=[0],a=Qd,o=Qd,s=Qd,c=Qd,u=Qd;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(ip),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=c)}for(var h=u[e],f=r/2+h,d=e+1,p=n-1;d>>1;u[g]c-a){var v=(i*m+o*y)/r;t(e,d,y,i,a,v,c),t(d,n,m,v,a,o,c)}else{var b=(a*m+c*y)/r;t(e,d,y,i,a,o,b),t(d,n,m,i,b,o,c)}}(0,c,t.value,e,n,r,i)}function Cp(t,e,n,r,i){(1&t.depth?bp:ap)(t,e,n,r,i)}const Ep=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,u,l,h=-1,f=o.length,d=t.value;++h1?e:1)},n}(_p);function Sp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Ap(t,e){var n=dn(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Mp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Np=Math.SQRT2;function Dp(t){return((t=Math.exp(t))+1/t)/2}function Bp(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],c=e[1],u=e[2],l=s-i,h=c-a,f=l*l+h*h;if(f<1e-12)r=Math.log(u/o)/Np,n=function(t){return[i+t*l,a+t*h,o*Math.exp(Np*t*r)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),g=(u*u-o*o-4*f)/(2*u*2*d),y=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-y)/Np,n=function(t){var e,n=t*r,s=Dp(y),c=o/(2*d)*(s*(e=Np*n+y,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y));return[i+c*l,a+c*h,o*s/Dp(Np*n+y)]}}return n.duration=1e3*r,n}function Lp(t){return function(e,n){var r=t((e=an(e)).h,(n=an(n)).h),i=pn(e.s,n.s),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Op=Lp(dn);var Ip=Lp(pn);function Rp(t,e){var n=pn((t=Ta(t)).l,(e=Ta(e)).l),r=pn(t.a,e.a),i=pn(t.b,e.b),a=pn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Fp(t){return function(e,n){var r=t((e=Ba(e)).h,(n=Ba(n)).h),i=pn(e.c,n.c),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Pp=Fp(dn);var jp=Fp(pn);function Yp(t){return function e(n){function r(e,r){var i=t((e=Ha(e)).h,(r=Ha(r)).h),a=pn(e.s,r.s),o=pn(e.l,r.l),s=pn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}const zp=Yp(dn);var Up=Yp(pn);function qp(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n1&&Vp(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Zp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)u.push(t[r[a[e]][2]]);for(e=+s;es!=u>s&&o<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l}function Kp(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Jp),ng=function t(e){function n(){var t=eg.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Jp),rg=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function xg(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?wg:xg,i=a=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),Tn)))(n)))},h.domain=function(t){return arguments.length?(o=ug.call(t,yg),u===vg||(u=_g(o)),l()):o.slice()},h.range=function(t){return arguments.length?(s=lg.call(t),l()):s.slice()},h.rangeRound=function(t){return s=lg.call(t),c=Mp,l()},h.clamp=function(t){return arguments.length?(u=t?_g(o):vg,h):u!==vg},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Cg(t,e){return Tg()(t,e)}function Eg(t,e,n,r){var i,a=M(t,e,n);switch((r=cc(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=xc(a,o))||(r.precision=i),gc(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=wc(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=_c(a))||(r.precision=i-2*("%"===r.type))}return pc(r)}function Sg(t){var e=t.domain;return t.ticks=function(t){var n=e();return S(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Eg(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c0?r=A(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=A(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function Ag(){var t=Cg(vg,vg);return t.copy=function(){return kg(t,Ag())},og.apply(t,arguments),Sg(t)}function Mg(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=ug.call(e,yg),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Mg(t).unknown(e)},t=arguments.length?ug.call(t,yg):[0,1],Sg(n)}function Ng(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;fc)break;g.push(h)}}else for(;f=1;--l)if(!((h=u*l)c)break;g.push(h)}}else g=S(f,d,Math.min(d-f,p)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=pc(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0?r[i-1]:e[0],i=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return Zg().domain([e,n]).range(a).unknown(t)},og.apply(Sg(o),arguments)}function Qg(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[u(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=lg.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=lg.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Qg().domain(e).range(n).unknown(t)},og.apply(i,arguments)}var Kg=new Date,Jg=new Date;function ty(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Kg.setTime(+e),Jg.setTime(+r),t(Kg),t(Jg),Math.floor(n(Kg,Jg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var ey=ty((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ey.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const ny=ey;var ry=ey.range,iy=ty((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const ay=iy;var oy=iy.range,sy=1e3,cy=6e4,uy=36e5,ly=864e5,hy=6048e5;function fy(t){return ty((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cy)/hy}))}var dy=fy(0),py=fy(1),gy=fy(2),yy=fy(3),my=fy(4),vy=fy(5),by=fy(6),_y=dy.range,xy=py.range,wy=gy.range,ky=yy.range,Ty=my.range,Cy=vy.range,Ey=by.range,Sy=ty((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cy)/ly}),(function(t){return t.getDate()-1}));const Ay=Sy;var My=Sy.range,Ny=ty((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sy-t.getMinutes()*cy)}),(function(t,e){t.setTime(+t+e*uy)}),(function(t,e){return(e-t)/uy}),(function(t){return t.getHours()}));const Dy=Ny;var By=Ny.range,Ly=ty((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sy)}),(function(t,e){t.setTime(+t+e*cy)}),(function(t,e){return(e-t)/cy}),(function(t){return t.getMinutes()}));const Oy=Ly;var Iy=Ly.range,Ry=ty((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*sy)}),(function(t,e){return(e-t)/sy}),(function(t){return t.getUTCSeconds()}));const Fy=Ry;var Py=Ry.range,jy=ty((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));jy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ty((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):jy:null};const Yy=jy;var zy=jy.range;function Uy(t){return ty((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hy}))}var qy=Uy(0),Hy=Uy(1),$y=Uy(2),Wy=Uy(3),Vy=Uy(4),Gy=Uy(5),Xy=Uy(6),Zy=qy.range,Qy=Hy.range,Ky=$y.range,Jy=Wy.range,tm=Vy.range,em=Gy.range,nm=Xy.range,rm=ty((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getUTCDate()-1}));const im=rm;var am=rm.range,om=ty((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));om.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const sm=om;var cm=om.range;function um(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function lm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function hm(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function fm(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Tm(i),l=Cm(i),h=Tm(a),f=Cm(a),d=Tm(o),p=Cm(o),g=Tm(s),y=Cm(s),m=Tm(c),v=Cm(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Wm,e:Wm,f:Qm,g:cv,G:lv,H:Vm,I:Gm,j:Xm,L:Zm,m:Km,M:Jm,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Lv,s:Ov,S:tv,u:ev,U:nv,V:iv,w:av,W:ov,x:null,X:null,y:sv,Y:uv,Z:hv,"%":Bv},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:fv,e:fv,f:mv,g:Av,G:Nv,H:dv,I:pv,j:gv,L:yv,m:vv,M:bv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Lv,s:Ov,S:_v,u:xv,U:wv,V:Tv,w:Cv,W:Ev,x:null,X:null,y:Sv,Y:Mv,Z:Dv,"%":Bv},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:Rm,e:Rm,f:Um,g:Bm,G:Dm,H:Pm,I:Pm,j:Fm,L:zm,m:Im,M:jm,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:Om,Q:Hm,s:$m,S:Ym,u:Sm,U:Am,V:Mm,w:Em,W:Nm,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:Bm,Y:Dm,Z:Lm,"%":qm};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=lm(hm(a.y,0,1))).getUTCDay(),r=i>4||0===i?Hy.ceil(r):Hy(r),r=im.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=um(hm(a.y,0,1))).getDay(),r=i>4||0===i?py.ceil(r):py(r),r=Ay.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?lm(hm(a.y,0,1)).getUTCDay():um(hm(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,lm(a)):um(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in vm?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}var dm,pm,gm,ym,mm,vm={"-":"",_:" ",0:"0"},bm=/^\s*\d+/,_m=/^%/,xm=/[\\^$*+?|[\]().{}]/g;function wm(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Lm(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Om(t,e,n){var r=bm.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Im(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Rm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fm(t,e,n){var r=bm.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function jm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ym(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function zm(t,e,n){var r=bm.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Um(t,e,n){var r=bm.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qm(t,e,n){var r=_m.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Hm(t,e,n){var r=bm.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function $m(t,e,n){var r=bm.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Wm(t,e){return wm(t.getDate(),e,2)}function Vm(t,e){return wm(t.getHours(),e,2)}function Gm(t,e){return wm(t.getHours()%12||12,e,2)}function Xm(t,e){return wm(1+Ay.count(ny(t),t),e,3)}function Zm(t,e){return wm(t.getMilliseconds(),e,3)}function Qm(t,e){return Zm(t,e)+"000"}function Km(t,e){return wm(t.getMonth()+1,e,2)}function Jm(t,e){return wm(t.getMinutes(),e,2)}function tv(t,e){return wm(t.getSeconds(),e,2)}function ev(t){var e=t.getDay();return 0===e?7:e}function nv(t,e){return wm(dy.count(ny(t)-1,t),e,2)}function rv(t){var e=t.getDay();return e>=4||0===e?my(t):my.ceil(t)}function iv(t,e){return t=rv(t),wm(my.count(ny(t),t)+(4===ny(t).getDay()),e,2)}function av(t){return t.getDay()}function ov(t,e){return wm(py.count(ny(t)-1,t),e,2)}function sv(t,e){return wm(t.getFullYear()%100,e,2)}function cv(t,e){return wm((t=rv(t)).getFullYear()%100,e,2)}function uv(t,e){return wm(t.getFullYear()%1e4,e,4)}function lv(t,e){var n=t.getDay();return wm((t=n>=4||0===n?my(t):my.ceil(t)).getFullYear()%1e4,e,4)}function hv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wm(e/60|0,"0",2)+wm(e%60,"0",2)}function fv(t,e){return wm(t.getUTCDate(),e,2)}function dv(t,e){return wm(t.getUTCHours(),e,2)}function pv(t,e){return wm(t.getUTCHours()%12||12,e,2)}function gv(t,e){return wm(1+im.count(sm(t),t),e,3)}function yv(t,e){return wm(t.getUTCMilliseconds(),e,3)}function mv(t,e){return yv(t,e)+"000"}function vv(t,e){return wm(t.getUTCMonth()+1,e,2)}function bv(t,e){return wm(t.getUTCMinutes(),e,2)}function _v(t,e){return wm(t.getUTCSeconds(),e,2)}function xv(t){var e=t.getUTCDay();return 0===e?7:e}function wv(t,e){return wm(qy.count(sm(t)-1,t),e,2)}function kv(t){var e=t.getUTCDay();return e>=4||0===e?Vy(t):Vy.ceil(t)}function Tv(t,e){return t=kv(t),wm(Vy.count(sm(t),t)+(4===sm(t).getUTCDay()),e,2)}function Cv(t){return t.getUTCDay()}function Ev(t,e){return wm(Hy.count(sm(t)-1,t),e,2)}function Sv(t,e){return wm(t.getUTCFullYear()%100,e,2)}function Av(t,e){return wm((t=kv(t)).getUTCFullYear()%100,e,2)}function Mv(t,e){return wm(t.getUTCFullYear()%1e4,e,4)}function Nv(t,e){var n=t.getUTCDay();return wm((t=n>=4||0===n?Vy(t):Vy.ceil(t)).getUTCFullYear()%1e4,e,4)}function Dv(){return"+0000"}function Bv(){return"%"}function Lv(t){return+t}function Ov(t){return Math.floor(+t/1e3)}function Iv(t){return dm=fm(t),pm=dm.format,gm=dm.parse,ym=dm.utcFormat,mm=dm.utcParse,dm}Iv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Rv=31536e6;function Fv(t){return new Date(t)}function Pv(t){return t instanceof Date?+t:+new Date(+t)}function jv(t,e,n,r,i,o,s,c,u){var l=Cg(vg,vg),h=l.invert,f=l.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),y=u("%I %p"),m=u("%a %d"),v=u("%b %d"),b=u("%B"),_=u("%Y"),x=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,Rv]];function w(a){return(s(a)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return S_.h=360*t-100,S_.s=1.5-1.5*e,S_.l=.8-.9*e,S_+""}var M_=Qe(),N_=Math.PI/3,D_=2*Math.PI/3;function B_(t){var e;return t=(.5-t)*Math.PI,M_.r=255*(e=Math.sin(t))*e,M_.g=255*(e=Math.sin(t+N_))*e,M_.b=255*(e=Math.sin(t+D_))*e,M_+""}function L_(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function O_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const I_=O_(hb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var R_=O_(hb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),F_=O_(hb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),P_=O_(hb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function j_(t){return Te(ie(t).call(document.documentElement))}var Y_=0;function z_(){return new U_}function U_(){this._="@"+(++Y_).toString(36)}function q_(t){return"string"==typeof t?new xe([document.querySelectorAll(t)],[document.documentElement]):new xe([null==t?[]:t],_e)}function H_(t,e){null==e&&(e=Nn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n1?0:t<-1?tx:Math.acos(t)}function ix(t){return t>=1?ex:t<=-1?-ex:Math.asin(t)}function ax(t){return t.innerRadius}function ox(t){return t.outerRadius}function sx(t){return t.startAngle}function cx(t){return t.endAngle}function ux(t){return t&&t.padAngle}function lx(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*fN*N+D*D&&(T=E,C=S),{cx:T,cy:C,x01:-l,y01:-h,x11:T*(i/x-1),y11:C*(i/x-1)}}function fx(){var t=ax,e=ox,n=$_(0),r=null,i=sx,a=cx,o=ux,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-ex,d=a.apply(this,arguments)-ex,p=W_(d-f),g=d>f;if(s||(s=c=Wi()),hJ_)if(p>nx-J_)s.moveTo(h*G_(f),h*Q_(f)),s.arc(0,0,h,f,d,!g),l>J_&&(s.moveTo(l*G_(d),l*Q_(d)),s.arc(0,0,l,d,f,g));else{var y,m,v=f,b=d,_=f,x=d,w=p,k=p,T=o.apply(this,arguments)/2,C=T>J_&&(r?+r.apply(this,arguments):K_(l*l+h*h)),E=Z_(W_(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(C>J_){var M=ix(C/l*Q_(T)),N=ix(C/h*Q_(T));(w-=2*M)>J_?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>J_?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*G_(v),B=h*Q_(v),L=l*G_(x),O=l*Q_(x);if(E>J_){var I,R=h*G_(b),F=h*Q_(b),P=l*G_(_),j=l*Q_(_);if(pJ_?A>J_?(y=hx(P,j,D,B,h,A,g),m=hx(R,F,L,O,h,A,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),AJ_&&w>J_?S>J_?(y=hx(L,O,R,F,l,-S,g),m=hx(D,B,P,j,l,-S,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--h)s.point(y[h],m[h]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+t(f,u,c),m[u]=+n(f,u,c),s.point(e?+e(f,u,c):y[u],r?+r(f,u,c):m[u]))}if(d)return s=null,d+""||null}function u(){return mx().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:$_(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:$_(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:$_(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:$_(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:$_(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:$_(+t),c):r},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(r)},c.lineX1=function(){return u().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:$_(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function bx(t,e){return et?1:e>=t?0:NaN}function _x(t){return t}function xx(){var t=_x,e=bx,n=null,r=$_(0),i=$_(nx),a=$_(0);function o(o){var s,c,u,l,h,f=o.length,d=0,p=new Array(f),g=new Array(f),y=+r.apply(this,arguments),m=Math.min(nx,Math.max(-nx,i.apply(this,arguments)-y)),v=Math.min(Math.abs(m)/f,a.apply(this,arguments)),b=v*(m<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,u=d?(m-f*b)/d:0;s0?h*u:0)+b,g[c]={data:o[c],index:s,value:h,startAngle:y,endAngle:l,padAngle:v};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:$_(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:$_(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:$_(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:$_(+t),o):a},o}dx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var wx=Tx(px);function kx(t){this._curve=t}function Tx(t){function e(e){return new kx(t(e))}return e._curve=t,e}function Cx(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Tx(t)):e()._curve},t}function Ex(){return Cx(mx().curve(wx))}function Sx(){var t=vx().curve(wx),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Cx(n())},delete t.lineX0,t.lineEndAngle=function(){return Cx(r())},delete t.lineX1,t.lineInnerRadius=function(){return Cx(i())},delete t.lineY0,t.lineOuterRadius=function(){return Cx(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Tx(t)):e()._curve},t}function Ax(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}kx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Mx=Array.prototype.slice;function Nx(t){return t.source}function Dx(t){return t.target}function Bx(t){var e=Nx,n=Dx,r=gx,i=yx,a=null;function o(){var o,s=Mx.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(a||(a=o=Wi()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:$_(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:$_(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Lx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Ox(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Ix(t,e,n,r,i){var a=Ax(e,n),o=Ax(e,n=(n+i)/2),s=Ax(r,n),c=Ax(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function Rx(){return Bx(Lx)}function Fx(){return Bx(Ox)}function Px(){var t=Bx(Ix);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const jx={draw:function(t,e){var n=Math.sqrt(e/tx);t.moveTo(n,0),t.arc(0,0,n,0,nx)}},Yx={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var zx=Math.sqrt(1/3),Ux=2*zx;const qx={draw:function(t,e){var n=Math.sqrt(e/Ux),r=n*zx;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var Hx=Math.sin(tx/10)/Math.sin(7*tx/10),$x=Math.sin(nx/10)*Hx,Wx=-Math.cos(nx/10)*Hx;const Vx={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=$x*n,i=Wx*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=nx*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},Gx={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Xx=Math.sqrt(3);const Zx={draw:function(t,e){var n=-Math.sqrt(e/(3*Xx));t.moveTo(0,2*n),t.lineTo(-Xx*n,-n),t.lineTo(Xx*n,-n),t.closePath()}};var Qx=-.5,Kx=Math.sqrt(3)/2,Jx=1/Math.sqrt(12),tw=3*(Jx/2+1);const ew={draw:function(t,e){var n=Math.sqrt(e/tw),r=n/2,i=n*Jx,a=r,o=n*Jx+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(Qx*r-Kx*i,Kx*r+Qx*i),t.lineTo(Qx*a-Kx*o,Kx*a+Qx*o),t.lineTo(Qx*s-Kx*c,Kx*s+Qx*c),t.lineTo(Qx*r+Kx*i,Qx*i-Kx*r),t.lineTo(Qx*a+Kx*o,Qx*o-Kx*a),t.lineTo(Qx*s+Kx*c,Qx*c-Kx*s),t.closePath()}};var nw=[jx,Yx,qx,Gx,Vx,Zx,ew];function rw(){var t=$_(jx),e=$_(64),n=null;function r(){var r;if(n||(n=r=Wi()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:$_(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:$_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function iw(){}function aw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ow(t){this._context=t}function sw(t){return new ow(t)}function cw(t){this._context=t}function uw(t){return new cw(t)}function lw(t){this._context=t}function hw(t){return new lw(t)}function fw(t,e){this._basis=new ow(t),this._beta=e}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:aw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},lw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const dw=function t(e){function n(t){return 1===e?new ow(t):new fw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function pw(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function gw(t,e){this._context=t,this._k=(1-e)/6}gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yw=function t(e){function n(t){return new gw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function mw(t,e){this._context=t,this._k=(1-e)/6}mw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vw=function t(e){function n(t){return new mw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bw(t,e){this._context=t,this._k=(1-e)/6}bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _w=function t(e){function n(t){return new bw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function xw(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>J_){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>J_){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function ww(t,e){this._context=t,this._alpha=e}ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kw=function t(e){function n(t){return e?new ww(t,e):new gw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Tw(t,e){this._context=t,this._alpha=e}Tw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cw=function t(e){function n(t){return e?new Tw(t,e):new mw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ew(t,e){this._context=t,this._alpha=e}Ew.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Sw=function t(e){function n(t){return e?new Ew(t,e):new bw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Aw(t){this._context=t}function Mw(t){return new Aw(t)}function Nw(t){return t<0?-1:1}function Dw(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Nw(a)+Nw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Bw(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Lw(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Ow(t){this._context=t}function Iw(t){this._context=new Rw(t)}function Rw(t){this._context=t}function Fw(t){return new Ow(t)}function Pw(t){return new Iw(t)}function jw(t){this._context=t}function Yw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a=0;)n[e]=e;return n}function Gw(t,e){return t[e]}function Xw(){var t=$_([]),e=Vw,n=Ww,r=Gw;function i(i){var a,o,s=t.apply(this,arguments),c=i.length,u=s.length,l=new Array(u);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a0)for(var n,r,i,a,o,s,c=0,u=t[e[0]].length;c0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function Kw(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;oa&&(a=e,r=n);return r}function nk(t){var e=t.map(rk);return Vw(t).sort((function(t,n){return e[t]-e[n]}))}function rk(t){for(var e,n=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var sk="%Y-%m-%dT%H:%M:%S.%LZ",ck=Date.prototype.toISOString?function(t){return t.toISOString()}:ym(sk);const uk=ck;var lk=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:mm(sk);const hk=lk;function fk(t,e,n){var r=new Wn,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Hn():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}function dk(t){return function(){return t}}function pk(t){return t[0]}function gk(t){return t[1]}function yk(){this._=null}function mk(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function vk(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function bk(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function _k(t){for(;t.L;)t=t.L;return t}yk.prototype={constructor:yk,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=_k(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(vk(this,n),n=(t=n).U),n.C=!1,r.C=!0,bk(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(bk(this,n),n=(t=n).U),n.C=!1,r.C=!0,vk(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?_k(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,vk(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,bk(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,vk(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,bk(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,vk(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,bk(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const xk=yk;function wk(t,e,n,r){var i=[null,null],a=Wk.push(i)-1;return i.left=t,i.right=e,n&&Tk(i,t,e,n),r&&Tk(i,e,t,r),Hk[t.index].halfedges.push(a),Hk[e.index].halfedges.push(a),i}function kk(t,e,n){var r=[e,n];return r.left=t,r}function Tk(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Ck(t,e,n,r,i){var a,o=t[0],s=t[1],c=o[0],u=o[1],l=0,h=1,f=s[0]-c,d=s[1]-u;if(a=e-c,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=r-c,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=i-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>l&&(l=a)}else if(d>0){if(a0||h<1)||(l>0&&(t[0]=[c+l*f,u+l*d]),h<1&&(t[1]=[c+h*f,u+h*d]),!0)}}}}}function Ek(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,c=t[0],u=t.left,l=t.right,h=u[0],f=u[1],d=l[0],p=l[1],g=(h+d)/2,y=(f+p)/2;if(p===f){if(g=r)return;if(h>d){if(c){if(c[1]>=i)return}else c=[g,n];a=[g,i]}else{if(c){if(c[1]1)if(h>d){if(c){if(c[1]>=i)return}else c=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+s];a=[r,o*r+s]}else{if(c){if(c[0]=-Gk)){var d=c*c+u*u,p=l*l+h*h,g=(h*d-u*p)/f,y=(c*p-l*d)/f,m=Dk.pop()||new Bk;m.arc=t,m.site=i,m.x=g+o,m.y=(m.cy=y+s)+Math.sqrt(g*g+y*y),t.circle=m;for(var v=null,b=$k._;b;)if(m.yVk)s=s.L;else{if(!((i=a-Uk(s,o))>Vk)){r>-Vk?(e=s.P,n=s):i>-Vk?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){Hk[t.index]={site:t,halfedges:[]}}(t);var c=Fk(t);if(qk.insert(e,c),e||n){if(e===n)return Ok(e),n=Fk(e.site),qk.insert(c,n),c.edge=n.edge=wk(e.site,c.site),Lk(e),void Lk(n);if(n){Ok(e),Ok(n);var u=e.site,l=u[0],h=u[1],f=t[0]-l,d=t[1]-h,p=n.site,g=p[0]-l,y=p[1]-h,m=2*(f*y-d*g),v=f*f+d*d,b=g*g+y*y,_=[(y*v-d*b)/m+l,(f*b-g*v)/m+h];Tk(n.edge,u,p,_),c.edge=wk(u,t,null,_),n.edge=wk(t,p,null,_),Lk(e),Lk(n)}else c.edge=wk(e.site,c.site)}}function zk(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],c=n[1],u=c-e;if(!u)return s;var l=s-r,h=1/a-1/u,f=l/u;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*u)-c+u/2+i-a/2)))/h+r:(r+s)/2}function Uk(t,e){var n=t.N;if(n)return zk(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var qk,Hk,$k,Wk,Vk=1e-6,Gk=1e-12;function Xk(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Zk(t,e){return e[1]-t[1]||e[0]-t[0]}function Qk(t,e){var n,r,i,a=t.sort(Zk).pop();for(Wk=[],Hk=new Array(t.length),qk=new xk,$k=new xk;;)if(i=Nk,a&&(!i||a[1]Vk||Math.abs(i[0][1]-i[1][1])>Vk)||delete Wk[a]}(o,s,c,u),function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,g,y=Hk.length,m=!0;for(i=0;iVk||Math.abs(g-f)>Vk)&&(c.splice(s,0,Wk.push(kk(o,d,Math.abs(p-t)Vk?[t,Math.abs(h-t)Vk?[Math.abs(f-r)Vk?[n,Math.abs(h-n)Vk?[Math.abs(f-e)=s)return null;var c=t-i.site[0],u=e-i.site[1],l=c*c+u*u;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var c=t-s[0],u=e-s[1],h=c*c+u*u;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function fT(){var t,e,n=oT,r=sT,i=hT,a=uT,o=lT,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=Bp,h=ft("start","zoom","end"),f=500,d=0;function p(t){t.property("__zoom",cT).on("wheel.zoom",x).on("mousedown.zoom",w).on("dblclick.zoom",k).filter(o).on("touchstart.zoom",T).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eT(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new eT(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function v(t,e,n){t.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=b(t,i),o=r.apply(t,i),s=null==n?m(o):"function"==typeof n?n.apply(t,i):n,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,i):e,f=l(u.invert(s).concat(c/u.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=c/e[2];t=new eT(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function b(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function x(){if(n.apply(this,arguments)){var t=b(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Ln(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],ar(this),t.start()}aT(),t.wheel=setTimeout(u,150),t.zoom("mouse",i(y(g(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function u(){t.wheel=null,t.end()}}function w(){if(!e&&n.apply(this,arguments)){var t=b(this,arguments,!0),r=Te(le.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",l,!0),a=Ln(this),o=le.clientX,s=le.clientY;Se(le.view),iT(),t.mouse=[a,this.__zoom.invert(a)],ar(this),t.start()}function u(){if(aT(),!t.moved){var e=le.clientX-o,n=le.clientY-s;t.moved=e*e+n*n>d}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=Ln(t.that),t.mouse[1]),t.extent,c))}function l(){r.on("mousemove.zoom mouseup.zoom",null),Ae(le.view,t.moved),aT(),t.end()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=Ln(this),a=t.invert(e),o=t.k*(le.shiftKey?.5:2),s=i(y(g(t,o),e,a),r.apply(this,arguments),c);aT(),u>0?Te(this).transition().duration(u).call(v,s,e):Te(this).call(p.transform,s)}}function T(){if(n.apply(this,arguments)){var e,r,i,a,o=le.touches,s=o.length,c=b(this,arguments,le.changedTouches.length===s);for(iT(),r=0;r{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},1207:(t,e,n)=>{var r=n(8436),i=n(4079);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],u=i.addDummyNode(t,"border",s,n);a[e][o]=u,t.setParent(u,r),c&&t.setEdge(c,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s{var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var u=r.range(s+o+3).map((function(){return new a})),l=o+1;return r.forEach(n.nodes(),(function(t){c(u,l,n.node(t))})),{graph:n,buckets:u,zeroIdx:l}}(t,e||o),u=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)s(t,e,n,r);for(;r=a.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{var r=n(8436),i=n(1207),a=n(5995),o=n(8093),s=n(1138).normalizeRanks,c=n(4219),u=n(1138).removeEmptyRanks,l=n(2981),h=n(1133),f=n(3258),d=n(3408),p=n(7873),g=n(1138),y=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new y({multigraph:!0,compound:!0}),n=E(t.graph());return e.setGraph(r.merge({},v,C(n,m),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=E(t.node(n));e.setNode(n,r.defaults(C(i,_),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=E(t.edge(n));e.setEdge(n,r.merge({},k,C(i,w),r.pick(i,T)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function u(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],_=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},T=["labelpos"];function C(t,e){return r.mapValues(r.pick(t,e),Number)}function E(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch(t){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,s,c,u){var l=t.children(u);if(l.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(h,u),d.borderTop=h,t.setParent(f,u),d.borderBottom=f,r.forEach(l,(function(r){a(t,e,n,o,s,c,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=l!==d?1:s-c[u]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:s+c[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,s,c,o,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,u=t.node(c).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(u!==s+1){for(t.removeEdge(e),a=0,++s;s{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},6630:(t,e,n)=>{var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),o=1;o0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r{var r=n(8436),i=n(2588),a=n(6630),o=n(1026),s=n(3128),c=n(5093),u=n(574).Graph,l=n(1138);function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function f(t,e){var n=new u;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=l.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),o=h(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);d(t,s);for(var c,u=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?n:o,p%4>=2),s=l.buildLayerMatrix(t);var y=a(t,s);y{var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},9567:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(9567),o=n(7304);t.exports=function t(e,n,s,c){var u=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(u=r.filter(u,(function(t){return t!==h&&t!==f})));var p=i(e,u);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,c);d[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var g=a(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var y=o(g,c);if(h&&(y.vs=r.flatten([h,y.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),v=e.node(e.predecessors(f)[0]);r.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+v.order)/(y.weight+2),y.weight+=2}return y}},7304:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,c=r.sortBy(o.rhs,(function(t){return-t.i})),u=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=a(u,c,f),r.forEach(s,(function(t){f+=t.vs.length,u.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=a(u,c,f)}));var d={vs:r.flatten(u,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||u>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,u=o[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(u=o[c])!==s&&t.node(u).maxRank{var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,u=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===u)&&(r.forEach(i.slice(o,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&c(n,e,u)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(a=t.node(u[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return s[t]}));for(var l=(c.length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=c[h];o[t]===t&&e{var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),u=t.nodes()[0],l=t.nodeCount();for(r.setNode(u,{});o(r,t){var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){a(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r},2472:(t,e,n)=>{var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,s=n(574).alg.preorder,c=n(574).alg.postorder,u=n(1138).simplify;function l(t){t=u(t),o(t);var e,n=i(t);for(d(n),h(n,t);e=g(n);)m(n,t,e,y(n,t,e))}function h(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=f(t,e,n)}(t,e,n)}))}function f(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),s=0;return o||(a=!1,o=e.edge(i,n)),s=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,u=r.v===n,l=u?r.w:r.v;if(l!==i){var h=u===a,f=e.edge(r).weight;if(s+=h?f:-f,o=n,c=l,t.hasEdge(o,c)){var d=t.edge(n,l).cutvalue;s+=h?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=p(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function y(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),c=t.node(o),u=s,l=!1;s.lim>c.lim&&(u=c,l=!0);var h=r.filter(e.edges(),(function(e){return l===v(0,t.node(e.v),u)&&l!==v(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return a(e,t)}))}function m(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function v(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=y,l.exchangeEdges=m},6681:(t,e,n)=>{var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,r=u):(o<0&&(c=-c),n=c,r=c*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},8177:t=>{t.exports="0.8.5"},7856:function(t){t.exports=function(){var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,c="undefined"!=typeof Reflect&&Reflect,u=c.apply,l=c.construct;u||(u=function(t,e,n){return t.apply(e,n)}),a||(a=function(t){return t}),o||(o=function(t){return t}),l||(l=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),i=1;i/gm),j=o(/^data-[\-\w.\u00B7-\uFFFF]/),Y=o(/^aria-[\-\w]+$/),z=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=o(/^html$/i),$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function W(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:V(),n=function(e){return t(e)};if(n.version="2.3.6",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,i=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,u=e.Element,l=e.NodeFilter,h=e.NamedNodeMap,w=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,X=e.HTMLFormElement,Z=e.DOMParser,Q=e.trustedTypes,K=u.prototype,J=C(K,"cloneNode"),tt=C(K,"nextSibling"),et=C(K,"childNodes"),nt=C(K,"parentNode");if("function"==typeof s){var rt=i.createElement("template");rt.content&&rt.content.ownerDocument&&(i=rt.content.ownerDocument)}var it=G(Q,r),at=it?it.createHTML(""):"",ot=i,st=ot.implementation,ct=ot.createNodeIterator,ut=ot.createDocumentFragment,lt=ot.getElementsByTagName,ht=r.importNode,ft={};try{ft=T(i).documentMode?i.documentMode:{}}catch(t){}var dt={};n.isSupported="function"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ft;var pt=F,gt=P,yt=j,mt=Y,vt=U,bt=q,_t=z,xt=null,wt=k({},[].concat(W(E),W(S),W(A),W(N),W(B))),kt=null,Tt=k({},[].concat(W(L),W(O),W(I),W(R))),Ct=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Et=null,St=null,At=!0,Mt=!0,Nt=!1,Dt=!1,Bt=!1,Lt=!1,Ot=!1,It=!1,Rt=!1,Ft=!1,Pt=!0,jt=!0,Yt=!1,zt={},Ut=null,qt=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ht=null,$t=k({},["audio","video","img","source","image","track"]),Wt=null,Vt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml",Qt=Zt,Kt=!1,Jt=void 0,te=["application/xhtml+xml","text/html"],ee="text/html",ne=void 0,re=null,ie=i.createElement("form"),ae=function(t){return t instanceof RegExp||t instanceof Function},oe=function(t){re&&re===t||(t&&"object"===(void 0===t?"undefined":$(t))||(t={}),t=T(t),xt="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):wt,kt="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):Tt,Wt="ADD_URI_SAFE_ATTR"in t?k(T(Vt),t.ADD_URI_SAFE_ATTR):Vt,Ht="ADD_DATA_URI_TAGS"in t?k(T($t),t.ADD_DATA_URI_TAGS):$t,Ut="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS):qt,Et="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},St="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},zt="USE_PROFILES"in t&&t.USE_PROFILES,At=!1!==t.ALLOW_ARIA_ATTR,Mt=!1!==t.ALLOW_DATA_ATTR,Nt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Dt=t.SAFE_FOR_TEMPLATES||!1,Bt=t.WHOLE_DOCUMENT||!1,It=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,Ft=t.RETURN_TRUSTED_TYPE||!1,Ot=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,jt=!1!==t.KEEP_CONTENT,Yt=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,Qt=t.NAMESPACE||Zt,t.CUSTOM_ELEMENT_HANDLING&&ae(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ae(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ct.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt=Jt=-1===te.indexOf(t.PARSER_MEDIA_TYPE)?ee:t.PARSER_MEDIA_TYPE,ne="application/xhtml+xml"===Jt?function(t){return t}:g,Dt&&(Mt=!1),Rt&&(It=!0),zt&&(xt=k({},[].concat(W(B))),kt=[],!0===zt.html&&(k(xt,E),k(kt,L)),!0===zt.svg&&(k(xt,S),k(kt,O),k(kt,R)),!0===zt.svgFilters&&(k(xt,A),k(kt,O),k(kt,R)),!0===zt.mathMl&&(k(xt,N),k(kt,I),k(kt,R))),t.ADD_TAGS&&(xt===wt&&(xt=T(xt)),k(xt,t.ADD_TAGS)),t.ADD_ATTR&&(kt===Tt&&(kt=T(kt)),k(kt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(Wt,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(Ut===qt&&(Ut=T(Ut)),k(Ut,t.FORBID_CONTENTS)),jt&&(xt["#text"]=!0),Bt&&k(xt,["html","head","body"]),xt.table&&(k(xt,["tbody"]),delete Et.tbody),a&&a(t),re=t)},se=k({},["mi","mo","mn","ms","mtext"]),ce=k({},["foreignobject","desc","title","annotation-xml"]),ue=k({},S);k(ue,A),k(ue,M);var le=k({},N);k(le,D);var he=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Zt,tagName:"template"});var n=g(t.tagName),r=g(e.tagName);if(t.namespaceURI===Xt)return e.namespaceURI===Zt?"svg"===n:e.namespaceURI===Gt?"svg"===n&&("annotation-xml"===r||se[r]):Boolean(ue[n]);if(t.namespaceURI===Gt)return e.namespaceURI===Zt?"math"===n:e.namespaceURI===Xt?"math"===n&&ce[r]:Boolean(le[n]);if(t.namespaceURI===Zt){if(e.namespaceURI===Xt&&!ce[r])return!1;if(e.namespaceURI===Gt&&!se[r])return!1;var i=k({},["title","style","font","a","script"]);return!le[n]&&(i[n]||!ue[n])}return!1},fe=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},de=function(t,e){try{p(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!kt[t])if(It||Rt)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},pe=function(t){var e=void 0,n=void 0;if(Ot)t=""+t;else{var r=y(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Jt&&(t=''+t+"");var a=it?it.createHTML(t):t;if(Qt===Zt)try{e=(new Z).parseFromString(a,Jt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=Kt?"":a}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Qt===Zt?lt.call(e,Bt?"html":"body")[0]:Bt?e.documentElement:o},ge=function(t){return ct.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ye=function(t){return t instanceof X&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof w)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},me=function(t){return"object"===(void 0===c?"undefined":$(c))?t instanceof c:t&&"object"===(void 0===t?"undefined":$(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ve=function(t,e,r){dt[t]&&f(dt[t],(function(t){t.call(n,e,r,re)}))},be=function(t){var e=void 0;if(ve("beforeSanitizeElements",t,null),ye(t))return fe(t),!0;if(y(t.nodeName,/[\u0080-\uFFFF]/))return fe(t),!0;var r=ne(t.nodeName);if(ve("uponSanitizeElement",t,{tagName:r,allowedTags:xt}),!me(t.firstElementChild)&&(!me(t.content)||!me(t.content.firstElementChild))&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return fe(t),!0;if("select"===r&&_(/